Skip to contentSkip to conversation

drm/syncobj: Tune down unordered timeline DRM_ERROR

PATCH In review Daniel Vetter 3 participants 3 messages Aug 1, 2020

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/syncobj: Tune down unordered timeline DRM_ERROR

Userspace can provoke this, we generally don't allow userspace to spam dmesg. Tune it down to debug. Unfortunately we don't have easy access to the drm_device here (not at all without changing a few things), so leave it as old style dmesg output for now.

References: https://patchwork.freedesktop.org/series/80146/

Cc Chris Wilson <[email protected]>
Cc Lionel Landwerlin <[email protected]>
Cc "Christian König" <[email protected]>
---
 drivers/gpu/drm/drm_syncobj.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/drm_syncobj.c +1 -1
index 3bf73971daf3..6e74e6745eca 100644
@@ -297,7 +297,7 @@ void drm_syncobj_add_point(struct drm_syncobj *syncobj,
 	prev = drm_syncobj_fence_get(syncobj);
 	/* You are adding an unorder point to timeline, which could cause payload returned from query_ioctl is 0! */
 	if (prev && prev->seqno >= point)
-		DRM_ERROR("You are adding an unorder point to timeline!\n");
+		DRM_DEBUG("You are adding an unorder point to timeline!\n");
 	dma_fence_chain_init(chain, prev, fence, point);
 	rcu_assign_pointer(syncobj->fence, &chain->base);
 
Signature · 6 lines
2.27.0

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
Acked-by on v1 1/1
#1 lore raw
Quoted 19 lines · Daniel Vetter

Userspace can provoke this, we generally don't allow userspace to spam dmesg. Tune it down to debug. Unfortunately we don't have easy access to the drm_device here (not at all without changing a few things), so leave it as old style dmesg output for now.

References: https://patchwork.freedesktop.org/series/80146/

Cc Chris Wilson <[email protected]>
Cc Lionel Landwerlin <[email protected]>
Cc "Christian König" <[email protected]>
---
  drivers/gpu/drm/drm_syncobj.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/drm_syncobj.c +0 -0
index 3bf73971daf3..6e74e6745eca 100644

drivers/gpu/drm/drm_syncobj.c void drm_syncobj_add_point(struct drm_syncobj *syncobj, · line 303

Quoted 8 lines
drivers/gpu/drm/drm_syncobj.c +1 -1
@@ -297,7 +297,7 @@ void drm_syncobj_add_point(struct drm_syncobj *syncobj,
  	prev = drm_syncobj_fence_get(syncobj);
  	/* You are adding an unorder point to timeline, which could cause payload returned from query_ioctl is 0! */
  	if (prev && prev->seqno >= point)
-		DRM_ERROR("You are adding an unorder point to timeline!\n");
+		DRM_DEBUG("You are adding an unorder point to timeline!\n");
  	dma_fence_chain_init(chain, prev, fence, point);
  	rcu_assign_pointer(syncobj->fence, &chain->base);
 

Thanks,

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#2 lore raw
Quoted 30 lines · Lionel Landwerlin
Quoted 19 lines · Daniel Vetter

Userspace can provoke this, we generally don't allow userspace to spam dmesg. Tune it down to debug. Unfortunately we don't have easy access to the drm_device here (not at all without changing a few things), so leave it as old style dmesg output for now.

References: https://patchwork.freedesktop.org/series/80146/

Cc Chris Wilson <[email protected]>
Cc Lionel Landwerlin <[email protected]>
Cc "Christian König" <[email protected]>
---
  drivers/gpu/drm/drm_syncobj.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/drm_syncobj.c +0 -0
index 3bf73971daf3..6e74e6745eca 100644

drivers/gpu/drm/drm_syncobj.c void drm_syncobj_add_point(struct drm_syncobj *syncobj, · line 302

Quoted 7 lines
drivers/gpu/drm/drm_syncobj.c +1 -1
@@ -297,7 +297,7 @@ void drm_syncobj_add_point(struct drm_syncobj *syncobj,
  	prev = drm_syncobj_fence_get(syncobj);
  	/* You are adding an unorder point to timeline, which could cause payload returned from query_ioctl is 0! */
  	if (prev && prev->seqno >= point)
-		DRM_ERROR("You are adding an unorder point to timeline!\n");
+		DRM_DEBUG("You are adding an unorder point to timeline!\n");
  	dma_fence_chain_init(chain, prev, fence, point);
  	rcu_assign_pointer(syncobj->fence, &chain->base);

Thanks,

Quoted 1 line

Thanks for taking a look, applied it now.
-Daniel

Signature · 7 lines
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel