]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: fix the fw size for sdma
authorLikun Gao <Likun.Gao@amd.com>
Tue, 12 Apr 2022 20:57:45 +0000 (16:57 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 4 May 2022 14:43:54 +0000 (10:43 -0400)
commit99c8eca753e345327e510b9e6dfa08c07d480495
treef7849140a346ee01cca698324aebfe6200984b87
parenta13c52c42bbac9d770c68b58805a5c9f881a16de
drm/amdgpu: fix the fw size for sdma

For SDMA, if use the total size of SDMA TH0 and TH1 to allocate fw BO
may result to the ucode data overflow when copy ucode to BO as the PAGE
alignment.
IMU have the same issue.
Fix the above issue by alignment the fw size per fw ID.

Signed-off-by: Likun Gao <Likun.Gao@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_ucode.c