Discussion:
KMS & Mobility Radeon X1400 (LifeBook N6410): black console on internal display
Davide Manzella
2009-12-18 15:44:01 UTC
Permalink
Hello All,

The system is a Fujitsu-Siemens LifeBook N6410 with on-board
ATI Mobility Radeon X1400.

Testing with vanilla linux-2.6.32 and
libdrm, Mesa, xf86-video-ati all from git (2009-12-15).

I've blacklisted both 'radeon' and 'radeonfb' in /etc/modprobe.d/blacklist.conf
to prevent problems at boot, also I've removed any 'vga=' in
the bootloader (GRUB) configuration.

As root, logged in the first virtual console:
#modprobe radeon

Puff! The internal display turns completely black but...
After several reboots with the tree-finger-salute,
I've come to realize that the system wasn't in hang and thought
about connecting an external monitor to the VGA connector on the back,
just before the modprobe command...
Surprise! That worked and I got a nice 160x64 console.

The next thing I've tryied is a plain 'startx' (no modprobe in advance).
That seems to trigger the 'radeon' autoloading, the X11 server
starts 1440x900 but when I ctl+alt+f1...f6,
I'll stare at a black internal display.

Some interesting lines from syslog:

Dec 17 15:32:55 pancho-11 kernel: [drm] radeon: Initializing kernel modesetting.
Dec 17 15:32:55 pancho-11 kernel: [drm] register mmio base: 0xF0000000
Dec 17 15:32:55 pancho-11 kernel: [drm] register mmio size: 65536
Dec 17 15:32:55 pancho-11 kernel: ATOM BIOS: M54P

