drm/amdgpu: add ring flag for no user submissions
authorAlex Deucher <alexander.deucher@amd.com>
Tue, 18 Feb 2025 18:06:19 +0000 (13:06 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 8 Apr 2025 20:48:22 +0000 (16:48 -0400)
commit4310acd4464bc6aed0d211d94b1d343ea3cb62f8
treea0c267a4efe5961a401faf385bdeb916f19f50c4
parenta96a787d6de7325f7a961bd74a7cad4d078748b7
drm/amdgpu: add ring flag for no user submissions

This would be set by IPs which only accept submissions
from the kernel, not userspace, such as when kernel
queues are disabled. Don't expose the rings to userspace
and reject any submissions in the CS IOCTL.

v2: fix error code (Alex)

Reviewed-by: Sunil Khatri<sunil.khatri@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c
drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c
drivers/gpu/drm/amd/amdgpu/amdgpu_ring.h