mirror of
https://github.com/torvalds/linux.git
synced 2026-05-28 17:13:52 +02:00
Revert "drm/amdgpu: don't allow userspace to create a doorbell BO"
This reverts commit 6be2ad4f00.
This patch was to block userspace to use doorbell manager UAPI
until usermode queue UAPI gets approved. UQ UAPI got approved in the
following MR:
https://gitlab.freedesktop.org/mesa/drm/-/merge_requests/392
Cc: Christian Koenig <christian.koenig@amd.com>
Cc: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Shashank Sharma <shashank.sharma@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
38c67ec9aa
commit
5f2f78314c
|
|
@ -430,10 +430,6 @@ int amdgpu_gem_create_ioctl(struct drm_device *dev, void *data,
|
|||
uint32_t handle, initial_domain;
|
||||
int r;
|
||||
|
||||
/* reject DOORBELLs until userspace code to use it is available */
|
||||
if (args->in.domains & AMDGPU_GEM_DOMAIN_DOORBELL)
|
||||
return -EINVAL;
|
||||
|
||||
/* reject invalid gem flags */
|
||||
if (flags & ~(AMDGPU_GEM_CREATE_CPU_ACCESS_REQUIRED |
|
||||
AMDGPU_GEM_CREATE_NO_CPU_ACCESS |
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user