All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v4 1/4] drm/gem: Remove BUG_ON in drm_gem_private_object_init
@ 2023-01-25 10:03 ` Somalapuram Amaranath
  0 siblings, 0 replies; 15+ messages in thread
From: Somalapuram Amaranath @ 2023-01-25 10:03 UTC (permalink / raw)
  To: dri-devel, amd-gfx, intel-gfx, nouveau
  Cc: shashank.sharma, arunpravin.paneerselvam, Somalapuram Amaranath,
	arvind.yadav, alexander.deucher, christian.koenig

ttm_resource can allocate size in bytes to support less than page size

Signed-off-by: Somalapuram Amaranath <Amaranath.Somalapuram@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;
 
-- 
2.32.0


^ permalink raw reply related	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2023-05-04 12:33 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-25 10:03 [PATCH v4 1/4] drm/gem: Remove BUG_ON in drm_gem_private_object_init Somalapuram Amaranath
2023-01-25 10:03 ` [Nouveau] " Somalapuram Amaranath
2023-01-25 10:03 ` [Intel-gfx] " Somalapuram Amaranath
2023-01-25 10:03 ` [PATCH v4 2/4] drm/ttm: Clean up page shift operation Somalapuram Amaranath
2023-01-25 10:03   ` [Nouveau] " Somalapuram Amaranath
2023-01-25 10:03   ` [Intel-gfx] " Somalapuram Amaranath
2023-01-25 10:03 ` [PATCH v4 3/4] drm/amdgpu: GDS/GWS/OA cleanup the " Somalapuram Amaranath
2023-01-25 10:03   ` [Nouveau] " Somalapuram Amaranath
2023-01-25 10:03   ` [Intel-gfx] " Somalapuram Amaranath
2023-01-25 10:03 ` [PATCH v4 4/4] drm/i915: Clean up " Somalapuram Amaranath
2023-01-25 10:03   ` [Nouveau] " Somalapuram Amaranath
2023-01-25 10:03   ` [Intel-gfx] " Somalapuram Amaranath
2023-01-25 20:16 ` [Intel-gfx] ✗ Fi.CI.SPARSE: warning for series starting with [v4,1/4] drm/gem: Remove BUG_ON in drm_gem_private_object_init Patchwork
2023-01-25 20:53 ` [Intel-gfx] ✓ Fi.CI.BAT: success " Patchwork
2023-01-26  7:34 ` [Intel-gfx] ✓ Fi.CI.IGT: " Patchwork

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.