diff options
author | Dave Airlie <airlied@redhat.com> | 2024-12-20 12:53:42 +1000 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2024-12-20 16:21:44 +1000 |
commit | e639fb046b8150625c1b96bf6f02a18f11ef1760 (patch) | |
tree | 3b164e89b6d53a2a79ad71e97fe255083c89a154 /drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | |
parent | 87fd88332567e22986d4989d912a1e44f164dc7d (diff) | |
parent | 3abb660f9e18925468685591a3702bda05faba4f (diff) | |
download | linux-e639fb046b8150625c1b96bf6f02a18f11ef1760.tar.gz linux-e639fb046b8150625c1b96bf6f02a18f11ef1760.tar.bz2 linux-e639fb046b8150625c1b96bf6f02a18f11ef1760.zip |
Merge tag 'amd-drm-fixes-6.13-2024-12-18' of https://gitlab.freedesktop.org/agd5f/linux into drm-fixes
amd-drm-fixes-6.13-2024-12-18:
amdgpu:
- Disable BOCO when CONFIG_HOTPLUG_PCI_PCIE is not enabled
- scheduler job fixes
- IP version check fixes
- devcoredump fix
- GPUVM update fix
- NBIO 2.5 fix
Signed-off-by: Dave Airlie <airlied@redhat.com>
From: Alex Deucher <alexander.deucher@amd.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20241218204637.2966198-1-alexander.deucher@amd.com
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c index ddd7f05e4db9..c9c48b782ec1 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c @@ -1266,10 +1266,9 @@ int amdgpu_vm_bo_update(struct amdgpu_device *adev, struct amdgpu_bo_va *bo_va, * next command submission. */ if (amdgpu_vm_is_bo_always_valid(vm, bo)) { - uint32_t mem_type = bo->tbo.resource->mem_type; - - if (!(bo->preferred_domains & - amdgpu_mem_type_to_domain(mem_type))) + if (bo->tbo.resource && + !(bo->preferred_domains & + amdgpu_mem_type_to_domain(bo->tbo.resource->mem_type))) amdgpu_vm_bo_evicted(&bo_va->base); else amdgpu_vm_bo_idle(&bo_va->base); |