Skip to content

drm/amdgpu: add new AMDGPU_INFO subquery for userqueue metadata

Shashank Sharma requested to merge contactshashanksharma/drm:info-ioctl into main

This patch:

  • adds a new subquery (AMDGPU_INFO_UQ_METADATA) in AMDGPU_INFO_IOCTL to get the size and alignment of shadow and csa objects from the kernel. This information is required for a userqueue consumer (like MESA/libdrm) to create the userqueue metadata objects properly.
  • also adds supporting metadata structures and a high level wrapper function (amdgpu_query_uq_metadata_info) to the query, to make it easy to use.

The corresponding kernel changes for this UAPI extension can be found in amd-gfx mailing list, link: https://patchwork.freedesktop.org/patch/621390/?series=139715&rev=2

This patch adds support only for the GFX IP, and the other engines may be supported in subsequent development.

Cc: Marek Olsak marek.olsak@amd.com Cc: Pierre-Eric Pelloux-Prayer pierre-eric.pelloux-prayer@amd.com Cc: Alex Deucher alexander.deucher@amd.com Cc: Christian Koenig christian.koenig@amd.com Cc: Arvind Yadav arvind.yadav@amd.com Signed-off-by: Shashank Sharma shashank.sharma@amd.com

Merge request reports

Loading