On Tue, Feb 10, 2026 at 10:02 AM Siwei He <[email protected]> wrote:
>
> 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]>

> 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(+)
>
> 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..a987e732e31a 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->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
>

Reply via email to