linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Fwd: pci 0000:01:00.0: BAR 0: can't allocate resource
       [not found] <f1f3dd8f0902221910n2722b024pe3ec8748fd3aed5b@mail.gmail.com>
@ 2009-02-23  3:13 ` George Rapp
  2009-02-23  3:50 ` Linus Torvalds
  1 sibling, 0 replies; 6+ messages in thread
From: George Rapp @ 2009-02-23  3:13 UTC (permalink / raw)
  To: linux-kernel

[-- Attachment #1: Type: text/plain, Size: 1751 bytes --]

Resending per bounce message from lkml ...

---------- Forwarded message ----------
From: George Rapp <george.rapp@gmail.com>
Date: Sun, Feb 22, 2009 at 10:10 PM
Subject: pci 0000:01:00.0: BAR 0: can't allocate resource
To: linux-kernel@vger.kernel.org
Cc: torvalds@linux-foundation.org


Hi -

I initially reported this on IRC (#radeon on irc.freenode.net, between
18:39 and 21:15 EST), and airlied (Dave Airlie) thought it might be a
kernel bug, due to the message in the Subject: line.

I'm configuring an older motherboard (purchased in 2001) to be a
MythTV front/backend and file server.  I have an ATI Radeon 8500 128MB
AGP video card that I'm also trying to reuse.  This combination ran
for years under Windows 2000, but has been giving me fits under Fedora
10.  It will bring up X when I use Driver "vesa" in xorg.conf, but
fails when I use Driver "ati" with "No valid linear framebuffer
address".  (Xorg log is at http://novia.net/~gwr/Xorg.0.log;
configuration is http://novia.net/~gwr/xorg.conf).

Dave had me download a test kernel
(kernel-2.6.29-0.33.rc5.fc10.i686.rpm and
kernel-firmware-2.6.29-0.33.rc5.fc10.noarch.rpm from
kojipkgs.fedoraproject.org) and try again; same results.  The dmesg
and 'lspci -vv' output from that version are attached to this email.

In case the attachments don't survive Gmail, dmesg output is at
http://novia.net/~gwr/dmesg_2.6.29-0.33.rc5, and output of 'lspci -vv'
is at http://novia.net/~gwr/lspci-vv_2.6.29-0.33.rc5
--
  George Rapp  (Columbus, OH) Home: george.rapp -- at -- gmail.com
    Work: george.rapp -- at -- eds.com (or) george.rapp -- at -- dfas.mil
The object of life is not to be on the side of the majority, but to escape
    finding oneself in the ranks of the insane.  - Marcus Aurelius

[-- Attachment #2: dmesg_2.6.29-0.33.rc5 --]
[-- Type: application/octet-stream, Size: 20133 bytes --]

Initializing cgroup subsys cpuset
Initializing cgroup subsys cpu
Linux version 2.6.29-0.33.rc5.fc10.i686 (mockbuild@x86-6.fedora.phx.redhat.com) (gcc version 4.3.2 20081105 (Red Hat 4.3.2-7) (GCC) ) #1 SMP Sat Feb 14 19:55:00 EST 2009
KERNEL supported cpus:
  Intel GenuineIntel
  AMD AuthenticAMD
  NSC Geode by NSC
  Cyrix CyrixInstead
  Centaur CentaurHauls
  Transmeta GenuineTMx86
  Transmeta TransmetaCPU
  UMC UMC UMC UMC
PAT WC disabled due to known CPU erratum.
BIOS-provided physical RAM map:
 BIOS-e820: 0000000000000000 - 000000000009fc00 (usable)
 BIOS-e820: 000000000009fc00 - 00000000000a0000 (reserved)
 BIOS-e820: 00000000000f0000 - 0000000000100000 (reserved)
 BIOS-e820: 0000000000100000 - 000000001c000000 (usable)
 BIOS-e820: 00000000ffff0000 - 0000000100000000 (reserved)
DMI 2.0 present.
last_pfn = 0x1c000 max_arch_pfn = 0x100000
kernel direct mapping tables up to 1c000000 @ 7000-c000
Using x86 segment limits to approximate NX protection
RAMDISK: 1bc69000 - 1bfef4fa
ACPI Error (tbxfroot-0219): A valid RSDP was not found [20081204]
0MB HIGHMEM available.
448MB LOWMEM available.
  mapped low ram: 0 - 1c000000
  low ram: 00000000 - 1c000000
  bootmap 00002000 - 00005800
(9 early reservations) ==> bootmem [0000000000 - 001c000000]
  #0 [0000000000 - 0000001000]   BIOS data page ==> [0000000000 - 0000001000]
  #1 [0000001000 - 0000002000]    EX TRAMPOLINE ==> [0000001000 - 0000002000]
  #2 [0000006000 - 0000007000]       TRAMPOLINE ==> [0000006000 - 0000007000]
  #3 [0000400000 - 00009ed14c]    TEXT DATA BSS ==> [0000400000 - 00009ed14c]
  #4 [001bc69000 - 001bfef4fa]          RAMDISK ==> [001bc69000 - 001bfef4fa]
  #5 [00009ee000 - 00009f2000]    INIT_PG_TABLE ==> [00009ee000 - 00009f2000]
  #6 [000009f400 - 0000100000]    BIOS reserved ==> [000009f400 - 0000100000]
  #7 [0000007000 - 0000007000]          PGTABLE
  #8 [0000002000 - 0000006000]          BOOTMAP ==> [0000002000 - 0000006000]
Zone PFN ranges:
  DMA      0x00000000 -> 0x00001000
  Normal   0x00001000 -> 0x0001c000
  HighMem  0x0001c000 -> 0x0001c000
Movable zone start PFN for each node
early_node_map[2] active PFN ranges
    0: 0x00000000 -> 0x0000009f
    0: 0x00000100 -> 0x0001c000
On node 0 totalpages: 114591
free_area_init_node: node 0, pgdat c084e580, node_mem_map c1000000
  DMA zone: 32 pages used for memmap
  DMA zone: 0 pages reserved
  DMA zone: 3967 pages, LIFO batch:0
  Normal zone: 864 pages used for memmap
  Normal zone: 109728 pages, LIFO batch:31
Using APIC driver default
SMP: Allowing 1 CPUs, 0 hotplug CPUs
Local APIC disabled by BIOS -- you can enable it with "lapic"
nr_irqs_gsi: 16
PM: Registered nosave memory: 000000000009f000 - 00000000000a0000
PM: Registered nosave memory: 00000000000a0000 - 00000000000f0000
PM: Registered nosave memory: 00000000000f0000 - 0000000000100000
Allocating PCI resources starting at 20000000 (gap: 1c000000:e3ff0000)
NR_CPUS:32 nr_cpumask_bits:32 nr_cpu_ids:1 nr_node_ids:1
PERCPU: Allocating 49152 bytes of per cpu data
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 113695
Kernel command line: ro root=/dev/VolGroup00/LogVol00 
Enabling fast FPU save and restore... done.
Enabling unmasked SIMD FPU exception support... done.
Initializing CPU#0
CPU 0 irqstacks, hard=c091b000 soft=c08fb000
PID hash table entries: 2048 (order: 11, 8192 bytes)
TSC: Using PIT calibration value
Detected 901.993 MHz processor.
Console: colour VGA+ 80x25
console [tty0] enabled
Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
allocated 2293760 bytes of page_cgroup
please try cgroup_disable=memory option if you don't want
Memory: 442132k/458752k available (2912k kernel code, 16080k reserved, 1738k data, 416k init, 0k highmem)
virtual kernel memory layout:
    fixmap  : 0xffc57000 - 0xfffff000   (3744 kB)
    pkmap   : 0xff400000 - 0xff800000   (4096 kB)
    vmalloc : 0xdc800000 - 0xff3fe000   ( 555 MB)
    lowmem  : 0xc0000000 - 0xdc000000   ( 448 MB)
      .init : 0xc0890000 - 0xc08f8000   ( 416 kB)
      .data : 0xc06d8201 - 0xc088aa98   (1738 kB)
      .text : 0xc0400000 - 0xc06d8201   (2912 kB)
Checking if this processor honours the WP bit even in supervisor mode...Ok.
SLUB: Genslabs=12, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
Calibrating delay loop (skipped), value calculated using timer frequency.. 1803.98 BogoMIPS (lpj=901993)
Security Framework initialized
SELinux:  Initializing.
SELinux:  Starting in permissive mode
Mount-cache hash table entries: 512
Initializing cgroup subsys ns
Initializing cgroup subsys cpuacct
Initializing cgroup subsys memory
Initializing cgroup subsys devices
Initializing cgroup subsys freezer
Initializing cgroup subsys net_cls
CPU: L1 I cache: 16K, L1 D cache: 16K
CPU: L2 cache: 256K
Intel machine check architecture supported.
Intel machine check reporting enabled on CPU#0.
Checking 'hlt' instruction... OK.
SMP alternatives: switching to UP code
Freeing SMP alternatives: 14k freed
weird, boot CPU (#0) not listed by the BIOS.
SMP motherboard not detected.
Local APIC not detected. Using dummy APIC emulation.
SMP disabled
Brought up 1 CPUs
Total of 1 processors activated (1803.98 BogoMIPS).
sizeof(vma)=84 bytes
sizeof(page)=32 bytes
sizeof(inode)=340 bytes
sizeof(dentry)=132 bytes
sizeof(ext3inode)=492 bytes
sizeof(buffer_head)=56 bytes
sizeof(skbuff)=184 bytes
sizeof(task_struct)=3220 bytes
CPU0 attaching NULL sched-domain.
net_namespace: 1064 bytes
Booting paravirtualized kernel on bare hardware
regulator: core version 0.5
Time:  2:00:02  Date: 02/23/09
NET: Registered protocol family 16
PCI: PCI BIOS revision 2.10 entry at 0xfb2b0, last bus=1
PCI: Using configuration type 1 for base access
bio: create slab <bio-0> at 0
ACPI: Interpreter disabled.
SCSI subsystem initialized
libata version 3.00 loaded.
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
PCI: Probing PCI hardware
PCI: Probing PCI hardware (bus 00)
pci 0000:00:00.0: reg 10 32bit mmio: [0xe8000000-0xefffffff]
pci 0000:00:07.1: reg 20 io port: [0xf000-0xf00f]
pci 0000:00:07.2: reg 20 io port: [0xa000-0xa01f]
* Found PM-Timer Bug on the chipset. Due to workarounds for a bug,
* this clock source is slow. Consider trying other clock sources
pci 0000:00:07.3: quirk: region 4000-403f claimed by PIIX4 ACPI
pci 0000:00:07.3: quirk: region 5000-500f claimed by PIIX4 SMB
pci 0000:00:0b.0: reg 10 io port: [0xa400-0xa47f]
pci 0000:00:0b.0: reg 14 32bit mmio: [0xf4001000-0xf400107f]
pci 0000:00:0b.0: reg 30 32bit mmio: [0xf2000000-0xf201ffff]
pci 0000:00:0b.0: supports D1 D2
pci 0000:00:0b.0: PME# supported from D1 D2 D3hot
pci 0000:00:0b.0: PME# disabled
pci 0000:00:0c.0: reg 10 io port: [0xa800-0xa807]
pci 0000:00:0c.0: reg 14 io port: [0xac00-0xac03]
pci 0000:00:0c.0: reg 18 io port: [0xb000-0xb007]
pci 0000:00:0c.0: reg 1c io port: [0xb400-0xb403]
pci 0000:00:0c.0: reg 20 io port: [0xb800-0xb80f]
pci 0000:00:0c.0: reg 24 32bit mmio: [0xf4000000-0xf40001ff]
pci 0000:00:0c.0: reg 30 32bit mmio: [0xf3000000-0xf307ffff]
pci 0000:00:0c.0: supports D1 D2
pci 0000:00:0d.0: reg 10 io port: [0xbc00-0xbc1f]
pci 0000:00:0d.1: reg 10 io port: [0xc000-0xc007]
pci 0000:01:00.0: reg 10 32bit mmio: [0xd0000000-0xdfffffff]
pci 0000:01:00.0: reg 14 io port: [0x9000-0x90ff]
pci 0000:01:00.0: reg 18 32bit mmio: [0xf1000000-0xf100ffff]
pci 0000:01:00.0: reg 30 32bit mmio: [0x000000-0x01ffff]
pci 0000:01:00.0: supports D1 D2
pci 0000:00:01.0: bridge io port: [0x9000-0x9fff]
pci 0000:00:01.0: bridge 32bit mmio: [0xf0000000-0xf1ffffff]
pci 0000:00:01.0: bridge 32bit mmio pref: [0xd8000000-0xe7ffffff]
pci 0000:01:00.0: BAR 0: can't allocate resource
NetLabel: Initializing
NetLabel:  domain hash size = 128
NetLabel:  protocols = UNLABELED CIPSOv4
NetLabel:  unlabeled traffic allowed by default
pnp: PnP ACPI: disabled
pci 0000:01:00.0: BAR 0: can't allocate mem resource [0xe0000000-0xe7ffffff]
pci 0000:00:01.0: PCI bridge, secondary bus 0000:01
pci 0000:00:01.0:   IO window: 0x9000-0x9fff
pci 0000:00:01.0:   MEM window: 0xf0000000-0xf1ffffff
pci 0000:00:01.0:   PREFETCH window: 0x000000d8000000-0x000000e7ffffff
pci_bus 0000:00: resource 0 io:  [0x00-0xffff]
pci_bus 0000:00: resource 1 mem: [0x000000-0xffffffff]
pci_bus 0000:01: resource 0 io:  [0x9000-0x9fff]
pci_bus 0000:01: resource 1 mem: [0xf0000000-0xf1ffffff]
pci_bus 0000:01: resource 2 mem: [0xd8000000-0xe7ffffff]
pci_bus 0000:01: resource 3 mem: [0x0-0x0]
NET: Registered protocol family 2
IP route cache hash table entries: 4096 (order: 2, 16384 bytes)
TCP established hash table entries: 16384 (order: 5, 131072 bytes)
TCP bind hash table entries: 16384 (order: 5, 131072 bytes)
TCP: Hash tables configured (established 16384 bind 16384)
TCP reno registered
NET: Registered protocol family 1
checking if image is initramfs... it is
Freeing initrd memory: 3609k freed
platform rtc_cmos: registered platform RTC device (no PNP device found)
apm: BIOS version 1.2 Flags 0x07 (Driver version 1.16ac)
audit: initializing netlink socket (disabled)
type=2000 audit(1235354403.033:1): initialized
HugeTLB registered 4 MB page size, pre-allocated 0 pages
VFS: Disk quotas dquot_6.5.2
Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
msgmni has been set to 870
SELinux:  Registering netfilter hooks
alg: No test for stdrng (krng)
Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered
io scheduler cfq registered (default)
pci 0000:00:00.0: Limiting direct PCI/PCI transfers
pci 0000:01:00.0: Boot video device
pci_hotplug: PCI Hot Plug PCI Core version: 0.5
acpiphp: ACPI Hot Plug PCI Controller Driver version: 0.5
isapnp: Scanning for PnP cards...
isapnp: No Plug & Play device found
Non-volatile memory driver v1.3
Linux agpgart interface v0.103
agpgart-intel 0000:00:00.0: Intel 440BX Chipset
agpgart-intel 0000:00:00.0: AGP aperture is 128M @ 0xe8000000
Serial: 8250/16550 driver, 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
brd: module loaded
loop: module loaded
Fixed MDIO Bus: probed
input: Macintosh mouse button emulation as /devices/virtual/input/input0
Driver 'sd' needs updating - please use bus_type methods
Driver 'sr' needs updating - please use bus_type methods
ata_piix 0000:00:07.1: version 2.12
scsi0 : ata_piix
scsi1 : ata_piix
ata1: PATA max UDMA/33 cmd 0x1f0 ctl 0x3f6 bmdma 0xf000 irq 14
ata2: PATA max UDMA/33 cmd 0x170 ctl 0x376 bmdma 0xf008 irq 15
ata1.01: ATAPI: COMPAQ SCR-3232,    VQ107, max MWDMA2
ata1.01: configured for MWDMA2
scsi 0:0:1:0: CD-ROM            COMPAQ   CD-ROM SCR-3232  Q107 PQ: 0 ANSI: 5
sr0: scsi3-mmc drive: 20x/32x cd/rw xa/form2 cdda tray
Uniform CD-ROM driver Revision: 3.20
sr 0:0:1:0: Attached scsi CD-ROM sr0
sr 0:0:1:0: Attached scsi generic sg0 type 5
ata2.00: ATA-7: ST3160812A, 3.AAJ, max UDMA/100
ata2.00: 312581808 sectors, multi 0: LBA48 
ata2.01: ATA-7: MAXTOR STM3320620A, 3.AAD, max UDMA/100
ata2.01: 625142448 sectors, multi 0: LBA48 
ata2.00: configured for UDMA/33
ata2.01: configured for UDMA/33
scsi 1:0:0:0: Direct-Access     ATA      ST3160812A       3.AA PQ: 0 ANSI: 5
sd 1:0:0:0: [sda] 312581808 512-byte hardware sectors: (160 GB/149 GiB)
sd 1:0:0:0: [sda] Write Protect is off
sd 1:0:0:0: [sda] Mode Sense: 00 3a 00 00
sd 1:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
sd 1:0:0:0: [sda] 312581808 512-byte hardware sectors: (160 GB/149 GiB)
sd 1:0:0:0: [sda] Write Protect is off
sd 1:0:0:0: [sda] Mode Sense: 00 3a 00 00
sd 1:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
 sda: sda1 sda2
sd 1:0:0:0: [sda] Attached SCSI disk
sd 1:0:0:0: Attached scsi generic sg1 type 0
scsi 1:0:1:0: Direct-Access     ATA      MAXTOR STM332062 3.AA PQ: 0 ANSI: 5
sd 1:0:1:0: [sdb] 625142448 512-byte hardware sectors: (320 GB/298 GiB)
sd 1:0:1:0: [sdb] Write Protect is off
sd 1:0:1:0: [sdb] Mode Sense: 00 3a 00 00
sd 1:0:1:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
sd 1:0:1:0: [sdb] 625142448 512-byte hardware sectors: (320 GB/298 GiB)
sd 1:0:1:0: [sdb] Write Protect is off
sd 1:0:1:0: [sdb] Mode Sense: 00 3a 00 00
sd 1:0:1:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
 sdb: sdb1 sdb2
sd 1:0:1:0: [sdb] Attached SCSI disk
sd 1:0:1:0: Attached scsi generic sg2 type 0
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
uhci_hcd: USB Universal Host Controller Interface driver
uhci_hcd 0000:00:07.2: UHCI Host Controller
uhci_hcd 0000:00:07.2: new USB bus registered, assigned bus number 1
uhci_hcd 0000:00:07.2: irq 10, io base 0x0000a000
usb usb1: New USB device found, idVendor=1d6b, idProduct=0001
usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
usb usb1: Product: UHCI Host Controller
usb usb1: Manufacturer: Linux 2.6.29-0.33.rc5.fc10.i686 uhci_hcd
usb usb1: SerialNumber: 0000:00:07.2
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 2 ports detected
PNP: No PS/2 controller found. Probing ports directly.
serio: i8042 KBD port at 0x60,0x64 irq 1
serio: i8042 AUX port at 0x60,0x64 irq 12
mice: PS/2 mouse device common for all mice
rtc_cmos rtc_cmos: rtc core: registered rtc_cmos as rtc0
rtc0: alarms up to one day, 114 bytes nvram
device-mapper: uevent: version 1.0.3
device-mapper: ioctl: 4.14.0-ioctl (2008-04-23) initialised: dm-devel@redhat.com
cpuidle: using governor ladder
cpuidle: using governor menu
usbcore: registered new interface driver hiddev
usbcore: registered new interface driver usbhid
usbhid: v2.6:USB HID core driver
nf_conntrack version 0.5.0 (7168 buckets, 28672 max)
CONFIG_NF_CT_ACCT is deprecated and will be removed soon. Please use
nf_conntrack.acct=1 kernel paramater, acct=1 nf_conntrack module option or
sysctl net.netfilter.nf_conntrack_acct=1 to enable it.
ip_tables: (C) 2000-2006 Netfilter Core Team
TCP cubic registered
Initializing XFRM netlink socket
NET: Registered protocol family 17
IO APIC resources could be not be allocated.
Using IPI No-Shortcut mode
registered taskstats version 1
  Magic number: 13:871:5
block sdb2: hash matches
Freeing unused kernel memory: 416k freed
Write protecting the kernel text: 2916k
Write protecting the kernel read-only data: 1296k
input: AT Translated Set 2 keyboard as /devices/platform/i8042/serio0/input/input1
hub 1-0:1.0: over-current change on port 1
hub 1-0:1.0: over-current change on port 2
psmouse serio1: ID: 10 00 64<7>sata_sil 0000:00:0c.0: version 2.4
scsi2 : sata_sil
scsi3 : sata_sil
ata3: SATA max UDMA/100 mmio m512@0xf4000000 tf 0xf4000080 irq 10
ata4: SATA max UDMA/100 mmio m512@0xf4000000 tf 0xf40000c0 irq 10
input: ImPS/2 Generic Wheel Mouse as /devices/platform/i8042/serio1/input/input2
ata3: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
ata3.00: ATA-8: ST31000340AS, SD15, max UDMA/133
ata3.00: 1953525168 sectors, multi 16: LBA48 NCQ (depth 0/32)
ata3.00: configured for UDMA/100
scsi 2:0:0:0: Direct-Access     ATA      ST31000340AS     SD15 PQ: 0 ANSI: 5
sd 2:0:0:0: [sdc] 1953525168 512-byte hardware sectors: (1.00 TB/931 GiB)
sd 2:0:0:0: [sdc] Write Protect is off
sd 2:0:0:0: [sdc] Mode Sense: 00 3a 00 00
sd 2:0:0:0: [sdc] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
sd 2:0:0:0: [sdc] 1953525168 512-byte hardware sectors: (1.00 TB/931 GiB)
sd 2:0:0:0: [sdc] Write Protect is off
sd 2:0:0:0: [sdc] Mode Sense: 00 3a 00 00
sd 2:0:0:0: [sdc] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
 sdc: sdc1 sdc2
sd 2:0:0:0: [sdc] Attached SCSI disk
sd 2:0:0:0: Attached scsi generic sg3 type 0
ata4: SATA link down (SStatus 0 SControl 310)
kjournald starting.  Commit interval 5 seconds
EXT3-fs: mounted filesystem with ordered data mode.
type=1404 audit(1235354406.978:2): enforcing=1 old_enforcing=0 auid=4294967295 ses=4294967295
SELinux: 8192 avtab hash slots, 114414 rules.
SELinux: 8192 avtab hash slots, 114414 rules.
SELinux:  8 users, 11 roles, 2673 types, 121 bools, 1 sens, 1024 cats
SELinux:  73 classes, 114414 rules
SELinux:  class kernel_service not defined in policy
SELinux: the above unknown classes and permissions will be allowed
SELinux:  Completing initialization.
SELinux:  Setting up existing superblocks.
SELinux: initialized (dev dm-0, type ext3), uses xattr
SELinux: initialized (dev tmpfs, type tmpfs), uses transition SIDs
SELinux: initialized (dev usbfs, type usbfs), uses genfs_contexts
SELinux: initialized (dev selinuxfs, type selinuxfs), uses genfs_contexts
SELinux: initialized (dev mqueue, type mqueue), uses transition SIDs
SELinux: initialized (dev hugetlbfs, type hugetlbfs), uses genfs_contexts
SELinux: initialized (dev devpts, type devpts), uses transition SIDs
SELinux: initialized (dev inotifyfs, type inotifyfs), uses genfs_contexts
SELinux: initialized (dev tmpfs, type tmpfs), uses transition SIDs
SELinux: initialized (dev anon_inodefs, type anon_inodefs), uses genfs_contexts
SELinux: initialized (dev pipefs, type pipefs), uses task SIDs
SELinux: initialized (dev debugfs, type debugfs), uses genfs_contexts
SELinux: initialized (dev sockfs, type sockfs), uses task SIDs
SELinux: initialized (dev proc, type proc), uses genfs_contexts
SELinux: initialized (dev bdev, type bdev), uses genfs_contexts
SELinux: initialized (dev rootfs, type rootfs), uses genfs_contexts
SELinux: initialized (dev sysfs, type sysfs), uses genfs_contexts
type=1403 audit(1235354407.463:3): policy loaded auid=4294967295 ses=4294967295
udevd version 127 started
piix4_smbus 0000:00:07.3: SMBus Host Controller at 0x5000, revision 0
3c59x: Donald Becker and others.
0000:00:0b.0: 3Com PCI 3c905B Cyclone 100baseTx at dce3c000.
eth0 (3c59x): not using net_device_ops yet
gameport: EMU10K1 is pci0000:00:0d.1/gameport0, io 0xc000, speed 1217kHz
input: PC Speaker as /devices/platform/pcspkr/input/input3
ALSA sound/core/control.c:232: Control name 'Sigmatel Surround Phase Inversion Playback Switch' truncated to 'Sigmatel Surround Phase Inversion Playback '
device-mapper: multipath: version 1.0.5 loaded
EXT3 FS on dm-0, internal journal
kjournald starting.  Commit interval 5 seconds
EXT3 FS on sdc1, internal journal
EXT3-fs: mounted filesystem with ordered data mode.
SELinux: initialized (dev sdc1, type ext3), uses xattr
SELinux: initialized (dev tmpfs, type tmpfs), uses transition SIDs
kjournald starting.  Commit interval 5 seconds
EXT3 FS on dm-2, internal journal
EXT3-fs: mounted filesystem with ordered data mode.
SELinux: initialized (dev dm-2, type ext3), uses xattr
fuse init (API version 7.11)
SELinux: initialized (dev sda2, type fuseblk), uses genfs_contexts
swap_cgroup: uses 896 bytes of vmalloc for pointer array space and 917504 bytes to hold mem_cgroup pointers on swap
swap_cgroup can be disabled by noswapaccount boot option.
Adding 917496k swap on /dev/mapper/VolGroup00-LogVol01.  Priority:-1 extents:1 across:917496k 
SELinux: initialized (dev binfmt_misc, type binfmt_misc), uses genfs_contexts
platform microcode: firmware: requesting intel-ucode/06-08-06
Microcode Update Driver: v2.00 <tigran@aivazian.fsnet.co.uk>, Peter Oruba
Microcode Update Driver: v2.00 removed.
NET: Registered protocol family 10
lo: Disabled Privacy Extensions
ip6_tables: (C) 2000-2006 Netfilter Core Team
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
SELinux: initialized (dev rpc_pipefs, type rpc_pipefs), uses genfs_contexts
Bluetooth: Core ver 2.14
NET: Registered protocol family 31
Bluetooth: HCI device and connection manager initialized
Bluetooth: HCI socket layer initialized
Bluetooth: L2CAP ver 2.11
Bluetooth: L2CAP socket layer initialized
Bluetooth: SCO (Voice Link) ver 0.6
Bluetooth: SCO socket layer initialized
Bluetooth: BNEP (Ethernet Emulation) ver 1.3
Bluetooth: BNEP filters: protocol multicast
Bridge firewalling registered
eth0:  setting full-duplex.
eth0: no IPv6 routers present

[-- Attachment #3: lspci-vv_2.6.29-0.33.rc5 --]
[-- Type: application/octet-stream, Size: 7381 bytes --]

00:00.0 Host bridge: Intel Corporation 440BX/ZX/DX - 82443BX/ZX/DX Host bridge (rev 03)
	Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
	Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort+ >SERR- <PERR- INTx-
	Latency: 64
	Region 0: Memory at e8000000 (32-bit, prefetchable) [size=128M]
	Capabilities: [a0] AGP version 1.0
		Status: RQ=32 Iso- ArqSz=0 Cal=0 SBA+ ITACoh- GART64- HTrans- 64bit- FW- AGP3- Rate=x1,x2
		Command: RQ=1 ArqSz=0 Cal=0 SBA- AGP- GART64- 64bit- FW- Rate=<none>
	Kernel driver in use: agpgart-intel

00:01.0 PCI bridge: Intel Corporation 440BX/ZX/DX - 82443BX/ZX/DX AGP bridge (rev 03) (prog-if 00 [Normal decode])
	Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR+ FastB2B- DisINTx-
	Status: Cap- 66MHz+ UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
	Latency: 64
	Bus: primary=00, secondary=01, subordinate=01, sec-latency=64
	I/O behind bridge: 00009000-00009fff
	Memory behind bridge: f0000000-f1ffffff
	Prefetchable memory behind bridge: d8000000-e7ffffff
	Secondary status: 66MHz+ FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort+ <SERR- <PERR-
	BridgeCtl: Parity- SERR- NoISA- VGA+ MAbort- >Reset- FastB2B+
		PriDiscTmr- SecDiscTmr- DiscTmrStat- DiscTmrSERREn-

00:07.0 ISA bridge: Intel Corporation 82371AB/EB/MB PIIX4 ISA (rev 02)
	Control: I/O+ Mem+ BusMaster+ SpecCycle+ MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
	Status: Cap- 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
	Latency: 0

00:07.1 IDE interface: Intel Corporation 82371AB/EB/MB PIIX4 IDE (rev 01) (prog-if 80 [Master])
	Control: I/O+ Mem- BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
	Status: Cap- 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
	Latency: 64
	Region 0: [virtual] Memory at 000001f0 (32-bit, non-prefetchable) [disabled] [size=8]
	Region 1: [virtual] Memory at 000003f0 (type 3, non-prefetchable) [disabled] [size=1]
	Region 2: [virtual] Memory at 00000170 (32-bit, non-prefetchable) [disabled] [size=8]
	Region 3: [virtual] Memory at 00000370 (type 3, non-prefetchable) [disabled] [size=1]
	Region 4: I/O ports at f000 [size=16]
	Kernel driver in use: ata_piix

00:07.2 USB Controller: Intel Corporation 82371AB/EB/MB PIIX4 USB (rev 01) (prog-if 00 [UHCI])
	Control: I/O+ Mem- BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
	Status: Cap- 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
	Latency: 64
	Interrupt: pin D routed to IRQ 10
	Region 4: I/O ports at a000 [size=32]
	Kernel driver in use: uhci_hcd

00:07.3 Bridge: Intel Corporation 82371AB/EB/MB PIIX4 ACPI (rev 02)
	Control: I/O+ Mem+ BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
	Status: Cap- 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
	Interrupt: pin ? routed to IRQ 9
	Kernel driver in use: piix4_smbus
	Kernel modules: i2c-piix4

00:0b.0 Ethernet controller: 3Com Corporation 3c905B 100BaseTX [Cyclone] (rev 24)
	Subsystem: 3Com Corporation 3C905B Fast Etherlink XL 10/100
	Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
	Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
	Latency: 64 (2500ns min, 2500ns max), Cache Line Size: 32 bytes
	Interrupt: pin A routed to IRQ 5
	Region 0: I/O ports at a400 [size=128]
	Region 1: Memory at f4001000 (32-bit, non-prefetchable) [size=128]
	Expansion ROM at f2000000 [disabled] [size=128K]
	Capabilities: [dc] Power Management version 1
		Flags: PMEClk- DSI- D1+ D2+ AuxCurrent=0mA PME(D0-,D1+,D2+,D3hot+,D3cold-)
		Status: D0 PME-Enable- DSel=0 DScale=0 PME-
	Kernel driver in use: 3c59x
	Kernel modules: 3c59x

00:0c.0 RAID bus controller: Silicon Image, Inc. SiI 3512 [SATALink/SATARaid] Serial ATA Controller (rev 01)
	Subsystem: Silicon Image, Inc. SiI 3512 SATARaid Controller
	Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
	Status: Cap+ 66MHz+ UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
	Latency: 64, Cache Line Size: 32 bytes
	Interrupt: pin A routed to IRQ 10
	Region 0: I/O ports at a800 [size=8]
	Region 1: I/O ports at ac00 [size=4]
	Region 2: I/O ports at b000 [size=8]
	Region 3: I/O ports at b400 [size=4]
	Region 4: I/O ports at b800 [size=16]
	Region 5: Memory at f4000000 (32-bit, non-prefetchable) [size=512]
	Expansion ROM at f3000000 [disabled] [size=512K]
	Capabilities: [60] Power Management version 2
		Flags: PMEClk- DSI+ D1+ D2+ AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-)
		Status: D0 PME-Enable- DSel=0 DScale=2 PME-
	Kernel driver in use: sata_sil
	Kernel modules: sata_sil

00:0d.0 Multimedia audio controller: Creative Labs SB Live! EMU10k1 (rev 05)
	Subsystem: Creative Labs SBLive! mainboard implementation
	Control: I/O+ Mem- BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
	Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
	Latency: 64 (500ns min, 5000ns max)
	Interrupt: pin A routed to IRQ 5
	Region 0: I/O ports at bc00 [size=32]
	Capabilities: [dc] Power Management version 1
		Flags: PMEClk- DSI- D1- D2- AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-)
		Status: D0 PME-Enable- DSel=0 DScale=0 PME-
	Kernel driver in use: EMU10K1_Audigy
	Kernel modules: snd-emu10k1

00:0d.1 Input device controller: Creative Labs SB Live! Game Port (rev 05)
	Subsystem: Creative Labs Gameport Joystick
	Control: I/O+ Mem- BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
	Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
	Latency: 64
	Region 0: I/O ports at c000 [size=8]
	Capabilities: [dc] Power Management version 1
		Flags: PMEClk- DSI- D1- D2- AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-)
		Status: D0 PME-Enable- DSel=0 DScale=0 PME-
	Kernel driver in use: Emu10k1_gameport
	Kernel modules: emu10k1-gp

01:00.0 VGA compatible controller: ATI Technologies Inc Radeon R200 QL [Radeon 8500 LE] (prog-if 00 [VGA controller])
	Subsystem: ATI Technologies Inc Device 0f2a
	Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping+ SERR- FastB2B- DisINTx-
	Status: Cap+ 66MHz+ UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
	Latency: 64 (2000ns min), Cache Line Size: 32 bytes
	Interrupt: pin A routed to IRQ 11
	Region 0: Memory at <ignored> (32-bit, prefetchable)
	Region 1: I/O ports at 9000 [size=256]
	Region 2: Memory at f1000000 (32-bit, non-prefetchable) [size=64K]
	[virtual] Expansion ROM at d8000000 [disabled] [size=128K]
	Capabilities: [58] AGP version 2.0
		Status: RQ=48 Iso- ArqSz=0 Cal=0 SBA+ ITACoh- GART64- HTrans- 64bit- FW+ AGP3- Rate=x1,x2
		Command: RQ=1 ArqSz=0 Cal=0 SBA+ AGP- GART64- 64bit- FW- Rate=<none>
	Capabilities: [50] Power Management version 2
		Flags: PMEClk- DSI- D1+ D2+ AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-)
		Status: D0 PME-Enable- DSel=0 DScale=0 PME-
	Kernel modules: radeonfb


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: pci 0000:01:00.0: BAR 0: can't allocate resource
       [not found] <f1f3dd8f0902221910n2722b024pe3ec8748fd3aed5b@mail.gmail.com>
  2009-02-23  3:13 ` Fwd: pci 0000:01:00.0: BAR 0: can't allocate resource George Rapp
@ 2009-02-23  3:50 ` Linus Torvalds
  2009-02-23  7:32   ` H. Peter Anvin
       [not found]   ` <f1f3dd8f0902240542m58aa6adfn3fc09cee162636a1@mail.gmail.com>
  1 sibling, 2 replies; 6+ messages in thread