[snip]
Dec 17 15:32:55 pancho-11 kernel: [drm] radeon: ib pool ready.
Dec 17 15:32:55 pancho-11 kernel: [drm] ib test succeeded in 0 usecs
Dec 17 15:32:55 pancho-11 kernel: i2c i2c-1: adapter [] registered
Dec 17 15:32:55 pancho-11 kernel: [drm] Radeon Display Connectors
Dec 17 15:32:55 pancho-11 kernel: [drm] Connector 0:
Dec 17 15:32:55 pancho-11 kernel: [drm] VGA
Dec 17 15:32:55 pancho-11 kernel: [drm] DDC: 0x7e40 0x7e40 0x7e44 0x7e44
0x7e48 0x7e48 0x7e4c 0x7e4c
Dec 17 15:32:55 pancho-11 kernel: [drm] Encoders:
Dec 17 15:32:55 pancho-11 kernel: [drm] CRT1: INTERNAL_KLDSCP_DAC1
Dec 17 15:32:55 pancho-11 kernel: [drm] LCD1: INTERNAL_LVTM1
Dec 17 15:32:55 pancho-11 kernel: [drm] Connector 1:
Dec 17 15:32:55 pancho-11 kernel: [drm] S-video
Dec 17 15:32:55 pancho-11 kernel: [drm] Encoders:
Dec 17 15:32:55 pancho-11 kernel: [drm] TV1: INTERNAL_KLDSCP_DAC2
Dec 17 15:32:55 pancho-11 kernel: i2c i2c-1: master_xfer[0] W, addr=0x50, len=1
Dec 17 15:32:55 pancho-11 kernel: i2c i2c-1: master_xfer[1] R, addr=0x50, len=128
Dec 17 15:32:55 pancho-11 kernel: i2c i2c-1: NAK from device addr 0x50 msg #0
Dec 17 15:32:55 pancho-11 kernel: i2c i2c-1: master_xfer[0] W, addr=0x50, len=1
Dec 17 15:32:55 pancho-11 kernel: i2c i2c-1: master_xfer[1] R, addr=0x50, len=1
Dec 17 15:32:55 pancho-11 kernel: i2c i2c-1: NAK from device addr 0x50 msg #0
Dec 17 15:32:55 pancho-11 kernel: ------------[ cut here ]------------
Dec 17 15:32:55 pancho-11 kernel: WARNING: at
drivers/gpu/drm/drm_crtc_helper.c:1032 drm_helper_initial_config+0x36/0x52
[drm_kms_helper]()
Dec 17 15:32:55 pancho-11 kernel: Hardware name: LifeBook N6410
Dec 17 15:32:55 pancho-11 kernel: No connectors reported connected with modes
Dec 17 15:32:55 pancho-11 kernel: Modules linked in: radeon(+) ttm
drm_kms_helper drm i2c_algo_bit ipv6 usbhid usb_storage arc4 ecb firewire_ohci
firewire_core iwl3945 uhci_hcd iwlcore joydev intel_agp ehci_hcd agpgart
crc_itu_t usbcore i2c_i801 tg3 yenta_socket rsrc_nonstatic ohci1394 mac80211
cfg80211 rfkill psmouse libphy pcmcia_core ieee1394 pcspkr
led_class rtc_cmos sg rtc_core serio_raw input_polldev evdev rtc_lib
Dec 17 15:32:55 pancho-11 kernel: Pid: 1675, comm: modprobe Not tainted
2.6.32-o1a #2
Dec 17 15:32:55 pancho-11 kernel: Call Trace:
Dec 17 15:32:55 pancho-11 kernel: [<c1023a4f>] warn_slowpath_common+0x65/0x7c
Dec 17 15:32:55 pancho-11 kernel: [<f8077c64>] ?
drm_helper_initial_config+0x36/0x52 [drm_kms_helper]
Dec 17 15:32:55 pancho-11 kernel: [<c1023a9a>] warn_slowpath_fmt+0x24/0x27
Dec 17 15:32:55 pancho-11 kernel: [<f8077c64>]
drm_helper_initial_config+0x36/0x52 [drm_kms_helper]
Dec 17 15:32:55 pancho-11 kernel: [<f8375ad0>] radeon_modeset_init+0x453/0x45d
[radeon]
Dec 17 15:32:55 pancho-11 kernel: [<f83654a6>] radeon_driver_load_kms+0xbd/0xcb
[radeon]
Dec 17 15:32:55 pancho-11 kernel: [<f80eaa58>] drm_get_dev+0x2c3/0x3a3 [drm]
Dec 17 15:32:55 pancho-11 kernel: [<f83996c4>] radeon_pci_probe+0xd/0x96
[radeon]
Dec 17 15:32:55 pancho-11 kernel: [<c1117176>] local_pci_probe+0xe/0x10
Dec 17 15:32:55 pancho-11 kernel: [<c11177cc>] pci_device_probe+0x43/0x66
Dec 17 15:32:55 pancho-11 kernel: [<c116b45a>] driver_probe_device+0x7e/0xf2
Dec 17 15:32:55 pancho-11 kernel: [<c116b511>] __driver_attach+0x43/0x5f
Dec 17 15:32:55 pancho-11 kernel: [<c116ae7b>] bus_for_each_dev+0x3d/0x67
Dec 17 15:32:55 pancho-11 kernel: [<c116b32e>] driver_attach+0x14/0x16
Dec 17 15:32:55 pancho-11 kernel: [<c116b4ce>] ? __driver_attach+0x0/0x5f
Dec 17 15:32:55 pancho-11 kernel: [<c116a926>] bus_add_driver+0x94/0x1c4
Dec 17 15:32:55 pancho-11 kernel: [<c110786e>] ? kset_find_obj+0x23/0x4e
Dec 17 15:32:55 pancho-11 kernel: [<c116b73f>] driver_register+0x79/0xe0
Dec 17 15:32:55 pancho-11 kernel: [<c1117991>] __pci_register_driver+0x38/0x95
Dec 17 15:32:55 pancho-11 kernel: [<f80e74ac>] drm_init+0x5d/0xb5 [drm]
Dec 17 15:32:55 pancho-11 kernel: [<f80ab000>] ? radeon_init+0x0/0xae [radeon]
Dec 17 15:32:55 pancho-11 kernel: [<f80ab0ac>] radeon_init+0xac/0xae [radeon]
Dec 17 15:32:55 pancho-11 kernel: [<c1001139>] do_one_initcall+0x4c/0x131
Dec 17 15:32:55 pancho-11 kernel: [<c1042ab9>] sys_init_module+0xa7/0x1de
Dec 17 15:32:55 pancho-11 kernel: [<c1002888>] sysenter_do_call+0x12/0x26
Dec 17 15:32:55 pancho-11 kernel: ---[ end trace 99b99882e4dab160 ]---
Dec 17 15:32:55 pancho-11 kernel: [drm] Initialized radeon 2.0.0 20080528 for
0000:01:00.0 on minor 0
Alex Deucher
2009-12-18 16:41:29 UTC
Permalink
Post by Davide Manzella
Hello All,
The system is a Fujitsu-Siemens LifeBook N6410 with on-board
ATI Mobility Radeon X1400.
Testing with vanilla linux-2.6.32 and
libdrm, Mesa, xf86-video-ati all from git (2009-12-15).
I've blacklisted both 'radeon' and 'radeonfb' in /etc/modprobe.d/blacklist.conf
to prevent problems at boot, also I've removed any 'vga=' in
the bootloader (GRUB) configuration.
#modprobe radeon
Puff! The internal display turns completely black but...
After several reboots  with the tree-finger-salute,
I've come to realize that the system wasn't in hang and thought
about connecting an external monitor to the VGA connector on the back,
just before the modprobe command...
Surprise! That worked and I got a nice 160x64 console.
The problem is the video bios on your card has the same ddc line
specified for both LVDS and VGA so they get combined as the same
connector. The attached patch should fix the issue. Can you confirm?
Can you also send me a copy of your video bios?

