]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
drm/amdgpu: Fix shared buff copy to user
authorStanley.Yang <Stanley.Yang@amd.com>
Mon, 5 Feb 2024 07:55:48 +0000 (15:55 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 1 Mar 2024 12:34:56 +0000 (13:34 +0100)
commitcb4541cabb531ce230489a2930c5eaaa91d779ce
tree903e30589fe4e43dd2512a0e43e4483f84573eb8
parent61c0a633bdc644b064f0c9fe6412df247b2fbcca
drm/amdgpu: Fix shared buff copy to user

[ Upstream commit 2dcf82a8e8dc930655787797ef8a3692b527c7a9 ]

ta if invoke node buffer
|-------- ta type ----------|
|--------  ta id  ----------|
|-------- cmd  id ----------|
|------ shared buf len -----|
|------ shared buffer ------|

ta if invoke node buffer is as above, copy shared buffer data to correct location

Signed-off-by: Stanley.Yang <Stanley.Yang@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/amd/amdgpu/amdgpu_psp_ta.c