From: Linus Torvalds @ 2009-02-23  3:50 UTC (permalink / raw)
  To: George Rapp; +Cc: linux-kernel



On Sun, 22 Feb 2009, George Rapp wrote:
> 
> In case the attachments don't survive Gmail, dmesg output is at
> http://novia.net/~gwr/dmesg_2.6.29-0.33.rc5, and output of 'lspci -vv' is at
> http://novia.net/~gwr/lspci-vv_2.6.29-0.33.rc5

Can you also show the contents of /proc/iomem?

It does look like it's this one:

	pci 0000:01:00.0: BAR 0: can't allocate mem resource [0xe0000000-0xe7ffffff]

and the problem is that the kernel cannot find enough space to map the 
required 128MB region for the graphics aperture.

Which is really odd, because the bridge to that PCI bus#1 is this:

	pci 0000:00:01.0: PCI bridge, secondary bus 0000:01
	pci 0000:00:01.0:   IO window: 0x9000-0x9fff
	pci 0000:00:01.0:   MEM window: 0xf0000000-0xf1ffffff
	pci 0000:00:01.0:   PREFETCH window: 0x000000d8000000-0x000000e7ffffff

and that prefetch window is _huge_. Certainly big enough to fit BAR 0, but 
maybe there is something else in it.

		Linus

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: pci 0000:01:00.0: BAR 0: can't allocate resource
  2009-02-23  3:50 ` Linus Torvalds
@ 2009-02-23  7:32   ` H. Peter Anvin
  2009-02-23  8:01     ` Dave Airlie
       [not found]   ` <f1f3dd8f0902240542m58aa6adfn3fc09cee162636a1@mail.gmail.com>
  1 sibling, 1 reply; 6+ messages in thread
From: H. Peter Anvin @ 2009-02-23  7:32 UTC (permalink / raw)
  To: Linus Torvalds; +Cc: George Rapp, linux-kernel

Linus Torvalds wrote:
> 
> On Sun, 22 Feb 2009, George Rapp wrote:
>> In case the attachments don't survive Gmail, dmesg output is at
>> http://novia.net/~gwr/dmesg_2.6.29-0.33.rc5, and output of 'lspci -vv' is at
>> http://novia.net/~gwr/lspci-vv_2.6.29-0.33.rc5
> 
> Can you also show the contents of /proc/iomem?
> 
> It does look like it's this one:
> 
> 	pci 0000:01:00.0: BAR 0: can't allocate mem resource [0xe0000000-0xe7ffffff]
> 
> and the problem is that the kernel cannot find enough space to map the 
> required 128MB region for the graphics aperture.
> 

Which makes sense on 32 bits, since by default the entire vmalloc region
is only 128 MB in size.

Booting with vmalloc=256M or something like that might help.

	-hpa

-- 
H. Peter Anvin, Intel Open Source Technology Center
I work for Intel.  I don't speak on their behalf.


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: pci 0000:01:00.0: BAR 0: can't allocate resource
  2009-02-23  7:32   ` H. Peter Anvin
@ 2009-02-23  8:01     ` Dave Airlie
  0 siblings, 0 replies; 6+ messages in thread
