public inbox for intel-gfx@lists.freedesktop.org
 help / color / mirror / Atom feed
* [PATCH] drm/i915/skl: Bypass debug message if scalers are not requested
@ 2015-04-24 16:08 Tvrtko Ursulin
  2015-04-24 16:30 ` Konduru, Chandra
  2015-04-28  8:24 ` shuang.he
  0 siblings, 2 replies; 14+ messages in thread
From: Tvrtko Ursulin @ 2015-04-24 16:08 UTC (permalink / raw)
  To: Intel-gfx

From: Tvrtko Ursulin <tvrtko.ursulin@intel.com>

Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Cc: Chandra Konduru <chandra.konduru@intel.com>
---
Up for discussion I suppose, but like it is, with typical drm.debug = 0xe,
it logs one line per cursor movement while the log would otherwise be quiet.
---
 drivers/gpu/drm/i915/intel_atomic.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/drivers/gpu/drm/i915/intel_atomic.c b/drivers/gpu/drm/i915/intel_atomic.c
index 3c4b7cd..7284c6d 100644
--- a/drivers/gpu/drm/i915/intel_atomic.c
+++ b/drivers/gpu/drm/i915/intel_atomic.c
@@ -302,6 +302,9 @@ int intel_atomic_setup_scalers(struct drm_device *dev,
 	scaler_state = &crtc_state->scaler_state;
 	drm_state = crtc_state->base.state;
 
+	if (!scaler_state->scaler_users)
+		return 0;
+
 	num_scalers_need = hweight32(scaler_state->scaler_users);
 	DRM_DEBUG_KMS("crtc_state = %p need = %d avail = %d scaler_users = 0x%x\n",
 		crtc_state, num_scalers_need, intel_crtc->num_scalers,
-- 
2.3.5

_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx

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

* Re: [PATCH] drm/i915/skl: Bypass debug message if scalers are not requested
  2015-04-24 16:08 Tvrtko Ursulin
@ 2015-04-24 16:30 ` Konduru, Chandra
  2015-04-24 16:33   ` Tvrtko Ursulin
  2015-04-28  8:24 ` shuang.he
  1 sibling, 1 reply; 14+ messages in thread
From: Konduru, Chandra @ 2015-04-24 16:30 UTC (permalink / raw)
  To: Tvrtko Ursulin, Intel-gfx@lists.freedesktop.org



> -----Original Message-----
> From: Tvrtko Ursulin [mailto:tvrtko.ursulin@linux.intel.com]
> Sent: Friday, April 24, 2015 9:08 AM
> To: Intel-gfx@lists.freedesktop.org
> Cc: Ursulin, Tvrtko; Konduru, Chandra
> Subject: [PATCH] drm/i915/skl: Bypass debug message if scalers are not
> requested
> 
> From: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
> 
> Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
> Cc: Chandra Konduru <chandra.konduru@intel.com>
> ---
> Up for discussion I suppose, but like it is, with typical drm.debug = 0xe, it logs
> one line per cursor movement while the log would otherwise be quiet.
> ---
>  drivers/gpu/drm/i915/intel_atomic.c | 3 +++
>  1 file changed, 3 insertions(+)
> 
> diff --git a/drivers/gpu/drm/i915/intel_atomic.c
> b/drivers/gpu/drm/i915/intel_atomic.c
> index 3c4b7cd..7284c6d 100644
> --- a/drivers/gpu/drm/i915/intel_atomic.c
> +++ b/drivers/gpu/drm/i915/intel_atomic.c
> @@ -302,6 +302,9 @@ int intel_atomic_setup_scalers(struct drm_device *dev,
>  	scaler_state = &crtc_state->scaler_state;
>  	drm_state = crtc_state->base.state;
> 
> +	if (!scaler_state->scaler_users)
> +		return 0;

This will cause issue because scalers will never get freed if they are in use before and no more required now.
I put the debug print to help debug variety of state related issues while we are in development,
but perhaps debug print can be deleted.

> +
>  	num_scalers_need = hweight32(scaler_state->scaler_users);
>  	DRM_DEBUG_KMS("crtc_state = %p need = %d avail = %d scaler_users =
> 0x%x\n",
>  		crtc_state, num_scalers_need, intel_crtc->num_scalers,
> --
> 2.3.5

_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx

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

* Re: [PATCH] drm/i915/skl: Bypass debug message if scalers are not requested
  2015-04-24 16:30 ` Konduru, Chandra
@ 2015-04-24 16:33   ` Tvrtko Ursulin
  2015-04-24 17:52     ` Konduru, Chandra
  2015-04-24 18:07     ` Konduru, Chandra
  0 siblings, 2 replies; 14+ messages in thread
From: Tvrtko Ursulin @ 2015-04-24 16:33 UTC (permalink / raw)
  To: Konduru, Chandra, Intel-gfx@lists.freedesktop.org


On 04/24/2015 05:30 PM, Konduru, Chandra wrote:
>
>
>> -----Original Message-----
>> From: Tvrtko Ursulin [mailto:tvrtko.ursulin@linux.intel.com]
>> Sent: Friday, April 24, 2015 9:08 AM
>> To: Intel-gfx@lists.freedesktop.org
>> Cc: Ursulin, Tvrtko; Konduru, Chandra
>> Subject: [PATCH] drm/i915/skl: Bypass debug message if scalers are not
>> requested
>>
>> From: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
>>
>> Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
>> Cc: Chandra Konduru <chandra.konduru@intel.com>
>> ---
>> Up for discussion I suppose, but like it is, with typical drm.debug = 0xe, it logs
>> one line per cursor movement while the log would otherwise be quiet.
>> ---
>>   drivers/gpu/drm/i915/intel_atomic.c | 3 +++
>>   1 file changed, 3 insertions(+)
>>
>> diff --git a/drivers/gpu/drm/i915/intel_atomic.c
>> b/drivers/gpu/drm/i915/intel_atomic.c
>> index 3c4b7cd..7284c6d 100644
>> --- a/drivers/gpu/drm/i915/intel_atomic.c
>> +++ b/drivers/gpu/drm/i915/intel_atomic.c
>> @@ -302,6 +302,9 @@ int intel_atomic_setup_scalers(struct drm_device *dev,
>>   	scaler_state = &crtc_state->scaler_state;
>>   	drm_state = crtc_state->base.state;
>>
>> +	if (!scaler_state->scaler_users)
>> +		return 0;
>
> This will cause issue because scalers will never get freed if they are in use before and no more required now.
> I put the debug print to help debug variety of state related issues while we are in development,
> but perhaps debug print can be deleted.

Doesn't the loop below skip everything anyway when no bits are set in 
scaler_state->scaler_users ?

Regards,

Tvrtko
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx

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

* Re: [PATCH] drm/i915/skl: Bypass debug message if scalers are not requested
  2015-04-24 16:33   ` Tvrtko Ursulin
@ 2015-04-24 17:52     ` Konduru, Chandra
  2015-04-24 18:07     ` Konduru, Chandra
  1 sibling, 0 replies; 14+ messages in thread
From: Konduru, Chandra @ 2015-04-24 17:52 UTC (permalink / raw)
  To: Tvrtko Ursulin, Intel-gfx@lists.freedesktop.org



> -----Original Message-----
> From: Tvrtko Ursulin [mailto:tvrtko.ursulin@linux.intel.com]
> Sent: Friday, April 24, 2015 9:34 AM
> To: Konduru, Chandra; Intel-gfx@lists.freedesktop.org
> Cc: Ursulin, Tvrtko
> Subject: Re: [PATCH] drm/i915/skl: Bypass debug message if scalers are not
> requested
> 
> 
> On 04/24/2015 05:30 PM, Konduru, Chandra wrote:
> >
> >
> >> -----Original Message-----
> >> From: Tvrtko Ursulin [mailto:tvrtko.ursulin@linux.intel.com]
> >> Sent: Friday, April 24, 2015 9:08 AM
> >> To: Intel-gfx@lists.freedesktop.org
> >> Cc: Ursulin, Tvrtko; Konduru, Chandra
> >> Subject: [PATCH] drm/i915/skl: Bypass debug message if scalers are
> >> not requested
> >>
> >> From: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
> >>
> >> Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
> >> Cc: Chandra Konduru <chandra.konduru@intel.com>
> >> ---
> >> Up for discussion I suppose, but like it is, with typical drm.debug =
> >> 0xe, it logs one line per cursor movement while the log would otherwise be
> quiet.
> >> ---
> >>   drivers/gpu/drm/i915/intel_atomic.c | 3 +++
> >>   1 file changed, 3 insertions(+)
> >>
> >> diff --git a/drivers/gpu/drm/i915/intel_atomic.c
> >> b/drivers/gpu/drm/i915/intel_atomic.c
> >> index 3c4b7cd..7284c6d 100644
> >> --- a/drivers/gpu/drm/i915/intel_atomic.c
> >> +++ b/drivers/gpu/drm/i915/intel_atomic.c
> >> @@ -302,6 +302,9 @@ int intel_atomic_setup_scalers(struct drm_device
> *dev,
> >>   	scaler_state = &crtc_state->scaler_state;
> >>   	drm_state = crtc_state->base.state;
> >>
> >> +	if (!scaler_state->scaler_users)
> >> +		return 0;
> >
> > This will cause issue because scalers will never get freed if they are in use
> before and no more required now.
> > I put the debug print to help debug variety of state related issues
> > while we are in development, but perhaps debug print can be deleted.
> 
> Doesn't the loop below skip everything anyway when no bits are set in
> scaler_state->scaler_users ?
Oh, that's right, ignore my prev comment (with updated scaler design
above shouldn't cause issues). 
By the way, can you pls run kms_panel_fit and kms_plane_scaling to make 
sure they pass and there are no related warnings or errors in kernel log?
For kms_plane_scaling, pls apply two pending patches that aren't merged:
v5 [PATCH 13/14] drm/i915: skylake primary plane scaling using shared scalers
v5 [PATCH 14/14] drm/i915: skylake sprite plane scaling using shared scalers

> 
> Regards,
> 
> Tvrtko
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx

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

* Re: [PATCH] drm/i915/skl: Bypass debug message if scalers are not requested
  2015-04-24 16:33   ` Tvrtko Ursulin
  2015-04-24 17:52     ` Konduru, Chandra
@ 2015-04-24 18:07     ` Konduru, Chandra
  2015-05-04 14:29       ` Daniel Vetter
  1 sibling, 1 reply; 14+ messages in thread
From: Konduru, Chandra @ 2015-04-24 18:07 UTC (permalink / raw)
  To: Tvrtko Ursulin, Intel-gfx@lists.freedesktop.org



> -----Original Message-----
> From: Konduru, Chandra
> Sent: Friday, April 24, 2015 10:53 AM
> To: 'Tvrtko Ursulin'; Intel-gfx@lists.freedesktop.org
> Cc: Ursulin, Tvrtko
> Subject: RE: [PATCH] drm/i915/skl: Bypass debug message if scalers are not
> requested
> 
> 
> 
> > -----Original Message-----
> > From: Tvrtko Ursulin [mailto:tvrtko.ursulin@linux.intel.com]
> > Sent: Friday, April 24, 2015 9:34 AM
> > To: Konduru, Chandra; Intel-gfx@lists.freedesktop.org
> > Cc: Ursulin, Tvrtko
> > Subject: Re: [PATCH] drm/i915/skl: Bypass debug message if scalers are
> > not requested
> >
> >
> > On 04/24/2015 05:30 PM, Konduru, Chandra wrote:
> > >
> > >
> > >> -----Original Message-----
> > >> From: Tvrtko Ursulin [mailto:tvrtko.ursulin@linux.intel.com]
> > >> Sent: Friday, April 24, 2015 9:08 AM
> > >> To: Intel-gfx@lists.freedesktop.org
> > >> Cc: Ursulin, Tvrtko; Konduru, Chandra
> > >> Subject: [PATCH] drm/i915/skl: Bypass debug message if scalers are
> > >> not requested
> > >>
> > >> From: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
> > >>
> > >> Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
> > >> Cc: Chandra Konduru <chandra.konduru@intel.com>
> > >> ---
> > >> Up for discussion I suppose, but like it is, with typical drm.debug
> > >> = 0xe, it logs one line per cursor movement while the log would
> > >> otherwise be
> > quiet.
> > >> ---
> > >>   drivers/gpu/drm/i915/intel_atomic.c | 3 +++
> > >>   1 file changed, 3 insertions(+)
> > >>
> > >> diff --git a/drivers/gpu/drm/i915/intel_atomic.c
> > >> b/drivers/gpu/drm/i915/intel_atomic.c
> > >> index 3c4b7cd..7284c6d 100644
> > >> --- a/drivers/gpu/drm/i915/intel_atomic.c
> > >> +++ b/drivers/gpu/drm/i915/intel_atomic.c
> > >> @@ -302,6 +302,9 @@ int intel_atomic_setup_scalers(struct
> > >> drm_device
> > *dev,
> > >>   	scaler_state = &crtc_state->scaler_state;
> > >>   	drm_state = crtc_state->base.state;
> > >>
> > >> +	if (!scaler_state->scaler_users)
> > >> +		return 0;
> > >
> > > This will cause issue because scalers will never get freed if they
> > > are in use
> > before and no more required now.
> > > I put the debug print to help debug variety of state related issues
> > > while we are in development, but perhaps debug print can be deleted.
> >
> > Doesn't the loop below skip everything anyway when no bits are set in
> > scaler_state->scaler_users ?
> Oh, that's right, ignore my prev comment (with updated scaler design above
> shouldn't cause issues).
> By the way, can you pls run kms_panel_fit and kms_plane_scaling to make sure
> they pass and there are no related warnings or errors in kernel log?
> For kms_plane_scaling, pls apply two pending patches that aren't merged:
> v5 [PATCH 13/14] drm/i915: skylake primary plane scaling using shared scalers
> v5 [PATCH 14/14] drm/i915: skylake sprite plane scaling using shared scalers
> 
One more: This change address logs when no scaler is required,
but might comeback when a scaler is active (panel fitting or plane scaling is enabled).
I don't know general policy in these kind of situations, but perhaps debug print
can be deleted.

> >
> > Regards,
> >
> > Tvrtko
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx

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

* Re: [PATCH] drm/i915/skl: Bypass debug message if scalers are not requested
  2015-04-24 16:08 Tvrtko Ursulin
  2015-04-24 16:30 ` Konduru, Chandra
@ 2015-04-28  8:24 ` shuang.he
  1 sibling, 0 replies; 14+ messages in thread
From: shuang.he @ 2015-04-28  8:24 UTC (permalink / raw)
  To: shuang.he, ethan.gao, intel-gfx, tvrtko.ursulin

Tested-By: Intel Graphics QA PRTS (Patch Regression Test System Contact: shuang.he@intel.com)
Task id: 6262
-------------------------------------Summary-------------------------------------
Platform          Delta          drm-intel-nightly          Series Applied
PNV                                  276/276              276/276
ILK                                  301/301              301/301
SNB                                  318/318              318/318
IVB                                  345/345              345/345
BYT                 -2              285/285              283/285
BDW                                  321/321              321/321
-------------------------------------Detailed-------------------------------------
Platform  Test                                drm-intel-nightly          Series Applied
*BYT  igt@gem_ctx_basic      PASS(3)      DMESG_WARN(1)PASS(1)
(dmesg patch applied)drm:check_crtc_state[i915]]*ERROR*mismatch_in_has_infoframe(expected#,found#)@mismatch in has_infoframe .* found
WARNING:at_drivers/gpu/drm/i915/intel_display.c:#check_crtc_state[i915]()@WARNING:.* at .* check_crtc_state+0x
*BYT  igt@kms_setmode@invalid-clone-exclusive-crtc      PASS(6)      DMESG_WARN(1)PASS(1)
(dmesg patch applied)drm:check_crtc_state[i915]]*ERROR*mismatch_in_has_infoframe(expected#,found#)@mismatch in has_infoframe .* found
WARNING:at_drivers/gpu/drm/i915/intel_display.c:#check_crtc_state[i915]()@WARNING:.* at .* check_crtc_state+0x
Note: You need to pay more attention to line start with '*'
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx

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

* Re: [PATCH] drm/i915/skl: Bypass debug message if scalers are not requested
  2015-04-24 18:07     ` Konduru, Chandra
@ 2015-05-04 14:29       ` Daniel Vetter
  2015-08-05 13:20         ` Tvrtko Ursulin
  0 siblings, 1 reply; 14+ messages in thread
From: Daniel Vetter @ 2015-05-04 14:29 UTC (permalink / raw)
  To: Konduru, Chandra; +Cc: Intel-gfx@lists.freedesktop.org

On Fri, Apr 24, 2015 at 06:07:05PM +0000, Konduru, Chandra wrote:
> 
> 
> > -----Original Message-----
> > From: Konduru, Chandra
> > Sent: Friday, April 24, 2015 10:53 AM
> > To: 'Tvrtko Ursulin'; Intel-gfx@lists.freedesktop.org
> > Cc: Ursulin, Tvrtko
> > Subject: RE: [PATCH] drm/i915/skl: Bypass debug message if scalers are not
> > requested
> > 
> > 
> > 
> > > -----Original Message-----
> > > From: Tvrtko Ursulin [mailto:tvrtko.ursulin@linux.intel.com]
> > > Sent: Friday, April 24, 2015 9:34 AM
> > > To: Konduru, Chandra; Intel-gfx@lists.freedesktop.org
> > > Cc: Ursulin, Tvrtko
> > > Subject: Re: [PATCH] drm/i915/skl: Bypass debug message if scalers are
> > > not requested
> > >
> > >
> > > On 04/24/2015 05:30 PM, Konduru, Chandra wrote:
> > > >
> > > >
> > > >> -----Original Message-----
> > > >> From: Tvrtko Ursulin [mailto:tvrtko.ursulin@linux.intel.com]
> > > >> Sent: Friday, April 24, 2015 9:08 AM
> > > >> To: Intel-gfx@lists.freedesktop.org
> > > >> Cc: Ursulin, Tvrtko; Konduru, Chandra
> > > >> Subject: [PATCH] drm/i915/skl: Bypass debug message if scalers are
> > > >> not requested
> > > >>
> > > >> From: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
> > > >>
> > > >> Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
> > > >> Cc: Chandra Konduru <chandra.konduru@intel.com>
> > > >> ---
> > > >> Up for discussion I suppose, but like it is, with typical drm.debug
> > > >> = 0xe, it logs one line per cursor movement while the log would
> > > >> otherwise be
> > > quiet.
> > > >> ---
> > > >>   drivers/gpu/drm/i915/intel_atomic.c | 3 +++
> > > >>   1 file changed, 3 insertions(+)
> > > >>
> > > >> diff --git a/drivers/gpu/drm/i915/intel_atomic.c
> > > >> b/drivers/gpu/drm/i915/intel_atomic.c
> > > >> index 3c4b7cd..7284c6d 100644
> > > >> --- a/drivers/gpu/drm/i915/intel_atomic.c
> > > >> +++ b/drivers/gpu/drm/i915/intel_atomic.c
> > > >> @@ -302,6 +302,9 @@ int intel_atomic_setup_scalers(struct
> > > >> drm_device
> > > *dev,
> > > >>   	scaler_state = &crtc_state->scaler_state;
> > > >>   	drm_state = crtc_state->base.state;
> > > >>
> > > >> +	if (!scaler_state->scaler_users)
> > > >> +		return 0;
> > > >
> > > > This will cause issue because scalers will never get freed if they
> > > > are in use
> > > before and no more required now.
> > > > I put the debug print to help debug variety of state related issues
> > > > while we are in development, but perhaps debug print can be deleted.
> > >
> > > Doesn't the loop below skip everything anyway when no bits are set in
> > > scaler_state->scaler_users ?
> > Oh, that's right, ignore my prev comment (with updated scaler design above
> > shouldn't cause issues).
> > By the way, can you pls run kms_panel_fit and kms_plane_scaling to make sure
> > they pass and there are no related warnings or errors in kernel log?
> > For kms_plane_scaling, pls apply two pending patches that aren't merged:
> > v5 [PATCH 13/14] drm/i915: skylake primary plane scaling using shared scalers
> > v5 [PATCH 14/14] drm/i915: skylake sprite plane scaling using shared scalers
> > 
> One more: This change address logs when no scaler is required,
> but might comeback when a scaler is active (panel fitting or plane scaling is enabled).
> I don't know general policy in these kind of situations, but perhaps debug print
> can be deleted.

Atomic is really complicated, but doing fully diagnostics for each frame
is also way too noisy. For that reason we've add a DRM_DEBUG_ATOMIC which
can be used for all these state tracking debug lines.
-Daniel
-- 
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx

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

* Re: [PATCH] drm/i915/skl: Bypass debug message if scalers are not requested
  2015-05-04 14:29       ` Daniel Vetter
@ 2015-08-05 13:20         ` Tvrtko Ursulin
  2015-08-05 13:58           ` Daniel Vetter
  0 siblings, 1 reply; 14+ messages in thread
From: Tvrtko Ursulin @ 2015-08-05 13:20 UTC (permalink / raw)
  To: Daniel Vetter, Konduru, Chandra; +Cc: Intel-gfx@lists.freedesktop.org


On 05/04/2015 03:29 PM, Daniel Vetter wrote:
> On Fri, Apr 24, 2015 at 06:07:05PM +0000, Konduru, Chandra wrote:
>>
>>
>>> -----Original Message-----
>>> From: Konduru, Chandra
>>> Sent: Friday, April 24, 2015 10:53 AM
>>> To: 'Tvrtko Ursulin'; Intel-gfx@lists.freedesktop.org
>>> Cc: Ursulin, Tvrtko
>>> Subject: RE: [PATCH] drm/i915/skl: Bypass debug message if scalers are not
>>> requested
>>>
>>>
>>>
>>>> -----Original Message-----
>>>> From: Tvrtko Ursulin [mailto:tvrtko.ursulin@linux.intel.com]
>>>> Sent: Friday, April 24, 2015 9:34 AM
>>>> To: Konduru, Chandra; Intel-gfx@lists.freedesktop.org
>>>> Cc: Ursulin, Tvrtko
>>>> Subject: Re: [PATCH] drm/i915/skl: Bypass debug message if scalers are
>>>> not requested
>>>>
>>>>
>>>> On 04/24/2015 05:30 PM, Konduru, Chandra wrote:
>>>>>
>>>>>
>>>>>> -----Original Message-----
>>>>>> From: Tvrtko Ursulin [mailto:tvrtko.ursulin@linux.intel.com]
>>>>>> Sent: Friday, April 24, 2015 9:08 AM
>>>>>> To: Intel-gfx@lists.freedesktop.org
>>>>>> Cc: Ursulin, Tvrtko; Konduru, Chandra
>>>>>> Subject: [PATCH] drm/i915/skl: Bypass debug message if scalers are
>>>>>> not requested
>>>>>>
>>>>>> From: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
>>>>>>
>>>>>> Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
>>>>>> Cc: Chandra Konduru <chandra.konduru@intel.com>
>>>>>> ---
>>>>>> Up for discussion I suppose, but like it is, with typical drm.debug
>>>>>> = 0xe, it logs one line per cursor movement while the log would
>>>>>> otherwise be
>>>> quiet.
>>>>>> ---
>>>>>>    drivers/gpu/drm/i915/intel_atomic.c | 3 +++
>>>>>>    1 file changed, 3 insertions(+)
>>>>>>
>>>>>> diff --git a/drivers/gpu/drm/i915/intel_atomic.c
>>>>>> b/drivers/gpu/drm/i915/intel_atomic.c
>>>>>> index 3c4b7cd..7284c6d 100644
>>>>>> --- a/drivers/gpu/drm/i915/intel_atomic.c
>>>>>> +++ b/drivers/gpu/drm/i915/intel_atomic.c
>>>>>> @@ -302,6 +302,9 @@ int intel_atomic_setup_scalers(struct
>>>>>> drm_device
>>>> *dev,
>>>>>>    	scaler_state = &crtc_state->scaler_state;
>>>>>>    	drm_state = crtc_state->base.state;
>>>>>>
>>>>>> +	if (!scaler_state->scaler_users)
>>>>>> +		return 0;
>>>>>
>>>>> This will cause issue because scalers will never get freed if they
>>>>> are in use
>>>> before and no more required now.
>>>>> I put the debug print to help debug variety of state related issues
>>>>> while we are in development, but perhaps debug print can be deleted.
>>>>
>>>> Doesn't the loop below skip everything anyway when no bits are set in
>>>> scaler_state->scaler_users ?
>>> Oh, that's right, ignore my prev comment (with updated scaler design above
>>> shouldn't cause issues).
>>> By the way, can you pls run kms_panel_fit and kms_plane_scaling to make sure
>>> they pass and there are no related warnings or errors in kernel log?
>>> For kms_plane_scaling, pls apply two pending patches that aren't merged:
>>> v5 [PATCH 13/14] drm/i915: skylake primary plane scaling using shared scalers
>>> v5 [PATCH 14/14] drm/i915: skylake sprite plane scaling using shared scalers
>>>
>> One more: This change address logs when no scaler is required,
>> but might comeback when a scaler is active (panel fitting or plane scaling is enabled).
>> I don't know general policy in these kind of situations, but perhaps debug print
>> can be deleted.
>
> Atomic is really complicated, but doing fully diagnostics for each frame
> is also way too noisy. For that reason we've add a DRM_DEBUG_ATOMIC which
> can be used for all these state tracking debug lines.

We didn't do anything here and I just noticed kernel is still too spammy 
with regards to this issue.

Should we just merge my patch? Still looks completely safe to me...

Regards,

Tvrtko
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx

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

* Re: [PATCH] drm/i915/skl: Bypass debug message if scalers are not requested
  2015-08-05 13:20         ` Tvrtko Ursulin
@ 2015-08-05 13:58           ` Daniel Vetter
  2015-08-05 14:12             ` Tvrtko Ursulin
  0 siblings, 1 reply; 14+ messages in thread
From: Daniel Vetter @ 2015-08-05 13:58 UTC (permalink / raw)
  To: Tvrtko Ursulin; +Cc: Intel-gfx@lists.freedesktop.org

On Wed, Aug 05, 2015 at 02:20:17PM +0100, Tvrtko Ursulin wrote:
> 
> On 05/04/2015 03:29 PM, Daniel Vetter wrote:
> >On Fri, Apr 24, 2015 at 06:07:05PM +0000, Konduru, Chandra wrote:
> >>
> >>
> >>>-----Original Message-----
> >>>From: Konduru, Chandra
> >>>Sent: Friday, April 24, 2015 10:53 AM
> >>>To: 'Tvrtko Ursulin'; Intel-gfx@lists.freedesktop.org
> >>>Cc: Ursulin, Tvrtko
> >>>Subject: RE: [PATCH] drm/i915/skl: Bypass debug message if scalers are not
> >>>requested
> >>>
> >>>
> >>>
> >>>>-----Original Message-----
> >>>>From: Tvrtko Ursulin [mailto:tvrtko.ursulin@linux.intel.com]
> >>>>Sent: Friday, April 24, 2015 9:34 AM
> >>>>To: Konduru, Chandra; Intel-gfx@lists.freedesktop.org
> >>>>Cc: Ursulin, Tvrtko
> >>>>Subject: Re: [PATCH] drm/i915/skl: Bypass debug message if scalers are
> >>>>not requested
> >>>>
> >>>>
> >>>>On 04/24/2015 05:30 PM, Konduru, Chandra wrote:
> >>>>>
> >>>>>
> >>>>>>-----Original Message-----
> >>>>>>From: Tvrtko Ursulin [mailto:tvrtko.ursulin@linux.intel.com]
> >>>>>>Sent: Friday, April 24, 2015 9:08 AM
> >>>>>>To: Intel-gfx@lists.freedesktop.org
> >>>>>>Cc: Ursulin, Tvrtko; Konduru, Chandra
> >>>>>>Subject: [PATCH] drm/i915/skl: Bypass debug message if scalers are
> >>>>>>not requested
> >>>>>>
> >>>>>>From: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
> >>>>>>
> >>>>>>Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
> >>>>>>Cc: Chandra Konduru <chandra.konduru@intel.com>
> >>>>>>---
> >>>>>>Up for discussion I suppose, but like it is, with typical drm.debug
> >>>>>>= 0xe, it logs one line per cursor movement while the log would
> >>>>>>otherwise be
> >>>>quiet.
> >>>>>>---
> >>>>>>   drivers/gpu/drm/i915/intel_atomic.c | 3 +++
> >>>>>>   1 file changed, 3 insertions(+)
> >>>>>>
> >>>>>>diff --git a/drivers/gpu/drm/i915/intel_atomic.c
> >>>>>>b/drivers/gpu/drm/i915/intel_atomic.c
> >>>>>>index 3c4b7cd..7284c6d 100644
> >>>>>>--- a/drivers/gpu/drm/i915/intel_atomic.c
> >>>>>>+++ b/drivers/gpu/drm/i915/intel_atomic.c
> >>>>>>@@ -302,6 +302,9 @@ int intel_atomic_setup_scalers(struct
> >>>>>>drm_device
> >>>>*dev,
> >>>>>>   	scaler_state = &crtc_state->scaler_state;
> >>>>>>   	drm_state = crtc_state->base.state;
> >>>>>>
> >>>>>>+	if (!scaler_state->scaler_users)
> >>>>>>+		return 0;
> >>>>>
> >>>>>This will cause issue because scalers will never get freed if they
> >>>>>are in use
> >>>>before and no more required now.
> >>>>>I put the debug print to help debug variety of state related issues
> >>>>>while we are in development, but perhaps debug print can be deleted.
> >>>>
> >>>>Doesn't the loop below skip everything anyway when no bits are set in
> >>>>scaler_state->scaler_users ?
> >>>Oh, that's right, ignore my prev comment (with updated scaler design above
> >>>shouldn't cause issues).
> >>>By the way, can you pls run kms_panel_fit and kms_plane_scaling to make sure
> >>>they pass and there are no related warnings or errors in kernel log?
> >>>For kms_plane_scaling, pls apply two pending patches that aren't merged:
> >>>v5 [PATCH 13/14] drm/i915: skylake primary plane scaling using shared scalers
> >>>v5 [PATCH 14/14] drm/i915: skylake sprite plane scaling using shared scalers
> >>>
> >>One more: This change address logs when no scaler is required,
> >>but might comeback when a scaler is active (panel fitting or plane scaling is enabled).
> >>I don't know general policy in these kind of situations, but perhaps debug print
> >>can be deleted.
> >
> >Atomic is really complicated, but doing fully diagnostics for each frame
> >is also way too noisy. For that reason we've add a DRM_DEBUG_ATOMIC which
> >can be used for all these state tracking debug lines.
> 
> We didn't do anything here and I just noticed kernel is still too spammy
> with regards to this issue.
> 
> Should we just merge my patch? Still looks completely safe to me...

doesn't seem to apply any more:(
-Daniel

> 
> Regards,
> 
> Tvrtko

-- 
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx

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

* Re: [PATCH] drm/i915/skl: Bypass debug message if scalers are not requested
  2015-08-05 13:58           ` Daniel Vetter
@ 2015-08-05 14:12             ` Tvrtko Ursulin
  2015-08-05 14:19               ` Tvrtko Ursulin
  0 siblings, 1 reply; 14+ messages in thread
From: Tvrtko Ursulin @ 2015-08-05 14:12 UTC (permalink / raw)
  To: Daniel Vetter; +Cc: Intel-gfx@lists.freedesktop.org


On 08/05/2015 02:58 PM, Daniel Vetter wrote:
> On Wed, Aug 05, 2015 at 02:20:17PM +0100, Tvrtko Ursulin wrote:
>>
>> On 05/04/2015 03:29 PM, Daniel Vetter wrote:
>>> On Fri, Apr 24, 2015 at 06:07:05PM +0000, Konduru, Chandra wrote:
>>>>
>>>>
>>>>> -----Original Message-----
>>>>> From: Konduru, Chandra
>>>>> Sent: Friday, April 24, 2015 10:53 AM
>>>>> To: 'Tvrtko Ursulin'; Intel-gfx@lists.freedesktop.org
>>>>> Cc: Ursulin, Tvrtko
>>>>> Subject: RE: [PATCH] drm/i915/skl: Bypass debug message if scalers are not
>>>>> requested
>>>>>
>>>>>
>>>>>
>>>>>> -----Original Message-----
>>>>>> From: Tvrtko Ursulin [mailto:tvrtko.ursulin@linux.intel.com]
>>>>>> Sent: Friday, April 24, 2015 9:34 AM
>>>>>> To: Konduru, Chandra; Intel-gfx@lists.freedesktop.org
>>>>>> Cc: Ursulin, Tvrtko
>>>>>> Subject: Re: [PATCH] drm/i915/skl: Bypass debug message if scalers are
>>>>>> not requested
>>>>>>
>>>>>>
>>>>>> On 04/24/2015 05:30 PM, Konduru, Chandra wrote:
>>>>>>>
>>>>>>>
>>>>>>>> -----Original Message-----
>>>>>>>> From: Tvrtko Ursulin [mailto:tvrtko.ursulin@linux.intel.com]
>>>>>>>> Sent: Friday, April 24, 2015 9:08 AM
>>>>>>>> To: Intel-gfx@lists.freedesktop.org
>>>>>>>> Cc: Ursulin, Tvrtko; Konduru, Chandra
>>>>>>>> Subject: [PATCH] drm/i915/skl: Bypass debug message if scalers are
>>>>>>>> not requested
>>>>>>>>
>>>>>>>> From: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
>>>>>>>>
>>>>>>>> Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
>>>>>>>> Cc: Chandra Konduru <chandra.konduru@intel.com>
>>>>>>>> ---
>>>>>>>> Up for discussion I suppose, but like it is, with typical drm.debug
>>>>>>>> = 0xe, it logs one line per cursor movement while the log would
>>>>>>>> otherwise be
>>>>>> quiet.
>>>>>>>> ---
>>>>>>>>    drivers/gpu/drm/i915/intel_atomic.c | 3 +++
>>>>>>>>    1 file changed, 3 insertions(+)
>>>>>>>>
>>>>>>>> diff --git a/drivers/gpu/drm/i915/intel_atomic.c
>>>>>>>> b/drivers/gpu/drm/i915/intel_atomic.c
>>>>>>>> index 3c4b7cd..7284c6d 100644
>>>>>>>> --- a/drivers/gpu/drm/i915/intel_atomic.c
>>>>>>>> +++ b/drivers/gpu/drm/i915/intel_atomic.c
>>>>>>>> @@ -302,6 +302,9 @@ int intel_atomic_setup_scalers(struct
>>>>>>>> drm_device
>>>>>> *dev,
>>>>>>>>    	scaler_state = &crtc_state->scaler_state;
>>>>>>>>    	drm_state = crtc_state->base.state;
>>>>>>>>
>>>>>>>> +	if (!scaler_state->scaler_users)
>>>>>>>> +		return 0;
>>>>>>>
>>>>>>> This will cause issue because scalers will never get freed if they
>>>>>>> are in use
>>>>>> before and no more required now.
>>>>>>> I put the debug print to help debug variety of state related issues
>>>>>>> while we are in development, but perhaps debug print can be deleted.
>>>>>>
>>>>>> Doesn't the loop below skip everything anyway when no bits are set in
>>>>>> scaler_state->scaler_users ?
>>>>> Oh, that's right, ignore my prev comment (with updated scaler design above
>>>>> shouldn't cause issues).
>>>>> By the way, can you pls run kms_panel_fit and kms_plane_scaling to make sure
>>>>> they pass and there are no related warnings or errors in kernel log?
>>>>> For kms_plane_scaling, pls apply two pending patches that aren't merged:
>>>>> v5 [PATCH 13/14] drm/i915: skylake primary plane scaling using shared scalers
>>>>> v5 [PATCH 14/14] drm/i915: skylake sprite plane scaling using shared scalers
>>>>>
>>>> One more: This change address logs when no scaler is required,
>>>> but might comeback when a scaler is active (panel fitting or plane scaling is enabled).
>>>> I don't know general policy in these kind of situations, but perhaps debug print
>>>> can be deleted.
>>>
>>> Atomic is really complicated, but doing fully diagnostics for each frame
>>> is also way too noisy. For that reason we've add a DRM_DEBUG_ATOMIC which
>>> can be used for all these state tracking debug lines.
>>
>> We didn't do anything here and I just noticed kernel is still too spammy
>> with regards to this issue.
>>
>> Should we just merge my patch? Still looks completely safe to me...
>
> doesn't seem to apply any more:(

Yeah only some months have passed, who would have thought. :)

But I realized that would be only one of the three log lines per cursor 
update - there is a code path calling skl_detach_scaler two times as 
well. Looks like this overall, per update:

[drm:intel_atomic_setup_scalers] crtc_state = ffff880074b55c00 need = 0 
avail = 2 scaler_users = 0x0
[drm:skl_detach_scaler] CRTC:21 Disabled scaler id 0.0
[drm:skl_detach_scaler] CRTC:21 Disabled scaler id 0.1

I'll rebase this patch for a start.

Regards,

Tvrtko
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx

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

* [PATCH] drm/i915/skl: Bypass debug message if scalers are not requested
@ 2015-08-05 14:14 Tvrtko Ursulin
  2015-08-12  5:49 ` shuang.he
  0 siblings, 1 reply; 14+ messages in thread
From: Tvrtko Ursulin @ 2015-08-05 14:14 UTC (permalink / raw)
  To: Intel-gfx; +Cc: Daniel Vetter

From: Tvrtko Ursulin <tvrtko.ursulin@intel.com>

The loop below does nothing if scaler_users has no bits set so
it is safe to bail out early in order to avoid dmesg spam, on
for example cursor updates.

v2: Commit message and rebase.

Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Cc: Chandra Konduru <chandra.konduru@intel.com>
Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
---
 drivers/gpu/drm/i915/intel_atomic.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/drivers/gpu/drm/i915/intel_atomic.c b/drivers/gpu/drm/i915/intel_atomic.c
index e2531cf59266..523afd21cf87 100644
--- a/drivers/gpu/drm/i915/intel_atomic.c
+++ b/drivers/gpu/drm/i915/intel_atomic.c
@@ -148,6 +148,10 @@ int intel_atomic_setup_scalers(struct drm_device *dev,
 	int num_scalers_need;
 	int i, j;
 
+
+	if (scaler_state->scaler_users == 0)
+		return 0;
+
 	num_scalers_need = hweight32(scaler_state->scaler_users);
 	DRM_DEBUG_KMS("crtc_state = %p need = %d avail = %d scaler_users = 0x%x\n",
 		crtc_state, num_scalers_need, intel_crtc->num_scalers,
-- 
2.4.6

_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx

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

* Re: [PATCH] drm/i915/skl: Bypass debug message if scalers are not requested
  2015-08-05 14:12             ` Tvrtko Ursulin
@ 2015-08-05 14:19               ` Tvrtko Ursulin
  2015-08-05 15:02                 ` Tvrtko Ursulin
  0 siblings, 1 reply; 14+ messages in thread
From: Tvrtko Ursulin @ 2015-08-05 14:19 UTC (permalink / raw)
  To: Daniel Vetter; +Cc: Intel-gfx@lists.freedesktop.org


On 08/05/2015 03:12 PM, Tvrtko Ursulin wrote:
>
> On 08/05/2015 02:58 PM, Daniel Vetter wrote:
>> On Wed, Aug 05, 2015 at 02:20:17PM +0100, Tvrtko Ursulin wrote:
>>>
>>> On 05/04/2015 03:29 PM, Daniel Vetter wrote:
>>>> On Fri, Apr 24, 2015 at 06:07:05PM +0000, Konduru, Chandra wrote:
>>>>>
>>>>>
>>>>>> -----Original Message-----
>>>>>> From: Konduru, Chandra
>>>>>> Sent: Friday, April 24, 2015 10:53 AM
>>>>>> To: 'Tvrtko Ursulin'; Intel-gfx@lists.freedesktop.org
>>>>>> Cc: Ursulin, Tvrtko
>>>>>> Subject: RE: [PATCH] drm/i915/skl: Bypass debug message if scalers
>>>>>> are not
>>>>>> requested
>>>>>>
>>>>>>
>>>>>>
>>>>>>> -----Original Message-----
>>>>>>> From: Tvrtko Ursulin [mailto:tvrtko.ursulin@linux.intel.com]
>>>>>>> Sent: Friday, April 24, 2015 9:34 AM
>>>>>>> To: Konduru, Chandra; Intel-gfx@lists.freedesktop.org
>>>>>>> Cc: Ursulin, Tvrtko
>>>>>>> Subject: Re: [PATCH] drm/i915/skl: Bypass debug message if
>>>>>>> scalers are
>>>>>>> not requested
>>>>>>>
>>>>>>>
>>>>>>> On 04/24/2015 05:30 PM, Konduru, Chandra wrote:
>>>>>>>>
>>>>>>>>
>>>>>>>>> -----Original Message-----
>>>>>>>>> From: Tvrtko Ursulin [mailto:tvrtko.ursulin@linux.intel.com]
>>>>>>>>> Sent: Friday, April 24, 2015 9:08 AM
>>>>>>>>> To: Intel-gfx@lists.freedesktop.org
>>>>>>>>> Cc: Ursulin, Tvrtko; Konduru, Chandra
>>>>>>>>> Subject: [PATCH] drm/i915/skl: Bypass debug message if scalers are
>>>>>>>>> not requested
>>>>>>>>>
>>>>>>>>> From: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
>>>>>>>>>
>>>>>>>>> Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
>>>>>>>>> Cc: Chandra Konduru <chandra.konduru@intel.com>
>>>>>>>>> ---
>>>>>>>>> Up for discussion I suppose, but like it is, with typical
>>>>>>>>> drm.debug
>>>>>>>>> = 0xe, it logs one line per cursor movement while the log would
>>>>>>>>> otherwise be
>>>>>>> quiet.
>>>>>>>>> ---
>>>>>>>>>    drivers/gpu/drm/i915/intel_atomic.c | 3 +++
>>>>>>>>>    1 file changed, 3 insertions(+)
>>>>>>>>>
>>>>>>>>> diff --git a/drivers/gpu/drm/i915/intel_atomic.c
>>>>>>>>> b/drivers/gpu/drm/i915/intel_atomic.c
>>>>>>>>> index 3c4b7cd..7284c6d 100644
>>>>>>>>> --- a/drivers/gpu/drm/i915/intel_atomic.c
>>>>>>>>> +++ b/drivers/gpu/drm/i915/intel_atomic.c
>>>>>>>>> @@ -302,6 +302,9 @@ int intel_atomic_setup_scalers(struct
>>>>>>>>> drm_device
>>>>>>> *dev,
>>>>>>>>>        scaler_state = &crtc_state->scaler_state;
>>>>>>>>>        drm_state = crtc_state->base.state;
>>>>>>>>>
>>>>>>>>> +    if (!scaler_state->scaler_users)
>>>>>>>>> +        return 0;
>>>>>>>>
>>>>>>>> This will cause issue because scalers will never get freed if they
>>>>>>>> are in use
>>>>>>> before and no more required now.
>>>>>>>> I put the debug print to help debug variety of state related issues
>>>>>>>> while we are in development, but perhaps debug print can be
>>>>>>>> deleted.
>>>>>>>
>>>>>>> Doesn't the loop below skip everything anyway when no bits are
>>>>>>> set in
>>>>>>> scaler_state->scaler_users ?
>>>>>> Oh, that's right, ignore my prev comment (with updated scaler
>>>>>> design above
>>>>>> shouldn't cause issues).
>>>>>> By the way, can you pls run kms_panel_fit and kms_plane_scaling to
>>>>>> make sure
>>>>>> they pass and there are no related warnings or errors in kernel log?
>>>>>> For kms_plane_scaling, pls apply two pending patches that aren't
>>>>>> merged:
>>>>>> v5 [PATCH 13/14] drm/i915: skylake primary plane scaling using
>>>>>> shared scalers
>>>>>> v5 [PATCH 14/14] drm/i915: skylake sprite plane scaling using
>>>>>> shared scalers
>>>>>>
>>>>> One more: This change address logs when no scaler is required,
>>>>> but might comeback when a scaler is active (panel fitting or plane
>>>>> scaling is enabled).
>>>>> I don't know general policy in these kind of situations, but
>>>>> perhaps debug print
>>>>> can be deleted.
>>>>
>>>> Atomic is really complicated, but doing fully diagnostics for each
>>>> frame
>>>> is also way too noisy. For that reason we've add a DRM_DEBUG_ATOMIC
>>>> which
>>>> can be used for all these state tracking debug lines.
>>>
>>> We didn't do anything here and I just noticed kernel is still too spammy
>>> with regards to this issue.
>>>
>>> Should we just merge my patch? Still looks completely safe to me...
>>
>> doesn't seem to apply any more:(
>
> Yeah only some months have passed, who would have thought. :)
>
> But I realized that would be only one of the three log lines per cursor
> update - there is a code path calling skl_detach_scaler two times as
> well. Looks like this overall, per update:
>
> [drm:intel_atomic_setup_scalers] crtc_state = ffff880074b55c00 need = 0
> avail = 2 scaler_users = 0x0
> [drm:skl_detach_scaler] CRTC:21 Disabled scaler id 0.0
> [drm:skl_detach_scaler] CRTC:21 Disabled scaler id 0.1
>
> I'll rebase this patch for a start.

Sent it as a new thread but forgot v2 in the subject.

Other source of spam is probably intel_begin_crtc_commit -> 
skl_detach_scalers.

Don't know what the right fix would be there. Looks like it is not 
tracking transitions in scaler use so it would be able to act and log 
when something interesting happens, but rather does it every time. I 
defer to Chandra. :)

Regards,

Tvrtko
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx

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

* Re: [PATCH] drm/i915/skl: Bypass debug message if scalers are not requested
  2015-08-05 14:19               ` Tvrtko Ursulin
@ 2015-08-05 15:02                 ` Tvrtko Ursulin
  0 siblings, 0 replies; 14+ messages in thread
From: Tvrtko Ursulin @ 2015-08-05 15:02 UTC (permalink / raw)
  To: Konduru, Chandra; +Cc: Intel-gfx@lists.freedesktop.org



On 08/05/2015 03:19 PM, Tvrtko Ursulin wrote:
[snip]
>>>>> Atomic is really complicated, but doing fully diagnostics for each
>>>>> frame
>>>>> is also way too noisy. For that reason we've add a DRM_DEBUG_ATOMIC
>>>>> which
>>>>> can be used for all these state tracking debug lines.
>>>>
>>>> We didn't do anything here and I just noticed kernel is still too
>>>> spammy
>>>> with regards to this issue.
>>>>
>>>> Should we just merge my patch? Still looks completely safe to me...
>>>
>>> doesn't seem to apply any more:(
>>
>> Yeah only some months have passed, who would have thought. :)
>>
>> But I realized that would be only one of the three log lines per cursor
>> update - there is a code path calling skl_detach_scaler two times as
>> well. Looks like this overall, per update:
>>
>> [drm:intel_atomic_setup_scalers] crtc_state = ffff880074b55c00 need = 0
>> avail = 2 scaler_users = 0x0
>> [drm:skl_detach_scaler] CRTC:21 Disabled scaler id 0.0
>> [drm:skl_detach_scaler] CRTC:21 Disabled scaler id 0.1
>>
>> I'll rebase this patch for a start.
>
> Sent it as a new thread but forgot v2 in the subject.
>
> Other source of spam is probably intel_begin_crtc_commit ->
> skl_detach_scalers.
>
> Don't know what the right fix would be there. Looks like it is not
> tracking transitions in scaler use so it would be able to act and log
> when something interesting happens, but rather does it every time. I
> defer to Chandra. :)

Ok I've sent something named "[PATCH] drm/i915/skl: Only disable scalers 
once".

It was only compile tested due my current lack of suitable hardware for 
testing. And I don't pretend to be confident in the world of atomic 
states etc. so it may well be completely wrong.

So either scrutinize it a lot please, or let it be a motivator to come 
up with a proper fix of your own. :)

Regards,

Tvrtko
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx

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

* Re: [PATCH] drm/i915/skl: Bypass debug message if scalers are not requested
  2015-08-05 14:14 [PATCH] drm/i915/skl: Bypass debug message if scalers are not requested Tvrtko Ursulin
@ 2015-08-12  5:49 ` shuang.he
  0 siblings, 0 replies; 14+ messages in thread
From: shuang.he @ 2015-08-12  5:49 UTC (permalink / raw)
  To: shuang.he, julianx.dumez, christophe.sureau, lei.a.liu, intel-gfx,
	tvrtko.ursulin

Tested-By: Intel Graphics QA PRTS (Patch Regression Test System Contact: shuang.he@intel.com)
Task id: 7070
-------------------------------------Summary-------------------------------------
Platform          Delta          drm-intel-nightly          Series Applied
ILK                 -1              302/302              301/302
SNB                                  315/315              315/315
IVB                                  336/336              336/336
BYT                                  283/283              283/283
HSW                                  378/378              378/378
-------------------------------------Detailed-------------------------------------
Platform  Test                                drm-intel-nightly          Series Applied
*ILK  igt@kms_flip@rcs-wf_vblank-vs-dpms-interruptible      PASS(1)      DMESG_WARN(1)
Note: You need to pay more attention to line start with '*'
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx

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

end of thread, other threads:[~2015-08-12  5:49 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-08-05 14:14 [PATCH] drm/i915/skl: Bypass debug message if scalers are not requested Tvrtko Ursulin
2015-08-12  5:49 ` shuang.he
  -- strict thread matches above, loose matches on Subject: below --
2015-04-24 16:08 Tvrtko Ursulin
2015-04-24 16:30 ` Konduru, Chandra
2015-04-24 16:33   ` Tvrtko Ursulin
2015-04-24 17:52     ` Konduru, Chandra
2015-04-24 18:07     ` Konduru, Chandra
2015-05-04 14:29       ` Daniel Vetter
2015-08-05 13:20         ` Tvrtko Ursulin
2015-08-05 13:58           ` Daniel Vetter
2015-08-05 14:12             ` Tvrtko Ursulin
2015-08-05 14:19               ` Tvrtko Ursulin
2015-08-05 15:02                 ` Tvrtko Ursulin
2015-04-28  8:24 ` shuang.he

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox