OSDN Git Service

drm/amdgpu: correct the memcpy size for ip discovery firmware
authorLe Ma <le.ma@amd.com>
Tue, 6 Sep 2022 07:07:53 +0000 (15:07 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 29 Sep 2022 13:44:02 +0000 (09:44 -0400)
commita79852a39332614d30a0f81785803ba72877a575
treec102251ee451c04e5809644d6dcaa01542713001
parentf61a825aa86115dbdcaba25bba78e007b5e8e1b1
drm/amdgpu: correct the memcpy size for ip discovery firmware

Use fw->size instead of discovery_tmr_size for fallback path.

Signed-off-by: Le Ma <le.ma@amd.com>
Acked-by: Christian König <christian.koenig@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_discovery.c