mesa-drm/amdgpu
Shashank Sharma 5d7d7c4318 drm/amdgpu: add new AMDGPU_INFO subquery for userqueue metadata
This patch:
- adds a new subquery (AMDGPU_INFO_UQ_FW_AREAS) 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.

V2: fix the build error due to exporting of helper function
V3: make an entry for amdgpu_query_uq_metadata_info in
    amdgpu-symbols.txt
V4: Rename the subquery to AMDGPU_INFO_UQ_FW_AREAS (Marek, Pierre-Eric)
V5: Addressed review comments (Pierre-Eric):
    - Fix the API comment to match the new IOCTL name
    - remove the unused uq_metadata parameter

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>
Reviewed-by: Marek Olsak <marek.olsak@amd.com>
Signed-off-by: Shashank Sharma <shashank.sharma@amd.com>
2025-04-10 13:20:00 +00:00
..
.editorconfig Add meson build system 2018-01-12 09:40:48 -08:00
amdgpu-symbols.txt drm/amdgpu: add new AMDGPU_INFO subquery for userqueue metadata 2025-04-10 13:20:00 +00:00
amdgpu.h drm/amdgpu: add new AMDGPU_INFO subquery for userqueue metadata 2025-04-10 13:20:00 +00:00
amdgpu_asic_id.c meson,configure: include config.h automatically 2018-03-20 18:19:26 +00:00
amdgpu_bo.c amdgpu: Fix pointer/integer mismatch warning 2023-09-04 09:31:36 +02:00
amdgpu_cs.c amdgpu: Make amdgpu_cs_signal_semaphore() thread-safe 2024-05-23 18:57:18 +00:00
amdgpu_device.c amdgpu: fix deinit logic 2024-03-27 08:55:26 +01:00
amdgpu_gpu_info.c drm/amdgpu: add new AMDGPU_INFO subquery for userqueue metadata 2025-04-10 13:20:00 +00:00
amdgpu_internal.h amdgpu: add amdgpu_va_manager 2024-03-21 10:56:29 +01:00
amdgpu_vamgr.c amdgpu: add amdgpu_va_range_alloc2 2024-03-21 10:57:04 +01:00
amdgpu_vm.c amdgpu: annotate public functions 2018-09-19 22:46:45 -07:00
Android.bp Convert to Android.bp 2024-07-29 14:47:30 -04:00
Android.sources.bp Convert to Android.bp 2024-07-29 14:47:30 -04:00
handle_table.c amdgpu: fix off by one in handle_table_insert 2018-08-16 08:50:04 +02:00
handle_table.h amdgpu: add handle table implementation v2 2018-08-07 13:27:16 +02:00
libdrm_amdgpu.pc.in amdgpu: add libdrm as private requirement/dependency 2016-02-04 13:22:50 +00:00
meson.build libs: Tie DSO minor versions to libdrm version 2024-08-01 13:28:41 +01:00