drm/amdgpu/userq: add a helper to check which IPs are enabled
authorAlex Deucher <alexander.deucher@amd.com>
Wed, 16 Apr 2025 20:43:52 +0000 (16:43 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 22 Apr 2025 12:51:45 +0000 (08:51 -0400)
commit11772eb73bb75558b530162fc0eb669e5bbc1d19
tree68b756e6b6f29c9b89f68d9644de6bc2fd687da5
parent4b27406380b0b9ada6b4893bc8f6766dd34fff36
drm/amdgpu/userq: add a helper to check which IPs are enabled

Add a helper to get a mask of IPs which support user queues.
Use this in the INFO IOCTL to get the IP mask to replace
the current code.

Reviewed-by: Prike Liang <Prike.Liang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c
drivers/gpu/drm/amd/amdgpu/amdgpu_userqueue.c
drivers/gpu/drm/amd/amdgpu/amdgpu_userqueue.h