Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 5 May 2003 08:53:44 -0700 (PDT)
From:      Chuck McCrobie <mccrobie2000@yahoo.com>
To:        freebsd-current@freebsd.org
Subject:   Recent -current breaks XFree886 4.3 Radeon Auto-detection of Attached Monitors
Message-ID:  <20030505155344.98409.qmail@web14806.mail.yahoo.com>

index | next in thread | raw e-mail

[-- Attachment #1 --]
Hello,

It seems either -current or XFree86 has broken the
auto-detection of attached monitors for Radeon
Mobility chipsets.

I get an X server crash of:

----------- XServer crash

Program terminated with signal 6, Aborted.
Reading symbols from /usr/lib/libz.so.2...done.
Loaded symbols for /usr/lib/libz.so.2
Reading symbols from /usr/lib/libm.so.2...done.
Loaded symbols for /usr/lib/libm.so.2
Reading symbols from /usr/lib/libc.so.5...done.
Loaded symbols for /usr/lib/libc.so.5
Reading symbols from /usr/libexec/ld-elf.so.1...done.
Loaded symbols for /usr/libexec/ld-elf.so.1
#0  0x2829e393 in kill () from /usr/lib/libc.so.5
(gdb) bt
#0  0x2829e393 in kill () from /usr/lib/libc.so.5
#1  0x2830916c in abort () from /usr/lib/libc.so.5
#2  0x0806cc55 in ddxGiveUp () at xf86Init.c:1139
#3  0x0806cd28 in AbortDDX () at xf86Init.c:1190
#4  0x080ff054 in AbortServer () at utils.c:436
#5  0x08100bbe in FatalError (f=0x81ed0e0 "Caught
signal %d.  Server aborting\n") at utils.c:1392
#6  0x0808732e in xf86SigHandler (signo=11) at
xf86Events.c:1222
#7  <signal handler called>
#8  0x088dbcf1 in ?? ()
#9  0x088dc142 in ?? ()
#10 0x088e1b3d in ?? ()
#11 0x0806bbb7 in InitOutput (pScreenInfo=0x82462e0,
argc=1, argv=0xbfbffbd4) at xf86Init.c:540
#12 0x080df965 in main (argc=1, argv=0xbfbffbd4,
envp=0xbfbffbdc) at main.c:361
#13 0x0806af85 in _start ()

---------------

Frames 8, 9, and 10 are in the radeon_driver.c module.

I can run the XServer, get the crash, then
gdb> call LoaderPrintAddress(0x088dbcf1) (from Frame
8).  This produces, eventually,  RADEONMinBits+d69,
which is the line below:

