Phoronix Forums  

Go Back   Phoronix Forums > Linux Graphics / X.Org Drivers > Open-Source AMD/ATI Linux

Open-Source AMD/ATI Linux Technical support and discussion of the open-source Radeon, RadeonHD, and Avivo drivers.

Reply
 
Thread Tools Display Modes
  #1  
Old 11-16-2009, 07:48 AM
rvdboom rvdboom is offline
Junior Member
 
Join Date: Jan 2008
Posts: 45
Default Some KMS problem on a MSI S270 laptop

Hi,
I'm currently running KMS with a 2.6.32rc7 kernel with recent git pulls of libdrm, mesa and xf86-video-ati on several of my Slackware-current systems.
On my desktop, with an onboard R*780* chipset (don't remember exactly what), everything works fine and the screen corruptions seens in previous kernels are fixed. I'm really pleased with the results.
On my laptop, who has a Xpress200M chipset, I have some issues at boot. The first try I made with KMS, using the the first kernel supporting them, worked actually very well. But since the 32rc* release, I first had issues that the resolution seemed not properly detected : the screen is supposed to be 1280x800 but the console just used a small part of the screen and X was clearly of low resolution. After one or two switches between "telinit 3" and "telinit 3", X would finally get the resolution right.
With the last 32rc7 kernel, now, with init 4, X doesn't display anything at boot (but seems to start) and the console resolution still seems wrong. If I switch to a console using Ctrl-Alt-F6, then run "telinit 3" then again "telinit 4", this time X start properly and displays the KDE composited desktop correctly.

According to Xorg.0.log, my chipset is a Xpress 200M 5955 PCIE (ChipID=0x5955). AIGLX, DRI2 seems to work well.
The dmesg says the following :

Code:
 bash-3.1$dmesg|grep 'drm'
[drm] Initialized drm 1.1.0 20060810[drm] radeon defaulting to kernel 
modesetting. 
[drm] radeon kernel modesetting enabled.
[drm] radeon: Initializing kernel modesetting.
[drm] register mmio base: 0xFBEF0000
[drm] register mmio size: 65536
[drm] GPU reset succeed (RBBM_STATUS=0x00000140)
[drm:rs400_gart_adjust_size] *ERROR* Forcing to 32M GART size (because of ASIC bug ?)
[drm] Generation 2 PCI interface, using max accessible memory
[drm] radeon: VRAM 128M 
[drm] radeon: VRAM from 0x58000000 to 0x5FFFFFFF
[drm] radeon: GTT 32M
[drm] radeon: GTT from 0x60000000 to 0x61FFFFFF
[drm] radeon: irq initialized.
[drm] Detected VRAM RAM=128M, BAR=256M
[drm] RAM width 128bits DDR
[drm] radeon: 128M of VRAM memory ready
[drm] radeon: 32M of GTT memory ready.
[drm] GART: num cpu pages 8192, num gpu pages 8192
[drm] radeon: 4 quad pipes, 1 z pipes initialized.
[drm] radeon: cp idle (0x10000C03)
[drm] Loading R300 Microcode
[drm] radeon: ring at 0x0000000060000000
[drm] ring test succeeded in 1 usecs
[drm] radeon: ib pool ready.
[drm] ib test succeeded in 0 usecs
[drm] Default TV standard: NTSC
[drm] 14.318180000 MHz TV ref clk
[drm] Panel ID String: AU B121EW01 1280x800WXGA
[drm] Panel Size 1280x800
[drm] Radeon Display Connectors
[drm] Connector 0:
[drm]   VGA
[drm]   DDC: 0x68 0x68 0x68 0x68 0x68 0x68 0x68 0x68
[drm]   Encoders:
[drm]     CRT1: INTERNAL_DAC2
[drm] Connector 1:
[drm]   LVDS
[drm]   Encoders:
[drm]     LCD1: INTERNAL_LVDS
[drm] Connector 2:
[drm]   S-video
[drm]   Encoders:
[drm]     TV1: INTERNAL_DAC2
[drm] fb mappable at 0xD0040000
[drm] vram apper at 0xD0000000
[drm] size 4096000
[drm] fb depth is 24
[drm]    pitch is 5120
[drm] LVDS-11: set mode 1280x800 18
[drm] crtc 1 is connected to a TV
[drm] TV-9: set mode 800x600 19
fb0: radeondrmfb frame buffer device
[drm] Initialized radeon 2.0.0 20080528 for 0000:01:05.0 on minor 0
[drm] not detecting due to 00000004
[drm] not detecting due to 00000004
[drm] not detecting due to 00000004
[drm] not detecting due to 00000004
[drm] LVDS-11: set mode 800x600 1b
[drm] LVDS-11: set mode 1280x800 18
[drm] LVDS-11: set mode 800x600 1d
[drm] not detecting due to 00000004
[drm] not detecting due to 00000004
[drm] not detecting due to 00000004
[drm] not detecting due to 00000004
[drm] not detecting due to 00000004
[drm] not detecting due to 00000004
[drm] LVDS-11: set mode 1280x800 18
[drm] crtc 1 is connected to a TV
[drm] TV-9: set mode 800x600 19
[drm] crtc 1 is connected to a TV
[drm] TV-9: set mode 800x600 19
[drm] crtc 1 is connected to a TV
[drm] TV-9: set mode 800x600 19
[drm] crtc 1 is connected to a TV
[drm] TV-9: set mode 800x600 19
[drm] crtc 1 is connected to a TV
[drm] TV-9: set mode 800x600 19
[drm] crtc 1 is connected to a TV
[drm] TV-9: set mode 800x600 19
bash-3.1$
Is there some manipulation I should make to make this work properly or does this look like a problem I should report?
Reply With Quote
  #2  
Old 11-16-2009, 08:11 AM
dolphin77 dolphin77 is offline
Junior Member
 
Join Date: Nov 2009
Posts: 8
Default

Quote:
Originally Posted by rvdboom View Post
Hi,
I'm currently running KMS with a 2.6.32rc7 kernel with recent git pulls of libdrm, mesa and xf86-video-ati on several of my Slackware-current systems.
On my desktop, with an onboard R*780* chipset (don't remember exactly what), everything works fine and the screen corruptions seens in previous kernels are fixed. I'm really pleased with the results.
On my laptop, who has a Xpress200M chipset, I have some issues at boot. The first try I made with KMS, using the the first kernel supporting them, worked actually very well. But since the 32rc* release, I first had issues that the resolution seemed not properly detected : the screen is supposed to be 1280x800 but the console just used a small part of the screen and X was clearly of low resolution. After one or two switches between "telinit 3" and "telinit 3", X would finally get the resolution right.
With the last 32rc7 kernel, now, with init 4, X doesn't display anything at boot (but seems to start) and the console resolution still seems wrong. If I switch to a console using Ctrl-Alt-F6, then run "telinit 3" then again "telinit 4", this time X start properly and displays the KDE composited desktop correctly.

According to Xorg.0.log, my chipset is a Xpress 200M 5955 PCIE (ChipID=0x5955). AIGLX, DRI2 seems to work well.
The dmesg says the following :

Code:
 bash-3.1$dmesg|grep 'drm'
[drm] Initialized drm 1.1.0 20060810[drm] radeon defaulting to kernel 
modesetting. 
[drm] radeon kernel modesetting enabled.
[drm] radeon: Initializing kernel modesetting.
[drm] register mmio base: 0xFBEF0000
[drm] register mmio size: 65536
[drm] GPU reset succeed (RBBM_STATUS=0x00000140)
[drm:rs400_gart_adjust_size] *ERROR* Forcing to 32M GART size (because of ASIC bug ?)
[drm] Generation 2 PCI interface, using max accessible memory
[drm] radeon: VRAM 128M 
[drm] radeon: VRAM from 0x58000000 to 0x5FFFFFFF
[drm] radeon: GTT 32M
[drm] radeon: GTT from 0x60000000 to 0x61FFFFFF
[drm] radeon: irq initialized.
[drm] Detected VRAM RAM=128M, BAR=256M
[drm] RAM width 128bits DDR
[drm] radeon: 128M of VRAM memory ready
[drm] radeon: 32M of GTT memory ready.
[drm] GART: num cpu pages 8192, num gpu pages 8192
[drm] radeon: 4 quad pipes, 1 z pipes initialized.
[drm] radeon: cp idle (0x10000C03)
[drm] Loading R300 Microcode
[drm] radeon: ring at 0x0000000060000000
[drm] ring test succeeded in 1 usecs
[drm] radeon: ib pool ready.
[drm] ib test succeeded in 0 usecs
[drm] Default TV standard: NTSC
[drm] 14.318180000 MHz TV ref clk
[drm] Panel ID String: AU B121EW01 1280x800WXGA
[drm] Panel Size 1280x800
[drm] Radeon Display Connectors
[drm] Connector 0:
[drm]   VGA
[drm]   DDC: 0x68 0x68 0x68 0x68 0x68 0x68 0x68 0x68
[drm]   Encoders:
[drm]     CRT1: INTERNAL_DAC2
[drm] Connector 1:
[drm]   LVDS
[drm]   Encoders:
[drm]     LCD1: INTERNAL_LVDS
[drm] Connector 2:
[drm]   S-video
[drm]   Encoders:
[drm]     TV1: INTERNAL_DAC2
[drm] fb mappable at 0xD0040000
[drm] vram apper at 0xD0000000
[drm] size 4096000
[drm] fb depth is 24
[drm]    pitch is 5120
[drm] LVDS-11: set mode 1280x800 18
[drm] crtc 1 is connected to a TV
[drm] TV-9: set mode 800x600 19
fb0: radeondrmfb frame buffer device
[drm] Initialized radeon 2.0.0 20080528 for 0000:01:05.0 on minor 0
[drm] not detecting due to 00000004
[drm] not detecting due to 00000004
[drm] not detecting due to 00000004
[drm] not detecting due to 00000004
[drm] LVDS-11: set mode 800x600 1b
[drm] LVDS-11: set mode 1280x800 18
[drm] LVDS-11: set mode 800x600 1d
[drm] not detecting due to 00000004
[drm] not detecting due to 00000004
[drm] not detecting due to 00000004
[drm] not detecting due to 00000004
[drm] not detecting due to 00000004
[drm] not detecting due to 00000004
[drm] LVDS-11: set mode 1280x800 18
[drm] crtc 1 is connected to a TV
[drm] TV-9: set mode 800x600 19
[drm] crtc 1 is connected to a TV
[drm] TV-9: set mode 800x600 19
[drm] crtc 1 is connected to a TV
[drm] TV-9: set mode 800x600 19
[drm] crtc 1 is connected to a TV
[drm] TV-9: set mode 800x600 19
[drm] crtc 1 is connected to a TV
[drm] TV-9: set mode 800x600 19
[drm] crtc 1 is connected to a TV
[drm] TV-9: set mode 800x600 19
bash-3.1$
Is there some manipulation I should make to make this work properly or does this look like a problem I should report?
Not sure, but I think you have issues of initialization of radeon driver before root is mounted and thus it cannot load firware for the driver.

Try to add radeon and radeonfb to blacklist (/etc/modrprobe.d/blacklist). And then load radeon driver from /etc/rc.d/rc.modules, with '/sbin/modprobe radeon'
Reply With Quote
  #3  
Old 11-16-2009, 08:24 AM
rvdboom rvdboom is offline
Junior Member
 
Join Date: Jan 2008
Posts: 45
Default

Thanks for the reply.
I compile the driver (and firmware I guess) in the kernel and don't use modules.
I don't have the problem on my desktop so I would be surprised to have th is very issue on my laptop alone. Except if disk speed is a factor, of course, which I doubt.
I should add that there's also a message in dmesg output which is :

Code:
platform radeon_cp.0: firmware: using built-in firmware radeon/R300_cp.bin
So I guess I'm OK there.
I wonder if it has to do with the following messages :

Code:
[drm] not detecting due to 00000004
Reply With Quote
  #4  
Old 11-16-2009, 10:17 AM
agd5f agd5f is offline
X.Org ATI Driver Developer
 
Join Date: Dec 2007
Posts: 738
Default

TV dac load detection is unreliable on some rs4xx chips and as recently disabled as it often results in false positives:
http://git.kernel.org/?p=linux/kerne...36a87c94b340da
The console issue is due to a tv being detected as connected. If your card does not have a tv-out connector, let me know and post (lspci -vnn) and I'll add a quirk for your card.
Reply With Quote
  #5  
Old 11-16-2009, 10:50 AM
rvdboom rvdboom is offline
Junior Member
 
Join Date: Jan 2008
Posts: 45
Default

Here we go :

Code:
00:00.0 Host bridge [0600]: ATI Technologies Inc RS480 Host Bridge [1002:5950] (rev 10)
	Subsystem: Micro-Star International Co., Ltd. MS-1013 Notebook [1462:0131]
	Flags: bus master, 66MHz, medium devsel, latency 0

00:01.0 PCI bridge [0604]: ATI Technologies Inc RS480 PCI Bridge [1002:5a3f] (prog-if 00 [Normal decode])
	Flags: bus master, 66MHz, medium devsel, latency 64
	Bus: primary=00, secondary=01, subordinate=01, sec-latency=64
	I/O behind bridge: 0000d000-0000dfff
	Memory behind bridge: fbe00000-fbefffff
	Prefetchable memory behind bridge: 00000000d0000000-00000000dfffffff
	Capabilities: [44] HyperTransport: MSI Mapping Enable+ Fixed+
	Capabilities: [b0] Subsystem: ATI Technologies Inc RS480 PCI Bridge [1002:5a3f]

00:13.0 USB Controller [0c03]: ATI Technologies Inc IXP SB400 USB Host Controller [1002:4374] (prog-if 10 [OHCI])
	Subsystem: ATI Technologies Inc IXP SB400 USB Host Controller [1002:4374]
	Flags: bus master, 66MHz, medium devsel, latency 64, IRQ 19
	Memory at fbdfd000 (32-bit, non-prefetchable) [size=4K]
	Capabilities: [d0] MSI: Enable- Count=1/1 Maskable- 64bit-
	Kernel driver in use: ohci_hcd

00:13.1 USB Controller [0c03]: ATI Technologies Inc IXP SB400 USB Host Controller [1002:4375] (prog-if 10 [OHCI])
	Subsystem: ATI Technologies Inc IXP SB400 USB Host Controller [1002:4375]
	Flags: bus master, 66MHz, medium devsel, latency 64, IRQ 19
	Memory at fbdfe000 (32-bit, non-prefetchable) [size=4K]
	Capabilities: [d0] MSI: Enable- Count=1/1 Maskable- 64bit-
	Kernel driver in use: ohci_hcd

00:13.2 USB Controller [0c03]: ATI Technologies Inc IXP SB400 USB2 Host Controller [1002:4373] (prog-if 20 [EHCI])
	Subsystem: ATI Technologies Inc IXP SB400 USB2 Host Controller [1002:4373]
	Flags: bus master, 66MHz, medium devsel, latency 64, IRQ 19
	Memory at fbdff000 (32-bit, non-prefetchable) [size=4K]
	Capabilities: [dc] Power Management version 2
	Capabilities: [d0] MSI: Enable- Count=1/1 Maskable- 64bit-
	Kernel driver in use: ehci_hcd

00:14.0 SMBus [0c05]: ATI Technologies Inc IXP SB400 SMBus Controller [1002:4372] (rev 10)
	Subsystem: Micro-Star International Co., Ltd. MS-1013 Notebook [1462:0131]
	Flags: 66MHz, medium devsel
	I/O ports at c800 [size=16]
	Memory at fbdfc400 (32-bit, non-prefetchable) [size=1K]
	Capabilities: [b0] HyperTransport: MSI Mapping Enable- Fixed+

00:14.1 IDE interface [0101]: ATI Technologies Inc IXP SB400 IDE Controller [1002:4376] (prog-if 8a [Master SecP PriP])
	Subsystem: Micro-Star International Co., Ltd. MS-1013 Notebook [1462:0131]
	Flags: bus master, 66MHz, medium devsel, latency 64, IRQ 16
	I/O ports at 01f0 [size=8]
	I/O ports at 03f4 [size=1]
	I/O ports at 0170 [size=8]
	I/O ports at 0374 [size=1]
	I/O ports at ff00 [size=16]
	Capabilities: [70] MSI: Enable- Count=1/1 Maskable- 64bit-
	Kernel driver in use: pata_atiixp

00:14.3 ISA bridge [0601]: ATI Technologies Inc IXP SB400 PCI-ISA Bridge [1002:4377]
	Flags: bus master, 66MHz, medium devsel, latency 0

00:14.4 PCI bridge [0604]: ATI Technologies Inc IXP SB400 PCI-PCI Bridge [1002:4371] (prog-if 01 [Subtractive decode])
	Flags: bus master, 66MHz, medium devsel, latency 64
	Bus: primary=00, secondary=02, subordinate=07, sec-latency=64
	I/O behind bridge: 0000e000-0000efff
	Memory behind bridge: fbf00000-fbffffff
	Prefetchable memory behind bridge: 60000000-69ffffff

00:14.5 Multimedia audio controller [0401]: ATI Technologies Inc IXP SB400 AC'97 Audio Controller [1002:4370] (rev 01)
	Subsystem: Micro-Star International Co., Ltd. MS-1013 Notebook [1462:0131]
	Flags: bus master, 66MHz, slow devsel, latency 64, IRQ 17
	Memory at fbdfc800 (32-bit, non-prefetchable) [size=256]
	Capabilities: [40] MSI: Enable- Count=1/1 Maskable- 64bit-
	Kernel driver in use: ATI IXP AC97 controller

00:14.6 Modem [0703]: ATI Technologies Inc SB400 AC'97 Modem Controller [1002:4378] (rev 01) (prog-if 00 [Generic])
	Subsystem: Micro-Star International Co., Ltd. MS-1013 Notebook [1462:0131]
	Flags: bus master, 66MHz, slow devsel, latency 64, IRQ 17
	Memory at fbdfcc00 (32-bit, non-prefetchable) [size=256]
	Capabilities: [40] MSI: Enable- Count=1/1 Maskable- 64bit-
	Kernel driver in use: ATI IXP MC97 controller

00:18.0 Host bridge [0600]: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] HyperTransport Technology Configuration [1022:1100]
	Flags: fast devsel
	Capabilities: [80] HyperTransport: Host or Secondary Interface

00:18.1 Host bridge [0600]: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] Address Map [1022:1101]
	Flags: fast devsel

