[LinuxBIOS] K8 resource map + my project update

Rudolf Marek r.marek at assembler.cz
Thu Jun 28 01:12:49 CEST 2007


Hello all,

I have some troubles with my resource map on my VIA/K8 project. I'm working on
K8T890 VIA / VT8237 MB with K8 939.

  For some reason my PCI IO limit get set to 0x4000

0000:00:18.1 Host bridge: Advanced Micro Devices [AMD] K8 NorthBridge
00: 22 10 01 11 00 00 00 00 00 00 00 06 00 00 80 00
10: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
20: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
30: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
40: 03 00 00 00 00 00 1f 00 00 00 00 00 01 00 00 00
50: 00 00 00 00 02 00 00 00 00 00 00 00 03 00 00 00
60: 00 00 00 00 04 00 00 00 00 00 00 00 05 00 00 00
70: 00 00 00 00 06 00 00 00 00 00 00 00 07 00 00 00
80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
90: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
a0: 00 00 00 00 00 00 00 00 03 0a 00 00 00 0c 00 00
b0: 03 00 e0 00 00 ff f7 00 03 00 fc 00 00 2f fc 00
c0: 00 00 00 00 00 00 00 00 13 10 00 00 00 40 00 00

                                            ^^^^^^^
d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
e0: 03 00 00 06 00 00 00 00 00 00 00 00 00 00 00 00
f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

I'm using my own resourcemap file which I'm attaching.

Anyone knows the reason why this register get overwritten?
Is somewhere documented what needs to be setup in resource map and what
get set up in northbridge.c of K8 and friends?

When I need K8_ALLOCATE_IO_RANGE ?

As for the status update. Linux runs with one DIMM because the interleaved
is still? not supported for unbuffered dimms?

Peripherals seems to work, but the SATA/IDE will hang after heavy IO. I think
it is because of not yet configured VIA V-link.

So far I'm booting it with FILO to initramfs based FS, details at the end of mail.

I hope my questions are more clear than my mind - need some sleep now.

Oh btw I wrote some K8 resource dump program. It is still alpha, but produces 
some results. Attached too. Suggestions wellcome! All files will be released 
under GPL one I get it working.

Regards
Rudolf




00001000-0009ffff : System RAM 

000c0000-000effff : System RAM 

00100000-1fffffff : System RAM 

   00200000-00434cf4 : Kernel code 

   00434cf5-00519b2f : Kernel data 

e0000000-efffffff : 0000:00:00.0 

f0000000-f7ffffff : PCI Bus #02 

   f0000000-f7ffffff : 0000:02:00.0 

f8000000-fbffffff : GART 

   f8000000-fbffffff : aperture 

fc000000-fc0fffff : PCI Bus #02 

   fc000000-fc01ffff : 0000:02:00.0 

   fc020000-fc02ffff : 0000:02:00.0 

   fc030000-fc03ffff : 0000:02:00.1 

fc100000-fc1fffff : PCI Bus #05 

   fc100000-fc11ffff : 0000:05:00.0 

   fc120000-fc123fff : 0000:05:00.0 

     fc120000-fc123fff : sky2 

fc200000-fc20ffff : 0000:00:0c.0 

fc210000-fc2100ff : 0000:00:0c.0 

fc211000-fc2110ff : 0000:00:10.4 

fec00000-fec00fff : IOAPIC 0 

fecc0000-fecc0fff : IOAPIC 1 

fee00000-fee00fff : Local APIC 

            CPU0 

   0:      35599   IO-APIC-edge      timer 

   1:        907   IO-APIC-edge      i8042 

   2:          0    XT-PIC-XT        cascade 

   4:         17   IO-APIC-edge      serial 

  12:        112   IO-APIC-edge      i8042 

  36:         25   IO-APIC-fasteoi   eth0 

NMI:          0 

LOC:      35537 

ERR:          1
0000-001f : dma1 

0020-0021 : pic1 

0040-0043 : timer0 

0050-0053 : timer1 

0060-006f : keyboard 

0080-008f : dma page reg 

00a0-00a1 : pic2 

00c0-00df : dma2 

00f0-00ff : fpu 

0170-0177 : 0000:00:0f.1 

01f0-01f7 : 0000:00:0f.1 

0376-0376 : 0000:00:0f.1 

03c0-03df : vga+ 

03f6-03f6 : 0000:00:0f.1 

03f8-03ff : serial 

0cf8-0cff : PCI conf1 

1000-1fff : PCI Bus #02 

   1000-10ff : 0000:02:00.0 

2000-2fff : PCI Bus #05 

   2000-20ff : 0000:05:00.0 

     2000-20ff : sky2 

3000-30ff : 0000:00:0c.0 

3400-34ff : 0000:00:0f.0 

3800-38ff : 0000:00:11.5 

3c00-3cff : 0000:00:11.6 

4000-401f : 0000:00:10.0 

4020-403f : 0000:00:10.1 

4040-405f : 0000:00:10.2 

4060-407f : 0000:00:10.3 

4080-408f : 0000:00:0f.0 

4090-409f : 0000:00:0f.1 

40a0-40a7 : 0000:00:0f.0 

40b0-40b7 : 0000:00:0f.0 

40c0-40c3 : 0000:00:0f.0 

40d0-40d3 : 0000:00:0f.0

00:00.0 Host bridge: VIA Technologies, Inc. K8T890 Host Bridge
00:00.1 Host bridge: VIA Technologies, Inc. K8T890 Host Bridge
00:00.2 Host bridge: VIA Technologies, Inc. K8T890 Host Bridge
00:00.3 Host bridge: VIA Technologies, Inc. K8T890 Host Bridge
00:00.4 Host bridge: VIA Technologies, Inc. K8T890 Host Bridge
00:00.5 PIC: VIA Technologies, Inc. K8T890 I/O APIC Interrupt Controller
00:00.7 Host bridge: VIA Technologies, Inc. K8T890 Host Bridge
00:01.0 PCI bridge: VIA Technologies, Inc. VT8237 PCI bridge [K8T800/K8T890 South]
00:02.0 PCI bridge: VIA Technologies, Inc. K8T890 PCI to PCI Bridge Controller
00:03.0 PCI bridge: VIA Technologies, Inc. K8T890 PCI to PCI Bridge Controller
00:03.1 PCI bridge: VIA Technologies, Inc. K8T890 PCI to PCI Bridge Controller
00:03.2 PCI bridge: VIA Technologies, Inc. K8T890 PCI to PCI Bridge Controller
00:03.3 PCI bridge: VIA Technologies, Inc. K8T890 PCI to PCI Bridge Controller
00:0c.0 Ethernet controller: Realtek Semiconductor Co., Ltd. 
RTL-8139/8139C/8139C+ (rev 10)
00:0f.0 IDE interface: VIA Technologies, Inc. VIA VT6420 SATA RAID Controller 
(rev 80)
00:0f.1 IDE interface: VIA Technologies, Inc. 
VT82C586A/B/VT82C686/A/B/VT823x/A/C PIPC Bus Master IDE (rev 06)
00:10.0 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller 
(rev 81)
00:10.1 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller 
(rev 81)
00:10.2 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller 
(rev 81)
00:10.3 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller 
(rev 81)
00:10.4 USB Controller: VIA Technologies, Inc. USB 2.0 (rev 86)
00:11.0 ISA bridge: VIA Technologies, Inc. VT8237 ISA bridge 
[KT600/K8T800/K8T890 South]
00:11.5 Multimedia audio controller: VIA Technologies, Inc. VT8233/A/8235/8237 
AC97 Audio Controller (rev 60)
00:11.6 Communication controller: VIA Technologies, Inc. AC'97 Modem Controller 
(rev 80)
00:18.0 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] 
HyperTransport Technology Configuration
00:18.1 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] Address Map
00:18.2 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] DRAM 
Controller
00:18.3 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] 
Miscellaneous Control
02:00.0 VGA compatible controller: ATI Technologies Inc RV370 5B60 [Radeon X300 
(PCIE)]
02:00.1 Display controller: ATI Technologies Inc RV370 [Radeon X300SE]
05:00.0 Ethernet controller: Marvell Technology Group Ltd. 88E8053 PCI-E Gigabit 
Ethernet Controller (rev 19)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: resourcemap.c
Type: text/x-csrc
Size: 8315 bytes
Desc: not available
URL: <http://www.coreboot.org/pipermail/coreboot/attachments/20070628/3a8f31de/attachment.c>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dump_res.c
Type: text/x-csrc
Size: 3095 bytes
Desc: not available
URL: <http://www.coreboot.org/pipermail/coreboot/attachments/20070628/3a8f31de/attachment-0001.c>


More information about the coreboot mailing list