Skip to contentSkip to conversation

BUG: Bad page state in process Xorg

i915 [email protected] 2 participants 5 messages Nov 25, 2013 – Dec 4, 2013

lore
Share & tools
lore
#0 lore raw

Hi,

It turns out that this seems to be a bug in udl DRM driver.

I bisected the problem to this patch:

https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/drivers/gpu/drm/udl?id=5dc9e1e87229cb786a5bb58ddd0d60fee6eb4641

With kind regards
Thomas

Am 22.11.2013 17:18 schrieb Daniel Vetter <[email protected]>:

Quoted 28 lines · Thomas Meyer
Quoted 13 lines
Quoted 5 lines

Am 22.11.2013 um 11:55 schrieb Daniel Vetter <[email protected]>:

Quoted 2 lines · Dave Airlie
Quoted 1 line

Hi,

Quoted 7 lines
Quoted 3 lines

cc'ing mailing list,

Daniel any ideas?

Nope, not really :( And no ideas how to triage this further - if it takes 9 days to hit it eventually we'll have a real hard time. Or does this happen even after just a short X run?

Quoted 5 lines

Seems to happen every time while stopping the x server. Also after a short run time.

The current fedora 3.11 kernel doesn't show this bug. I'm using fedora 19, with a self compiled kernel.

I did turn on config-debug-pagealloc but this didn't show any wrongness.

In that case I think the bisect is the fastest way to insight - atm I'm really at loss what could be wrong here.
-Daniel

Signature · 3 lines
Daniel Vetter 
Software Engineer, Intel Corporation 
+41 (0) 79 365 57 48 - http://blog.ffwll.ch 
#1 lore raw

oh, hmm.. are you importing buffers from i915? It looks like this part:

- if (obj->base.import_attach) {
- drm_free_large(obj->pages);
- obj->pages = NULL;
- return;
- }

should not have been removed from udl_gem_put_pages()..

BR,
-R

Quoted 40 lines · On Mon, Nov 25, 2013 at 8:17 AM, <[email protected]> wrote:

Hi,

It turns out that this seems to be a bug in udl DRM driver.

I bisected the problem to this patch:

https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/drivers/gpu/drm/udl?id=5dc9e1e87229cb786a5bb58ddd0d60fee6eb4641

With kind regards
Thomas

Am 22.11.2013 17:18 schrieb Daniel Vetter <[email protected]>:

Quoted 28 lines · Thomas Meyer
Quoted 13 lines
Quoted 5 lines

Am 22.11.2013 um 11:55 schrieb Daniel Vetter <[email protected]>:

Quoted 2 lines · Dave Airlie
Quoted 1 line

Hi,

Quoted 7 lines
Quoted 3 lines

cc'ing mailing list,

Daniel any ideas?

Nope, not really :( And no ideas how to triage this further - if it takes 9 days to hit it eventually we'll have a real hard time. Or does this happen even after just a short X run?

Quoted 5 lines

Seems to happen every time while stopping the x server. Also after a short run time.

The current fedora 3.11 kernel doesn't show this bug. I'm using fedora 19, with a self compiled kernel.

I did turn on config-debug-pagealloc but this didn't show any wrongness.

In that case I think the bisect is the fastest way to insight - atm I'm really at loss what could be wrong here.
-Daniel
--
Daniel Vetter
Software Engineer, Intel Corporation
+41 (0) 79 365 57 48 - http://blog.ffwll.ch

#2 lore raw

Am Montag, den 25.11.2013, 08:23 -0500 schrieb Rob Clark:

Quoted 1 line

oh, hmm.. are you importing buffers from i915? It looks like this part:

My computer has an i915 graphic card and I use an USB docking station, that has an unconnected UDL device inside.

Quoted 8 lines

- if (obj->base.import_attach) {
- drm_free_large(obj->pages);
- obj->pages = NULL;
- return;
- }

should not have been removed from udl_gem_put_pages()..

Do you want me to test this? Can this please be fixed in the stable tree?
I removed the UDL driver from my config for now, as I don't use it.

      * 

best regards
thomas

Quoted 45 lines

BR,
-R

Quoted 40 lines · On Mon, Nov 25, 2013 at 8:17 AM, <[email protected]> wrote:

Hi,

It turns out that this seems to be a bug in udl DRM driver.

I bisected the problem to this patch:

https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/drivers/gpu/drm/udl?id=5dc9e1e87229cb786a5bb58ddd0d60fee6eb4641

With kind regards
Thomas

Am 22.11.2013 17:18 schrieb Daniel Vetter <[email protected]>:

Quoted 28 lines · Thomas Meyer
Quoted 13 lines
Quoted 5 lines

Am 22.11.2013 um 11:55 schrieb Daniel Vetter <[email protected]>:

Quoted 2 lines · Dave Airlie
Quoted 1 line

Hi,

Quoted 7 lines
Quoted 3 lines

cc'ing mailing list,

Daniel any ideas?

Nope, not really :( And no ideas how to triage this further - if it takes 9 days to hit it eventually we'll have a real hard time. Or does this happen even after just a short X run?

Quoted 5 lines

Seems to happen every time while stopping the x server. Also after a short run time.

The current fedora 3.11 kernel doesn't show this bug. I'm using fedora 19, with a self compiled kernel.

I did turn on config-debug-pagealloc but this didn't show any wrongness.

In that case I think the bisect is the fastest way to insight - atm I'm really at loss what could be wrong here.
-Daniel
--
Daniel Vetter
Software Engineer, Intel Corporation
+41 (0) 79 365 57 48 - http://blog.ffwll.ch

#3 lore raw
Quoted 13 lines · Thomas Meyer

Am Montag, den 25.11.2013, 08:23 -0500 schrieb Rob Clark:

Quoted 1 line

oh, hmm.. are you importing buffers from i915? It looks like this part:

My computer has an i915 graphic card and I use an USB docking station, that has an unconnected UDL device inside.

Quoted 7 lines

- if (obj->base.import_attach) {
- drm_free_large(obj->pages);
- obj->pages = NULL;
- return;
- }

Quoted 5 lines
Quoted 1 line

should not have been removed from udl_gem_put_pages()..

Do you want me to test this? Can this please be fixed in the stable tree?
I removed the UDL driver from my config for now, as I don't use it.

It would be nice if you could test that (I can send you a patch if you prefer).. I don't actually have any UDL device to confirm. If this fixes the problem, send the patch to stable as well should not be a problem.

BR,
-R

Quoted 52 lines
      *

best regards
thomas

Quoted 45 lines

BR,
-R

Quoted 40 lines · On Mon, Nov 25, 2013 at 8:17 AM, <[email protected]> wrote:

Hi,

It turns out that this seems to be a bug in udl DRM driver.

I bisected the problem to this patch:

https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/drivers/gpu/drm/udl?id=5dc9e1e87229cb786a5bb58ddd0d60fee6eb4641

With kind regards
Thomas

Am 22.11.2013 17:18 schrieb Daniel Vetter <[email protected]>:

Quoted 28 lines · Thomas Meyer
Quoted 13 lines
Quoted 5 lines

Am 22.11.2013 um 11:55 schrieb Daniel Vetter <[email protected]>:

Quoted 2 lines · Dave Airlie
Quoted 1 line

Hi,

Quoted 7 lines
Quoted 3 lines

cc'ing mailing list,

Daniel any ideas?

Nope, not really :( And no ideas how to triage this further - if it takes 9 days to hit it eventually we'll have a real hard time. Or does this happen even after just a short X run?

Quoted 5 lines

Seems to happen every time while stopping the x server. Also after a short run time.

The current fedora 3.11 kernel doesn't show this bug. I'm using fedora 19, with a self compiled kernel.

I did turn on config-debug-pagealloc but this didn't show any wrongness.

In that case I think the bisect is the fastest way to insight - atm I'm really at loss what could be wrong here.
-Daniel
--
Daniel Vetter
Software Engineer, Intel Corporation
+41 (0) 79 365 57 48 - http://blog.ffwll.ch

#4 lore raw

Am Samstag, den 30.11.2013, 08:55 -0500 schrieb Rob Clark:

Quoted 16 lines · Thomas Meyer
Quoted 15 lines

Am Montag, den 25.11.2013, 08:23 -0500 schrieb Rob Clark:

Quoted 1 line

oh, hmm.. are you importing buffers from i915? It looks like this part:

My computer has an i915 graphic card and I use an USB docking station, that has an unconnected UDL device inside.

Quoted 8 lines

- if (obj->base.import_attach) {
- drm_free_large(obj->pages);
- obj->pages = NULL;
- return;
- }

should not have been removed from udl_gem_put_pages()..

Quoted 8 lines
Quoted 3 lines

Do you want me to test this? Can this please be fixed in the stable tree?
I removed the UDL driver from my config for now, as I don't use it.

It would be nice if you could test that (I can send you a patch if you prefer).. I don't actually have any UDL device to confirm. If this fixes the problem, send the patch to stable as well should not be a problem.

I did a quick test and above code makes the bad page bug disappear.

Quoted 57 lines

BR,
-R

Quoted 52 lines
      *

best regards
thomas

Quoted 45 lines

BR,
-R

Quoted 40 lines · On Mon, Nov 25, 2013 at 8:17 AM, <[email protected]> wrote:

Hi,

It turns out that this seems to be a bug in udl DRM driver.

I bisected the problem to this patch:

https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/drivers/gpu/drm/udl?id=5dc9e1e87229cb786a5bb58ddd0d60fee6eb4641

With kind regards
Thomas

Am 22.11.2013 17:18 schrieb Daniel Vetter <[email protected]>:

Quoted 28 lines · Thomas Meyer
Quoted 13 lines
Quoted 5 lines

Am 22.11.2013 um 11:55 schrieb Daniel Vetter <[email protected]>:

Quoted 2 lines · Dave Airlie
Quoted 1 line

Hi,

Quoted 7 lines
Quoted 3 lines

cc'ing mailing list,

Daniel any ideas?

Nope, not really :( And no ideas how to triage this further - if it takes 9 days to hit it eventually we'll have a real hard time. Or does this happen even after just a short X run?

Quoted 5 lines

Seems to happen every time while stopping the x server. Also after a short run time.

The current fedora 3.11 kernel doesn't show this bug. I'm using fedora 19, with a self compiled kernel.

I did turn on config-debug-pagealloc but this didn't show any wrongness.

In that case I think the bisect is the fastest way to insight - atm I'm really at loss what could be wrong here.
-Daniel
--
Daniel Vetter
Software Engineer, Intel Corporation
+41 (0) 79 365 57 48 - http://blog.ffwll.ch