00:18.2 Host bridge [0600]: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] DRAM Controller [1022:1102]
	Flags: fast devsel

00:18.3 Host bridge [0600]: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] Miscellaneous Control [1022:1103]
	Flags: fast devsel
	Kernel driver in use: k8temp

01:05.0 VGA compatible controller [0300]: ATI Technologies Inc Radeon XPRESS 200M 5955 (PCIE) [1002:5955] (prog-if 00 [VGA controller])
	Subsystem: Micro-Star International Co., Ltd. MS-1013 Notebook [1462:0131]
	Flags: bus master, 66MHz, medium devsel, latency 64, IRQ 17
	Memory at d0000000 (32-bit, prefetchable) [size=256M]
	I/O ports at d800 [size=256]
	Memory at fbef0000 (32-bit, non-prefetchable) [size=64K]
	Expansion ROM at fbec0000 [disabled] [size=128K]
	Capabilities: [50] Power Management version 2
	Kernel driver in use: radeon

02:03.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ [10ec:8139] (rev 10)
	Subsystem: Micro-Star International Co., Ltd. MS-1013 Notebook [1462:0131]
	Flags: bus master, medium devsel, latency 64, IRQ 18
	I/O ports at e800 [size=256]
	Memory at fbfffc00 (32-bit, non-prefetchable) [size=256]
	Expansion ROM at 68000000 [disabled] [size=64K]
	Capabilities: [50] Power Management version 2
	Kernel driver in use: 8139too

