Skip to contentSkip to conversation

Possible i915 regression with 4.4-rc

DISCUSSION Takashi Iwai 7 participants 17 messages Dec 3, 2015 – Dec 8, 2015

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

Hi,

I've experienced a few graphics issues recently, and I tend to believe that it has happened since 4.4-rc. Namely, after some long time usage on my HSW laptop (two or three days), the mouse cursor vanished suddenly. It kept pointing but just became invisible. Also, after some S3 cycles, some glyphs on a console or on Firefox became invisible, too. The windows and graphics were shown well, and X core fonts were still shown properly, too. Switching to VT1 and back didn't change the situation.

There were no obvious errors or GPU hang in both kernel and X logs when these happened. Also, the issue was gone once when I restarted X even without reboot. (But then it seems re-triggering the bug more shortly.)

I've had this a few times and never had this before 4.4-rc1. It's intermittent and very hard to reproduce. Possibly triggered by a high memory usage or such.

Also today I experienced a similar mouse pointer vanish on an IVY desktop. Though, I cannot judge whether this is the same cause.

Since I'm using openSUSE Tumbleweed that is a rolling release, I can't blame only kernel. But, my gut feeling tells it's probably a kernel regression, something like a cache issue. Alas, it's impossible to bisect due to the difficulty of bug reproduction.

Can anyone give some hint for debugging once when this problem happens again?

thanks,

Takashi
_______________________________________________
Intel-gfx mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx

#1 lore raw
Quoted 10 lines · Takashi Iwai

Hi,

I've experienced a few graphics issues recently, and I tend to believe that it has happened since 4.4-rc. Namely, after some long time usage on my HSW laptop (two or three days), the mouse cursor vanished suddenly. It kept pointing but just became invisible. Also, after some S3 cycles, some glyphs on a console or on Firefox became invisible, too. The windows and graphics were shown well, and X core fonts were still shown properly, too. Switching to VT1 and back didn't change the situation.

I think I have a fix for this *very* annoying problem. I'v been cursing on irc for weeks about it, until I finally got off my arse and debugged it.

I pushed out my my cursor branch:
git://github.com/vsyrjala/linux.git disappearing_cursor_fix

It has lots of other junk too, but it should be just there two that fix it:
59f65fa270fb ("drm/i915: Kill intel_crtc->cursor_bo") 25651a198d17 ("drm/i915: Drop the broken curcor base==0 special casing")

Unfortunatleey I've managed to keep myself busy on other stuff, so didn't send them out yet. Maybe tomorrow...

Signature · 6 lines
Ville Syrjälä
Intel OTC
_______________________________________________
Intel-gfx mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx
#2 lore raw
Quoted 20 lines · Ville Syrjälä
Quoted 10 lines · Takashi Iwai

Hi,

I've experienced a few graphics issues recently, and I tend to believe that it has happened since 4.4-rc. Namely, after some long time usage on my HSW laptop (two or three days), the mouse cursor vanished suddenly. It kept pointing but just became invisible. Also, after some S3 cycles, some glyphs on a console or on Firefox became invisible, too. The windows and graphics were shown well, and X core fonts were still shown properly, too. Switching to VT1 and back didn't change the situation.

I think I have a fix for this *very* annoying problem. I'v been cursing on irc for weeks about it, until I finally got off my arse and debugged it.

I pushed out my my cursor branch:
git://github.com/vsyrjala/linux.git disappearing_cursor_fix

Quoted 6 lines

It has lots of other junk too, but it should be just there two that fix it:
59f65fa270fb ("drm/i915: Kill intel_crtc->cursor_bo") 25651a198d17 ("drm/i915: Drop the broken curcor base==0 special casing")

Unfortunatleey I've managed to keep myself busy on other stuff, so didn't send them out yet. Maybe tomorrow...

Great, I'll try them out now. But these look like fixing only the cursor issue. Would they cover also the missing glyphs I experienced?

Thanks!

