On Thu, Jan 22, 2026 at 3:57 AM Jesse.Zhang <[email protected]> wrote:
>
> Extend the amdgpu_mqd structure with a new 'update_mqd' callback to support
> runtime updates of MQD properties for user queues
>
> Signed-off-by: Jesse Zhang <[email protected]>
> ---
>  drivers/gpu/drm/amd/amdgpu/amdgpu.h | 2 ++
>  1 file changed, 2 insertions(+)
>
> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu.h 
> b/drivers/gpu/drm/amd/amdgpu/amdgpu.h
> index 11a36c132905..f997fa17e8bd 100644
> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu.h
> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu.h
> @@ -815,6 +815,8 @@ struct amdgpu_mqd {
>         unsigned mqd_size;
>         int (*init_mqd)(struct amdgpu_device *adev, void *mqd,
>                         struct amdgpu_mqd_prop *p);
> +       int (*update_mqd)(struct amdgpu_device *adev, void *mqd,
> +                         struct amdgpu_mqd_prop *p);

Do we actually need a new callback, or can we just call init_mqd()
again with updated parameters?

Alex

>  };
>
>  struct amdgpu_pcie_reset_ctx {
> --
> 2.49.0
>

Reply via email to