]> git.ipfire.org Git - thirdparty/linux.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)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 7 Feb 2024 17:26:22 +0000 (12:26 -0500)
commit28b34ad207cc769fd086d1046c32401100401733
tree29278d5878ae68016742cfc94aac923876fe9cb8
parent7f6f92b1036f44a961b78240f5a4c3b630e589fc
drm/amdgpu: Fix shared buff copy to user

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>
drivers/gpu/drm/amd/amdgpu/amdgpu_psp_ta.c