(as root):
cd /sys/bus/pci/devices/<pci bus id>/
echo 1 > rom
cat rom > /tmp/vbios.rom
echo 0 > rom

Alex
Post by Davide Manzella
The next thing I've tryied is a plain 'startx' (no modprobe in advance).
That seems to trigger the 'radeon' autoloading, the X11 server
starts 1440x900 but when I ctl+alt+f1...f6,
I'll stare at a black internal display.
Dec 17 15:32:55 pancho-11 kernel: [drm] radeon: Initializing kernel modesetting.
Dec 17 15:32:55 pancho-11 kernel: [drm] register mmio base: 0xF0000000
Dec 17 15:32:55 pancho-11 kernel: [drm] register mmio size: 65536
Dec 17 15:32:55 pancho-11 kernel: ATOM BIOS: M54P
[snip]
Dec 17 15:32:55 pancho-11 kernel: [drm] radeon: ib pool ready.
Dec 17 15:32:55 pancho-11 kernel: [drm] ib test succeeded in 0 usecs
Dec 17 15:32:55 pancho-11 kernel: i2c i2c-1: adapter [] registered
Dec 17 15:32:55 pancho-11 kernel: [drm] Radeon Display Connectors
Dec 17 15:32:55 pancho-11 kernel: [drm]   VGA
Dec 17 15:32:55 pancho-11 kernel: [drm]   DDC: 0x7e40 0x7e40 0x7e44 0x7e44
0x7e48 0x7e48 0x7e4c 0x7e4c
Dec 17 15:32:55 pancho-11 kernel: [drm]     CRT1: INTERNAL_KLDSCP_DAC1
Dec 17 15:32:55 pancho-11 kernel: [drm]     LCD1: INTERNAL_LVTM1
Dec 17 15:32:55 pancho-11 kernel: [drm]   S-video
Dec 17 15:32:55 pancho-11 kernel: [drm]     TV1: INTERNAL_KLDSCP_DAC2
Dec 17 15:32:55 pancho-11 kernel: i2c i2c-1: master_xfer[0] W, addr=0x50, len=1
Dec 17 15:32:55 pancho-11 kernel: i2c i2c-1: master_xfer[1] R, addr=0x50, len=128
Dec 17 15:32:55 pancho-11 kernel: i2c i2c-1: NAK from device addr 0x50 msg #0
Dec 17 15:32:55 pancho-11 kernel: i2c i2c-1: master_xfer[0] W, addr=0x50, len=1
Dec 17 15:32:55 pancho-11 kernel: i2c i2c-1: master_xfer[1] R, addr=0x50, len=1
Dec 17 15:32:55 pancho-11 kernel: i2c i2c-1: NAK from device addr 0x50 msg #0
Dec 17 15:32:55 pancho-11 kernel: ------------[ cut here ]------------
Dec 17 15:32:55 pancho-11 kernel: WARNING: at
drivers/gpu/drm/drm_crtc_helper.c:1032 drm_helper_initial_config+0x36/0x52
[drm_kms_helper]()
Dec 17 15:32:55 pancho-11 kernel: Hardware name: LifeBook N6410
Dec 17 15:32:55 pancho-11 kernel: No connectors reported connected with modes
Dec 17 15:32:55 pancho-11 kernel: Modules linked in: radeon(+) ttm
drm_kms_helper drm i2c_algo_bit ipv6 usbhid usb_storage arc4 ecb firewire_ohci
firewire_core iwl3945 uhci_hcd iwlcore joydev intel_agp ehci_hcd agpgart
crc_itu_t usbcore i2c_i801 tg3 yenta_socket rsrc_nonstatic ohci1394 mac80211
cfg80211 rfkill psmouse libphy pcmcia_core ieee1394 pcspkr
led_class rtc_cmos sg rtc_core serio_raw input_polldev evdev rtc_lib
Dec 17 15:32:55 pancho-11 kernel: Pid: 1675, comm: modprobe Not tainted
2.6.32-o1a #2
Dec 17 15:32:55 pancho-11 kernel:  [<c1023a4f>] warn_slowpath_common+0x65/0x7c
Dec 17 15:32:55 pancho-11 kernel:  [<f8077c64>] ?
drm_helper_initial_config+0x36/0x52 [drm_kms_helper]
Dec 17 15:32:55 pancho-11 kernel:  [<c1023a9a>] warn_slowpath_fmt+0x24/0x27
Dec 17 15:32:55 pancho-11 kernel:  [<f8077c64>]
drm_helper_initial_config+0x36/0x52 [drm_kms_helper]
Dec 17 15:32:55 pancho-11 kernel:  [<f8375ad0>] radeon_modeset_init+0x453/0x45d
[radeon]
Dec 17 15:32:55 pancho-11 kernel:  [<f83654a6>] radeon_driver_load_kms+0xbd/0xcb
[radeon]
Dec 17 15:32:55 pancho-11 kernel:  [<f80eaa58>] drm_get_dev+0x2c3/0x3a3 [drm]
Dec 17 15:32:55 pancho-11 kernel:  [<f83996c4>] radeon_pci_probe+0xd/0x96
[radeon]
Dec 17 15:32:55 pancho-11 kernel:  [<c1117176>] local_pci_probe+0xe/0x10
Dec 17 15:32:55 pancho-11 kernel:  [<c11177cc>] pci_device_probe+0x43/0x66
Dec 17 15:32:55 pancho-11 kernel:  [<c116b45a>] driver_probe_device+0x7e/0xf2
Dec 17 15:32:55 pancho-11 kernel:  [<c116b511>] __driver_attach+0x43/0x5f
Dec 17 15:32:55 pancho-11 kernel:  [<c116ae7b>] bus_for_each_dev+0x3d/0x67
Dec 17 15:32:55 pancho-11 kernel:  [<c116b32e>] driver_attach+0x14/0x16
Dec 17 15:32:55 pancho-11 kernel:  [<c116b4ce>] ? __driver_attach+0x0/0x5f
Dec 17 15:32:55 pancho-11 kernel:  [<c116a926>] bus_add_driver+0x94/0x1c4
Dec 17 15:32:55 pancho-11 kernel:  [<c110786e>] ? kset_find_obj+0x23/0x4e
Dec 17 15:32:55 pancho-11 kernel:  [<c116b73f>] driver_register+0x79/0xe0
Dec 17 15:32:55 pancho-11 kernel:  [<c1117991>] __pci_register_driver+0x38/0x95
Dec 17 15:32:55 pancho-11 kernel:  [<f80e74ac>] drm_init+0x5d/0xb5 [drm]
Dec 17 15:32:55 pancho-11 kernel:  [<f80ab000>] ? radeon_init+0x0/0xae [radeon]
Dec 17 15:32:55 pancho-11 kernel:  [<f80ab0ac>] radeon_init+0xac/0xae [radeon]
Dec 17 15:32:55 pancho-11 kernel:  [<c1001139>] do_one_initcall+0x4c/0x131
Dec 17 15:32:55 pancho-11 kernel:  [<c1042ab9>] sys_init_module+0xa7/0x1de
Dec 17 15:32:55 pancho-11 kernel:  [<c1002888>] sysenter_do_call+0x12/0x26
Dec 17 15:32:55 pancho-11 kernel: ---[ end trace 99b99882e4dab160 ]---
Dec 17 15:32:55 pancho-11 kernel: [drm] Initialized radeon 2.0.0 20080528 for
0000:01:00.0 on minor 0
------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev
--
_______________________________________________
Dri-users mailing list
https://lists.sourceforge.net/lists/listinfo/dri-users
Alex Deucher
2009-12-19 16:08:00 UTC
Permalink
---------- Initial Header -----------
Date      : Fri, 18 Dec 2009 11:41:29 -0500
Subject : Re: [Dri-users] KMS & Mobility Radeon X1400 (LifeBook N6410): black  console on internal display
Post by Alex Deucher
The problem is the video bios on your card has the same ddc line
specified for both LVDS and VGA so they get combined as the same
connector.  The attached patch should fix the issue.  Can you confirm?
 Can you also send me a copy of your video bios?
