Skip to contentSkip to conversation

drm/amdgpu: use scheduler depenencies for CS

PATCH New Bert Karwatzki 1 participant 1 message Dec 22, 2022

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 10/13 drm/amdgpu: use scheduler depenencies for CS

Can you test if this solves the freezes:

(quoted diff) +0 -0

b/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
index 919bbea2e3ac..4e684c2afc70 100644

drivers/gpu/drm/amd/amdgpu/amdgpu_object.c +0 -0
@@ -1506,7 +1509,8 @@ u64 amdgpu_bo_gpu_offset_no_check(struct

amdgpu_bo *bo)
uint32_t amdgpu_bo_get_preferred_domain(struct amdgpu_device *adev,
uint32_t domain)
{
- if (domain == (AMDGPU_GEM_DOMAIN_VRAM |
AMDGPU_GEM_DOMAIN_GTT)) {
+ if ((domain == (AMDGPU_GEM_DOMAIN_VRAM |
AMDGPU_GEM_DOMAIN_GTT)) &&
+ ((adev->asic_type == CHIP_CARRIZO) || (adev->asic_type ==
CHIP_STONEY))) {
domain = AMDGPU_GEM_DOMAIN_VRAM;
if (adev->gmc.real_vram_size <= AMDGPU_SG_THRESHOLD)
domain = AMDGPU_GEM_DOMAIN_GTT;

This solves a lot of seemingly unrelated errors:
https://gitlab.freedesktop.org/drm/amd/-/issues/2255
https://gitlab.freedesktop.org/drm/amd/-/issues/2270
https://gitlab.freedesktop.org/drm/amd/-/issues/2281
https://gitlab.freedesktop.org/drm/amd/-/issues/2282
https://gitlab.freedesktop.org/drm/amd/-/issues/2291

Bert Karwatzki