Takashi
_______________________________________________
Intel-gfx mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx

#3 lore raw
Quoted 26 lines · Takashi Iwai
Quoted 24 lines · Ville Syrjälä
Quoted 10 lines · Takashi Iwai

Hi,

I've experienced a few graphics issues recently, and I tend to believe that it has happened since 4.4-rc. Namely, after some long time usage on my HSW laptop (two or three days), the mouse cursor vanished suddenly. It kept pointing but just became invisible. Also, after some S3 cycles, some glyphs on a console or on Firefox became invisible, too. The windows and graphics were shown well, and X core fonts were still shown properly, too. Switching to VT1 and back didn't change the situation.

I think I have a fix for this *very* annoying problem. I'v been cursing on irc for weeks about it, until I finally got off my arse and debugged it.

I pushed out my my cursor branch:
git://github.com/vsyrjala/linux.git disappearing_cursor_fix

It has lots of other junk too, but it should be just there two that fix it:
59f65fa270fb ("drm/i915: Kill intel_crtc->cursor_bo") 25651a198d17 ("drm/i915: Drop the broken curcor base==0 special casing")

Quoted 5 lines
Quoted 2 lines

Unfortunatleey I've managed to keep myself busy on other stuff, so didn't send them out yet. Maybe tomorrow...

Great, I'll try them out now. But these look like fixing only the cursor issue. Would they cover also the missing glyphs I experienced?

No. That's either userland, or some object/context/etc. getting corrupted I think. I've had something like that occasionally too after some number of suspend cycles, and usually fbcon is dead at that point too (just get a black screen on VT switch).

I think we had some bug with not properly pinning the fbdev buffer which could explain things getting corrupted. Chris had a fix I think, but I'm not sure if that went anywhere. Chris?

Signature · 6 lines
Ville Syrjälä
Intel OTC
_______________________________________________
Intel-gfx mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx
#4 lore raw
Quoted 33 lines · Ville Syrjälä
Quoted 26 lines · Takashi Iwai
Quoted 24 lines · Ville Syrjälä
Quoted 10 lines · Takashi Iwai

Hi,

I've experienced a few graphics issues recently, and I tend to believe that it has happened since 4.4-rc. Namely, after some long time usage on my HSW laptop (two or three days), the mouse cursor vanished suddenly. It kept pointing but just became invisible. Also, after some S3 cycles, some glyphs on a console or on Firefox became invisible, too. The windows and graphics were shown well, and X core fonts were still shown properly, too. Switching to VT1 and back didn't change the situation.

I think I have a fix for this *very* annoying problem. I'v been cursing on irc for weeks about it, until I finally got off my arse and debugged it.

I pushed out my my cursor branch:
git://github.com/vsyrjala/linux.git disappearing_cursor_fix

It has lots of other junk too, but it should be just there two that fix it:
59f65fa270fb ("drm/i915: Kill intel_crtc->cursor_bo") 25651a198d17 ("drm/i915: Drop the broken curcor base==0 special casing")

Quoted 5 lines
Quoted 2 lines

Unfortunatleey I've managed to keep myself busy on other stuff, so didn't send them out yet. Maybe tomorrow...

Great, I'll try them out now. But these look like fixing only the cursor issue. Would they cover also the missing glyphs I experienced?

Quoted 8 lines

No. That's either userland, or some object/context/etc. getting corrupted I think. I've had something like that occasionally too after some number of suspend cycles, and usually fbcon is dead at that point too (just get a black screen on VT switch).

I think we had some bug with not properly pinning the fbdev buffer which could explain things getting corrupted. Chris had a fix I think, but I'm not sure if that went anywhere. Chris?

Jani keeps refusing it :). But it's not the issue with the missing glyphs. The missing glyphs is the kernel dropping rendering, or that rendering not being flushed out to memory across the suspend as it is just texture corruption. The glyph cache only slowly changes, so corruption tends to be visible for some time. An alternative explanation would be that GPU state is not restored upon resume that only (visibly) effects glyph rendering (and portions thereof). Lost rendering is a simpler explanation.
-Chris

Signature · 5 lines
Chris Wilson, Intel Open Source Technology Centre
_______________________________________________
Intel-gfx mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx
maintainer
#5 lore raw
Quoted 6 lines · Chris Wilson
Quoted 3 lines · Ville Syrjälä

I think we had some bug with not properly pinning the fbdev buffer which could explain things getting corrupted. Chris had a fix I think, but I'm not sure if that went anywhere. Chris?

Jani keeps refusing it :)

Which one? Was I being a boring pedant, requiring it gets review or compiles or something...? :p

BR,
Jani.

Signature · 5 lines
Jani Nikula, Intel Open Source Technology Center
_______________________________________________
Intel-gfx mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx
#6 lore raw
Quoted 10 lines · Jani Nikula
Quoted 6 lines · Chris Wilson
Quoted 3 lines · Ville Syrjälä

I think we had some bug with not properly pinning the fbdev buffer which could explain things getting corrupted. Chris had a fix I think, but I'm not sure if that went anywhere. Chris?

Jani keeps refusing it :)

Which one? Was I being a boring pedant, requiring it gets review or compiles or something...? :p

It had review, but didnt really compile iirc. Chris, can you pls kick that can a bit more?

Thanks, Daniel

Signature · 7 lines
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch
_______________________________________________
Intel-gfx mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx
#7 lore raw
In reply to Chris Wilson
Quoted 43 lines · Chris Wilson
Quoted 33 lines · Ville Syrjälä
Quoted 26 lines · Takashi Iwai
Quoted 24 lines · Ville Syrjälä
Quoted 10 lines · Takashi Iwai

Hi,

I've experienced a few graphics issues recently, and I tend to believe that it has happened since 4.4-rc. Namely, after some long time usage on my HSW laptop (two or three days), the mouse cursor vanished suddenly. It kept pointing but just became invisible. Also, after some S3 cycles, some glyphs on a console or on Firefox became invisible, too. The windows and graphics were shown well, and X core fonts were still shown properly, too. Switching to VT1 and back didn't change the situation.

I think I have a fix for this *very* annoying problem. I'v been cursing on irc for weeks about it, until I finally got off my arse and debugged it.

I pushed out my my cursor branch:
git://github.com/vsyrjala/linux.git disappearing_cursor_fix

It has lots of other junk too, but it should be just there two that fix it:
59f65fa270fb ("drm/i915: Kill intel_crtc->cursor_bo") 25651a198d17 ("drm/i915: Drop the broken curcor base==0 special casing")

Quoted 5 lines
Quoted 2 lines

Unfortunatleey I've managed to keep myself busy on other stuff, so didn't send them out yet. Maybe tomorrow...

Great, I'll try them out now. But these look like fixing only the cursor issue. Would they cover also the missing glyphs I experienced?

Quoted 8 lines

No. That's either userland, or some object/context/etc. getting corrupted I think. I've had something like that occasionally too after some number of suspend cycles, and usually fbcon is dead at that point too (just get a black screen on VT switch).

I think we had some bug with not properly pinning the fbdev buffer which could explain things getting corrupted. Chris had a fix I think, but I'm not sure if that went anywhere. Chris?

Quoted 9 lines

Jani keeps refusing it :). But it's not the issue with the missing glyphs. The missing glyphs is the kernel dropping rendering, or that rendering not being flushed out to memory across the suspend as it is just texture corruption. The glyph cache only slowly changes, so corruption tends to be visible for some time. An alternative explanation would be that GPU state is not restored upon resume that only (visibly) effects glyph rendering (and portions thereof). Lost rendering is a simpler explanation.
-Chris

Could also be down to certain objects getting their contents discarded when evicted (due to not being marked dirty), for which I posted a fix "Always mark GEM objects as dirty when written by the CPU" a few days ago?

.Dave.
_______________________________________________
Intel-gfx mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx

#8 lore raw
Quoted 54 lines · Dave Gordon
Quoted 43 lines · Chris Wilson
Quoted 33 lines · Ville Syrjälä
Quoted 26 lines · Takashi Iwai
Quoted 24 lines · Ville Syrjälä
Quoted 10 lines · Takashi Iwai

Hi,

I've experienced a few graphics issues recently, and I tend to believe that it has happened since 4.4-rc. Namely, after some long time usage on my HSW laptop (two or three days), the mouse cursor vanished suddenly. It kept pointing but just became invisible. Also, after some S3 cycles, some glyphs on a console or on Firefox became invisible, too. The windows and graphics were shown well, and X core fonts were still shown properly, too. Switching to VT1 and back didn't change the situation.

I think I have a fix for this *very* annoying problem. I'v been cursing on irc for weeks about it, until I finally got off my arse and debugged it.

I pushed out my my cursor branch:
git://github.com/vsyrjala/linux.git disappearing_cursor_fix

It has lots of other junk too, but it should be just there two that fix it:
59f65fa270fb ("drm/i915: Kill intel_crtc->cursor_bo") 25651a198d17 ("drm/i915: Drop the broken curcor base==0 special casing")

Quoted 5 lines
Quoted 2 lines

Unfortunatleey I've managed to keep myself busy on other stuff, so didn't send them out yet. Maybe tomorrow...

Great, I'll try them out now. But these look like fixing only the cursor issue. Would they cover also the missing glyphs I experienced?

Quoted 8 lines

No. That's either userland, or some object/context/etc. getting corrupted I think. I've had something like that occasionally too after some number of suspend cycles, and usually fbcon is dead at that point too (just get a black screen on VT switch).

I think we had some bug with not properly pinning the fbdev buffer which could explain things getting corrupted. Chris had a fix I think, but I'm not sure if that went anywhere. Chris?

Quoted 9 lines

Jani keeps refusing it :). But it's not the issue with the missing glyphs. The missing glyphs is the kernel dropping rendering, or that rendering not being flushed out to memory across the suspend as it is just texture corruption. The glyph cache only slowly changes, so corruption tends to be visible for some time. An alternative explanation would be that GPU state is not restored upon resume that only (visibly) effects glyph rendering (and portions thereof). Lost rendering is a simpler explanation.
-Chris

Quoted 4 lines

Could also be down to certain objects getting their contents discarded when evicted (due to not being marked dirty), for which I posted a fix "Always mark GEM objects as dirty when written by the CPU" a few days ago?

Grasping at straws?
-Chris

Signature · 5 lines
Chris Wilson, Intel Open Source Technology Centre
_______________________________________________
Intel-gfx mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx
#9 lore raw
Quoted 6 lines · Chris Wilson
Quoted 4 lines

Could also be down to certain objects getting their contents discarded when evicted (due to not being marked dirty), for which I posted a fix "Always mark GEM objects as dirty when written by the CPU" a few days ago?

Grasping at straws?

On reflection, rather than the object->dirty patch, you want

drivers/gpu/drm/i915/i915_gem renamed from drivers/gpu/drm/i915/i915_gem_gtt.c +0 -0

_gtt.c
index 1f7e6b9df45d..033df035a066 100644

drivers/gpu/drm/i915/i915_gem_gtt.c +0 -0
@@ -346,6 +346,7 @@ static void cleanup_page_dma(struct drm_device *dev, struct 

i915_page_dma *p)

static void *kmap_page_dma(struct i915_page_dma *p) {

+       set_page_dirty(p->page);
        return kmap_atomic(p->page);

}
-Chris

Signature · 5 lines
Chris Wilson, Intel Open Source Technology Centre
_______________________________________________
Intel-gfx mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx
#10 lore raw
Quoted 16 lines · Chris Wilson
Quoted 6 lines · Chris Wilson
Quoted 4 lines