cd /sys/bus/pci/devices/<pci bus id>/
echo 1 > rom
cat rom > /tmp/vbios.rom
echo 0 > rom
Alex
Hello Alex,
Please find in attachement the vbios of the n6410.
I've got a rejected chunk patching vs. linux-2.6.32 tree (vanilla).
Thanks for your time and prompt answers!
|diff --git a/drivers/gpu/drm/radeon/radeon_atombios.c b/drivers/gpu/drm/radeon/radeon_atombios.c
|index b5912c2..321044b 100644
|--- a/drivers/gpu/drm/radeon/radeon_atombios.c
|+++ b/drivers/gpu/drm/radeon/radeon_atombios.c
--------------------------
Patching file drivers/gpu/drm/radeon/radeon_atombios.c using Plan A...
Hunk #1 succeeded at 610 (offset -135 lines).
Hunk #2 FAILED at 622.
1 out of 2 hunks FAILED -- saving rejects to file drivers/gpu/drm/radeon/radeon_atombios.c.rej
Hmm...  Ignoring the trailing garbage.
done
What part got rejected? Can you send me the radeon_atombios.c.rej?
Another alternative is to download the drm-radeon-testing branch:
http://git.kernel.org/?p=linux/kernel/git/airlied/drm-2.6.git;a=shortlog;h=refs/heads/drm-radeon-testing
and apply the patch to that.

