Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 17 Jun 2008 11:43:42 -0400
From:      Jeff Blank <jb000002@mr-happy.com>
To:        freebsd-stable@freebsd.org
Subject:   bus_dmamem_alloc failed to align memory properly
Message-ID:  <20080617154342.GB49490@mr-happy.com>

next in thread | raw e-mail | index | archive | help
Hi,

I've installed a PCI (not PCIE) video card in a FreeBSD 7-STABLE
(20080616 ~19:00 UTC) amd64 system, and when Xorg starts, the kernel
logs the message in the subject.  Context:

Jun 17 11:27:30 bender kernel: drm0: <ATI Radeon RV280 9250> on vgapci0
Jun 17 11:27:30 bender kernel: info: [drm] Initialized radeon 1.25.0 20060524
Jun 17 11:27:33 bender kernel: info: [drm] Setting GART location based on new memory map
Jun 17 11:27:33 bender kernel: bus_dmamem_alloc failed to align memory properly.
Jun 17 11:27:33 bender kernel: info: [drm] Loading R200 Microcode
Jun 17 11:27:33 bender kernel: info: [drm] writeback test succeeded in 2 usecs
Jun 17 11:27:33 bender kernel: drm0: [ITHREAD]

Is this anything to worry about?  Part of the reason I ask is that the
machine locked up hard (had to cut power) the first time I hit
ctrl-alt-bs to kill Xorg, though I can't reproduce that reliably (or,
really, at all just yet).  Let me know if I can provide more
information.  full dmesg and pciconf output below.

Oh, kernel is GENERIC + "options DEVICE_POLLING".

thanks,
Jeff

full dmesg:
=====
Copyright (c) 1992-2008 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
        The Regents of the University of California. All rights reserved.
FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 7.0-STABLE #0: Mon Jun 16 19:20:53 EDT 2008
    root@bender.tc.mtu.edu:/usr/obj/usr/src/sys/POLLING
Timecounter "i8254" frequency 1193182 Hz quality 0
CPU: AMD Athlon(tm) 64 X2 Dual Core Processor 5600+ (2906.09-MHz K8-class CPU)
  Origin = "AuthenticAMD"  Id = 0x60fb2  Stepping = 2
  Features=0x178bfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,MMX,FXSR,SSE,SSE2,HTT>
  Features2=0x2001<SSE3,CX16>
  AMD Features=0xea500800<SYSCALL,NX,MMX+,FFXSR,RDTSCP,LM,3DNow!+,3DNow!>
  AMD Features2=0x11f<LAHF,CMP,SVM,ExtAPIC,CR8,Prefetch>
  Cores per package: 2
usable memory = 4279500800 (4081 MB)
avail memory  = 4108906496 (3918 MB)
ACPI APIC Table: <DELL   bMk    >
FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs
 cpu0 (BSP): APIC ID:  0
 cpu1 (AP): APIC ID:  1
