[Intel-gfx] [PATCH v3 2/4] drm/gem: Remove BUG_ON in drm_gem_private_object_init
Christian König
christian.koenig at amd.com
Wed Jan 11 09:12:53 UTC 2023
This patch here needs to come first, otherwise changing the TTM/AMDGPU
internals to allow byte sized BOs for GDS would trigger this BUG_ON().
Christian.
Am 11.01.23 um 07:35 schrieb Somalapuram Amaranath:
> ttm_resource allocate size in bytes to support less than page size
>
> Signed-off-by: Somalapuram Amaranath <Amaranath.Somalapuram at amd.com>
> ---
> drivers/gpu/drm/drm_gem.c | 2 --
> 1 file changed, 2 deletions(-)
>
> diff --git a/drivers/gpu/drm/drm_gem.c b/drivers/gpu/drm/drm_gem.c
> index 59a0bb5ebd85..ee8b5c2b6c60 100644
> --- a/drivers/gpu/drm/drm_gem.c
> +++ b/drivers/gpu/drm/drm_gem.c
> @@ -152,8 +152,6 @@ EXPORT_SYMBOL(drm_gem_object_init);
> void drm_gem_private_object_init(struct drm_device *dev,
> struct drm_gem_object *obj, size_t size)
> {
> - BUG_ON((size & (PAGE_SIZE - 1)) != 0);
> -
> obj->dev = dev;
> obj->filp = NULL;
>
More information about the Intel-gfx
mailing list