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 23:22:04 +0000 (18:22 -0500)
commit2dcf82a8e8dc930655787797ef8a3692b527c7a9
treebd8eeec2fa189bfda58c6bc5f7fa11d59ec2c6ee
parent280df4996c2bfc0e340ae758ab6da35748853a7e
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