1360:   (info->VBIOS && (INREG(RADEON_BIOS_4_SCRATCH)
& 4))) {

INREG is defined as:

radeon_macros.h:#define INREG(addr)        
MMIO_IN32(RADEONMMIO, addr)

and MMIO_IN32 is defined as:
xc/programs/Xserver/hw/xfree86/common/compiler.h:1714

#  define MMIO_IN32(base, offset) \
        *(volatile CARD32 *)(void *)(((CARD8*)(base))
+ (offset))

RADEON_BIOS_4_SCRATCH is defined as:  

radeon_reg.h:#define RADEON_BIOS_4_SCRATCH            
  0x0020

XFree86.0.log reports:

(--) RADEON(0): MMIO registers at 0xe8100000

---------------- dmesg output attached -------------

Specifically:

May  5 11:08:38 falcon kernel: agp0: <Intel 82845 host
to AGP bridge> mem 0xec000000-0xefffffff at device 0.0
on pci0
May  5 11:08:38 falcon kernel: pcib1: <ACPI PCI-PCI
bridge> at device 1.0 on pci0
May  5 11:08:38 falcon kernel: pci1: <ACPI PCI bus> on
pcib1
May  5 11:08:38 falcon kernel: pcib1: slot 0 INTA is
routed to irq 9
May  5 11:08:38 falcon kernel: drm0: <ATI Radeon LW
Mobility 7500 M7> port 0x3000-0x30ff mem
0xe8100000-0xe810ffff,0xf0000000-0xf7ff
ffff irq 9 at device 0.0 on pci1
May  5 11:08:38 falcon kernel: info: [drm] AGP at
0xec000000 64MB
May  5 11:08:38 falcon kernel: info: [drm] Initialized
radeon 1.8.0 20020828 on minor 0

----------

The radeon_driver.c does support the Screen option of:

Option "MonitorLayout" "LVDS, NONE"

If I use this, the auto-detection is skipped and the X
Server starts normally.

At this point, I assume this is some type of bus space
reference problem.  Unfortunately, the rest of the
driver seems to reference INREG successfully, etc.

Help is appreciated,

Chuck McCrobie
mccrobie2000@yahoo.com





__________________________________
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo.
http://search.yahoo.com
[-- Attachment #2 --]
May  5 11:08:38 falcon kernel: Copyright (c) 1992-2003 The FreeBSD Project.
May  5 11:08:38 falcon kernel: Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
May  5 11:08:38 falcon kernel: The Regents of the University of California. All rights reserved.
May  5 11:08:38 falcon kernel: FreeBSD 5.0-CURRENT #1: Mon May  5 11:06:51 EDT 2003
May  5 11:08:38 falcon kernel: root@falcon:/usr/src/sys/i386/compile/cvsup
May  5 11:08:38 falcon kernel: Preloaded elf kernel "/boot/cvsup/kernel" at 0xc06d4000.
May  5 11:08:38 falcon kernel: Preloaded elf module "/boot/cvsup/snd_pcm.ko" at 0xc06d4294.
May  5 11:08:38 falcon kernel: Preloaded elf module "/boot/cvsup/snd_ich.ko" at 0xc06d4340.
May  5 11:08:38 falcon kernel: Preloaded elf module "/boot/cvsup/radeon.ko" at 0xc06d43ec.
May  5 11:08:38 falcon kernel: Preloaded elf module "/boot/cvsup/acpi.ko" at 0xc06d4498.
May  5 11:08:38 falcon kernel: module_register: module pci/DRIVER_NAME already exists!
May  5 11:08:38 falcon kernel: Module pci/DRIVER_NAME failed to register: 17
May  5 11:08:38 falcon kernel: Timecounter "i8254"  frequency 1193182 Hz
May  5 11:08:38 falcon kernel: Timecounter "TSC"  frequency 1988515544 Hz
May  5 11:08:38 falcon kernel: CPU: Mobile Intel(R) Pentium(R) 4 - M CPU 2.00GHz (1988.52-MHz 686-class CPU)
May  5 11:08:38 falcon kernel: Origin = "GenuineIntel"  Id = 0xf27  Stepping = 7
May  5 11:08:38 falcon kernel: Features=0xbfebf9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE>
May  5 11:08:38 falcon kernel: real memory  = 536346624 (511 MB)
May  5 11:08:38 falcon kernel: avail memory = 513499136 (489 MB)
May  5 11:08:38 falcon kernel: Pentium Pro MTRR support enabled
May  5 11:08:38 falcon kernel: npx0: <math processor> on motherboard
May  5 11:08:38 falcon kernel: npx0: INT 16 interface
May  5 11:08:38 falcon kernel: acpi0: <SONY B0> on motherboard
May  5 11:08:38 falcon kernel: pcibios: BIOS version 2.10
May  5 11:08:38 falcon kernel: Using $PIR table, 7 entries at 0xc00fdf50
May  5 11:08:38 falcon kernel: ACPI-0351: *** Error: Could not install PciConfig handler for PCI0, AE_ALREADY_EXISTS
May  5 11:08:38 falcon last message repeated 2 times
May  5 11:08:38 falcon kernel: Timecounter "ACPI-fast"  frequency 3579545 Hz
May  5 11:08:38 falcon kernel: ACPI-0351: *** Error: Could not install PciConfig handler for PCI0, AE_ALREADY_EXISTS
May  5 11:08:38 falcon kernel: acpi_timer0: <24-bit timer at 3.579545MHz> port 0x1008-0x100b on acpi0
May  5 11:08:38 falcon kernel: acpi_cpu0: <CPU> on acpi0
May  5 11:08:38 falcon kernel: acpi_tz0: <thermal zone> on acpi0
May  5 11:08:38 falcon kernel: acpi_lid0: <Control Method Lid Switch> on acpi0
May  5 11:08:38 falcon kernel: acpi_button0: <Power Button> on acpi0
May  5 11:08:38 falcon kernel: pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
May  5 11:08:38 falcon kernel: pci0: <ACPI PCI bus> on pcib0
May  5 11:08:38 falcon kernel: pcib0: slot 29 INTA is routed to irq 9
May  5 11:08:38 falcon kernel: pcib0: slot 29 INTB is routed to irq 9
May  5 11:08:38 falcon kernel: pcib0: possible interrupts:  9
May  5 11:08:38 falcon kernel: pcib0: slot 31 INTB routed to irq 9 via \_SB_.LNKB
May  5 11:08:38 falcon kernel: agp0: <Intel 82845 host to AGP bridge> mem 0xec000000-0xefffffff at device 0.0 on pci0
May  5 11:08:38 falcon kernel: pcib1: <ACPI PCI-PCI bridge> at device 1.0 on pci0
May  5 11:08:38 falcon kernel: pci1: <ACPI PCI bus> on pcib1
May  5 11:08:38 falcon kernel: pcib1: slot 0 INTA is routed to irq 9
May  5 11:08:38 falcon kernel: drm0: <ATI Radeon LW Mobility 7500 M7> port 0x3000-0x30ff mem 0xe8100000-0xe810ffff,0xf0000000-0xf7ffffff irq 9 at device 0.0 on pci1
May  5 11:08:38 falcon kernel: info: [drm] AGP at 0xec000000 64MB
May  5 11:08:38 falcon kernel: info: [drm] Initialized radeon 1.8.0 20020828 on minor 0
May  5 11:08:38 falcon kernel: uhci0: <Intel 82801CA/CAM (ICH3) USB controller USB-A> port 0x1800-0x181f irq 9 at device 29.0 on pci0
May  5 11:08:38 falcon kernel: usb0: <Intel 82801CA/CAM (ICH3) USB controller USB-A> on uhci0
May  5 11:08:38 falcon kernel: usb0: USB revision 1.0
May  5 11:08:38 falcon kernel: uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
May  5 11:08:38 falcon kernel: uhub0: 2 ports with 2 removable, self powered
May  5 11:08:38 falcon kernel: umass0: IMC KanguruMicro, rev 1.00/1.00, addr 2
May  5 11:08:38 falcon kernel: uhci1: <Intel 82801CA/CAM (ICH3) USB controller USB-B> port 0x1820-0x183f irq 9 at device 29.1 on pci0
May  5 11:08:38 falcon kernel: usb1: <Intel 82801CA/CAM (ICH3) USB controller USB-B> on uhci1
May  5 11:08:38 falcon kernel: usb1: USB revision 1.0
May  5 11:08:38 falcon kernel: uhub1: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
May  5 11:08:38 falcon kernel: uhub1: 2 ports with 2 removable, self powered
May  5 11:08:38 falcon kernel: ums0: Primax Electronics product 0x4d03, rev 1.00/4.41, addr 2, iclass 3/1
May  5 11:08:38 falcon kernel: ums0: 3 buttons and Z dir.
May  5 11:08:38 falcon kernel: ukbd0: Logitech Logitech USB Keyboard, rev 1.10/15.00, addr 3, iclass 3/1
May  5 11:08:38 falcon kernel: kbd1 at ukbd0
May  5 11:08:38 falcon kernel: uhci2: <Intel 82801CA/CAM (ICH3) USB controller USB-C> port 0x1840-0x185f at device 29.2 on pci0
May  5 11:08:38 falcon kernel: pcib0: possible interrupts:  9
May  5 11:08:38 falcon kernel: pcib0: slot 29 INTC routed to irq 9 via \_SB_.LNKC
May  5 11:08:38 falcon kernel: usb2: <Intel 82801CA/CAM (ICH3) USB controller USB-C> on uhci2
May  5 11:08:38 falcon kernel: usb2: USB revision 1.0
May  5 11:08:38 falcon kernel: uhub2: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
May  5 11:08:38 falcon kernel: uhub2: 2 ports with 2 removable, self powered
May  5 11:08:38 falcon kernel: umass1: Sony USB Memory Stick Slot, rev 1.10/1.09, addr 2
May  5 11:08:38 falcon kernel: pcib2: <ACPI PCI-PCI bridge> at device 30.0 on pci0
May  5 11:08:38 falcon kernel: pci2: <ACPI PCI bus> on pcib2
May  5 11:08:38 falcon kernel: pcib2: possible interrupts:  9
May  5 11:08:38 falcon kernel: pcib2: slot 5 INTA routed to irq 9 via \_SB_.LNKF
May  5 11:08:38 falcon kernel: pcib2: slot 8 INTA is routed to irq 9
May  5 11:08:38 falcon kernel: pci2: <bridge, PCI-CardBus> at device 5.0 (no driver attached)
May  5 11:08:38 falcon kernel: pci2: <bridge, PCI-CardBus> at device 5.1 (no driver attached)
May  5 11:08:38 falcon kernel: pci2: <serial bus, FireWire> at device 5.2 (no driver attached)
May  5 11:08:38 falcon kernel: fxp0: <Intel 82801CAM (ICH3) Pro/100 VE Ethernet> port 0x4000-0x403f mem 0xe8200000-0xe8200fff irq 9 at device 8.0 on pci2
May  5 11:08:38 falcon kernel: fxp0: Ethernet address 08:00:46:79:fe:3b
May  5 11:08:38 falcon kernel: miibus0: <MII bus> on fxp0
May  5 11:08:38 falcon kernel: inphy0: <i82562ET 10/100 media interface> on miibus0
May  5 11:08:38 falcon kernel: inphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
May  5 11:08:38 falcon kernel: isab0: <PCI-ISA bridge> at device 31.0 on pci0
May  5 11:08:38 falcon kernel: isa0: <ISA bus> on isab0
May  5 11:08:38 falcon kernel: atapci0: <Intel ICH3 UDMA100 controller> port 0x1860-0x186f,0x374-0x377,0x170-0x177,0x3f4-0x3f7,0x1f0-0x1f7 mem 0xe8000000-0xe80003ff at device 31.1 on pci0
May  5 11:08:38 falcon kernel: ata0: at 0x1f0 irq 14 on atapci0
May  5 11:08:38 falcon kernel: ata1: at 0x170 irq 15 on atapci0
May  5 11:08:38 falcon kernel: pci0: <serial bus, SMBus> at device 31.3 (no driver attached)
May  5 11:08:38 falcon kernel: pcm0: <Intel 82801CA (ICH3)> port 0x18c0-0x18ff,0x1c00-0x1cff irq 9 at device 31.5 on pci0
May  5 11:08:38 falcon kernel: pcm0: <Yamaha YMF753 AC97 Codec>
May  5 11:08:38 falcon kernel: pci0: <simple comms> at device 31.6 (no driver attached)
May  5 11:08:38 falcon kernel: atkbdc0: <Keyboard controller (i8042)> port 0x64,0x60 irq 1 on acpi0
May  5 11:08:38 falcon kernel: atkbd0: <AT Keyboard> flags 0x1 irq 1 on atkbdc0
May  5 11:08:38 falcon kernel: kbd0 at atkbd0
May  5 11:08:38 falcon kernel: psm0: <PS/2 Mouse> irq 12 on atkbdc0
May  5 11:08:38 falcon kernel: psm0: model Generic PS/2 mouse, device ID 0
May  5 11:08:38 falcon kernel: acpi_ec0: <embedded controller> port 0x66,0x62 on acpi0
May  5 11:08:38 falcon kernel: sio0 port 0x3f8-0x3ff irq 4 on acpi0
May  5 11:08:38 falcon kernel: sio0: type 16550A
May  5 11:08:38 falcon kernel: ppc0 port 0x778-0x77f,0x378-0x37f irq 7 drq 3 on acpi0
May  5 11:08:38 falcon kernel: ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode
May  5 11:08:38 falcon kernel: ppc0: FIFO with 16/16/15 bytes threshold
May  5 11:08:38 falcon kernel: ppbus0: <Parallel port bus> on ppc0
May  5 11:08:38 falcon kernel: plip0: <PLIP network interface> on ppbus0
May  5 11:08:38 falcon kernel: lpt0: <Printer> on ppbus0
May  5 11:08:38 falcon kernel: lpt0: Interrupt-driven port
May  5 11:08:38 falcon kernel: ppi0: <Parallel I/O> on ppbus0
May  5 11:08:38 falcon kernel: acpi_cmbat0: <Control method Battery> on acpi0
May  5 11:08:38 falcon kernel: acpi_cmbat1: <Control method Battery> on acpi0
May  5 11:08:38 falcon kernel: acpi_acad0: <AC adapter> on acpi0
May  5 11:08:38 falcon kernel: orm0: <Option ROMs> at iomem 0xdc000-0xdffff,0xd8000-0xdbfff,0xc0000-0xcffff on isa0
May  5 11:08:38 falcon kernel: pmtimer0 on isa0
May  5 11:08:38 falcon kernel: fdc0: ready for input in output
May  5 11:08:38 falcon kernel: fdc0: cmd 3 failed at out byte 1 of 3
May  5 11:08:38 falcon kernel: sc0: <System console> at flags 0x100 on isa0
May  5 11:08:38 falcon kernel: sc0: VGA <16 virtual consoles, flags=0x300>
May  5 11:08:38 falcon kernel: sio1: configured irq 3 not in bitmap of probed irqs 0
May  5 11:08:38 falcon kernel: sio1: port may not be enabled
May  5 11:08:38 falcon kernel: spic0: device model type = 2
May  5 11:08:38 falcon kernel: spic0: <Sony Programmable I/O Controller> at port 0x10a0-0x10a4 irq 11 on isa0
May  5 11:08:38 falcon kernel: vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
May  5 11:08:38 falcon kernel: Timecounters tick every 10.000 msec
May  5 11:08:38 falcon kernel: acpi_cpu: throttling enabled, 8 steps (100% to 12.5%), currently 100.0%
May  5 11:08:38 falcon kernel: ad0: 38154MB <TOSHIBA MK4018GAS> [77520/16/63] at ata0-master UDMA100
May  5 11:08:38 falcon kernel: acd0: DVD-R <TOSHIBA DVD-ROM SD-R6012> at ata1-master UDMA33
May  5 11:08:38 falcon kernel: WARNING: Expected rawoffset 33559785, found 0
May  5 11:08:38 falcon kernel: WARNING: Expected rawoffset 54042660, found 0
May  5 11:08:38 falcon kernel: (probe5:umass-sim1:1:0:0): INQUIRY. CDB: 12 0 0 0 24 0 
May  5 11:08:38 falcon kernel: (probe5:umass-sim1:1:0:0): CAM Status: SCSI Status Error
May  5 11:08:38 falcon kernel: (probe5:umass-sim1:1:0:0): SCSI Status: Check Condition
May  5 11:08:38 falcon kernel: (probe5:umass-sim1:1:0:0): NOT READY asc:3a,0
May  5 11:08:38 falcon kernel: (probe5:umass-sim1:1:0:0): Medium not present
May  5 11:08:38 falcon kernel: (probe5:umass-sim1:1:0:0): Unretryable error
May  5 11:08:38 falcon kernel: cd0 at ata1 bus 0 target 0 lun 0
May  5 11:08:38 falcon kernel: cd0: <TOSHIBA DVD-ROM SD-R6012 1S31> Removable CD-ROM SCSI-0 device 
May  5 11:08:38 falcon kernel: cd0: 33.000MB/s transfers
May  5 11:08:38 falcon kernel: cd0: Attempt to query device size failed: NOT READY, Medium not present
May  5 11:08:38 falcon kernel: da0 at umass-sim0 bus 0 target 0 lun 0
May  5 11:08:38 falcon kernel: da0: <IMC KanguruMicro 1.05> Removable Direct Access SCSI-0 device 
May  5 11:08:38 falcon kernel: da0: 1.000MB/s transfers
May  5 11:08:38 falcon kernel: da0: 125MB (256000 512 byte sectors: 64H 32S/T 125C)
May  5 11:08:38 falcon kernel: (da0:umass-sim0:0:0:0): READ(6)/WRITE(6) not supported, increasing minimum_cmd_size to 10.
May  5 11:08:38 falcon kernel: Mounting root from ufs:/dev/ad0s2a
May  5 11:08:49 falcon login: ROOT LOGIN (root) ON ttyv0
May  5 11:09:48 falcon login: ROOT LOGIN (kdm) ON ttyv0
May  5 11:18:16 falcon su: mccrobie to root on /dev/ttyp0
May  5 11:33:56 falcon su: mccrobie to root on /dev/ttyp1
May  5 11:38:39 falcon su: mccrobie to root on /dev/ttyp2
help

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030505155344.98409.qmail>