Skip to contentSkip to conversation

Switching to VT freezes X only on a dual screen

Bug 99841 [email protected] 1 participant 15 messages Feb 28, 2017 – Oct 4, 2017 1 message not in the archive

lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=99841

Michel Dänzer <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

          Component|Driver/nouveau              |DRM/other
            Product|xorg                        |DRI
         QA Contact|[email protected]       |
           Assignee|[email protected] |[email protected]
                   |rg                          |.org

--- Comment #9 from Michel Dänzer <[email protected]> --- This also happens with other drivers, seems to be a core DRM issue.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#3 lore raw
In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=99841

--- Comment #11 from Michel Dänzer <[email protected]> --- Somebody needs to bisect this between 4.9 and 4.10-rc1.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#4 lore raw
In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=99841

--- Comment #12 from [email protected] ---
# bad: [7ce7d89f48834cefece7804d38fc5d85382edf77] Linux 4.10-rc1
# good: [69973b830859bc6529a7a0468ba0d80ee5117826] Linux 4.9
git bisect start 'v4.10-rc1' 'v4.9'
# bad: [72cca7baf4fba777b8ab770b902cf2e08941773f] Merge tag 'staging-4.10-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging
git bisect bad 72cca7baf4fba777b8ab770b902cf2e08941773f
# good: [b8d2798f32785398fcd1c48ea80c0c6c5ab88537] Merge tag 'clk-for-linus' of
git://git.kernel.org/pub/scm/linux/kernel/git/clk/linux
git bisect good b8d2798f32785398fcd1c48ea80c0c6c5ab88537
# bad: [9439b3710df688d853eb6cb4851256f2c92b1797] Merge tag 'drm-for-v4.10' of
git://people.freedesktop.org/~airlied/linux
git bisect bad 9439b3710df688d853eb6cb4851256f2c92b1797
# bad: [628d16555e019c0cc6897b603bbea29c3b6d2c9f] Merge tag 'imx-drm-next-2016-11-10' of git://git.pengutronix.de/git/pza/linux into drm-next
git bisect bad 628d16555e019c0cc6897b603bbea29c3b6d2c9f
# bad: [3f767e3d076dd2a24a614917c8f0b05d8d82b90b] drm/amdgpu: just not load smc firmware if smu is already running
git bisect bad 3f767e3d076dd2a24a614917c8f0b05d8d82b90b
# good: [bf9d99ad17ff3d85dc8c807063f76560587d983a] drm/i915/gen9: Make skl_pipe_wm_get_hw_state() reusable
git bisect good bf9d99ad17ff3d85dc8c807063f76560587d983a
# bad: [9405e47dbab33706c43caba72cf8d83b5746f843] drm/amdgpu/virtual_dce: clean up interrupt handling
git bisect bad 9405e47dbab33706c43caba72cf8d83b5746f843
# bad: [d138dd3c0c70979215f3184cf36f95875e37932e] drm: Add support for optional per-plane rotation property
git bisect bad d138dd3c0c70979215f3184cf36f95875e37932e
# bad: [9edbf1fa600a2ef17c7553c2103d0055d0320d15] drm: Add API for capturing frame CRCs
git bisect bad 9edbf1fa600a2ef17c7553c2103d0055d0320d15
# good: [f7741aa75e76440f4e9ecfe512feebe9bce33ca8] drm/savage: dereferencing an error pointer
git bisect good f7741aa75e76440f4e9ecfe512feebe9bce33ca8
# good: [6dffd431e2296cda08e7e4f0242e02df1d1698cd] drm: Add aspect ratio parsing in DRM layer
git bisect good 6dffd431e2296cda08e7e4f0242e02df1d1698cd
# good: [f14f368670541bfa217573194027a58f2206e250] drm/edid: Rename local variable block to edid
git bisect good f14f368670541bfa217573194027a58f2206e250
# bad: [865afb11949e5bf4bb32d9a2aa9867c1ac4d8da0] drm/fb-helper: reject any changes to the fbdev
git bisect bad 865afb11949e5bf4bb32d9a2aa9867c1ac4d8da0
# good: [a28187ccab9410cad20e8808f00cfc07f99649c3] drm/edid: Use block local to refer to the block
git bisect good a28187ccab9410cad20e8808f00cfc07f99649c3

