drm/amdgpu: fix doorbell regression
authorjsg <jsg@openbsd.org>
Mon, 20 May 2024 04:49:32 +0000 (04:49 +0000)
committerjsg <jsg@openbsd.org>
Mon, 20 May 2024 04:49:32 +0000 (04:49 +0000)
From Shashank Sharma
4fd8cd4154a213e944933622039d83184b31617c in linux-6.6.y/6.6.31
705d0480e6ae5a73ca3a9c04316d0678e19a46ed in mainline linux

sys/dev/pci/drm/amd/amdgpu/amdgpu_ttm.c

index 6b9f0b7..7f90c3e 100644 (file)
@@ -424,7 +424,7 @@ bool amdgpu_res_cpu_visible(struct amdgpu_device *adev,
                return false;
 
        if (res->mem_type == TTM_PL_SYSTEM || res->mem_type == TTM_PL_TT ||
-           res->mem_type == AMDGPU_PL_PREEMPT)
+           res->mem_type == AMDGPU_PL_PREEMPT || res->mem_type == AMDGPU_PL_DOORBELL)
                return true;
 
        if (res->mem_type != TTM_PL_VRAM)