ioapic0: Changing APIC ID to 4
ioapic0 <Version 1.1> irqs 0-23 on motherboard
kbd1 at kbdmux0
ath_hal: 0.9.20.3 (AR5210, AR5211, AR5212, RF5111, RF5112, RF2413, RF5413)
acpi0: <DELL bMk    > on motherboard
acpi0: [ITHREAD]
acpi0: Power Button (fixed)
acpi0: reservation of 0, a0000 (3) failed
acpi0: reservation of 100000, bfdd0000 (3) failed
Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000
acpi_timer0: <24-bit timer at 3.579545MHz> port 0x1008-0x100b on acpi0
acpi_hpet0: <High Precision Event Timer> iomem 0xfeff0000-0xfeff03ff on acpi0
Timecounter "HPET" frequency 25000000 Hz quality 900
cpu0: <ACPI CPU> on acpi0
powernow0: <PowerNow! K8> on cpu0
cpu1: <ACPI CPU> on acpi0
powernow1: <PowerNow! K8> on cpu1
acpi_button0: <Power Button> on acpi0
pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
pci0: <ACPI PCI bus> on pcib0
pci0: <memory, RAM> at device 0.0 (no driver attached)
pci0: <memory, RAM> at device 0.1 (no driver attached)
pci0: <memory, RAM> at device 0.2 (no driver attached)
pci0: <memory, RAM> at device 0.3 (no driver attached)
pci0: <memory, RAM> at device 0.4 (no driver attached)
pci0: <memory, RAM> at device 0.5 (no driver attached)
pci0: <memory, RAM> at device 0.6 (no driver attached)
pci0: <memory, RAM> at device 0.7 (no driver attached)
pcib1: <ACPI PCI-PCI bridge> at device 2.0 on pci0
pci1: <ACPI PCI bus> on pcib1
pcib2: <ACPI PCI-PCI bridge> at device 3.0 on pci0
pci2: <ACPI PCI bus> on pcib2
bge0: <Broadcom NetXtreme Gigabit Ethernet Controller, ASIC rev. 0xb002> mem 0xfdef0000-0xfdefffff irq 16 at device 0.0 on pci2
miibus0: <MII bus> on bge0
brgphy0: <BCM5787 10/100/1000baseTX PHY> PHY 1 on miibus0
brgphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto
bge0: Ethernet address: 00:1e:c9:44:30:14
bge0: [ITHREAD]
pcib3: <ACPI PCI-PCI bridge> at device 4.0 on pci0
pci3: <ACPI PCI bus> on pcib3
pci0: <memory, RAM> at device 9.0 (no driver attached)
isab0: <PCI-ISA bridge> port 0x1d00-0x1dff at device 10.0 on pci0
isa0: <ISA bus> on isab0
pci0: <serial bus, SMBus> at device 10.1 (no driver attached)
pci0: <memory, RAM> at device 10.2 (no driver attached)
ohci0: <OHCI (generic) USB controller> mem 0xfe02f000-0xfe02ffff irq 21 at device 11.0 on pci0
ohci0: [GIANT-LOCKED]
ohci0: [ITHREAD]
usb0: OHCI version 1.0, legacy support
usb0: SMM does not respond, resetting
usb0: <OHCI (generic) USB controller> on ohci0
usb0: USB revision 1.0
uhub0: <nVidia OHCI root hub, class 9/0, rev 1.00/1.00, addr 1> on usb0
uhub0: 8 ports with 8 removable, self powered
ehci0: <EHCI (generic) USB 2.0 controller> mem 0xfe02e000-0xfe02e0ff irq 22 at device 11.1 on pci0
ehci0: [GIANT-LOCKED]
ehci0: [ITHREAD]
usb1: EHCI version 1.0
usb1: companion controller, 8 ports each: usb0
usb1: <EHCI (generic) USB 2.0 controller> on ehci0
usb1: USB revision 2.0
uhub1: <nVidia EHCI root hub, class 9/0, rev 2.00/1.00, addr 1> on usb1
uhub1: 8 ports with 8 removable, self powered
atapci0: <nVidia nForce MCP51 SATA300 controller> port 0x9f0-0x9f7,0xbf0-0xbf3,0x970-0x977,0xb70-0xb73,0xe000-0xe00f mem 0xfe02d000-0xfe02dfff irq 23 at device 14.0 on pci0
atapci0: [ITHREAD]
ata2: <ATA channel 0> on atapci0
ata2: [ITHREAD]
ata3: <ATA channel 1> on atapci0
ata3: [ITHREAD]
atapci1: <nVidia nForce MCP51 SATA300 controller> port 0x9e0-0x9e7,0xbe0-0xbe3,0x960-0x967,0xb60-0xb63,0xcc00-0xcc0f mem 0xfe02c000-0xfe02cfff irq 20 at device 15.0 on pci0
atapci1: [ITHREAD]
ata4: <ATA channel 0> on atapci1
ata4: [ITHREAD]
ata5: <ATA channel 1> on atapci1
ata5: [ITHREAD]
pcib4: <ACPI PCI-PCI bridge> at device 16.0 on pci0
pci4: <ACPI PCI bus> on pcib4
vgapci0: <VGA-compatible display> port 0x9c00-0x9cff mem 0xe0000000-0xe7ffffff,0xfdbf0000-0xfdbfffff irq 16 at device 8.0 on pci4
vgapci1: <VGA-compatible display> mem 0xd8000000-0xdfffffff,0xfdbe0000-0xfdbeffff at device 8.1 on pci4
pci0: <multimedia> at device 16.1 (no driver attached)
sio0: configured irq 4 not in bitmap of probed irqs 0
sio0: port may not be enabled
sio0: configured irq 4 not in bitmap of probed irqs 0
sio0: port may not be enabled
sio0: <16550A-compatible COM port> port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0
sio0: type 16550A
sio0: [FILTER]
ppc0: <Parallel port> port 0x378-0x37f irq 7 on acpi0
ppc0: Generic chipset (EPP/NIBBLE) in COMPATIBLE mode
ppbus0: <Parallel port bus> on ppc0
ppbus0: [ITHREAD]
plip0: <PLIP network interface> on ppbus0
lpt0: <Printer> on ppbus0
lpt0: Interrupt-driven port
ppi0: <Parallel I/O> on ppbus0
ppc0: [GIANT-LOCKED]
ppc0: [ITHREAD]
orm0: <ISA Option ROM> at iomem 0xc0000-0xccfff on isa0
atkbdc0: <Keyboard controller (i8042)> at port 0x60,0x64 on isa0
atkbd0: <AT Keyboard> irq 1 on atkbdc0
kbd0 at atkbd0
atkbd0: [GIANT-LOCKED]
atkbd0: [ITHREAD]
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>
sio1: configured irq 3 not in bitmap of probed irqs 0
sio1: port may not be enabled
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
ums0: <Dell Dell USB Mouse, class 0/0, rev 1.10/29.10, addr 2> on uhub0
ums0: 3 buttons and Z dir.
WARNING: ZFS is considered to be an experimental feature in FreeBSD.
Timecounters tick every 1.000 msec
ZFS filesystem version 6
ZFS storage pool version 6
ad4: 152587MB <SAMSUNG HE160HJ JF800-24> at ata2-master SATA300
ad6: 152587MB <SAMSUNG HE160HJ JF800-24> at ata3-master SATA300
GEOM_MIRROR: Device mirror/gm0 launched (1/2).
GEOM_MIRROR: Device gm0: rebuilding provider ad4.
acd0: CDROM <PBDS CD-ROM DH-48N1S/BD11> at ata4-master SATA150
acd1: CDRW <TSSTcorp CD-RW/DVD-ROM TS-H493B/D200> at ata5-master SATA150
SMP: AP CPU #1 Launched!
Trying to mount root from zfs:zgm0/root
WARNING: /_sysroot was not properly dismounted
ukbd0: <Dell Dell USB Keyboard, class 0/0, rev 1.10/3.50, addr 3> on uhub0
kbd2 at ukbd0
bge0: link state changed to UP
drm0: <ATI Radeon RV280 9250> on vgapci0
info: [drm] Initialized radeon 1.25.0 20060524
info: [drm] Setting GART location based on new memory map
bus_dmamem_alloc failed to align memory properly.
info: [drm] Loading R200 Microcode
info: [drm] writeback test succeeded in 2 usecs
drm0: [ITHREAD]
info: [drm] Setting GART location based on new memory map
bus_dmamem_alloc failed to align memory properly.
info: [drm] Loading R200 Microcode
info: [drm] writeback test succeeded in 2 usecs
drm0: [ITHREAD]
info: [drm] Setting GART location based on new memory map
bus_dmamem_alloc failed to align memory properly.
info: [drm] Loading R200 Microcode
info: [drm] writeback test succeeded in 3 usecs
drm0: [ITHREAD]
=====

