Commit 8446c747 authored by Siwei He's avatar Siwei He Committed by Alex Deucher
Browse files

drm/amdkfd: Fix APU to use GTT, not VRAM for MQD



Add a check in mqd_on_vram. If the device prefers GTT, it returns false

Fixes: d4a814f4 ("drm/amdkfd: Move gfx9.4.3 and gfx 9.5 MQD to HBM")
Signed-off-by: default avatarSiwei He <siwei.he@amd.com>
Reviewed-by: default avatarAlex Deucher <alexander.deucher@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 5e9aec4e
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -111,6 +111,9 @@ static void set_priority(struct v9_mqd *m, struct queue_properties *q)

static bool mqd_on_vram(struct amdgpu_device *adev)
{
	if (adev->apu_prefer_gtt)
		return false;

	switch (amdgpu_ip_version(adev, GC_HWIP, 0)) {
	case IP_VERSION(9, 4, 3):
	case IP_VERSION(9, 5, 0):