Alex
Alex Deucher
2009-12-19 18:48:17 UTC
Permalink
What part got rejected?  Can you send me the radeon_atombios.c.rej?
http://git.kernel.org/?p=linux/kernel/git/airlied/drm-2.6.git;a=shortlog;h=refs/heads/drm-radeon-testing
and apply the patch to that.
Alex
Hi Alex,
Here's the rejected hunk vs. vanilla linux-2.6.32 tree.
Looks like pretty much the whole patch.
Could you confirm the correct 'git' command?
git clone git://git.kernel.org/pub/scm/linux/kernel/git/airlied/drm-2.6.git
yes:
git clone git://git.kernel.org/pub/scm/linux/kernel/git/airlied/drm-2.6.git
cd drm-2.6
git checkout -b drm-radeon-testing origin/drm-radeon-testing

Alex
Cheers,
Daide
Alex Deucher
2009-12-21 15:47:40 UTC
Permalink
---------- Initial Header -----------
Post by Alex Deucher
What part got rejected?  Can you send me the radeon_atombios.c.rej?
http://git.kernel.org/?p=linux/kernel/git/airlied/drm-2.6.git;a=shortlog;h=refs/heads/drm-radeon-testing
and apply the patch to that.
Alex
Hi Alex,
Here's the rejected hunk vs. vanilla linux-2.6.32 tree.
Looks like pretty much the whole patch.
Could you confirm the correct 'git' command?
git clone git://git.kernel.org/pub/scm/linux/kernel/git/airlied/drm-2.6.git
git clone git://git.kernel.org/pub/scm/linux/kernel/git/airlied/drm-2.6.git
cd drm-2.6
git checkout -b drm-radeon-testing origin/drm-radeon-testing
Alex
Eureka! That branch with your patch works great.
I get a 180x56 console, transition between X11 and console
is flawless and takes no noticeable time.
Do you need me to collect any info from the system?
Many thanks for your help, Alex!
Great. Dave should pick up the patch and it will show up in the next kernel.

Alex

Loading...