[PATCH v11 28/28] Revert "drm/amdgpu: don't allow userspace to create a doorbell BO"
Shashank Sharma
shashank.sharma at amd.com
Mon Sep 9 20:06:14 UTC 2024
From: Arvind Yadav <Arvind.Yadav at amd.com>
This reverts commit 6be2ad4f0073c541146caa66c5ae936c955a8224.
---
drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c | 4 ----
1 file changed, 4 deletions(-)
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c
index 7823faa3dbaa..2e3c974a3340 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c
@@ -365,10 +365,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 |
--
2.45.1
More information about the amd-gfx
mailing list