diff options
| author | Lijo Lazar <[email protected]> | 2023-03-03 12:33:00 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2023-06-09 13:57:46 +0000 |
| commit | a0ba127960982b8827ba8b410c272ec8f3ee7e6a (patch) | |
| tree | b91e24e3c31643e3851595d61ed0a5a481e32112 /drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | |
| parent | drm/amdgpu: Fix xGMI access P2P mapping failure on GFXIP 9.4.3 (diff) | |
| download | kernel-a0ba127960982b8827ba8b410c272ec8f3ee7e6a.tar.gz kernel-a0ba127960982b8827ba8b410c272ec8f3ee7e6a.zip | |
drm/amdgpu: Fix unmapping of aperture
When aperture size is zero, there is no mapping done.
Signed-off-by: Lijo Lazar <[email protected]>
Reviewed-by: Hawking Zhang <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_object.c')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c index f431205e1077..725530eb4e0c 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c @@ -1080,8 +1080,7 @@ void amdgpu_bo_fini(struct amdgpu_device *adev) amdgpu_ttm_fini(adev); if (drm_dev_enter(adev_to_drm(adev), &idx)) { - - if (!adev->gmc.xgmi.connected_to_cpu) { + if (!adev->gmc.xgmi.connected_to_cpu && !adev->gmc.is_app_apu) { arch_phys_wc_del(adev->gmc.vram_mtrr); arch_io_free_memtype_wc(adev->gmc.aper_base, adev->gmc.aper_size); } |
