KMS/radeon regression: failure to set modes on CEDAR & TAHITI; v3.11 vs 3.12-rc5/rc7
Subsystems (2)
(Resending to dri-devel because the first one didn't make it).
I apologize for not sending this sooner, but I wanted to be really sure that I wasn't introducing the bug elsewhere, and I was lacking time to even narrow it down this far.
TL;DR:
3.11 kernel does proper modeset for dual 1920x1200 outputs 3.12-rc5/rc7 kernel fails to do proper modeset, blank screen after radeon loaded
Symptoms:
- With implicit video= modes, after the radeon module loads, both monitors just go blank. Kernel message: radeon 0000:01:00.0: No connectors reported connected with modes X does not visible start, screen stays black.
- With explicit video= modes, after the radeon module loads, both monitors during the kernel boot display very garbled output; after X starts, they are in 1024x768, with no higher modes listed.
Attached are four dmesg [1] runs, on v3.11 vs v3.12-rc7, with both explicit video parameters, and implicit video parameters; as well as drm.debug=0x06 in ALL cases; as well as two xorg logs (both from the implicit variants).
testcase 1 (implicit): modeset=1 fbcon=map:0 drm.debug=0x06
testcase 2 (explicit): video=HDMI-A-1:1920x1200e video=DVI-I-1:1920x1200e modeset=1 fbcon=map:0 drm.debug=0x06
I have produced this bug with three different cards:
CEDAR 0x1002:0x68F9 0x1043:0x03CA (used for all these bug reports) CEDAR 0x1002:0x68F9 0x174B:0xE164
TAHITI 0x1002:0x6798 0x1458:0x2261 (7970, borrowed before)
This happened as far back as 3.12-rc5 for me, but I didn't debug more at the time.
Monitors:
(Left) Dell U2410 via DVI
(Center) Dell U2413 via HDMI
(Right is another U2410, not connected at all)
Userspace:
xorg-server-1.14.3
mesa-9.2.1
xf86-video-ati-7.2.0
I think the error might be and off by one in the connector probing, based on this:
3.11:
[drm:drm_helper_probe_single_connector_modes], [CONNECTOR:15:HDMI-A-1] [drm:radeon_atombios_connected_scratch_regs], DFP1 connected [drm:drm_helper_probe_single_connector_modes], [CONNECTOR:15:HDMI-A-1] probed modes :
3.12-rc7:
[drm:drm_helper_probe_single_connector_modes], [CONNECTOR:16:HDMI-A-1] [drm:radeon_process_i2c_ch], hw_i2c error [drm:radeon_atombios_connected_scratch_regs], DFP1 disconnected [drm:drm_helper_probe_single_connector_modes], [CONNECTOR:16:HDMI-A-1] disconnected
[1] yes I know about the bonding error, that's a separate issue I need to mail to LKML/netdev.
Signature · 4 lines
Robin Hugh Johnson Gentoo Linux: Developer, Trustee & Infrastructure Lead E-Mail : [email protected] GnuPG FP : 11ACBA4F 4778E3F6 E4EDF38E B27B944E 34884E85
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
Quoted 10 lines · Robin H. Johnson
(Resending to dri-devel because the first one didn't make it).
I apologize for not sending this sooner, but I wanted to be really sure that I wasn't introducing the bug elsewhere, and I was lacking time to even narrow it down this far.
TL;DR:
3.11 kernel does proper modeset for dual 1920x1200 outputs 3.12-rc5/rc7 kernel fails to do proper modeset, blank screen after radeon loaded
Can you bisect?
Alex
Quoted 61 lines
Symptoms:
- With implicit video= modes, after the radeon module loads, both monitors just go blank. Kernel message: radeon 0000:01:00.0: No connectors reported connected with modes X does not visible start, screen stays black.
- With explicit video= modes, after the radeon module loads, both monitors during the kernel boot display very garbled output; after X starts, they are in 1024x768, with no higher modes listed.Attached are four dmesg [1] runs, on v3.11 vs v3.12-rc7, with both explicit video parameters, and implicit video parameters; as well as drm.debug=0x06 in ALL cases; as well as two xorg logs (both from the implicit variants).
testcase 1 (implicit): modeset=1 fbcon=map:0 drm.debug=0x06
testcase 2 (explicit): video=HDMI-A-1:1920x1200e video=DVI-I-1:1920x1200e modeset=1 fbcon=map:0 drm.debug=0x06I have produced this bug with three different cards:
CEDAR 0x1002:0x68F9 0x1043:0x03CA (used for all these bug reports) CEDAR 0x1002:0x68F9 0x174B:0xE164
TAHITI 0x1002:0x6798 0x1458:0x2261 (7970, borrowed before)This happened as far back as 3.12-rc5 for me, but I didn't debug more at the time.
Monitors:
(Left) Dell U2410 via DVI
(Center) Dell U2413 via HDMI
(Right is another U2410, not connected at all)Userspace:
xorg-server-1.14.3
mesa-9.2.1
xf86-video-ati-7.2.0I think the error might be and off by one in the connector probing, based on this:
3.11:
[drm:drm_helper_probe_single_connector_modes], [CONNECTOR:15:HDMI-A-1] [drm:radeon_atombios_connected_scratch_regs], DFP1 connected [drm:drm_helper_probe_single_connector_modes], [CONNECTOR:15:HDMI-A-1] probed modes :3.12-rc7:
[drm:drm_helper_probe_single_connector_modes], [CONNECTOR:16:HDMI-A-1] [drm:radeon_process_i2c_ch],hw_i2cerror [drm:radeon_atombios_connected_scratch_regs], DFP1 disconnected [drm:drm_helper_probe_single_connector_modes], [CONNECTOR:16:HDMI-A-1] disconnected[1] yes I know about the bonding error, that's a separate issue I need to mail to LKML/netdev.
--
Robin Hugh Johnson
Gentoo Linux: Developer, Trustee & Infrastructure Lead
E-Mail : [email protected]
GnuPG FP : 11ACBA4F 4778E3F6 E4EDF38E B27B944E 34884E85_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
Quoted 11 lines · Alex Deucher
Quoted 9 lines · Robin H. Johnson
(Resending to dri-devel because the first one didn't make it).
I apologize for not sending this sooner, but I wanted to be really sure that I wasn't introducing the bug elsewhere, and I was lacking time to even narrow it down this far.
TL;DR:
3.11 kernel does proper modeset for dual 1920x1200 outputs 3.12-rc5/rc7 kernel fails to do proper modeset, blank screen after radeon loadedCan you bisect?
I have the next step in the bisect prepared (taking an educated guess and deciding that rc1 was probably also bad, because the changes after rc1 were minimal), but this is my primary box for getting work done; so I haven't rebooted since writing my email and preparing that next kernel.
Signature · 4 lines
Robin Hugh Johnson Gentoo Linux: Developer, Trustee & Infrastructure Lead E-Mail : [email protected] GnuPG FP : 11ACBA4F 4778E3F6 E4EDF38E B27B944E 34884E85
Quoted 11 lines · Robin H. Johnson
Quoted 10 lines · Alex Deucher
Quoted 9 lines · Robin H. Johnson
(Resending to dri-devel because the first one didn't make it).
I apologize for not sending this sooner, but I wanted to be really sure that I wasn't introducing the bug elsewhere, and I was lacking time to even narrow it down this far.
TL;DR:
3.11 kernel does proper modeset for dual 1920x1200 outputs 3.12-rc5/rc7 kernel fails to do proper modeset, blank screen after radeon loaded
Quoted 6 lines
Quoted 1 line
Can you bisect?
I have the next step in the bisect prepared (taking an educated guess and deciding that rc1 was probably also bad, because the changes after rc1 were minimal), but this is my primary box for getting work done; so I haven't rebooted since writing my email and preparing that next kernel.
Culprit likely d1e3b5564834ea24dee6b364a172365f64865fe5 try reverting that one.
Cheers,
Jerome
Quoted 10 lines
Signature · 9 lines
-- Robin Hugh Johnson Gentoo Linux: Developer, Trustee & Infrastructure Lead E-Mail : [email protected] GnuPG FP : 11ACBA4F 4778E3F6 E4EDF38E B27B944E 34884E85 _______________________________________________ dri-devel mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/dri-devel
Quoted 12 lines · Jerome Glisse
Quoted 11 lines · Robin H. Johnson
Quoted 10 lines · Alex Deucher
Quoted 9 lines · Robin H. Johnson
(Resending to dri-devel because the first one didn't make it).
I apologize for not sending this sooner, but I wanted to be really sure that I wasn't introducing the bug elsewhere, and I was lacking time to even narrow it down this far.
TL;DR:
3.11 kernel does proper modeset for dual 1920x1200 outputs 3.12-rc5/rc7 kernel fails to do proper modeset, blank screen after radeon loaded
Quoted 7 lines
Quoted 6 lines
Quoted 1 line
Can you bisect?
I have the next step in the bisect prepared (taking an educated guess and deciding that rc1 was probably also bad, because the changes after rc1 were minimal), but this is my primary box for getting work done; so I haven't rebooted since writing my email and preparing that next kernel.
Culprit likely
d1e3b5564834ea24dee6b364a172365f64865fe5try reverting that one.
Confirmed as the buggy commit via bisect.
Then reverted in 3.12 and 3.12 suddenly works.
Signature · 4 lines
Robin Hugh Johnson Gentoo Linux: Developer, Trustee & Infrastructure Lead E-Mail : [email protected] GnuPG FP : 11ACBA4F 4778E3F6 E4EDF38E B27B944E 34884E85
Quoted 14 lines · Robin H. Johnson
Quoted 13 lines · Jerome Glisse
Quoted 12 lines · Robin H. Johnson
Quoted 11 lines · Alex Deucher
Quoted 9 lines · Robin H. Johnson
(Resending to dri-devel because the first one didn't make it).
I apologize for not sending this sooner, but I wanted to be really sure that I wasn't introducing the bug elsewhere, and I was lacking time to even narrow it down this far.
TL;DR:
3.11 kernel does proper modeset for dual 1920x1200 outputs 3.12-rc5/rc7 kernel fails to do proper modeset, blank screen after radeon loadedCan you bisect?
Quoted 8 lines
Quoted 6 lines
Quoted 5 lines
I have the next step in the bisect prepared (taking an educated guess and deciding that rc1 was probably also bad, because the changes after rc1 were minimal), but this is my primary box for getting work done; so I haven't rebooted since writing my email and preparing that next kernel.
Culprit likely
d1e3b5564834ea24dee6b364a172365f64865fe5try reverting that one.Confirmed as the buggy commit via bisect.
Then reverted in 3.12 and 3.12 suddenly works.
I'm not sure how you would even be hitting those code paths as hw i2c is disabled by default and I don't see it enabled on your kernel command line.
Alex
Quoted 6 lines
--
Robin Hugh Johnson
Gentoo Linux: Developer, Trustee & Infrastructure Lead
E-Mail : [email protected]
GnuPG FP : 11ACBA4F 4778E3F6 E4EDF38E B27B944E 34884E85
Quoted 28 lines · Alex Deucher
Quoted 4 lines · Robin H. Johnson
Quoted 3 lines · Jerome Glisse
Quoted 2 lines · Robin H. Johnson
Quoted 1 line · Alex Deucher
On Wed, Nov 6, 2013 at 12:14 PM, Robin H. Johnson <
Quoted 3 lines · [email protected]> wrote:
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
(Resending to dri-devel because the first one didn't make it).
I apologize for not sending this sooner, but I wanted to be
really sure that I
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
wasn't introducing the bug elsewhere, and I was lacking time to
even narrow it
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
down this far.
TL;DR:
3.11 kernel does proper modeset for dual 1920x1200 outputs 3.12-rc5/rc7 kernel fails to do proper modeset, blank screenafter radeon loaded
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 1 line
Can you bisect?
I have the next step in the bisect prepared (taking an educated guess and deciding that rc1 was probably also bad, because the changes after rc1 were minimal), but this is my primary box for getting work done;
so
Quoted 3 lines
Quoted 3 lines
Quoted 2 lines
I haven't rebooted since writing my email and preparing that next kernel.
Culprit likely
d1e3b5564834ea24dee6b364a172365f64865fe5try revertingthat one.
Quoted 9 lines
Quoted 2 lines
Confirmed as the buggy commit via bisect.
Then reverted in 3.12 and 3.12 suddenly works.I'm not sure how you would even be hitting those code paths as hw i2c is disabled by default and I don't see it enabled on your kernel command line.
Alex
Yep, that was puzzling me too but sometimes the universe just get thing wrongs.
Cheers,
Jerome
Quoted 8 lines
Quoted 7 lines
--
Robin Hugh Johnson
Gentoo Linux: Developer, Trustee & Infrastructure Lead
E-Mail : [email protected]
GnuPG FP : 11ACBA4F 4778E3F6 E4EDF38E B27B944E 34884E85
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
Quoted 6 lines · Alex Deucher
Quoted 3 lines
Quoted 1 line
Culprit likely
d1e3b5564834ea24dee6b364a172365f64865fe5try reverting that one.Confirmed as the buggy commit via bisect.
Then reverted in 3.12 and 3.12 suddenly works.I'm not sure how you would even be hitting those code paths as hw i2c is disabled by default and I don't see it enabled on your kernel command line.
I just wondered about that too, but dug around and found this
$ ls -la /etc/modprobe.d/radeon.conf ; cat /etc/modprobe.d/radeon.conf -rw-r--r-- 1 root root 24 Jul 3 2011 /etc/modprobe.d/radeon.conf options radeon hw_i2c=1
So that answers that. I'd forgotten I even had that set.
Signature · 4 lines
Robin Hugh Johnson Gentoo Linux: Developer, Trustee & Infrastructure Lead E-Mail : [email protected] GnuPG FP : 11ACBA4F 4778E3F6 E4EDF38E B27B944E 34884E85
Quoted 8 lines · Robin H. Johnson
Quoted 1 line · Alex Deucher
Quoted 1 line
Quoted 1 line
Culprit likely
d1e3b5564834ea24dee6b364a172365f64865fe5try revertingthat one.
Quoted 5 lines
Quoted 2 lines
Confirmed as the buggy commit via bisect.
Then reverted in 3.12 and 3.12 suddenly works.I'm not sure how you would even be hitting those code paths as hw i2c is disabled by default and I don't see it enabled on your kernel command line.
Quoted 8 lines
I just wondered about that too, but dug around and found this
$ ls -la /etc/modprobe.d/radeon.conf ; cat /etc/modprobe.d/radeon.conf -rw-r--r-- 1 root root 24 Jul 3 2011 /etc/modprobe.d/radeon.conf options radeon hw_i2c=1So that answers that. I'd forgotten I even had that set.
Still does my patch fix it ?
Cheers,
Jerome
Quoted 6 lines
--
Robin Hugh Johnson
Gentoo Linux: Developer, Trustee & Infrastructure Lead
E-Mail : [email protected]
GnuPG FP : 11ACBA4F 4778E3F6 E4EDF38E B27B944E 34884E85
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
Quoted 11 lines · Robin H. Johnson
Quoted 10 lines · Alex Deucher
Quoted 9 lines · Robin H. Johnson
(Resending to dri-devel because the first one didn't make it).
I apologize for not sending this sooner, but I wanted to be really sure that I wasn't introducing the bug elsewhere, and I was lacking time to even narrow it down this far.
TL;DR:
3.11 kernel does proper modeset for dual 1920x1200 outputs 3.12-rc5/rc7 kernel fails to do proper modeset, blank screen after radeon loaded
Quoted 7 lines
Quoted 1 line
Can you bisect?
I have the next step in the bisect prepared (taking an educated guess and deciding that rc1 was probably also bad, because the changes after rc1 were minimal), but this is my primary box for getting work done; so I haven't rebooted since writing my email and preparing that next kernel.
Possible fix attached.
Cheers,
Jerome
Quoted 10 lines
Signature · 9 lines
Robin Hugh Johnson Gentoo Linux: Developer, Trustee & Infrastructure Lead E-Mail : [email protected] GnuPG FP : 11ACBA4F 4778E3F6 E4EDF38E B27B944E 34884E85 _______________________________________________ dri-devel mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/dri-devel From c3d9451b9183182678e5faa62622992dbff80cdf Mon Sep 17 00:00:00 2001
From: Jerome Glisse <[email protected]>
Date: Wed, 6 Nov 2013 17:42:02 -0500
Subject: [PATCH] radeon/i2c: do not count reg index in number of i2c byte we
are writting.
Useless to count the register index in number of bytes we are writting.
--- drivers/gpu/drm/radeon/atombios_i2c.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)
drivers/gpu/drm/radeon/atombios_i2c.c +4 -2
@@ -56,8 +56,10 @@ static int radeon_process_i2c_ch(struct radeon_i2c_chan *chan,return -EINVAL ; } args.ucRegIndex = buf[0 ]; -if (num >1 ) -memcpy (&out, &buf[1 ], num -1 ); +if (num >1 ) { + num--; +memcpy (&out, &buf[1 ], num); + } args.lpI2CDataOut =cpu_to_le16 (out); }else {if (num >ATOM_MAX_HW_I2C_READ ) {
Signature · 1 line
1.8.3.1
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
Quoted 12 lines · Jerome Glisse
Quoted 11 lines · Robin H. Johnson
Quoted 10 lines · Alex Deucher
Quoted 9 lines · Robin H. Johnson
(Resending to dri-devel because the first one didn't make it).
I apologize for not sending this sooner, but I wanted to be really sure that I wasn't introducing the bug elsewhere, and I was lacking time to even narrow it down this far.
TL;DR:
3.11 kernel does proper modeset for dual 1920x1200 outputs 3.12-rc5/rc7 kernel fails to do proper modeset, blank screen after radeon loaded
Quoted 8 lines
Quoted 7 lines
Quoted 1 line
Can you bisect?
I have the next step in the bisect prepared (taking an educated guess and deciding that rc1 was probably also bad, because the changes after rc1 were minimal), but this is my primary box for getting work done; so I haven't rebooted since writing my email and preparing that next kernel.
Possible fix attached.
I'll test later tonight or tomorrow when I can manage a reboot again.
Signature · 4 lines
Robin Hugh Johnson Gentoo Linux: Developer, Trustee & Infrastructure Lead E-Mail : [email protected] GnuPG FP : 11ACBA4F 4778E3F6 E4EDF38E B27B944E 34884E85