[PATCH v11 28/28] Revert "drm/amdgpu: don't allow userspace to create a doorbell BO"
Christian König
ckoenig.leichtzumerken at gmail.com
Tue Sep 17 12:25:13 UTC 2024
Am 09.09.24 um 22:06 schrieb Shashank Sharma:
> From: Arvind Yadav <Arvind.Yadav at amd.com>
>
> This reverts commit 6be2ad4f0073c541146caa66c5ae936c955a8224.
Signed-off-by line missing, apart from that Reviewed-by: Christian König
<christian.koenig at amd.com>
> ---
> 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 |
More information about the amd-gfx
mailing list