pciconf -lv:
=====
none0@pci0:0:0:0:       class=0x050000 card=0x02f010de chip=0x02f010de rev=0xa2 hdr=0x00
    vendor     = 'Nvidia Corp'
    device     = 'C51 Host Bridge'
    class      = memory
    subclass   = RAM
none1@pci0:0:0:1:       class=0x050000 card=0x02fa10de chip=0x02fa10de rev=0xa2 hdr=0x00
    vendor     = 'Nvidia Corp'
    device     = 'C51 Memory Controller 0'
    class      = memory
    subclass   = RAM
none2@pci0:0:0:2:       class=0x050000 card=0x02fe10de chip=0x02fe10de rev=0xa2 hdr=0x00
    vendor     = 'Nvidia Corp'
    device     = 'C51 Memory Controller 1'
    class      = memory
    subclass   = RAM
none3@pci0:0:0:3:       class=0x050000 card=0x02f810de chip=0x02f810de rev=0xa2 hdr=0x00
    vendor     = 'Nvidia Corp'
    device     = 'C51 Memory Controller 5'
    class      = memory
    subclass   = RAM
none4@pci0:0:0:4:       class=0x050000 card=0x02f910de chip=0x02f910de rev=0xa2 hdr=0x00
    vendor     = 'Nvidia Corp'
    device     = 'C51 Memory Controller 4'
    class      = memory
    subclass   = RAM
