On Wed, Jan 10, 2007 at 10:15:15AM +0100, Michel Dänzer wrote: > Thanks. I think this is another integer overflow bug in the radeon DRM; > can you try the attached patch?
Yes, this enables me to use a 32MB AGP aperture setting in the BIOS. Thanks for finding the cause of this problem! I used the Debian package linux-source-2.6.18 version 2.6.18-7 and patched drivers/char/drm/radeon_cp.c with your patch. Just radeon.ko was built, and installed manually. The rest of the kernel package remained as-is, I didn't build a complete package. Attached is the dmesg from my system using the resulting radeon.ko. I guess this is the interesting change: [drm] Can't use AGP base @0xfc000000, won't fit -- Andreas Johansson [EMAIL PROTECTED] http://www.berget.nu/~andjo/
l command line: root=/dev/hda1 ro No local APIC present or hardware disabled mapped APIC to ffffd000 (01402000) Initializing CPU#0 PID hash table entries: 2048 (order: 11, 8192 bytes) Console: colour VGA+ 80x25 Dentry cache hash table entries: 65536 (order: 6, 262144 bytes) Inode-cache hash table entries: 32768 (order: 5, 131072 bytes) Memory: 510548k/524208k available (1500k kernel code, 13040k reserved, 602k data, 256k init, 0k highmem) Checking if this processor honours the WP bit even in supervisor mode... Ok. Calibrating delay using timer specific routine.. 1868.17 BogoMIPS (lpj=3736348) Security Framework v1.0.0 initialized SELinux: Disabled at boot. Capability LSM initialized Mount-cache hash table entries: 512 CPU: After generic identify, caps: 00803035 80803035 00000000 00000000 00000000 00000000 00000000 CPU: L1 I Cache: 64K (32 bytes/line), D cache 64K (32 bytes/line) CPU: L2 Cache: 64K (32 bytes/line) CPU: After all inits, caps: 00803135 80803035 00000000 00000000 00000000 00000000 00000000 Compat vDSO mapped to ffffe000. CPU: Centaur VIA Ezra stepping 08 Checking 'hlt' instruction... OK. ACPI: Core revision 20060707 ACPI: setting ELCR to 0200 (from 0e20) checking if image is initramfs... it is Freeing initrd memory: 5412k freed NET: Registered protocol family 16 EISA bus registered ACPI: bus type pci registered PCI: PCI BIOS revision 2.10 entry at 0xf0d20, last bus=1 PCI: Using configuration type 1 Setting up standard PCI resources ACPI: Interpreter enabled ACPI: Using PIC for interrupt routing ACPI: PCI Interrupt Link [LNKA] (IRQs 3 4 *5 6 7 9 10 11 12 14 15) ACPI: PCI Interrupt Link [LNKB] (IRQs 3 4 5 6 7 9 *10 11 12 14 15) ACPI: PCI Interrupt Link [LNKC] (IRQs 3 4 5 6 7 9 10 *11 12 14 15) ACPI: PCI Interrupt Link [LNKD] (IRQs 3 4 5 6 7 *9 10 11 12 14 15) ACPI: PCI Root Bridge [PCI0] (0000:00) PCI: Probing PCI hardware (bus 00) ACPI: Assume root bridge [\_SB_.PCI0] bus is 0 PCI quirk: region e800-e80f claimed by vt82c686 SMB Boot video device is 0000:01:00.0 ACPI: PCI Interrupt Routing Table [\_SB_.PCI0._PRT] ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.PCI1._PRT] Linux Plug and Play Support v0.97 (c) Adam Belay pnp: PnP ACPI init pnp: PnP ACPI: found 13 devices PnPBIOS: Disabled by ACPI PNP PCI: Using ACPI for IRQ routing PCI: If a device doesn't work, try "pci=routeirq". If it helps, post a report pnp: 00:03: ioport range 0xe400-0xe47f could not be reserved pnp: 00:03: ioport range 0xe800-0xe80f has been reserved PCI: Bridge: 0000:00:01.0 IO window: d000-dfff MEM window: de000000-deffffff PREFETCH window: e0000000-fbffffff PCI: Setting latency timer of device 0000:00:01.0 to 64 NET: Registered protocol family 2 IP route cache hash table entries: 4096 (order: 2, 16384 bytes) TCP established hash table entries: 16384 (order: 4, 65536 bytes) TCP bind hash table entries: 8192 (order: 3, 32768 bytes) TCP: Hash tables configured (established 16384 bind 8192) TCP reno registered Simple Boot Flag at 0x3a set to 0x1 audit: initializing netlink socket (disabled) audit(1168466989.612:1): initialized VFS: Disk quotas dquot_6.5.1 Dquot-cache hash table entries: 1024 (order 0, 4096 bytes) Initializing Cryptographic API io scheduler noop registered io scheduler anticipatory registered io scheduler deadline registered io scheduler cfq registered (default) PCI: Disabling Via external APIC routing isapnp: Scanning for PnP cards... isapnp: No Plug & Play device found Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ sharing enabled serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A serial8250: ttyS1 at I/O 0x2f8 (irq = 3) is a 16550A 00:0a: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A 00:0b: ttyS1 at I/O 0x2f8 (irq = 3) is a 16550A RAMDISK driver initialized: 16 RAM disks of 8192K size 1024 blocksize PNP: PS/2 Controller [PNP0303:PS2K] at 0x60,0x64 irq 1 PNP: PS/2 controller doesn't have AUX irq; using default 12 serio: i8042 AUX port at 0x60,0x64 irq 12 serio: i8042 KBD port at 0x60,0x64 irq 1 mice: PS/2 mouse device common for all mice EISA: Probing bus 0 at eisa.0 EISA: Detected 0 cards. TCP bic registered NET: Registered protocol family 1 NET: Registered protocol family 17 NET: Registered protocol family 8 NET: Registered protocol family 20 Using IPI Shortcut mode ACPI: (supports S0 S1 S4 S5) Time: tsc clocksource has been installed. Freeing unused kernel memory: 256k freed ACPI: CPU0 (power states: C1[C1] C2[C2]) ACPI: Processor [CPU0] (supports 16 throttling states) usbcore: registered new driver usbfs usbcore: registered new driver hub USB Universal Host Controller Interface driver v3.0 ACPI: PCI Interrupt Link [LNKC] enabled at IRQ 11 PCI: setting IRQ 11 as level-triggered ACPI: PCI Interrupt 0000:00:04.2[D] -> Link [LNKC] -> GSI 11 (level, low) -> IRQ 11 uhci_hcd 0000:00:04.2: UHCI Host Controller uhci_hcd 0000:00:04.2: new USB bus registered, assigned bus number 1 uhci_hcd 0000:00:04.2: irq 11, io base 0x0000b400 usb usb1: configuration #1 chosen from 1 choice hub 1-0:1.0: USB hub found hub 1-0:1.0: 2 ports detected Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2 ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx ohci_hcd: 2005 April 22 USB 1.1 'Open' Host Controller (OHCI) Driver (PCI) ACPI: PCI Interrupt 0000:00:04.3[D] -> Link [LNKC] -> GSI 11 (level, low) -> IRQ 11 uhci_hcd 0000:00:04.3: UHCI Host Controller uhci_hcd 0000:00:04.3: new USB bus registered, assigned bus number 2 uhci_hcd 0000:00:04.3: irq 11, io base 0x0000b000 usb usb2: configuration #1 chosen from 1 choice hub 2-0:1.0: USB hub found hub 2-0:1.0: 2 ports detected VP_IDE: IDE controller at PCI slot 0000:00:04.1 VP_IDE: chipset revision 6 VP_IDE: not 100% native mode: will probe irqs later VP_IDE: VIA vt82c686b (rev 40) IDE UDMA100 controller on pci0000:00:04.1 ide0: BM-DMA at 0xb800-0xb807, BIOS settings: hda:DMA, hdb:pio ide1: BM-DMA at 0xb808-0xb80f, BIOS settings: hdc:DMA, hdd:DMA Probing IDE interface ide0... usb 1-1: new full speed USB device using uhci_hcd and address 2 8139cp: 10/100 PCI Ethernet driver v1.2 (Mar 22, 2004) usb 1-1: configuration #1 chosen from 1 choice usb 1-2: new full speed USB device using uhci_hcd and address 3 hda: ST340016A, ATA DISK drive usb 1-2: configuration #1 chosen from 1 choice hub 1-2:1.0: USB hub found hub 1-2:1.0: 5 ports detected Time: acpi_pm clocksource has been installed. ide0 at 0x1f0-0x1f7,0x3f6 on irq 14 Probing IDE interface ide1... usb 1-2.1: new full speed USB device using uhci_hcd and address 4 usb 1-2.1: configuration #1 chosen from 1 choice hdc: LITE-ON DVDRW SOHW-1673S, ATAPI CD/DVD-ROM drive usb 1-2.2: new low speed USB device using uhci_hcd and address 5 usb 1-2.2: configuration #1 chosen from 1 choice usb 1-2.3: new low speed USB device using uhci_hcd and address 6 usb 1-2.3: configuration #1 chosen from 1 choice hdd: HITACHI DVD-ROM GD-2500, ATAPI CD/DVD-ROM drive usbcore: registered new driver hiddev ide1 at 0x170-0x177,0x376 on irq 15 ACPI: PCI Interrupt 0000:00:06.0[A] -> Link [LNKC] -> GSI 11 (level, low) -> IRQ 11 ohci_hcd 0000:00:06.0: OHCI Host Controller ohci_hcd 0000:00:06.0: new USB bus registered, assigned bus number 3 ohci_hcd 0000:00:06.0: irq 11, io mem 0xdd800000 hda: max request size: 128KiB usb usb3: configuration #1 chosen from 1 choice hub 3-0:1.0: USB hub found hub 3-0:1.0: 3 ports detected hda: 78165360 sectors (40020 MB) w/2048KiB Cache, CHS=65535/16/63, UDMA(33) hda: cache flushes not supported hda:<6>hdc: ATAPI 48X DVD-ROM DVD-R CD-R/RW drive, 2048kB Cache, UDMA(66) Uniform CD-ROM driver Revision: 3.20 hda1 hda2 hdd: ATAPI 24X DVD-ROM drive, 512kB Cache, DMA hiddev96: USB HID v1.00 Device [Nokia Display Products Oy Nokia USB Monitor Control] on usb-0000:00:04.2-2.1 input: Logitech USB-PS/2 Optical Mouse as /class/input/input0 input: USB HID v1.10 Mouse [Logitech USB-PS/2 Optical Mouse] on usb-0000:00:04.2-2.2 input: HID 0430:0005 as /class/input/input1 input: USB HID v1.00 Keyboard [HID 0430:0005] on usb-0000:00:04.2-2.3 ACPI: PCI Interrupt Link [LNKD] enabled at IRQ 9 PCI: setting IRQ 9 as level-triggered ACPI: PCI Interrupt 0000:00:06.1[B] -> Link [LNKD] -> GSI 9 (level, low) -> IRQ 9 ohci_hcd 0000:00:06.1: OHCI Host Controller ohci_hcd 0000:00:06.1: new USB bus registered, assigned bus number 4 ohci_hcd 0000:00:06.1: irq 9, io mem 0xdd000000 usb usb4: configuration #1 chosen from 1 choice hub 4-0:1.0: USB hub found hub 4-0:1.0: 2 ports detected usb 3-1: new full speed USB device using ohci_hcd and address 2 usb 3-1: configuration #1 chosen from 1 choice usbcore: registered new driver usbhid drivers/usb/input/hid-core.c: v2.6:USB HID core driver ACPI: PCI Interrupt Link [LNKA] enabled at IRQ 5 PCI: setting IRQ 5 as level-triggered ACPI: PCI Interrupt 0000:00:06.2[C] -> Link [LNKA] -> GSI 5 (level, low) -> IRQ 5 ehci_hcd 0000:00:06.2: EHCI Host Controller ehci_hcd 0000:00:06.2: new USB bus registered, assigned bus number 5 ehci_hcd 0000:00:06.2: irq 5, io mem 0xdc800000 ehci_hcd 0000:00:06.2: USB 2.0 started, EHCI 0.95, driver 10 Dec 2004 usb usb5: configuration #1 chosen from 1 choice hub 5-0:1.0: USB hub found hub 5-0:1.0: 5 ports detected usb 3-1: USB disconnect, address 2 8139cp 0000:00:08.0: This (id 10ec:8139 rev 10) is not an 8139C+ compatible chip 8139cp 0000:00:08.0: Try the "8139too" driver instead. 8139too Fast Ethernet driver 0.9.27 ACPI: PCI Interrupt 0000:00:08.0[A] -> Link [LNKA] -> GSI 5 (level, low) -> IRQ 5 eth0: RealTek RTL8139 at 0xa800, 00:02:44:8e:b7:f7, IRQ 5 eth0: Identified 8139 chip type 'RTL-8100B/8139D' usb 5-1: new high speed USB device using ehci_hcd and address 2 usb 5-1: configuration #1 chosen from 1 choice device-mapper: ioctl: 4.7.0-ioctl (2006-06-24) initialised: [EMAIL PROTECTED] Attempting manual resume kjournald starting. Commit interval 5 seconds EXT3-fs: mounted filesystem with ordered data mode. ts: Compaq touchscreen protocol output pci_hotplug: PCI Hot Plug PCI Core version: 0.5 shpchp: Standard Hot Plug PCI Controller Driver version: 0.4 Linux agpgart interface v0.101 (c) Dave Jones agpgart: Detected VIA Apollo Pro 133 chipset agpgart: AGP aperture is 32M @ 0xfc000000 parport_pc: VIA 686A/8231 detected parport_pc: probing current configuration parport_pc: Current parallel port base: 0x378 parport0: PC-style at 0x378 (0x778), irq 7, using FIFO [PCSPP,TRISTATE,COMPAT,ECP] Bluetooth: Core ver 2.10 NET: Registered protocol family 31 Bluetooth: HCI device and connection manager initialized Bluetooth: HCI socket layer initialized Bluetooth: HCI USB driver ver 2.9 usbcore: registered new driver hci_usb parport_pc: VIA parallel port: io=0x378, irq=7 via686a 0000:00:04.4: base address not set - upgrade BIOS or use force_addr=0xaddr input: PC Speaker as /class/input/input2 Linux video capture interface: v2.00 Real Time Clock Driver v1.12ac CSLIP: code copyright 1989 Regents of the University of California ISDN subsystem Rev: 1.1.2.3/1.1.2.3/1.1.2.2/1.1.2.3/1.1.2.2/1.1.2.2 loaded bttv: driver version 0.9.16 loaded bttv: using 8 buffers with 2080k (520 pages) each for capture bttv: Bt8xx card found (0). ACPI: PCI Interrupt Link [LNKB] enabled at IRQ 10 PCI: setting IRQ 10 as level-triggered ACPI: PCI Interrupt 0000:00:07.0[A] -> Link [LNKB] -> GSI 10 (level, low) -> IRQ 10 bttv0: Bt878 (rev 17) at 0000:00:07.0, irq: 10, latency: 32, mmio: 0xdf800000 bttv0: detected: Hauppauge WinTV [card=10], PCI subsystem ID is 0070:13eb bttv0: using: Hauppauge (bt878) [card=10,autodetected] bttv0: gpio: en=00000000, out=00000000 in=00ffffdb [init] bttv0: Hauppauge/Voodoo msp34xx: reset line init [5] tveeprom 1-0050: Hauppauge model 37284, rev B421, serial# 2395947 tveeprom 1-0050: tuner model is Philips FM1216 (idx 21, type 5) tveeprom 1-0050: TV standards PAL(B/G) (eeprom 0x04) tveeprom 1-0050: audio processor is MSP3410D (idx 5) tveeprom 1-0050: has radio bttv0: Hauppauge eeprom indicates model#37284 bttv0: using tuner=5 bttv0: i2c: checking for MSP34xx @ 0x80... found msp3400 1-0040: MSP3410D-C5 found @ 0x80 (bt878 #0 [sw]) msp3400 1-0040: MSP3410D-C5 supports nicam, mode is autodetect bttv0: i2c: checking for TDA9875 @ 0xb0... not found bttv0: i2c: checking for TDA7432 @ 0x8a... not found bttv0: i2c: checking for TDA9887 @ 0x86... not found tuner 1-0042: chip found @ 0x84 (bt878 #0 [sw]) tda9887 1-0042: tda988[5/6/7] found @ 0x42 (tuner) tuner 1-0061: chip found @ 0xc2 (bt878 #0 [sw]) tuner 1-0061: type set to 5 (Philips PAL_BG (FI1216 and compatibles)) bttv0: registered device video0 bttv0: registered device vbi0 bttv0: registered device radio0 bttv0: PLL: 28636363 => 35468950 .. ok Floppy drive(s): fd0 is 1.44M FDC 0 is a post-1991 82077 ACPI: PCI Interrupt 0000:00:0a.0[A] -> Link [LNKC] -> GSI 11 (level, low) -> IRQ 11 gameport: Trident 4DWave is pci0000:00:0a.0/gameport0, speed 3139kHz HiSax: Linux Driver for passive ISDN cards HiSax: Version 3.5 (module) HiSax: Layer1 Revision 2.46.2.5 HiSax: Layer2 Revision 2.30.2.4 HiSax: TeiMgr Revision 2.20.2.3 HiSax: Layer3 Revision 2.22.2.3 HiSax: LinkLayer Revision 2.59.2.4 ACPI: PCI Interrupt 0000:00:07.1[A] -> Link [LNKB] -> GSI 10 (level, low) -> IRQ 10 bt878: AUDIO driver version 0.0.0 loaded Adding 1048568k swap on /dev/vg00/swap. Priority:-1 extents:1 across:1048568k EXT3 FS on hda1, internal journal NET: Registered protocol family 10 lo: Disabled Privacy Extensions IPv6 over IPv4 tunneling driver SGI XFS with ACLs, security attributes, realtime, large block numbers, no debug enabled SGI XFS Quota Management subsystem Filesystem "dm-3": Disabling barriers, not supported by the underlying device XFS mounting filesystem dm-3 Ending clean XFS mount for filesystem: dm-3 kjournald starting. Commit interval 5 seconds EXT3 FS on dm-0, internal journal EXT3-fs: mounted filesystem with ordered data mode. kjournald starting. Commit interval 5 seconds EXT3 FS on dm-1, internal journal EXT3-fs: mounted filesystem with ordered data mode. eth0: link up, 100Mbps, full-duplex, lpa 0x45E1 Installing knfsd (copyright (C) 1996 [EMAIL PROTECTED]). NFSD: Using /var/lib/nfs/v4recovery as the NFSv4 state recovery directory NFSD: starting 90-second grace period hda: drive_cmd: status=0x51 { DriveReady SeekComplete Error } hda: drive_cmd: error=0x04 { DriveStatusError } ide: failed opcode was: 0xb0 hda: drive_cmd: status=0x51 { DriveReady SeekComplete Error } hda: drive_cmd: error=0x04 { DriveStatusError } ide: failed opcode was: 0xb0 hda: drive_cmd: status=0x51 { DriveReady SeekComplete Error } hda: drive_cmd: error=0x04 { DriveStatusError } ide: failed opcode was: 0xb0 hda: drive_cmd: status=0x51 { DriveReady SeekComplete Error } hda: drive_cmd: error=0x04 { DriveStatusError } ide: failed opcode was: 0xb0 [drm] Initialized drm 1.0.1 20051102 radeon: no version for "struct_module" found: kernel tainted. ACPI: PCI Interrupt 0000:01:00.0[A] -> Link [LNKA] -> GSI 5 (level, low) -> IRQ 5 [drm] Initialized radeon 1.25.0 20060524 on minor 0 Bluetooth: L2CAP ver 2.8 Bluetooth: L2CAP socket layer initialized Bluetooth: RFCOMM socket layer initialized Bluetooth: RFCOMM TTY layer initialized Bluetooth: RFCOMM ver 1.8 agpgart: Found an AGP 2.0 compliant device at 0000:00:00.0. agpgart: Putting AGP V2 device at 0000:00:00.0 into 4x mode agpgart: Putting AGP V2 device at 0000:01:00.0 into 4x mode [drm] Setting GART location based on new memory map [drm] Can't use AGP base @0xfc000000, won't fit [drm] Loading R200 Microcode [drm] writeback test succeeded in 1 usecs