[LinuxBIOS] S2882 Memory Hang

Matthew Simmons linuxbios at glw.com
Mon Nov 7 19:54:36 CET 2005


Here is what I did to make it work. In the src/cpu/amd/dualcore/dualcore.c I
removed the 0x10 from the line:

lapic_write(LAPIC_ID,(0x10 + id.coreid*0x10 + id.nodeid) << 24);

The new line is:

lapic_write(LAPIC_ID,(id.coreid*0x10 + id.nodeid) << 24);

This worked correctly. And the system booted!

Thanks for your help,
Matt

-----Original Message-----
From: linuxbios-bounces at openbios.org [mailto:linuxbios-bounces at openbios.org]
On Behalf Of Lu, Yinghai
Sent: Monday, November 07, 2005 11:16 AM
To: Matthew Simmons; linuxbios at openbios.org
Subject: Re: [LinuxBIOS] S2882 Memory Hang

src/cpu/amd/dualcore...

anyway that is some confusing..., it should be at src/cpu/amd/model_fxx...

YH

-----Original Message-----
From: Matthew Simmons [mailto:matt at glw.com]
Sent: Monday, November 07, 2005 8:09 AM
To: Lu, Yinghai; linuxbios at openbios.org
Subject: RE: [LinuxBIOS] S2882 Memory Hang

I am having a little trouble locating the k8_secondart_stop function.
Could
you point me in the right direction? I looked in
src/southbridge/amd/amd8111/ and in src/mainboard/tyan/s2882/ as well as
src/northbridge/amd/amdk8.

I have hard coded the apicid_base to 4.

Thanks for your help,
Matt


-----Original Message-----
From: Lu, Yinghai [mailto:yinghai.lu at amd.com]
Sent: Friday, November 04, 2005 5:51 PM
To: Matthew Simmons; linuxbios at openbios.org
Subject: RE: [LinuxBIOS] S2882 Memory Hang

1. You don't need to lift your cpu apic id above 0x10.

2. for amd8111 sb, when you do that, kernel will hang, because jiffies will
not change.

So remove 0x10 in your k8_secondart_stop.....
And hard code apicid_base to 4

It should work....

YH


-----Original Message-----
From: linuxbios-bounces at openbios.org
[mailto:linuxbios-bounces at openbios.org] On Behalf Of Matthew Simmons
Sent: Friday, November 04, 2005 2:11 PM
To: linuxbios at openbios.org
Subject: [LinuxBIOS] S2882 Memory Hang

I am currently trying get LinuxBios up and running on my Tyan S2882.
After
hard coding the apicid_base = 1 in the mptable.c I was finally able to
successfully build a bios image for my system. I am using filo as the
payload and the configuration of that went well. 
 
Both LinuxBios and filo are working as expected. The problem occurs when I
attempt to boot the kernel. The kernel stops after the memory manager loads.
There are no errors or panics. The system just locks up. 
 
I was wondering if any of you have seen this problem, or know of a work
around. I am including the kernel output from the serial console. As well as
a brief description of the configuration of the system.
 
Thanks for your help,
Matthew Simmons


 
Configuration:
----------------------------------------------
Tyan S2882 2x Opteron 248 Processors
1024mb Ram (512x per processor)
LinuxBIOSv2 (Revision 2084)
Kernel: 2.6.12.1 with the Realtime Preempt Patch Base OS: SuSE 9.2 GCC
version: 3.3.2
 
 
Serial Console Output: (Sorry for the length)
------------------------------------------------
LinuxBIOS-1.1.8_s2882_Fallback Fri Nov  4 12:47:40 CST 2005 starting...

(0,1) link=01             
(1,0) link=01             
02 nodes initialized.                     
SBLink=00         
NC node|link=00               
Ram1.00       
Ram1.01       
Ram2.00       
Ram2.01       
Ram3    
Initializing memory:  done                          
Initializing memory:  done                          
Clearing initial memory region:  done

Ram4    
Copying LinuxBIOS to ram.                         
Jumping to LinuxBIOS.                     
LinuxBIOS-1.1.8_s2882_Fallback Fri Nov  4 12:47:40 CST 2005 booting...

Enumerating buses...                    
APIC_CLUSTER: 0 enabled                       
PCI_DOMAIN: 0000 enabled                        
CPU: APIC: 10 enabled                     
PCI: 00:19.0 [1022/1100] enabled                                
PCI: 00:19.1 [1022/1101] enabled                                
PCI: 00:19.2 [1022/1102] enabled                                
PCI: 00:19.3 [1022/1103] enabled                                
CPU: APIC: 11 enabled                     
PCI: pci_scan_bus for bus 0                           
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:19.0 [1022/1100] enabled                                
PCI: 00:19.1 [1022/1101] enabled                                
PCI: 00:19.2 [1022/1102] enabled                                
PCI: 00:19.3 [1022/1103] enabled                                
PCI: 01:00.0 [1022/7450] en                          
PCI: 01:01.0 [1022/7450] enabled next_unitid: 0003

PCI: 01:00.0 [1022/7460] enabled                                
PCI: 01:03.0 [1022/7460] enabled next_unitid: 0007

PCI: pci_scan_bus for bus 1                           
PCI: 01:01.0 [1022/7450] enabled                                
PCI: 01:01.1 [1022/7451] enabled                                
PCI: 01:02.0 [1022/7450] enabled                                
PCI: 01:02.1 [1022/7451] enabled                                
PCI: 01:03.0 [1022/7460] enabled                                
PCI: 01:04.0 [1022/7468] enabled                                
PCI: 01:04.1 [1022/7469] enabled                                
PCI: 01:04.2 [1022/746a] enabled                                
PCI: 01:04.3 [1022/746b] enabled                                
PCI: pci_scan_bus for bus 2                           
Disabling static device: PCI: 0                              
Disabling static device: PCI: 02:06.1

PCI: 02:09.0 [14e4/1648] enabled                                
PCI: 02:09.1 [14e4/1648] enabled                                
PCI: pci_scan_bus returning with max=02

PCI: 02: 100MHz PCI-X                     
PCI: pci_scan_bus for bus 3                           
PCI: 03:04.0 [10ee/3fc6] enabled                                
PCI: pci_scan_bus returning with max=03

PCI: 03: Conventional PCI                         
PCI: pci_scan_bus for bus 4                           
PCI: 04:00.0 [1022/7464] enabled                                
PCI: 04:00.1 [1022/7464] enabled                                
PCI: 04:05.0 [1095/3114] enabled                                
PCI: 04:06.0 [1002/4752] enabled                                
PCI: 04:08.0 [8086/1229] enabled                                
PCI: pci_scan_bus returning with m                                
PNP: 002e.0 enabled                   
PNP: 002e.1 disabled                    
PNP: 002e.2 enabled                   
PNP: 002e.3 disabled                    
PNP: 002e.5 enabled                   
PNP: 002e.6 disabled                    
PNP: 002e.7 disabled                    
PNP: 002e.8 disabled                    
PNP: 002e.9 disabled                    
PNP: 002e.a disabled                    
PNP: 002e.b enabled                   
PCI: pci_scan_bus returning with max=04

PCI: pci_scan_bus returning with max=04

done    
Allocating resources...                       
Reading resources...                    
PCI: 01:01.0 1c <- [0x00fffff000 - 0x00ffffefff] bus 2 io

PCI: 01:01.0 24 <- [0xfffffffffff00000 - 0xffffffffffefffff] bus 2 prefmem

PCI: 01:02.0 1c <- [0x00fffff00                              
PCI: 01:02.0 24 <- [0xfffffffffff00000 - 0xffffffffffefffff] bus 3 prefmem
map page: 16ee: 118                          
Cannot map page: 16f       
PCI: 01:03.0 24 <- [0x00fff00000 - 0x00ffefffff] bus 4 prefmem

Cannot map pag              
Cannot map p
Done reading resources.        
Cannot map pag
Allocating VGA resource PCI: 04:06.0                             
Cannot
Setting PCI_BRIDGE_CTL_VGA for bridge PCI: 01:03.0 map page: 174xtra MTRR'sd
<                      
Setting PCI_BRIDGE_CTL_VGA for bridge PCI: 00:18.0  
Cannot map          
Cannot map page: 176      
Setting PCI_BRIDGE_CTL_VGA for bridge PCI_DOMAIN: 0000            

Cannot map page: 178 page: 14b          
Setting PCI_BRIDGE_CTL_VGA for bridge Root Devicep page: 14c

Setting resources...7a                  
PCI: 00:18.0 1b8 <- [0x00fd400000 - 0x00fd3fffff] prefmem <node 0 link
0>

Cannot map page:                
Cannot map page: 17d   
PCI: 01:02.1 10 <- [0x00fd301000 - 0x00fd301fff] mem64map page: 17

Cannot map page: 1a8
PCI: 01:03.0 1c <- [0x0000001000 - 0x0000001fff] bus 4 io page: 18

Cannot map page: 1
PCI: 01:03.0 20 <- [0x00fc000000 - 0x00fd0fffff] bus 4 memge: 191

Cannot map page: 1acnot
PCI: 04:00.0 10 <- [0x00fd020000 - 0x00fd020fff] meme: 1ading f

Cannot map page
PCI: 04:00.1 10 <- [0x00fd021000 - 0x00fd021fff] mem  
Cannot map page: 1aft map                        
PCI: 04:05.0 10 <- [0x0000001450 - 0x0000001457] ioCann    
Cannot map page: 1b1age: 19566e: 124M, W
PCI: 04:05.0 14 <- [0x0000001470 - 0x0000001473] ioge: 1b

Cannot map page: 1bcot ma
PCI: 04:05.0 18 <- [0x0000001460 - 0x0000001467] ioot map page: 1bdot map

Ca
PCI: 04:05.0 1c <- [0x00000014                        
   
PNP: 002e.0 70 <- [0x0000000006 - 0x0000000006] irq     
Cannot map page: 1de                    
Cann
PNP: 002e.0 74 <- [0x0000000002 - 0x0000000002] drq           
P
C 
Can   

-Cannot map page: 1e0t ma
PNP: 002e.2 60 <- [0x00000003f8 - 0x00000003ff] ionot map page: 1e1

Cannot ma   
PNP: 002e.2 70 <- [0x0000000004 - 0x0000000004] irqo     
Cannot map page: 1e3ot map page: 1ca        
PNP: 002e.5 60 <- [0x0000000060 - 0x0000000060] io                  


Cannot map page: 1f4         
PNP: 002e.5 62 <- [0x0000000064 - 0x0000000064] io              
Cannot      
Cannot map page: 1f6
PNP: 002e.5 70 <- [0x0000000001 - 0x0000000001] irq: 1f7

Cannot m        
Cannot m
PNP: 002e.5 72 <- [0x000000000c - 0x000000000c] irq                    
Cannot map page: 1f9Cannot map
PNP: 002e.b 60 <- [0x0000000290 - 0x0000000297] ioage: 1faage: 1ee

Canno
PNP: 002e.b 70 <- [0x0000000005 - 0x0000000005] irq

Cannot map page            
PNP: 002e.5 init        
PCI: 01:01.1 cmd <- 146b i             
NB: Fu
PCI: 01:02.0 bridge ctrl <- 0003                               

PCI: 01:02.0 cmd <- 1460ot ma                 
PCI: 03:04.0 cmd <- 142.0 init                
PCI: 01:02.1 subsystem <- 10f1/2882    
PNP: 002e.0 initd             
PCI: 01:02.1 cmd <- 146 tables to 0xf0000...do
PCI: 01:03.0 bridge ctrl <- 000b                                
PCI: 01:03.0 cmd <- 147ng copy of IRQ routing 
PCI: 04:00.0 subsystem <- 10f1/2882                                   
PCI: 04:00.0 cmd <- 142PCI: 00:19.1 init:06.0
PCI: 04:00.1 subsystem <- 10f1/2882RQ routing table consistency...PCI:
PCI: 04:00.1 cmd <- 142                       
PCI: 04:05.0 subsystem <- 10f1/2882
check_pirq_routing_table() - irq_
PCI: 04:05.0 cmd <- 143: 0x000f00sc Control.. 
PCI: 04:06.0 subsystem <- 10f1/2882                                   
PCI: 04:06.0 cmd <- 1c3         
           

    33:stre
PCI: 01:04.1 cmd <- 1410xfffe0000 - 0xfffe6fff
PCI: 01:04.2 subsystem <- 10f1/2882                            
Found 
PCI: 01:04.2 cmd <- 141                       
PCI: 01:04.3 subsystem <- 10f1/2882                      
Loading Ethe
PCI: 01:04.3 cmd <- 141                       
PCI: 00:18.1 subsystem <- 10f1/2882ing non PT_LOAD segment            
PCI: 00:18.1 cmd <- 140ot 5.2.6 (GPL) http://e
PCI: 00:18.2 subsystem <- 10f1/2882 hda4:/boot/vmlinuz initrd=/boot/in
PCI: 00:18.2 cmd <- 140ons                    
PCI: 00:18.3 cmd <- 140                       
PCI: 00:19.0 cmd <- 140                       
PCI: 00:19.1 cmd <- 140                       
hda: LBA48: HDS7280
Initializing CPU #0                 


CPU: vendor AMD device f5aack Fri Nov  4 13:59:37 CS
Enabling cache...           

Setting fixed MTRRs(0-88) type: UC                        
Found Lin
Setting fixed MTRRs(0-16) Type: WB, RdMEM, WrMEM

(0,1) link=01host) #
Setting fixed MTRRs(24-88) Type: WB, RdMEM, WrMEM       
02 nodes initialized.                    
DONE fixed MTRRsSBLink=00and lin
Setting variable MTRR 0, base:    0MB, range: 1024MB, type WB

ht reset -canning NU                    



DONE variable MTRRs2_Fallback Fri Nov 
Clear out the extra MTRR'sng...                     

MTRR check          
Fixed MTRRs   : Enabled    
Linux version     
Variable MTRRs: Enabledeko at buildho            

Setting up local apic..=01on 3               
Copying Lin
Enabling cachepe 16         

Setting fixed MTRRs(0-88) type: UCnuxBIOS.                     
 BIO
Setting fixed MTRRs(0-16) Type: WB, RdMEM, WrMEM4 13:59:37 CST 2005
booting...                  
Setting fixed MTRRs(24-88) Type: WB, RdMEM, WrMEM  
 BIOS-e820: 00000000000f0000 - 000            
DONE fixed MTRRs     
Enumeratin
Setting variable MTRR 0, base:    0MB, range: 1024MB, type WB

Scanning NU           
PCI_DOMAIN: 0000 enabl
DONE variable MTRRs              
CPU:
Clear out the extra MTRR's 0000000000               

MTRR check          
Fixed MTRRs   : Enabled/11                    
PCI: 00:19.1 [10
All AP CPUs stopped                   
PCI: 00:18.0 initr #17 INVAL      
PCI: 01:01.0 init 00:19.2 [1022/11
PCI: 02:09.0 init                 
PCI: 02:09.1 init#1           
PCI
PCI: 01:02.0 init03] enabled      
PCI: 01:03.0 init        
I
PCI: 
PCI: 04:05.0 init] enabled00.     
PCI: 04:06.0 init            
PCI:
rom address for PCI: 04:06.0 = fff80000: 0003

Incorrect Expansion ROM Header Signature 457fCI: 01:00.0 [1022/7460] enabled

PCI: 04:08.0 init
CPU 0: apertur
PCI: 01:04.0 init01:03.0 [1022/746
RTC Initd next_u
Invalid CMOS LB checksum                        
enabling HPET @0xf                 
PCI: 00:18.2 init                 
PCI: 00:18.3 initstatic device: PC
NB: Function 3 Misc Control.. done.           
Inode-cache hash table 
PCI: 00:19.0 init               
D
PCI: 00:19.1 initvice: PCI: 02:06.
PCI: 00:19.2 init                 
PCI: 00:19.3 init14e4/1648] enable
NB: Function 3 Misc Control.. done.                                   
PCI: 03:04.0 init        
PCI: 02:
Devices initializedbledk data, 220k in
Copying IRQ routing tables to 0xf0000...done.       
PCI: pci_scan_bus returning with max=
Wrote the mp table end at: 00000020 - 00000214 Moving GDT to 0x500...ok
Wrote linuxbios table at: 00000530 - 00000de4  checksum 9515

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

    33:stream_init() - rom_stream: 0xfffe0000 - 0xfffe6fff Found ELF
candiate at offset 0 Loading Etherboot version: 5.2.6 Dropping non PT_LOAD
segment New segment addr 0x20000 size 0x312bd offset 0xb0 filesize 0x6c5b
(cleaned up) New segment addr 0x20000 size 0x312bd offset 0xb0 filesize
0x6c5b Loading Segment: addr: 0x000000003ff90000 memsz:
0x000000000002a000
filesz:
0x0000000000006c5b
Clearing Segment: addr: 0x000000003ff96c5b memsz: 0x00000000000233a5 Loading
Segment: addr: 0x000000000004a000 memsz: 0x00000000000072bd
filesz:
0x0000000000000000
Clearing Segment: addr: 0x000000000004a000 memsz: 0x00000000000072bd Jumping
to boot code at 0x20000 ROM segment 0x0000 length 0x0000 reloc 0x00020000
CPU 2056 Mhz Etherboot 5.2.6 (GPL) http://etherboot.org Tagged ELF for
[FILO] Relocating _text from: [00026c60,00052870) to [3fed43f0,3ff00000)
Boot from (N)etwork (D)isk or (Q)uit?

Probing pci disk...it() - ro
Int BIOS-e820: 00000000000f0000 - 00000000000f0400 type 16i Nov  4
13:57:25
C
Virtual Wire compatibility mode
BIOS-e820: 0000000000100000 - 0000000040000000 (usable)>Product ID:
S2882
<6>APIC at: 0xFEE00000hda4 con
Scanning NUMA topology in Northbridge 24toppe New segment Virtual Wire
compatibility mode.
OEM ID: TYAN     <6>Product ID: S2882        <6>APIC at: 0xFEE00000
Processor #16 15:5 APIC version 16
Processor #17 15:5 APIC version 16
Processor #17 INVALID. (Max ID: 16).
I/O APIC #1 Version 17 at 0xFEC00000.
I/O APIC #2 Version 17 at 0xFD300000.
I/O APIC #3 Version 17 at 0xFD301000.
Processors: 2
Checking aperture...
CPU 0: aperture @ f8000000 size 64 MB
CPU 1: aperture @ f8000000 size 64 MB
Built 2 zonelists
Kernel command line: ro root=/dev/hda4 console=ttyS0,115200 Initializing
CPU#0 PID hash table entries: 4096 (order: 12, 131072 bytes)
time.c: Using 1.193182 MHz PIT timer.
time.c: Detected 1990.814 MHz processor.
Console: colour dummy device 80x25
Dentry cache hash table entries: 262144 (order: 9, 2097152 bytes)
Inode-cache hash table entries: 131072 (order: 8, 1048576 bytes)
Memory: 1023436k/1048576k available (2452k kernel code, 0k reserved, 942k
data, 220k init)


--
LinuxBIOS mailing list
LinuxBIOS at openbios.org
http://www.openbios.org/mailman/listinfo/linuxbios






--
LinuxBIOS mailing list
LinuxBIOS at openbios.org
http://www.openbios.org/mailman/listinfo/linuxbios






More information about the coreboot mailing list