From: Dave Airlie @ 2009-02-23  8:01 UTC (permalink / raw)
  To: H. Peter Anvin; +Cc: Linus Torvalds, George Rapp, linux-kernel

On Mon, Feb 23, 2009 at 5:32 PM, H. Peter Anvin <hpa@zytor.com> wrote:
> Linus Torvalds wrote:
>>
>> On Sun, 22 Feb 2009, George Rapp wrote:
>>> In case the attachments don't survive Gmail, dmesg output is at
>>> http://novia.net/~gwr/dmesg_2.6.29-0.33.rc5, and output of 'lspci -vv' is at
>>> http://novia.net/~gwr/lspci-vv_2.6.29-0.33.rc5
>>
>> Can you also show the contents of /proc/iomem?
>>
>> It does look like it's this one:
>>
>>       pci 0000:01:00.0: BAR 0: can't allocate mem resource [0xe0000000-0xe7ffffff]
>>
>> and the problem is that the kernel cannot find enough space to map the
>> required 128MB region for the graphics aperture.
>>
>
> Which makes sense on 32 bits, since by default the entire vmalloc region
> is only 128 MB in size.
>
> Booting with vmalloc=256M or something like that might help.
>

Its not ioremap mapping it, its just getting the resource mapping for
PCI that is needed.

