On Mon, Feb 9, 2026 at 5:17 PM Siwei He <[email protected]> wrote:
>
> Add a check in mqd_on_vram. If the device prefers GTT, it returns false
>
> Signed-off-by: Siwei He <[email protected]>
Fixes: d4a814f400d4 ("drm/amdkfd: Move gfx9.4.3 and gfx 9.5 MQD to HBM")
Acked-by: Alex Deucher <[email protected]>
> ---
> drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v9.c | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v9.c
> b/drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v9.c
> index d4659a438be5..80e428f70725 100644
> --- a/drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v9.c
> +++ b/drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v9.c
> @@ -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->gmc.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
>