aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c
diff options
context:
space:
mode:
authorLang Yu <[email protected]>2025-05-23 02:04:54 +0000
committerAlex Deucher <[email protected]>2025-05-29 14:58:44 +0000
commit30837a49bd0aba0f311d4056cd48753955f60d40 (patch)
treea2e3ba6f3ccdefa1716c4d47ce300dbecdbe13ed /drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c
parentdrm/amdgpu/mes: remove some unused functions (diff)
downloadkernel-30837a49bd0aba0f311d4056cd48753955f60d40.tar.gz
kernel-30837a49bd0aba0f311d4056cd48753955f60d40.zip
drm/amdkfd: Map wptr BO to GART unconditionally
For simulation C models that don't run CP FW where adev->mes.sched_version is not populated correctly. This causes NULL dereference in amdgpu_amdkfd_free_gtt_mem(dev->adev, (void **)&pqn->q->wptr_bo_gart) and warning on unpinned BO in amdgpu_bo_gpu_offset(q->properties.wptr_bo). Compared with adding version check here and there, always map wptr BO to GART simplifies things. v2: Add NULL check in amdgpu_amdkfd_free_gtt_mem.(Philip) Signed-off-by: Lang Yu <[email protected]> Reviewed-by: Felix Kuehling <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c')
0 files changed, 0 insertions, 0 deletions