So nothing to do with vmalloc.

Dave.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: pci 0000:01:00.0: BAR 0: can't allocate resource
       [not found]   ` <f1f3dd8f0902240542m58aa6adfn3fc09cee162636a1@mail.gmail.com>
@ 2009-02-24 13:53     ` George Rapp
  2009-02-24 16:45     ` Linus Torvalds
  1 sibling, 0 replies; 6+ messages in thread
From: George Rapp @ 2009-02-24 13:53 UTC (permalink / raw)
  To: linux-kernel

[Re-sending; forgot to turn off HTML and lkml bounced my original ...]

On Tue, Feb 24, 2009 at 8:42 AM, George Rapp <george.rapp@gmail.com> wrote:
>
> On Sun, Feb 22, 2009 at 10:50 PM, Linus Torvalds <torvalds@linux-foundation.org> wrote:
>>
>> Can you also show the contents of /proc/iomem?
>
> Linus -
>
> Here it is:
>
> [root@newbackend ~]# cat /proc/iomem
> 00000000-0009fbff : System RAM
> 0009fc00-0009ffff : reserved
> 000a0000-000bffff : Video RAM area
> 000c0000-000ccfff : Video ROM
> 000d0000-000d47ff : Adapter ROM
> 000f0000-000fffff : reserved
>   000f0000-000fffff : System ROM
> 00100000-1bffffff : System RAM
>   00400000-006d8200 : Kernel code
>   006d8201-0088aa97 : Kernel data
>   008f8000-009ed14b : Kernel bss
>   01382000-01382fff : Local APIC
> d8000000-e7ffffff : PCI Bus 0000:01
>   d8000000-d801ffff : 0000:01:00.0
> e8000000-efffffff : 0000:00:00.0
> f0000000-f1ffffff : PCI Bus 0000:01
>   f1000000-f100ffff : 0000:01:00.0
> f2000000-f201ffff : 0000:00:0b.0
> f3000000-f307ffff : 0000:00:0c.0
> f4000000-f40001ff : 0000:00:0c.0
>   f4000000-f40001ff : sata_sil
> f4001000-f400107f : 0000:00:0b.0
> ffff0000-ffffffff : reserved
>
>
>
>>
>> It does look like it's this one:
>>
>>        pci 0000:01:00.0: BAR 0: can't allocate mem resource [0xe0000000-0xe7ffffff]
>>
>> and the problem is that the kernel cannot find enough space to map the
>> required 128MB region for the graphics aperture.
>>
>> Which is really odd, because the bridge to that PCI bus#1 is this:
>>
>>        pci 0000:00:01.0: PCI bridge, secondary bus 0000:01
>>        pci 0000:00:01.0:   IO window: 0x9000-0x9fff
>>        pci 0000:00:01.0:   MEM window: 0xf0000000-0xf1ffffff
>>        pci 0000:00:01.0:   PREFETCH window: 0x000000d8000000-0x000000e7ffffff
>>
>> and that prefetch window is _huge_. Certainly big enough to fit BAR 0, but
>> maybe there is something else in it.
>>
>>                Linus
>
>
>
\

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: pci 0000:01:00.0: BAR 0: can't allocate resource
       [not found]   ` <f1f3dd8f0902240542m58aa6adfn3fc09cee162636a1@mail.gmail.com>
  2009-02-24 13:53     ` George Rapp
@ 2009-02-24 16:45     ` Linus Torvalds
  1 sibling, 0 replies; 6+ messages in thread