none5@pci0:0:0:5:       class=0x050000 card=0x02ff10de chip=0x02ff10de rev=0xa2 hdr=0x00
    vendor     = 'Nvidia Corp'
    device     = 'C51 Host Bridge'
    class      = memory
    subclass   = RAM
none6@pci0:0:0:6:       class=0x050000 card=0x027f10de chip=0x027f10de rev=0xa2 hdr=0x00
    vendor     = 'Nvidia Corp'
    device     = 'C51 Memory Controller 3'
    class      = memory
    subclass   = RAM
none7@pci0:0:0:7:       class=0x050000 card=0x027e10de chip=0x027e10de rev=0xa2 hdr=0x00
    vendor     = 'Nvidia Corp'
    device     = 'C51 Memory Controller 2'
    class      = memory
    subclass   = RAM
pcib1@pci0:0:2:0:       class=0x060400 card=0x000010de chip=0x02fc10de rev=0xa1 hdr=0x01
    vendor     = 'Nvidia Corp'
    device     = 'C51 PCIe Bridge'
    class      = bridge
    subclass   = PCI-PCI
pcib2@pci0:0:3:0:       class=0x060400 card=0x000010de chip=0x02fd10de rev=0xa1 hdr=0x01
    vendor     = 'Nvidia Corp'
    device     = 'C51 PCIe Bridge'
    class      = bridge
    subclass   = PCI-PCI
pcib3@pci0:0:4:0:       class=0x060400 card=0x000010de chip=0x02fb10de rev=0xa1 hdr=0x01
    vendor     = 'Nvidia Corp'
    device     = 'C51 PCIe Bridge'
    class      = bridge
    subclass   = PCI-PCI
none8@pci0:0:9:0:       class=0x050000 card=0xcb8410de chip=0x027010de rev=0xa2 hdr=0x00
    vendor     = 'Nvidia Corp'
    device     = 'MCP51 Host Bridge'
    class      = memory
    subclass   = RAM
isab0@pci0:0:10:0:      class=0x060100 card=0x01ec1028 chip=0x026010de rev=0xa3 hdr=0x00
    vendor     = 'Nvidia Corp'
    device     = 'MCP51 LPC Bridge'
    class      = bridge
    subclass   = PCI-ISA
none9@pci0:0:10:1:      class=0x0c0500 card=0x01ec1028 chip=0x026410de rev=0xa3 hdr=0x00
    vendor     = 'Nvidia Corp'
    device     = 'NVIDIA SMB Bus Controller NVIDIA nForce PCI System Management'
    class      = serial bus
    subclass   = SMBus
none10@pci0:0:10:2:     class=0x050000 card=0x01ec1028 chip=0x027210de rev=0xa3 hdr=0x00
    vendor     = 'Nvidia Corp'
    device     = 'MCP51 Memory Controller 0'
    class      = memory
    subclass   = RAM
ohci0@pci0:0:11:0:      class=0x0c0310 card=0x01ec1028 chip=0x026d10de rev=0xa3 hdr=0x00
    vendor     = 'Nvidia Corp'
    device     = 'MCP51 USB Controller'
    class      = serial bus
    subclass   = USB
ehci0@pci0:0:11:1:      class=0x0c0320 card=0x01ec1028 chip=0x026e10de rev=0xa3 hdr=0x00
    vendor     = 'Nvidia Corp'
    device     = 'MCP51 USB Controller'
    class      = serial bus
    subclass   = USB
atapci0@pci0:0:14:0:    class=0x010185 card=0x01ec1028 chip=0x026610de rev=0xa1 hdr=0x00
    vendor     = 'Nvidia Corp'
    device     = 'MCP51 Serial ATA Controller'
    class      = mass storage
    subclass   = ATA
atapci1@pci0:0:15:0:    class=0x010185 card=0x01ec1028 chip=0x026710de rev=0xa1 hdr=0x00
    vendor     = 'Nvidia Corp'
    device     = 'MCP51 Serial ATA Controller'
    class      = mass storage
    subclass   = ATA
pcib4@pci0:0:16:0:      class=0x060401 card=0xcb8410de chip=0x026f10de rev=0xa2 hdr=0x01
    vendor     = 'Nvidia Corp'
    device     = 'MCP51 PCI Bridge'
    class      = bridge
    subclass   = PCI-PCI
none11@pci0:0:16:1:     class=0x040300 card=0x1f901028 chip=0x026c10de rev=0xa2 hdr=0x00
    vendor     = 'Nvidia Corp'
    device     = 'MCP51 High Definition Audio'
    class      = multimedia
hostb0@pci0:0:24:0:     class=0x060000 card=0x00000000 chip=0x11001022 rev=0x00 hdr=0x00
    vendor     = 'Advanced Micro Devices (AMD)'
    device     = '(K8) Athlon 64/Opteron HyperTransport Technology Configuration'
    class      = bridge
    subclass   = HOST-PCI
hostb1@pci0:0:24:1:     class=0x060000 card=0x00000000 chip=0x11011022 rev=0x00 hdr=0x00
    vendor     = 'Advanced Micro Devices (AMD)'
    device     = '(K8) Athlon 64/Opteron Address Map'
    class      = bridge
    subclass   = HOST-PCI
hostb2@pci0:0:24:2:     class=0x060000 card=0x00000000 chip=0x11021022 rev=0x00 hdr=0x00
    vendor     = 'Advanced Micro Devices (AMD)'
    device     = '(K8) Athlon 64/Opteron DRAM Controller'
    class      = bridge
    subclass   = HOST-PCI
hostb3@pci0:0:24:3:     class=0x060000 card=0x00000000 chip=0x11031022 rev=0x00 hdr=0x00
    vendor     = 'Advanced Micro Devices (AMD)'
    device     = '(K8) Athlon 64/Opteron Miscellaneous Control'
    class      = bridge
    subclass   = HOST-PCI
bge0@pci0:2:0:0:        class=0x020000 card=0x01ec1028 chip=0x167a14e4 rev=0x02 hdr=0x00
    vendor     = 'Broadcom Corporation'
    device     = 'BCM5754 Broadcom NetXtreme Gigabit Ethernet Controller'
    class      = network
    subclass   = ethernet
vgapci0@pci0:4:8:0:     class=0x030000 card=0x01201092 chip=0x59601002 rev=0x01 hdr=0x00
    vendor     = 'ATI Technologies Inc'
    device     = 'RV280 Radeon 9200 Pro'
    class      = display
    subclass   = VGA
vgapci1@pci0:4:8:1:     class=0x038000 card=0x01211092 chip=0x59401002 rev=0x01 hdr=0x00
    vendor     = 'ATI Technologies Inc'
    device     = 'RV280 Radeon 9200 Pro - Secondary'
    class      = display
=====



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