Skip to content

Commit 8446c74

Browse files
Louis-Healexdeucher
authored andcommitted
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: d4a814f ("drm/amdkfd: Move gfx9.4.3 and gfx 9.5 MQD to HBM") Signed-off-by: Siwei He <siwei.he@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
1 parent 5e9aec4 commit 8446c74

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v9.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,9 @@ static void set_priority(struct v9_mqd *m, struct queue_properties *q)
111111

112112
static bool mqd_on_vram(struct amdgpu_device *adev)
113113
{
114+
if (adev->apu_prefer_gtt)
115+
return false;
116+
114117
switch (amdgpu_ip_version(adev, GC_HWIP, 0)) {
115118
case IP_VERSION(9, 4, 3):
116119
case IP_VERSION(9, 5, 0):

0 commit comments

Comments
 (0)