dri-devel.lists.freedesktop.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] drm/syncobj: Tune down unordered timeline DRM_ERROR
@ 2020-08-01  9:26 Daniel Vetter
  2020-08-01 14:39 ` Lionel Landwerlin
  0 siblings, 1 reply; 3+ messages in thread
From: Daniel Vetter @ 2020-08-01  9:26 UTC (permalink / raw)
  To: DRI Development
  Cc: Daniel Vetter, Chris Wilson, Christian König, 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/
Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Cc: "Christian König" <christian.koenig@amd.com>
---
 drivers/gpu/drm/drm_syncobj.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/drm_syncobj.c b/drivers/gpu/drm/drm_syncobj.c
index 3bf73971daf3..6e74e6745eca 100644
--- a/drivers/gpu/drm/drm_syncobj.c
+++ b/drivers/gpu/drm/drm_syncobj.c
@@ -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);
 
-- 
2.27.0

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

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

* Re: [PATCH] drm/syncobj: Tune down unordered timeline DRM_ERROR
  2020-08-01  9:26 [PATCH] drm/syncobj: Tune down unordered timeline DRM_ERROR Daniel Vetter
@ 2020-08-01 14:39 ` Lionel Landwerlin
  2020-08-01 19:19   ` daniel
  0 siblings, 1 reply; 3+ messages in thread
From: Lionel Landwerlin @ 2020-08-01 14:39 UTC (permalink / raw)
  To: Daniel Vetter, DRI Development
  Cc: Daniel Vetter, Christian König, Chris Wilson

On 01/08/2020 12:26, Daniel Vetter wrote:
> 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/
> Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
> Cc: Chris Wilson <chris@chris-wilson.co.uk>
> Cc: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
> Cc: "Christian König" <christian.koenig@amd.com>
> ---
>   drivers/gpu/drm/drm_syncobj.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/drm_syncobj.c b/drivers/gpu/drm/drm_syncobj.c
> index 3bf73971daf3..6e74e6745eca 100644
> --- a/drivers/gpu/drm/drm_syncobj.c
> +++ b/drivers/gpu/drm/drm_syncobj.c
> @@ -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,

Acked-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

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

* Re: [PATCH] drm/syncobj: Tune down unordered timeline DRM_ERROR
  2020-08-01 14:39 ` Lionel Landwerlin
@ 2020-08-01 19:19   ` daniel
  0 siblings, 0 replies; 3+ messages in thread
From: daniel @ 2020-08-01 19:19 UTC (permalink / raw)
  Cc: Daniel Vetter, Chris Wilson, Christian König,
	DRI Development, Daniel Vetter

On Sat, Aug 01, 2020 at 05:39:50PM +0300, Lionel Landwerlin wrote:
> On 01/08/2020 12:26, Daniel Vetter wrote:
> > 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/
> > Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
> > Cc: Chris Wilson <chris@chris-wilson.co.uk>
> > Cc: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
> > Cc: "Christian König" <christian.koenig@amd.com>
> > ---
> >   drivers/gpu/drm/drm_syncobj.c | 2 +-
> >   1 file changed, 1 insertion(+), 1 deletion(-)
> > 
> > diff --git a/drivers/gpu/drm/drm_syncobj.c b/drivers/gpu/drm/drm_syncobj.c
> > index 3bf73971daf3..6e74e6745eca 100644
> > --- a/drivers/gpu/drm/drm_syncobj.c
> > +++ b/drivers/gpu/drm/drm_syncobj.c
> > @@ -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,
> 
> Acked-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>

Thanks for taking a look, applied it now.
-Daniel
-- 
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

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

end of thread, other threads:[~2020-08-01 19:20 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-01  9:26 [PATCH] drm/syncobj: Tune down unordered timeline DRM_ERROR Daniel Vetter
2020-08-01 14:39 ` Lionel Landwerlin
2020-08-01 19:19   ` daniel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).