Could also be down to certain objects getting their contents discarded when evicted (due to not being marked dirty), for which I posted a fix "Always mark GEM objects as dirty when written by the CPU" a few days ago?

Grasping at straws?

On reflection, rather than the object->dirty patch, you want

drivers/gpu/drm/i915/i915_gem renamed from drivers/gpu/drm/i915/i915_gem_gtt.c +0 -0

_gtt.c
index 1f7e6b9df45d..033df035a066 100644

drivers/gpu/drm/i915/i915_gem_gtt.c static void cleanup_page_dma(struct drm_device *dev, struct · line 352

Quoted 7 lines
drivers/gpu/drm/i915/i915_gem_gtt.c +1 -0
@@ -346,6 +346,7 @@ static void cleanup_page_dma(struct drm_device *dev, struct 
 i915_page_dma *p)
 
 static void *kmap_page_dma(struct i915_page_dma *p)
 {
+       set_page_dirty(p->page);
        return kmap_atomic(p->page);
 }

Or not? These pages are not swappable and remain allocated, so I would expect the hibernation process to also make a copy of them and restore them. Besides we would get outright GPU hangs and massive memory corruption if the PTE were absent.
-Chris

Signature · 5 lines
Chris Wilson, Intel Open Source Technology Centre
_______________________________________________
Intel-gfx mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx
#11 lore raw
In reply to Ville Syrjälä

Hi,

Quoted 33 lines · Ville Syrjälä
Quoted 26 lines · Takashi Iwai
Quoted 24 lines · Ville Syrjälä
Quoted 10 lines · Takashi Iwai

Hi,

I've experienced a few graphics issues recently, and I tend to believe that it has happened since 4.4-rc. Namely, after some long time usage on my HSW laptop (two or three days), the mouse cursor vanished suddenly. It kept pointing but just became invisible. Also, after some S3 cycles, some glyphs on a console or on Firefox became invisible, too. The windows and graphics were shown well, and X core fonts were still shown properly, too. Switching to VT1 and back didn't change the situation.

I think I have a fix for this *very* annoying problem. I'v been cursing on irc for weeks about it, until I finally got off my arse and debugged it.

I pushed out my my cursor branch:
git://github.com/vsyrjala/linux.git disappearing_cursor_fix

It has lots of other junk too, but it should be just there two that fix it:
59f65fa270fb ("drm/i915: Kill intel_crtc->cursor_bo") 25651a198d17 ("drm/i915: Drop the broken curcor base==0 special casing")

Quoted 5 lines
Quoted 2 lines

Unfortunatleey I've managed to keep myself busy on other stuff, so didn't send them out yet. Maybe tomorrow...

Great, I'll try them out now. But these look like fixing only the cursor issue. Would they cover also the missing glyphs I experienced?

Quoted 8 lines

No. That's either userland, or some object/context/etc. getting corrupted I think. I've had something like that occasionally too after some number of suspend cycles, and usually fbcon is dead at that point too (just get a black screen on VT switch).

I think we had some bug with not properly pinning the fbdev buffer which could explain things getting corrupted. Chris had a fix I think, but I'm not sure if that went anywhere. Chris?

Last version was http://patchwork.freedesktop.org/patch/65552/
but unfortunately it had issues with error path handling (see my comment on patchwork).

Kind regards,

Lukas
_______________________________________________
Intel-gfx mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx

#12 lore raw
In reply to Ville Syrjälä
Quoted 31 lines · Ville Syrjälä
Quoted 29 lines · Takashi Iwai
Quoted 26 lines · Ville Syrjälä
Quoted 10 lines · Takashi Iwai

Hi,

I've experienced a few graphics issues recently, and I tend to believe that it has happened since 4.4-rc. Namely, after some long time usage on my HSW laptop (two or three days), the mouse cursor vanished suddenly. It kept pointing but just became invisible. Also, after some S3 cycles, some glyphs on a console or on Firefox became invisible, too. The windows and graphics were shown well, and X core fonts were still shown properly, too. Switching to VT1 and back didn't change the situation.

I think I have a fix for this *very* annoying problem. I'v been cursing on irc for weeks about it, until I finally got off my arse and debugged it.

I pushed out my my cursor branch:
git://github.com/vsyrjala/linux.git disappearing_cursor_fix

It has lots of other junk too, but it should be just there two that fix it:
59f65fa270fb ("drm/i915: Kill intel_crtc->cursor_bo") 25651a198d17 ("drm/i915: Drop the broken curcor base==0 special casing")

Unfortunatleey I've managed to keep myself busy on other stuff, so didn't send them out yet. Maybe tomorrow...

Quoted 7 lines
Quoted 2 lines

Great, I'll try them out now. But these look like fixing only the cursor issue. Would they cover also the missing glyphs I experienced?

No. That's either userland, or some object/context/etc. getting corrupted I think. I've had something like that occasionally too after some number of suspend cycles, and usually fbcon is dead at that point too (just get a black screen on VT switch).

I hit this S3 problem this morning again, and indeed fbcon is dead, too. Re-login cured X.

If any patch is available for testing, let me know. It seems that 4.4 series really can show this problem more often.

thanks,

Takashi
_______________________________________________
Intel-gfx mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx

maintainer
#13 lore raw
In reply to Ville Syrjälä
Quoted 19 lines · Ville Syrjälä
Quoted 10 lines · Takashi Iwai

Hi,

I've experienced a few graphics issues recently, and I tend to believe that it has happened since 4.4-rc. Namely, after some long time usage on my HSW laptop (two or three days), the mouse cursor vanished suddenly. It kept pointing but just became invisible. Also, after some S3 cycles, some glyphs on a console or on Firefox became invisible, too. The windows and graphics were shown well, and X core fonts were still shown properly, too. Switching to VT1 and back didn't change the situation.

I think I have a fix for this *very* annoying problem. I'v been cursing on irc for weeks about it, until I finally got off my arse and debugged it.

I pushed out my my cursor branch:
git://github.com/vsyrjala/linux.git disappearing_cursor_fix

Quoted 6 lines

It has lots of other junk too, but it should be just there two that fix it:
59f65fa270fb ("drm/i915: Kill intel_crtc->cursor_bo") 25651a198d17 ("drm/i915: Drop the broken curcor base==0 special casing")

Unfortunatleey I've managed to keep myself busy on other stuff, so didn't send them out yet. Maybe tomorrow...

So I've hit this too, albeit very rarely, on a Haswell running Debian stable with the stock v3.16 kernel. Haven't seen it on any other machine. It's really too rare to even debug or verify a fix. Is it possible we just happened to make an old bug occur more frequently now?

BR,
Jani.

Signature · 5 lines
Jani Nikula, Intel Open Source Technology Center
_______________________________________________
Intel-gfx mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx
#14 lore raw
Quoted 24 lines · Jani Nikula
Quoted 23 lines · Ville Syrjälä
Quoted 10 lines · Takashi Iwai

Hi,

I've experienced a few graphics issues recently, and I tend to believe that it has happened since 4.4-rc. Namely, after some long time usage on my HSW laptop (two or three days), the mouse cursor vanished suddenly. It kept pointing but just became invisible. Also, after some S3 cycles, some glyphs on a console or on Firefox became invisible, too. The windows and graphics were shown well, and X core fonts were still shown properly, too. Switching to VT1 and back didn't change the situation.

I think I have a fix for this *very* annoying problem. I'v been cursing on irc for weeks about it, until I finally got off my arse and debugged it.

I pushed out my my cursor branch:
git://github.com/vsyrjala/linux.git disappearing_cursor_fix

It has lots of other junk too, but it should be just there two that fix it:
59f65fa270fb ("drm/i915: Kill intel_crtc->cursor_bo") 25651a198d17 ("drm/i915: Drop the broken curcor base==0 special casing")

Quoted 7 lines
Quoted 2 lines

Unfortunatleey I've managed to keep myself busy on other stuff, so didn't send them out yet. Maybe tomorrow...

So I've hit this too, albeit very rarely, on a Haswell running Debian stable with the stock v3.16 kernel. Haven't seen it on any other machine. It's really too rare to even debug or verify a fix. Is it possible we just happened to make an old bug occur more frequently now?

The potential for it has definitely been there for a long time.

Signature · 6 lines
Ville Syrjälä
Intel OTC
_______________________________________________
Intel-gfx mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx
Tested-by Takashi Iwai Tested-by Paulo Zanoni Tested-by Todd Previte
#15 lore raw
Quoted 28 lines · Ville Syrjälä
Quoted 27 lines · Jani Nikula
Quoted 25 lines · Ville Syrjälä
Quoted 10 lines · Takashi Iwai

Hi,

I've experienced a few graphics issues recently, and I tend to believe that it has happened since 4.4-rc. Namely, after some long time usage on my HSW laptop (two or three days), the mouse cursor vanished suddenly. It kept pointing but just became invisible. Also, after some S3 cycles, some glyphs on a console or on Firefox became invisible, too. The windows and graphics were shown well, and X core fonts were still shown properly, too. Switching to VT1 and back didn't change the situation.

I think I have a fix for this *very* annoying problem. I'v been cursing on irc for weeks about it, until I finally got off my arse and debugged it.

I pushed out my my cursor branch:
git://github.com/vsyrjala/linux.git disappearing_cursor_fix

It has lots of other junk too, but it should be just there two that fix it:
59f65fa270fb ("drm/i915: Kill intel_crtc->cursor_bo") 25651a198d17 ("drm/i915: Drop the broken curcor base==0 special casing")

Unfortunatleey I've managed to keep myself busy on other stuff, so didn't send them out yet. Maybe tomorrow...

Quoted 6 lines
Quoted 4 lines

So I've hit this too, albeit very rarely, on a Haswell running Debian stable with the stock v3.16 kernel. Haven't seen it on any other machine. It's really too rare to even debug or verify a fix. Is it possible we just happened to make an old bug occur more frequently now?

The potential for it has definitely been there for a long time.

Oh dear, let's have fun and look at some awful history.

commit e568af1c626031925465a5caaab7cca1303d55c7

Author: Daniel Vetter <[email protected]>
Date:   Wed Mar 26 20:08:20 2014 +0100

drm/i915: Undo gtt scratch pte unmapping again

Which essentially reverted

commit 828c79087cec61eaf4c76bb32c222fbe35ac3930

Author: Ben Widawsky <[email protected]>
Date:   Wed Oct 16 09:21:30 2013 -0700

drm/i915: Disable GGTT PTEs on GEN6+ suspend

Once the machine gets to a certain point in the suspend process, we expect the GPU to be idle. If it is not, we might corrupt memory. Empirically (with an early version of this patch) we have seen this is not the case. We cannot currently explain why the latent GPU writes occur.

In the technical sense, this patch is a workaround in that we have an issue we can't explain, and the patch indirectly solves the issue. However, it's really better than a workaround because we understand why it works, and it really should be a safe thing to do in all cases.

The noticeable effect other than the debug messages would be an increase in the suspend time. I have not measure how expensive it actually is.

I think it would be good to spend further time to root cause why we're seeing these latent writes, but it shouldn't preclude preventing the fallout.

NOTE: It should be safe (and makes some sense IMO) to also keep the VALID bit unset on resume when we clear_range(). I've opted not to do this as properly clearing those bits at some later point would be extra work.

v2: Fix bugzilla link

Bugzilla: http://bugs.freedesktop.org/show_bug.cgi?id=65496
Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=59321

This was a regression in a regression right before I ragequit the entire bug handling deal because no one cared any more and management was all "why is this important".

Would be interesting if these issues magically disapper when changing that back again. Doesn't mean that we're any closer to figuring out what's corrupting what exactly here, but at least we'd have a reason to digg out this old sob story of mine.

Cheers, Daniel

Signature · 7 lines
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch
_______________________________________________
Intel-gfx mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx
#16 lore raw
Quoted 87 lines · Daniel Vetter
Quoted 28 lines · Ville Syrjälä
Quoted 27 lines · Jani Nikula
Quoted 25 lines · Ville Syrjälä
Quoted 10 lines · Takashi Iwai

Hi,

I've experienced a few graphics issues recently, and I tend to believe that it has happened since 4.4-rc. Namely, after some long time usage on my HSW laptop (two or three days), the mouse cursor vanished suddenly. It kept pointing but just became invisible. Also, after some S3 cycles, some glyphs on a console or on Firefox became invisible, too. The windows and graphics were shown well, and X core fonts were still shown properly, too. Switching to VT1 and back didn't change the situation.

I think I have a fix for this *very* annoying problem. I'v been cursing on irc for weeks about it, until I finally got off my arse and debugged it.

I pushed out my my cursor branch:
git://github.com/vsyrjala/linux.git disappearing_cursor_fix

It has lots of other junk too, but it should be just there two that fix it:
59f65fa270fb ("drm/i915: Kill intel_crtc->cursor_bo") 25651a198d17 ("drm/i915: Drop the broken curcor base==0 special casing")

Unfortunatleey I've managed to keep myself busy on other stuff, so didn't send them out yet. Maybe tomorrow...

Quoted 6 lines
Quoted 4 lines

So I've hit this too, albeit very rarely, on a Haswell running Debian stable with the stock v3.16 kernel. Haven't seen it on any other machine. It's really too rare to even debug or verify a fix. Is it possible we just happened to make an old bug occur more frequently now?

The potential for it has definitely been there for a long time.

Oh dear, let's have fun and look at some awful history.

commit e568af1c626031925465a5caaab7cca1303d55c7

Author: Daniel Vetter <[email protected]>
Date:   Wed Mar 26 20:08:20 2014 +0100

drm/i915: Undo gtt scratch pte unmapping again

Which essentially reverted

commit 828c79087cec61eaf4c76bb32c222fbe35ac3930

Author: Ben Widawsky <[email protected]>
Date:   Wed Oct 16 09:21:30 2013 -0700

drm/i915: Disable GGTT PTEs on GEN6+ suspend

Once the machine gets to a certain point in the suspend process, we expect the GPU to be idle. If it is not, we might corrupt memory. Empirically (with an early version of this patch) we have seen this is not the case. We cannot currently explain why the latent GPU writes occur.

In the technical sense, this patch is a workaround in that we have an issue we can't explain, and the patch indirectly solves the issue. However, it's really better than a workaround because we understand why it works, and it really should be a safe thing to do in all cases.

The noticeable effect other than the debug messages would be an increase in the suspend time. I have not measure how expensive it actually is.

I think it would be good to spend further time to root cause why we're seeing these latent writes, but it shouldn't preclude preventing the fallout.

NOTE: It should be safe (and makes some sense IMO) to also keep the VALID bit unset on resume when we clear_range(). I've opted not to do this as properly clearing those bits at some later point would be extra work.

v2: Fix bugzilla link

Bugzilla: http://bugs.freedesktop.org/show_bug.cgi?id=65496
Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=59321

Quoted 8 lines

This was a regression in a regression right before I ragequit the entire bug handling deal because no one cared any more and management was all "why is this important".

Would be interesting if these issues magically disapper when changing that back again. Doesn't mean that we're any closer to figuring out what's corrupting what exactly here, but at least we'd have a reason to digg out this old sob story of mine.

Hm, but this revert was also fairly ago, and I don't remember of the similar breakage until 4.4-rc. Might be just a (bad) luck, though.

(And no surprise, I was already in the party above! Everyone must
have smoked badly there.)

thanks,

Takashi
_______________________________________________
Intel-gfx mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx