[LinuxBIOS] PNP init on A8N5X

Robert Millan rmh at aybabtu.com
Sat Sep 29 01:13:04 CEST 2007


Thanks to Carl-Daniel's help in debugging my keyboard problems, it seems we
found what's wrong.  During boot log:

  PNP: 002e.8 missing set_resources
  PNP: 002e.9 missing set_resources
  PNP: 002e.a missing set_resources
  ERROR: PNP: 002e.1 60 io size: 0x0000000008 not assigned
  ERROR: PNP: 002e.1 70 irq size: 0x0000000001 not assigned
  [ similar errors follow ]

  (note: keyboard is 2e.a)

Sounds like an internal LB error rather than hardware state;  I gave a look
at static.c and tried to figure out what code should using those structs for
initialisation, but couldn't find anything.

Someone could please enlighten me?  (full logs + patch attached)

-- 
Robert Millan

<GPLv2> I know my rights; I want my phone call!
<DRM> What use is a phone call, if you are unable to speak?
(as seen on /.)
-------------- next part --------------
 

LinuxBIOS-2.0.0_Fallback ds set 29 00:42:15 CEST 2007 starting...
core0 started: 
started ap apicid: 
SBLink=00
NC node|link=00
ht reset -


LinuxBIOS-2.0.0_Fallback ds set 29 00:42:15 CEST 2007 starting...
core0 started: 
started ap apicid: 
SBLink=00
NC node|link=00
SMBus controller enabled
Ram1.00
Ram2.00
Ram3
Initializing memory:  done
Ram4
v_esp=000ced48
testx = 5a5a5a5a
Copying data from cache to RAM -- switching to use RAM as stack... Done
testx = 5a5a5a5a
Disabling cache as ram now 
Clearing initial memory region: Done
Copying LinuxBIOS to RAM.
src=fffdf000
dst=00004000
linxbios_ram.nrv2b length = 0000d865
linxbios_ram.bin   length = 0002149c
Jumping to LinuxBIOS.
LinuxBIOS-2.0.0_Fallback ds set 29 00:42:15 CEST 2007 booting...
Enumerating buses...
APIC_CLUSTER: 0 enabled
PCI_DOMAIN: 0000 enabled
  PCI: 00:18.3 siblings=0
	Found Rev E or Rev F later single core

CPU: APIC: 00 enabled
PCI: pci_scan_bus for bus 00
PCI: 00:18.0 [1022/1100] enabled
PCI: 00:18.1 [1022/1101] enabled
PCI: 00:18.2 [1022/1102] enabled
PCI: 00:18.3 [1022/1103] enabled
PCI: 00:00.0 [10de/005e] enabled
PCI: 00:00.0 [10de/005e] enabled next_unitid: 000f
PCI: pci_scan_bus for bus 00
PCI: 00:00.0 [10de/005e] enabled
PCI: 00:01.0 [10de/0050] enabled
PCI: 00:01.1 [10de/0052] enabled
PCI: 00:02.0 [10de/005a] enabled
PCI: 00:02.1 [10de/005b] enabled
PCI: 00:04.0 [10de/0059] disabled
PCI: 00:04.1 [10de/0058] disabled
PCI: 00:06.0 [10de/0053] enabled
PCI: 00:07.0 [10de/0054] enabled
PCI: 00:08.0 [10de/0055] enabled
PCI: 00:09.0 [10de/005c] enabled
PCI: 00:0a.0 [10de/0056] enabled
PCI: 00:0b.0 [10de/005d] enabled
PCI: 00:0c.0 [10de/005d] enabled
PCI: 00:0d.0 [10de/005d] enabled
PCI: 00:0e.0 [10de/005d] enabled
PNP: 002e.7 disabled
PNP: 002e.8 enabled
PNP: 002e.9 enabled
PNP: 002e.a enabled
PNP: 002e.b disabled
PNP: 002e.c disabled
PNP: 002e.1 enabled
PNP: 002e.2 enabled
PNP: 002e.3 enabled
PNP: 002e.4 enabled
PNP: 002e.5 enabled
PNP: 002e.6 enabled
PCI: pci_scan_bus for bus 01
PCI: 01:06.0 [5333/8811] enabled
PCI: pci_scan_bus returning with max=001
PCI: pci_scan_bus for bus 02
PCI: pci_scan_bus returning with max=002
PCI: pci_scan_bus for bus 03
PCI: pci_scan_bus returning with max=003
PCI: pci_scan_bus for bus 04
PCI: pci_scan_bus returning with max=004
PCI: pci_scan_bus for bus 05
PCI: pci_scan_bus returning with max=005
PCI: pci_scan_bus returning with max=005
PCI: pci_scan_bus returning with max=005
done
Allocating resources...
Reading resources...
PNP: 002e.8 missing read_resources
PNP: 002e.9 missing read_resources
PNP: 002e.a missing read_resources
PCI: 00:09.0 1c <- [0x000000f000 - 0x000000efff] bus 01 io
PCI: 00:09.0 24 <- [0x00fff00000 - 0x00ffefffff] bus 01 prefmem
PCI: 00:0b.0 1c <- [0x00fffff000 - 0x00ffffefff] bus 02 io
PCI: 00:0b.0 24 <- [0xfffffffffff00000 - 0xffffffffffefffff] bus 02 prefmem
PCI: 00:0b.0 20 <- [0x00fff00000 - 0x00ffefffff] bus 02 mem
PCI: 00:0c.0 1c <- [0x00fffff000 - 0x00ffffefff] bus 03 io
PCI: 00:0c.0 24 <- [0xfffffffffff00000 - 0xffffffffffefffff] bus 03 prefmem
PCI: 00:0c.0 20 <- [0x00fff00000 - 0x00ffefffff] bus 03 mem
PCI: 00:0d.0 1c <- [0x00fffff000 - 0x00ffffefff] bus 04 io
PCI: 00:0d.0 24 <- [0xfffffffffff00000 - 0xffffffffffefffff] bus 04 prefmem
PCI: 00:0d.0 20 <- [0x00fff00000 - 0x00ffefffff] bus 04 mem
PCI: 00:0e.0 1c <- [0x00fffff000 - 0x00ffffefff] bus 05 io
PCI: 00:0e.0 24 <- [0xfffffffffff00000 - 0xffffffffffefffff] bus 05 prefmem
PCI: 00:0e.0 20 <- [0x00fff00000 - 0x00ffefffff] bus 05 mem
Done reading resources.
Allocating VGA resource PCI: 01:06.0
Setting PCI_BRIDGE_CTL_VGA for bridge PCI: 00:09.0
Setting PCI_BRIDGE_CTL_VGA for bridge PCI: 00:18.0
Setting PCI_BRIDGE_CTL_VGA for bridge PCI_DOMAIN: 0000
Setting PCI_BRIDGE_CTL_VGA for bridge Root Device
Setting resources...
VGA: PCI: 00:18.0 (aka node 0) link 0 has VGA device
PCI: 00:18.0 1b8 <- [0x00fca00000 - 0x00fc9fffff] prefmem <node 0 link 0>
PCI: 00:18.0 1b0 <- [0x00fc000000 - 0x00fc9fffff] mem <node 0 link 0>
PCI: 00:01.0 10 <- [0x0000000c00 - 0x0000000c7f] io
PCI: 00:01.0 14 <- [0x00fc900000 - 0x00fc900fff] mem
PCI: 00:01.0 60 <- [0x0000000000 - 0x00000000ff] io
PCI: 00:01.0 64 <- [0x0000000400 - 0x00000004ff] io
PCI: 00:01.0 68 <- [0x0000000800 - 0x00000008ff] io
PNP: 002e.8 missing set_resources
PNP: 002e.9 missing set_resources
PNP: 002e.a missing set_resources
ERROR: PNP: 002e.1 60 io size: 0x0000000008 not assigned
ERROR: PNP: 002e.1 70 irq size: 0x0000000001 not assigned
ERROR: PNP: 002e.2 60 io size: 0x0000000008 not assigned
ERROR: PNP: 002e.2 70 irq size: 0x0000000001 not assigned
ERROR: PNP: 002e.2 74 drq size: 0x0000000001 not assigned
ERROR: PNP: 002e.2 75 drq size: 0x0000000001 not assigned
ERROR: PNP: 002e.3 60 io size: 0x0000000008 not assigned
ERROR: PNP: 002e.3 70 irq size: 0x0000000001 not assigned
ERROR: PNP: 002e.3 74 drq size: 0x0000000001 not assigned
ERROR: PNP: 002e.4 60 io size: 0x0000000008 not assigned
ERROR: PNP: 002e.4 62 io size: 0x0000000008 not assigned
ERROR: PNP: 002e.4 70 irq size: 0x0000000001 not assigned
ERROR: PNP: 002e.5 60 io size: 0x0000000008 not assigned
ERROR: PNP: 002e.5 62 io size: 0x0000000008 not assigned
ERROR: PNP: 002e.5 70 irq size: 0x0000000001 not assigned
ERROR: PNP: 002e.6 70 irq size: 0x0000000001 not assigned
PCI: 00:01.1 10 <- [0x0000001000 - 0x000000101f] io
PCI: 00:01.1 20 <- [0x0000000c80 - 0x0000000cbf] io
PCI: 00:01.1 24 <- [0x0000000cc0 - 0x0000000cff] io
PCI: 00:02.0 10 <- [0x00fc901000 - 0x00fc901fff] mem
PCI: 00:02.1 10 <- [0x00fc905000 - 0x00fc9050ff] mem
PCI: 00:06.0 20 <- [0x0000001020 - 0x000000102f] io
PCI: 00:07.0 10 <- [0x0000001050 - 0x0000001057] io
PCI: 00:07.0 14 <- [0x00000010a0 - 0x00000010a3] io
PCI: 00:07.0 18 <- [0x0000001060 - 0x0000001067] io
PCI: 00:07.0 1c <- [0x00000010b0 - 0x00000010b3] io
PCI: 00:07.0 20 <- [0x0000001030 - 0x000000103f] io
PCI: 00:07.0 24 <- [0x00fc902000 - 0x00fc902fff] mem
PCI: 00:08.0 10 <- [0x0000001070 - 0x0000001077] io
PCI: 00:08.0 14 <- [0x00000010c0 - 0x00000010c3] io
PCI: 00:08.0 18 <- [0x0000001080 - 0x0000001087] io
PCI: 00:08.0 1c <- [0x00000010d0 - 0x00000010d3] io
PCI: 00:08.0 20 <- [0x0000001040 - 0x000000104f] io
PCI: 00:08.0 24 <- [0x00fc903000 - 0x00fc903fff] mem
PCI: 00:09.0 20 <- [0x00fc000000 - 0x00fc8fffff] bus 01 mem
PCI: 01:06.0 10 <- [0x00fc000000 - 0x00fc7fffff] mem
PCI: 01:06.0 30 <- [0x00fc800000 - 0x00fc80ffff] romem
PCI: 00:0a.0 10 <- [0x00fc904000 - 0x00fc904fff] mem
PCI: 00:0a.0 14 <- [0x0000001090 - 0x0000001097] io
PCI: 00:18.3 94 <- [0x00f8000000 - 0x00fbffffff] mem <gart>
Done setting resources.
Done allocating resources.
Enabling resources...
PCI: 00:18.0 cmd <- 00
PCI: 00:00.0 subsystem <- 10f1/2891
PCI: 00:00.0 cmd <- 06
PCI: 00:01.0 subsystem <- 10f1/2891
PCI: 00:01.0 cmd <- 0f
PNP: 002e.8 missing enable_resources
PNP: 002e.9 missing enable_resources
PNP: 002e.a missing enable_resources
ck804 lpc decode:PNP: 002e.1, base=0x00000000, end=0x00000007

ck804 lpc decode:PNP: 002e.2, base=0x00000000, end=0x00000007

ck804 lpc decode:PNP: 002e.3, base=0x00000000, end=0x00000007

ck804 lpc decode:PNP: 002e.4, base=0x00000000, end=0x00000007

ck804 lpc decode:PNP: 002e.4, base=0x00000000, end=0x00000007

ck804 lpc decode:PNP: 002e.5, base=0x00000000, end=0x00000007

ck804 lpc decode:PNP: 002e.5, base=0x00000000, end=0x00000007

PCI: 00:01.1 subsystem <- 10f1/2891
PCI: 00:01.1 cmd <- 01
PCI: 00:02.0 subsystem <- 10f1/2891
PCI: 00:02.0 cmd <- 02
PCI: 00:02.1 subsystem <- 10f1/2891
PCI: 00:02.1 cmd <- 02
PCI: 00:06.0 subsystem <- 10f1/2891
PCI: 00:06.0 cmd <- 01
PCI: 00:07.0 subsystem <- 10f1/2891
PCI: 00:07.0 cmd <- 03
PCI: 00:08.0 subsystem <- 10f1/2891
PCI: 00:08.0 cmd <- 03
PCI: 00:09.0 bridge ctrl <- 000b
PCI: 00:09.0 cmd <- 07
PCI: 01:06.0 cmd <- 03
PCI: 00:0a.0 subsystem <- 10f1/2891
PCI: 00:0a.0 cmd <- 03
PCI: 00:0b.0 bridge ctrl <- 0003
PCI: 00:0b.0 cmd <- 00
PCI: 00:0c.0 bridge ctrl <- 0003
PCI: 00:0c.0 cmd <- 00
PCI: 00:0d.0 bridge ctrl <- 0003
PCI: 00:0d.0 cmd <- 00
PCI: 00:0e.0 bridge ctrl <- 0003
PCI: 00:0e.0 cmd <- 00
PCI: 00:18.1 subsystem <- 10f1/2891
PCI: 00:18.1 cmd <- 00
PCI: 00:18.2 subsystem <- 10f1/2891
PCI: 00:18.2 cmd <- 00
PCI: 00:18.3 cmd <- 00
done.
Initializing devices...
Root Device init
APIC_CLUSTER: 0 init
Initializing CPU #0
CPU: vendor AMD device 30ff2
CPU: family 0f, model 3f, stepping 02
Enabling cache

Setting fixed MTRRs(0-88) type: UC
Setting fixed MTRRs(0-16) Type: WB, RdMEM, WrMEM
Setting fixed MTRRs(24-88) Type: WB, RdMEM, WrMEM
DONE fixed MTRRs
Setting variable MTRR 0, base:    0MB, range: 1024MB, type WB
Setting variable MTRR 1, base: 1024MB, range:  512MB, type WB
DONE variable MTRRs
Clear out the extra MTRR's

MTRR check
Fixed MTRRs   : Enabled
Variable MTRRs: Enabled

CPU model AMD Athlon(tm) 64 Processor 3500+
Setting up local apic... apic_id: 0x00 done.
ECC Disabled
CPU #0 Initialized
All AP CPUs stopped
PCI: 00:18.0 init
PCI: 00:01.0 init
set power on after power fail
RTC Init
Invalid CMOS LB checksum
PCI: 00:02.0 init
PCI: 00:02.1 init
PCI: 00:06.0 init
IDE1 	IDE0
PCI: 00:07.0 init
SATA S 	SATA P 
PCI: 00:08.0 init
SATA S 	SATA P 
PCI: 00:09.0 init
dev_root mem base = 0x00f8000000
[0x50] <-- 0xf8000000
PCI: 00:0a.0 init
PCI: 00:0b.0 init
PCI: 00:0c.0 init
PCI: 00:0d.0 init
PCI: 00:0e.0 init
PCI: 00:18.1 init
PCI: 00:18.2 init
PCI: 00:18.3 init
NB: Function 3 Misc Control.. done.
PNP: 002e.1 init
PNP: 002e.2 init
PNP: 002e.3 init
PNP: 002e.4 init
PNP: 002e.5 init
PNP: 002e.6 init
PCI: 01:06.0 init
rom address for PCI: 01:06.0 = fc800000
Class Code mismatch ROM 00000003, dev 00030000
copying non-VGA ROM Image from 0xfc800000 to 0xd0000, 0x8000 bytes
entering emulator
un-inited int vector
halt_sys: file /home/rmh/hacking/linuxbios/hardware/asus_a8n5x/new/src/devices/emulator/x86emu/ops.c, line 4387
Devices initialized
Writing IRQ routing tables to 0xf0000...done.
Wrote the mp table end at: 00000020 - 00000140
Moving GDT to 0x500...ok
Adjust low_table_end from 0x00000530 to 0x00001000 
Adjust rom_table_end from 0x000f0400 to 0x00100000 
Wrote linuxbios table at: 00000530 - 00000c7c  checksum 8

Welcome to elfboot, the open sourced starter.
January 2002, Eric Biederman.
Version 1.3

rom_stream: 0xfffc0000 - 0xfffdefff
Found ELF candidate at offset 0
header_offset is 0
Try to load at offset 0x0
New segment addr 0x100000 size 0x2e760 offset 0xc0 filesize 0xfa28
(cleaned up) New segment addr 0x100000 size 0x2e760 offset 0xc0 filesize 0xfa28
New segment addr 0x12e760 size 0x48 offset 0xfb00 filesize 0x48
(cleaned up) New segment addr 0x12e760 size 0x48 offset 0xfb00 filesize 0x48
Dropping non PT_LOAD segment
Dropping non PT_LOAD segment
Loading Segment: addr: 0x0000000000100000 memsz: 0x000000000002e760 filesz: 0x000000000000fa28
Clearing Segment: addr: 0x000000000010fa28 memsz: 0x000000000001ed38
Loading Segment: addr: 0x000000000012e760 memsz: 0x0000000000000048 filesz: 0x0000000000000048
Jumping to boot code at 0x10a440
FILO version 0.5 (rmh at thorin) Tue Sep 25 21:41:17 CEST 2007
collect_sys_info: boot eax = 0xe1fb007
collect_sys_info: boot ebx = 0x5fff2660
collect_sys_info: boot arg = 0x5fff2660
malloc_diag: alloc: 0 bytes (0 blocks), free: 16376 bytes (1 blocks)
malloc_diag: alloc: 24 bytes (1 blocks), free: 16352 bytes (1 blocks)
collect_elfboot_info: Bootloader: elfboot
collect_elfboot_info: Version: 1.3
malloc_diag: alloc: 40 bytes (2 blocks), free: 16336 bytes (1 blocks)
collect_linuxbios_info: Searching for LinuxBIOS tables...
find_lb_table: Found canidate at: 00000530
find_lb_table: header checksum o.k.
find_lb_table: table checksum o.k.
find_lb_table: record count o.k.
collect_linuxbios_info: Found LinuxBIOS table at: 00000530
convert_memmap: 0x00000000000000 0x00000000001000 16
convert_memmap: 0x00000000001000 0x0000000009f000 1
convert_memmap: 0x000000000c0000 0x00000000030000 1
convert_memmap: 0x000000000f0000 0x00000000010000 16
convert_memmap: 0x00000000100000 0x0000005ff00000 1
collect_sys_info: 0000000000001000-00000000000a0000
collect_sys_info: 00000000000c0000-00000000000f0000
collect_sys_info: 0000000000100000-0000000060000000
collect_sys_info: RAM 1536 MB
relocate: Current location: 0x100000-0x12e7a7
relocate: Relocating to 0x5ffd1850-0x5ffffff7... ok
setup_timers: CPU 2211 MHz
pci_init: Scanning PCI: found 19 devices
malloc_diag: alloc: 280 bytes (3 blocks), free: 16096 bytes (1 blocks)
pci_init: 00:00.0 10de:005e 0580 00
pci_init: 00:01.0 10de:0050 0601 00
pci_init: 00:01.1 10de:0052 0c05 00
pci_init: 00:02.0 10de:005a 0c03 10
pci_init: 00:02.1 10de:005b 0c03 20
pci_init: 00:06.0 10de:0053 0101 8a
pci_init: 00:07.0 10de:0054 0101 85
pci_init: 00:08.0 10de:0055 0101 85
pci_init: 00:09.0 10de:005c 0604 01
pci_init: 00:0a.0 10de:0056 0200 00
pci_init: 00:0b.0 10de:005d 0604 00
pci_init: 00:0c.0 10de:005d 0604 00
pci_init: 00:0d.0 10de:005d 0604 00
pci_init: 00:0e.0 10de:005d 0604 00
pci_init: 00:18.0 1022:1100 0600 00
pci_init: 00:18.1 1022:1101 0600 00
pci_init: 00:18.2 1022:1102 0600 00
pci_init: 00:18.3 1022:1103 0600 00
pci_init: 01:06.0 5333:8811 0300 00
menu: hda1:/grub/menu.lst
malloc_diag: alloc: 296 bytes (4 blocks), free: 16080 bytes (1 blocks)
file_open: dev=hda1, path=/grub/menu.lst
find_ide_controller: found PCI IDE controller 10de:0053 prog_if=0x8a
find_ide_controller: primary channel: compatibility mode
find_ide_controller: cmd_base=0x1f0 ctrl_base=0x3f4
ide_software_reset: Waiting for ide0 to become ready for reset... ok
init_drive: Testing for hda
init_drive: Probing for hda
init_drive: LBA mode, sectors=30008475
init_drive: Init device params... ok
hda: LBA 15GB: ST315323A                               
devopen: Partition 1 start 63 length 1044162
Mounted ext2fs
malloc_diag: alloc: 280 bytes (3 blocks), free: 16096 bytes (1 blocks)
malloc_diag: alloc: 392 bytes (4 blocks), free: 15984 bytes (1 blocks)
malloc_diag: alloc: 408 bytes (5 blocks), free: 15968 bytes (1 blocks)
file_open: dev=hda1, path=/vmlinuz-2.6.22-2-686
devopen: already open
malloc_diag: alloc: 392 bytes (4 blocks), free: 15984 bytes (1 blocks)
elf_load: Not a bootable ELF image
malloc_diag: alloc: 408 bytes (5 blocks), free: 15968 bytes (1 blocks)
file_open: dev=hda1, path=/vmlinuz-2.6.22-2-686
devopen: already open
malloc_diag: alloc: 392 bytes (4 blocks), free: 15984 bytes (1 blocks)
Found Linux version 2.6.22-2-686 (unknown at Debian) #1 SMP Fri Aug 31 00:24:01 UTC 2007 (protocol 0x206) (loadflags 0x1) bzImage.
init_linux_params: Setting up paramters at 0x90000
set_memory_size: 0000000000001000 - 00000000000a0000
set_memory_size: 00000000000c0000 - 00000000000f0000
set_memory_size: 0000000000100000 - 0000000060000000
set_memory_size: ramtop=0x60000000
set_memory_size: ext_mem_k=64512, alt_mem_k=1571840
parse_command_line: original command line: "root=/dev/hda3 ro console=ttyS0 acpi=off  initrd=/initrd.img-2.6.22-2-686"
parse_command_line: kernel command line at 0x91000
malloc_diag: alloc: 432 bytes (5 blocks), free: 15944 bytes (1 blocks)
parse_command_line: initrd=/initrd.img-2.6.22-2-686
parse_command_line: kernel command line (40 bytes): "root=/dev/hda3 ro console=ttyS0 acpi=off"
load_linux_kernel: offset=0x2000 addr=0x100000 size=0x149f90
Loading kernel... ok
file_open: dev=<NULL>, path=/initrd.img-2.6.22-2-686
load_initrd: start=0x1fad6000 end=0x1ffff986
Loading initrd... ok
malloc_diag: alloc: 392 bytes (4 blocks), free: 15984 bytes (1 blocks)
start_linux: eip=0x100000
Jumping to entry point...
-------------- next part --------------
A non-text attachment was scrubbed...
Name: a8n5x.diff
Type: text/x-diff
Size: 8476 bytes
Desc: not available
URL: <http://www.coreboot.org/pipermail/coreboot/attachments/20070929/c7222c25/attachment.bin>


More information about the coreboot mailing list