drm/amdkfd: Fix APU to use GTT, not VRAM for MQD
Subsystems (3)
PATCH 1/1 drm/amdkfd: Fix APU to use GTT, not VRAM for MQD
Fixes d4a814f400d4 ("drm/amdkfd: Move gfx9.4.3 and gfx 9.5 MQD to HBM")
Add a check in mqd_on_vram. If the device prefers GTT, it returns false
Signed-off-by Siwei He <[email protected]>
--- drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v9.c | 3 +++ 1 file changed, 3 insertions(+)
drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v9.c +3 -0
@@ -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 ):
Signature · 1 line
2.43.0
Quoted 2 lines · Siwei He
Fixes d4a814f400d4 ("drm/amdkfd: Move gfx9.4.3 and gfx 9.5 MQD to HBM")
Move the fixes below the patch description. With that fixed:
Reviewed-by Alex Deucher <[email protected]>
Quoted 24 lines
Add a check in
mqd_on_vram. If the device prefers GTT, it returns falseSigned-off-by Siwei He <[email protected]>--- drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v9.c | 3 +++ 1 file changed, 3 insertions(+)drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v9.c +3
-1@@ -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 ): --2.43.0