02:04.0 CardBus bridge [0607]: Ricoh Co Ltd RL5c476 II [1180:0476] (rev ac)
	Subsystem: Micro-Star International Co., Ltd. Device [1462:0131]
	Flags: bus master, medium devsel, latency 168, IRQ 19
	Memory at fbf00000 (32-bit, non-prefetchable) [size=4K]
	Bus: primary=02, secondary=03, subordinate=03, sec-latency=176
	Memory window 0: 60000000-63fff000 (prefetchable)
	Memory window 1: 6c000000-6ffff000
	I/O window 0: 0000e000-0000e0ff
	I/O window 1: 0000e400-0000e4ff
	16-bit legacy interface ports at 0001
	Kernel driver in use: yenta_cardbus

02:04.1 CardBus bridge [0607]: Ricoh Co Ltd RL5c476 II [1180:0476] (rev ac)
	Subsystem: Micro-Star International Co., Ltd. Device [1462:0131]
	Flags: bus master, medium devsel, latency 168, IRQ 20
	Memory at fbf01000 (32-bit, non-prefetchable) [size=4K]
	Bus: primary=02, secondary=04, subordinate=07, sec-latency=176
	Memory window 0: 64000000-67fff000 (prefetchable)
	Memory window 1: 70000000-73fff000
	I/O window 0: 0000ec00-0000ecff
	I/O window 1: 00001000-000010ff
	16-bit legacy interface ports at 0001
	Kernel driver in use: yenta_cardbus

02:04.2 FireWire (IEEE 1394) [0c00]: Ricoh Co Ltd R5C552 IEEE 1394 Controller [1180:0552] (rev 04) (prog-if 10 [OHCI])
	Subsystem: Micro-Star International Co., Ltd. Device [1462:0131]
	Flags: bus master, medium devsel, latency 64, IRQ 21
	Memory at fbfff000 (32-bit, non-prefetchable) [size=2K]
	Capabilities: [dc] Power Management version 2
	Kernel driver in use: firewire_ohci

02:09.0 Network controller [0280]: RaLink RT2500 802.11g Cardbus/mini-PCI [1814:0201] (rev 01)
	Subsystem: Micro-Star International Co., Ltd. Unknown 802.11g mini-PCI Adapter [1462:6833]
	Flags: bus master, slow devsel, latency 64, IRQ 22
	Memory at fbffc000 (32-bit, non-prefetchable) [size=8K]
	Capabilities: [40] Power Management version 2
	Kernel driver in use: rt2500pci
Thanks for the feedback!
Reply With Quote
  #6  
Old 11-16-2009, 10:51 AM
agd5f agd5f is offline
X.Org ATI Driver Developer
 
Join Date: Dec 2007
Posts: 738
Default

Does your card have a tv-out connector or not?
Reply With Quote
  #7  
Old 11-16-2009, 10:55 AM
rvdboom rvdboom is offline
Junior Member
 
Join Date: Jan 2008
Posts: 45
Default

Sorry, overlooked that.
No, I don't see any such output connector on the laptop.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 05:07 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Copyright ©2004 - 2009 by Phoronix Media.