From: Linus Torvalds @ 2009-02-24 16:45 UTC (permalink / raw)
  To: George Rapp; +Cc: Linux Kernel Mailing List, Peter Anvin, Dave Airlie



On Tue, 24 Feb 2009, George Rapp wrote:
> 
> [root@newbackend ~]# cat /proc/iomem
> ...
> d8000000-e7ffffff : PCI Bus 0000:01
>   d8000000-d801ffff : 0000:01:00.0

Ok, that's the large prefetchable PCI bridge window we would _want_ to fit 
into. And it even has something from your video card in it. In fact, I 
think it's the expansion ROM (which is not actually enabled, but the 
resource has been allocated for it).

> e8000000-efffffff : 0000:00:00.0

This is the AGP window, I think.

> f0000000-f1ffffff : PCI Bus 0000:01
>   f1000000-f100ffff : 0000:01:00.0

And this is the non-prefetchable PCI bridge window, and has the 
non-prefetchable video card resource in it.

But the odd thing is that prefetchable bridge window:

	d8000000-e7ffffff : PCI Bus 0000:01
	  d8000000-d801ffff : 0000:01:00.0

because the thing you _want_ to fit into it is this:

	pci 0000:01:00.0: BAR 0: can't allocate mem resource [0xe0000000-0xe7ffffff]

and quite frankly, it should fit perfectly fine. I'm not seeing at all why 
it can't just allocate it. Why can't we not just put it in that exact 
range: 0xe0000000-0xe7ffffff.

But there are other odd things there too. Your dmesg contains one 
tantalizing clue about the setup the BIOS used that I hadn't noticed 
before:

	pci 0000:01:00.0: reg 10 32bit mmio: [0xd0000000-0xdfffffff]
	pci 0000:01:00.0: reg 14 io port: [0x9000-0x90ff]
	pci 0000:01:00.0: reg 18 32bit mmio: [0xf1000000-0xf100ffff]
	pci 0000:01:00.0: reg 30 32bit mmio: [0x000000-0x01ffff]
	pci 0000:01:00.0: supports D1 D2

an the odd clue is that [0xd0000000-0xdfffffff]. It's the same BAR, when 
probed for initial values. And the _size_ is different. At that initial 
probe, the PCI bridge windows are set up by the BIOS (and we actually try 
to keep them, so they stay the same after PCI probing) as

	pci 0000:00:01.0: bridge io port: [0x9000-0x9fff]
	pci 0000:00:01.0: bridge 32bit mmio: [0xf0000000-0xf1ffffff]
	pci 0000:00:01.0: bridge 32bit mmio pref: [0xd8000000-0xe7ffffff]

and the _initial_ problem at that point is that we cannot reconcile the 
original video device BAR mapping (0xd0000000-0xdfffffff) with the PCI 
bridge window (0xd8000000-0xe7ffffff) since they overlap in invalid ways.

So at that point, the size of that thing is actually bigger (256M) than we 
think it's later (128M), and because it doesn't fit anywhere, we say "the 
BIOS setup must be crap, we need to re-allocate that resource". And with 
that bigger size, it really _is_ impossible to allocate.

Then at the later point, when we try to re-allocate space for it, we fail, 
but then we print out the failure and seem to think it's just 128MB in 
size:

	BAR 0: can't allocate mem resource [0xe0000000-0xe7ffffff]

(The difference in starting point is unimportant - it comes from the 
resource code having tried different starting points and failed to find 
one that satisfies us).

I wonder why the heck the sizes don't match. It also looks like the BIOS 
had set the card originally at 0xd0000000, which isn't even inside the 
bridge window. That PCI bridge is:

	00:01.0 PCI bridge: Intel Corporation 440BX/ZX/DX - 82443BX/ZX/DX AGP bridge (rev 03) (prog-if 00 [Normal decode])

which says "normal decode", but knowing intel bridges they probably say 
that, and then they are subtractive decode after all, so the damn thing 
probably _works_ even if it's outside the bridge window.

Your machine is a mess. Has graphics _ever_ worked for you under Linux on 
that thing (not counting VESA or other braindead modes that use the 
legacy VGA apertures)?

Very odd. The 256MB size would explain why we can't seem to allocate it. 
But why do we print out the size as being 128M? And why did the BIOS do 
that crazy initial setup?

George, what happens if you ask Linux to just re-allocate all BIOS PCI bus 
window information by passing in the kernel command line

	pci=assign-busses

(and perhaps also "pci=norom", but try with just the assign-busses thing 
first).

			Linus

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2009-02-24 16:45 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <f1f3dd8f0902221910n2722b024pe3ec8748fd3aed5b@mail.gmail.com>
2009-02-23  3:13 ` Fwd: pci 0000:01:00.0: BAR 0: can't allocate resource George Rapp
2009-02-23  3:50 ` Linus Torvalds
2009-02-23  7:32   ` H. Peter Anvin
2009-02-23  8:01     ` Dave Airlie
     [not found]   ` <f1f3dd8f0902240542m58aa6adfn3fc09cee162636a1@mail.gmail.com>
2009-02-24 13:53     ` George Rapp
2009-02-24 16:45     ` Linus Torvalds

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).