diff mbox

[v2,02/14] drm/i915: Extend DSL readout fix to BDW and SKL.

Message ID 1446535913-31970-3-git-send-email-maarten.lankhorst@linux.intel.com (mailing list archive)
State New, archived
Headers show

Commit Message

Maarten Lankhorst Nov. 3, 2015, 7:31 a.m. UTC
Those platforms have the same bug as haswell, and the same fix applies to them.

Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=91579
---
 drivers/gpu/drm/i915/i915_irq.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Ville Syrjälä Nov. 3, 2015, 9:23 a.m. UTC | #1
On Tue, Nov 03, 2015 at 08:31:41AM +0100, Maarten Lankhorst wrote:
> Those platforms have the same bug as haswell, and the same fix applies to them.
> 
> Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=91579

Sigh. 
Acked-by: Ville Syrjälä <ville.syrjala@linux.intel.com>

> ---
>  drivers/gpu/drm/i915/i915_irq.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/gpu/drm/i915/i915_irq.c b/drivers/gpu/drm/i915/i915_irq.c
> index 6e0a5683bbdc..825114af9c56 100644
> --- a/drivers/gpu/drm/i915/i915_irq.c
> +++ b/drivers/gpu/drm/i915/i915_irq.c
> @@ -747,7 +747,7 @@ static int __intel_get_crtc_scanline(struct intel_crtc *crtc)
>  	 * problem.  We may need to extend this to include other platforms,
>  	 * but so far testing only shows the problem on HSW.
>  	 */
> -	if (IS_HASWELL(dev) && !position) {
> +	if (HAS_DDI(dev) && !position) {
>  		int i, temp;
>  
>  		for (i = 0; i < 100; i++) {
> -- 
> 2.1.0
> 
> _______________________________________________
> Intel-gfx mailing list
> Intel-gfx@lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/intel-gfx
Jani Nikula Nov. 3, 2015, 11:32 a.m. UTC | #2
On Tue, 03 Nov 2015, Ville Syrjälä <ville.syrjala@linux.intel.com> wrote:
> On Tue, Nov 03, 2015 at 08:31:41AM +0100, Maarten Lankhorst wrote:
>> Those platforms have the same bug as haswell, and the same fix applies to them.

How about Broxton? IS_DDI matches that.

Jani.

>> 
>> Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
>> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=91579
>
> Sigh. 
> Acked-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
>
>> ---
>>  drivers/gpu/drm/i915/i915_irq.c | 2 +-
>>  1 file changed, 1 insertion(+), 1 deletion(-)
>> 
>> diff --git a/drivers/gpu/drm/i915/i915_irq.c b/drivers/gpu/drm/i915/i915_irq.c
>> index 6e0a5683bbdc..825114af9c56 100644
>> --- a/drivers/gpu/drm/i915/i915_irq.c
>> +++ b/drivers/gpu/drm/i915/i915_irq.c
>> @@ -747,7 +747,7 @@ static int __intel_get_crtc_scanline(struct intel_crtc *crtc)
>>  	 * problem.  We may need to extend this to include other platforms,
>>  	 * but so far testing only shows the problem on HSW.
>>  	 */
>> -	if (IS_HASWELL(dev) && !position) {
>> +	if (HAS_DDI(dev) && !position) {
>>  		int i, temp;
>>  
>>  		for (i = 0; i < 100; i++) {
>> -- 
>> 2.1.0
>> 
>> _______________________________________________
>> Intel-gfx mailing list
>> Intel-gfx@lists.freedesktop.org
>> http://lists.freedesktop.org/mailman/listinfo/intel-gfx
Maarten Lankhorst Nov. 3, 2015, 12:44 p.m. UTC | #3
Hey,

Op 03-11-15 om 12:32 schreef Jani Nikula:
> On Tue, 03 Nov 2015, Ville Syrjälä <ville.syrjala@linux.intel.com> wrote:
>> On Tue, Nov 03, 2015 at 08:31:41AM +0100, Maarten Lankhorst wrote:
>>> Those platforms have the same bug as haswell, and the same fix applies to them.
> How about Broxton? IS_DDI matches that.
>
> Jani.
>
Judging from irc it's very likely it suffers from the same problem, but it would be nice if we had someone who could confirm. :)
Jesse Barnes Nov. 5, 2015, 4:33 p.m. UTC | #4
On 11/03/2015 04:44 AM, Maarten Lankhorst wrote:
> Hey,
> 
> Op 03-11-15 om 12:32 schreef Jani Nikula:
>> On Tue, 03 Nov 2015, Ville Syrjälä <ville.syrjala@linux.intel.com> wrote:
>>> On Tue, Nov 03, 2015 at 08:31:41AM +0100, Maarten Lankhorst wrote:
>>>> Those platforms have the same bug as haswell, and the same fix applies to them.
>> How about Broxton? IS_DDI matches that.
>>
>> Jani.
>>
> Judging from irc it's very likely it suffers from the same problem, but it would be nice if we had someone who could confirm. :)

It won't hurt (much) if we apply this workaround and it doesn't affect
BXT, so I think we may as well apply given what we know of BXT's lineage.

Jesse
Jani Nikula Nov. 6, 2015, 9:47 a.m. UTC | #5
On Thu, 05 Nov 2015, Jesse Barnes <jbarnes@virtuousgeek.org> wrote:
> On 11/03/2015 04:44 AM, Maarten Lankhorst wrote:
>> Hey,
>> 
>> Op 03-11-15 om 12:32 schreef Jani Nikula:
>>> On Tue, 03 Nov 2015, Ville Syrjälä <ville.syrjala@linux.intel.com> wrote:
>>>> On Tue, Nov 03, 2015 at 08:31:41AM +0100, Maarten Lankhorst wrote:
>>>>> Those platforms have the same bug as haswell, and the same fix applies to them.
>>> How about Broxton? IS_DDI matches that.
>>>
>>> Jani.
>>>
>> Judging from irc it's very likely it suffers from the same problem, but it would be nice if we had someone who could confirm. :)
>
> It won't hurt (much) if we apply this workaround and it doesn't affect
> BXT, so I think we may as well apply given what we know of BXT's lineage.

Pushed this one patch to drm-intel-next-fixes, with cc: stable v4.3.

BR,
Jani.
diff mbox

Patch

diff --git a/drivers/gpu/drm/i915/i915_irq.c b/drivers/gpu/drm/i915/i915_irq.c
index 6e0a5683bbdc..825114af9c56 100644
--- a/drivers/gpu/drm/i915/i915_irq.c
+++ b/drivers/gpu/drm/i915/i915_irq.c
@@ -747,7 +747,7 @@  static int __intel_get_crtc_scanline(struct intel_crtc *crtc)
 	 * problem.  We may need to extend this to include other platforms,
 	 * but so far testing only shows the problem on HSW.
 	 */
-	if (IS_HASWELL(dev) && !position) {
+	if (HAS_DDI(dev) && !position) {
 		int i, temp;
 
 		for (i = 0; i < 100; i++) {