Skip to content

Commit ba0fb4b

Browse files
committed
drm/amdgpu: don't put MQDs in VRAM on ARM | ARM64
Issues were reported with commit 1cfb4d6 ("drm/amdgpu: put MQDs in VRAM") on an ADLINK Ampere Altra Developer Platform (AVA developer platform). Various ARM systems seem to have problems related to PCIe and MMIO access. In this case, I'm not sure if this is specific to the ADLINK platform or ARM in general. Seems to be some coherency issue with VRAM. For now, just don't put MQDs in VRAM on ARM. Link: https://lists.freedesktop.org/archives/amd-gfx/2023-October/100453.html Fixes: 1cfb4d6 ("drm/amdgpu: put MQDs in VRAM") Acked-by: Christian König <[email protected]> Signed-off-by: Alex Deucher <[email protected]> Cc: [email protected]
1 parent 2317086 commit ba0fb4b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -385,9 +385,11 @@ int amdgpu_gfx_mqd_sw_init(struct amdgpu_device *adev,
385385
struct amdgpu_ring *ring = &kiq->ring;
386386
u32 domain = AMDGPU_GEM_DOMAIN_GTT;
387387

388+
#if !defined(CONFIG_ARM) && !defined(CONFIG_ARM64)
388389
/* Only enable on gfx10 and 11 for now to avoid changing behavior on older chips */
389390
if (amdgpu_ip_version(adev, GC_HWIP, 0) >= IP_VERSION(10, 0, 0))
390391
domain |= AMDGPU_GEM_DOMAIN_VRAM;
392+
#endif
391393

392394
/* create MQD for KIQ */
393395
if (!adev->enable_mes_kiq && !ring->mqd_obj) {

0 commit comments

Comments
 (0)