# first bad commit: [865afb11949e5bf4bb32d9a2aa9867c1ac4d8da0] drm/fb-helper:
reject any changes to the fbdev

(Tested on a GTX660/GK106)

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#5 lore raw
In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=99841

--- Comment #13 from Michel Dänzer <[email protected]> --- Created attachment 130207
--> https://bugs.freedesktop.org/attachment.cgi?id=130207&action=edit
Only reject if FBINFO_MISC_USEREVENT is set

Does this patch (only compile tested) help?

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#6 lore raw
In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=99841

--- Comment #14 from [email protected] ---
The patch indeed solves the issue -- VTs work on Linux 4.10.1 with the patch applied.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#7 lore raw
In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=99841

--- Comment #15 from Elimar Riesebieter <[email protected]> --- The patch applied to 4.10.2 works just fine. Applying to 4.11-rc2 gives a compile error:

drivers/gpu/drm/drm_fb_helper.c: In function ‘drm_fb_helper_check_var’:
drivers/gpu/drm/drm_fb_helper.c:1263:32: error: ‘struct drm_framebuffer’ has
no member named ‘bits_per_pixel’

        (var->bits_per_pixel != fb->bits_per_pixel ||
                                  ^~

make[5]: *** [drivers/gpu/drm/drm_fb_helper.o] Error 1

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#8 lore raw
In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=99841

--- Comment #16 from Michel Dänzer <[email protected]> --- Created attachment 130227
--> https://bugs.freedesktop.org/attachment.cgi?id=130227&action=edit
Patch for 4.11

Here's the corresponding patch for 4.11. Elimar, please test this as well.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#9 lore raw
In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=99841

--- Comment #17 from Elimar Riesebieter <[email protected]> --- Thanks Michel for your efforts. Hereby I confirm that your patch against 4.11 works fine as well ;-)

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#10 lore raw
In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=99841

--- Comment #18 from Joseph Thommes <[email protected]> --- The patch also solves the problem for me on 4.10.2-gentoo. Thank You.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#11 lore raw
In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=99841

--- Comment #19 from Peter Mattern <[email protected]> ---
The patch is fixing the problem on an ATI system as well here (Radeon HD 7480D / APU A4-5300, Arch Linux, kernel 4.10.{1-3}).

Is there any way to track when it will be included in mainline?

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#12 lore raw
In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=99841

--- Comment #20 from Jari Tahvanainen <[email protected]> --- Michel and others - landed to drm-tip. Ready for resolved+fixed ? Or even verified...
commit 12ffed96d4369f086261ba2ee734fa8c932d7f55

Author:     Michel Dänzer <[email protected]>
AuthorDate: Thu Mar 23 17:53:26 2017 +0900
Commit:     Daniel Vetter <[email protected]>
CommitDate: Thu Mar 23 15:12:07 2017 +0100
Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#13 lore raw
In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=99841

--- Comment #21 from Michel Dänzer <[email protected]> --- If people are okay with that before it lands in 4.10.y, sure.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#14 lore raw
In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=99841

Elimar Riesebieter <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]

--- Comment #22 from Elimar Riesebieter <[email protected]> --- I am running 4.10.6 patched with Michel's patch. There are no problems switching to vt's and back.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#15 lore raw
In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=99841

mattia.b89 <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

         Resolution|---                         |FIXED
             Status|NEW                         |RESOLVED

--- Comment #23 from mattia.b89 <[email protected]> --- I cannot reproduce it.

That patch has already been merged upstream, maybe?

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel