[flashrom] MSR access fix on ALIX2D13 running OpenBSD-5.3

Leonardo Guardati leonardo at guardati.it
Sat Apr 13 20:20:04 CEST 2013


On Sat, Apr 13, 2013 at 01:49:54AM +0200, Stefan Tauner wrote:
> On Wed, 10 Apr 2013 20:36:48 +0200
> Leonardo Guardati <leonardo at guardati.it> wrote:
> 
> >  ...
> >  1. Applied patch amdmsr.patch to openbsd kernel (/usr/src/sys/arch/i386/i386/amdmsr.c)
> > Explaination: the original code checks for GPU presence (alix has no GPU) and fails; I
> > just skip the check. 
> 
> interesting. does upstream know about this?

I've sent a message on tech at openbsd.org ml; but I've an update for this problem.
I've managed to flash coreboot on the ALIX board (had to use crossgcc to successfully
compile) and magically now the probe works! So I suppose the original tinyBIOS did
something wrong (for example disable something GP-related knowing the board doesn't 
have any display interface)

Attached the dmesg using the original tinyBIOS and the diff using coreboot.

> ... 
>
> i'll post new patches in a minute (one corrected msr patch and an
> independent hwaccess.c patch that should fix netbsd hopefully and makes
> the defines more usable and sane and should be tested on openbsd too).
> i'd be very glad if you could test them on top of current HEAD again.

Sure, as soon as I can I will checkout the last trunk and test again.

Note: There is also a warning about a second CS5536 chipset being found.

Thank You.

Leonardo.
-------------- next part --------------
OpenBSD 5.3-current (GENERIC) #5: Thu Apr 11 09:58:58 CEST 2013
    root at test.my.domain:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: Geode(TM) Integrated Processor by AMD PCS ("AuthenticAMD" 586-class) 499 MHz
cpu0: FPU,DE,PSE,TSC,MSR,CX8,SEP,PGE,CMOV,CFLUSH,MMX,MMXX,3DNOW2,3DNOW
real mem  = 267976704 (255MB)
avail mem = 252264448 (240MB)
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 11/05/08, BIOS32 rev. 0 @ 0xfd088
pcibios0 at bios0: rev 2.1 @ 0xf0000/0x10000
pcibios0: pcibios_get_intr_routing - function not supported
pcibios0: PCI IRQ Routing information unavailable.
pcibios0: PCI bus #0 is the last bus
bios0: ROM list: 0xe0000/0xa800
cpu0 at mainbus0: (uniprocessor)
amdmsr_probe(): entry
amdmsr_probe(): cpu_vendor match!!
amdmsr_probe(): graph check1 ok!!
amdmsr_probe(): graph check2 FAIL
value returned: D0C1EE10
amdmsr0 at mainbus0
pci0 at mainbus0 bus 0: configuration mode 1 (bios)
pchb0 at pci0 dev 1 function 0 "AMD Geode LX" rev 0x33
glxsb0 at pci0 dev 1 function 2 "AMD Geode LX Crypto" rev 0x00: RNG AES
vr0 at pci0 dev 9 function 0 "VIA VT6105M RhineIII" rev 0x96: irq 10, address 00:0d:b9:20:13:28
ukphy0 at vr0 phy 1: Generic IEEE 802.3u media interface, rev. 3: OUI 0x004063, model 0x0034
vr1 at pci0 dev 10 function 0 "VIA VT6105M RhineIII" rev 0x96: irq 11, address 00:0d:b9:20:13:29
ukphy1 at vr1 phy 1: Generic IEEE 802.3u media interface, rev. 3: OUI 0x004063, model 0x0034
vr2 at pci0 dev 11 function 0 "VIA VT6105M RhineIII" rev 0x96: irq 15, address 00:0d:b9:20:13:2a
ukphy2 at vr2 phy 1: Generic IEEE 802.3u media interface, rev. 3: OUI 0x004063, model 0x0034
glxpcib0 at pci0 dev 15 function 0 "AMD CS5536 ISA" rev 0x03: rev 3, 32-bit 3579545Hz timer, watchdog, gpio, i2c
gpio0 at glxpcib0: 32 pins
iic0 at glxpcib0
maxtmp0 at iic0 addr 0x4c: lm86
pciide0 at pci0 dev 15 function 2 "AMD CS5536 IDE" rev 0x01: DMA, channel 0 wired to compatibility, channel 1 wired to compatibility
wd0 at pciide0 channel 0 drive 0: <CF Card 4GB>
wd0: 1-sector PIO, LBA48, 3811MB, 7806960 sectors
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2
pciide0: channel 1 ignored (disabled)
ohci0 at pci0 dev 15 function 4 "AMD CS5536 USB" rev 0x02: irq 12, version 1.0, legacy support
ehci0 at pci0 dev 15 function 5 "AMD CS5536 USB" rev 0x02: irq 12
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 "AMD EHCI root hub" rev 2.00/1.00 addr 1
isa0 at glxpcib0
isadma0 at isa0
com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
com0: console
com1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo
pcppi0 at isa0 port 0x61
spkr0 at pcppi0
npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16
usb1 at ohci0: USB revision 1.0
uhub1 at usb1 "AMD OHCI root hub" rev 1.00/1.00 addr 1
mtrr: K6-family MTRR support (2 registers)
nvram: invalid checksum
vscsi0 at root
scsibus0 at vscsi0: 256 targets
softraid0 at root
scsibus1 at softraid0: 256 targets
root on wd0a (6cc31457c8c4056c.a) swap on wd0b dump on wd0b
clock: unknown CMOS layout
-------------- next part --------------
--- usingTinyBIOS.log	2013-04-12 21:02:30.539048102 +0200
+++ usingCoreboot.log	2013-04-12 21:02:30.534048165 +0200
@@ -2,21 +2,23 @@
     root at test.my.domain:/usr/src/sys/arch/i386/compile/GENERIC
 cpu0: Geode(TM) Integrated Processor by AMD PCS ("AuthenticAMD" 586-class) 499 MHz
 cpu0: FPU,DE,PSE,TSC,MSR,CX8,SEP,PGE,CMOV,CFLUSH,MMX,MMXX,3DNOW2,3DNOW
-real mem  = 267976704 (255MB)
-avail mem = 252264448 (240MB)
+real mem  = 259321856 (247MB)
+avail mem = 243748864 (232MB)
 mainbus0 at root
-bios0 at mainbus0: AT/286+ BIOS, date 11/05/08, BIOS32 rev. 0 @ 0xfd088
+bios0 at mainbus0: AT/286+ BIOS, date 06/23/99, BIOS32 rev. 0 @ 0xfc789, SMBIOS rev. 2.7 @ 0xf7c1420 (6 entries)
+bios0: vendor coreboot version "4.0-4007-g1a5c9cd-dirty" date 04/12/2013
+bios0: PC Engines ALIX.2D
+acpi at bios0 function 0x0 not configured
 pcibios0 at bios0: rev 2.1 @ 0xf0000/0x10000
 pcibios0: pcibios_get_intr_routing - function not supported
 pcibios0: PCI IRQ Routing information unavailable.
 pcibios0: PCI bus #0 is the last bus
-bios0: ROM list: 0xe0000/0xa800
+bios0: ROM list: 0xef000/0x1000!
 cpu0 at mainbus0: (uniprocessor)
 amdmsr_probe(): entry
 amdmsr_probe(): cpu_vendor match!!
 amdmsr_probe(): graph check1 ok!!
-amdmsr_probe(): graph check2 FAIL
-value returned: D0C1EE10
+amdmsr_probe(): graph check2 ok!!
 amdmsr0 at mainbus0
 pci0 at mainbus0 bus 0: configuration mode 1 (bios)
 pchb0 at pci0 dev 1 function 0 "AMD Geode LX" rev 0x33
@@ -25,7 +27,7 @@
 ukphy0 at vr0 phy 1: Generic IEEE 802.3u media interface, rev. 3: OUI 0x004063, model 0x0034
 vr1 at pci0 dev 10 function 0 "VIA VT6105M RhineIII" rev 0x96: irq 11, address 00:0d:b9:20:13:29
 ukphy1 at vr1 phy 1: Generic IEEE 802.3u media interface, rev. 3: OUI 0x004063, model 0x0034
-vr2 at pci0 dev 11 function 0 "VIA VT6105M RhineIII" rev 0x96: irq 15, address 00:0d:b9:20:13:2a
+vr2 at pci0 dev 11 function 0 "VIA VT6105M RhineIII" rev 0x96: irq 9, address 00:0d:b9:20:13:2a
 ukphy2 at vr2 phy 1: Generic IEEE 802.3u media interface, rev. 3: OUI 0x004063, model 0x0034
 glxpcib0 at pci0 dev 15 function 0 "AMD CS5536 ISA" rev 0x03: rev 3, 32-bit 3579545Hz timer, watchdog, gpio, i2c
 gpio0 at glxpcib0: 32 pins
@@ -36,8 +38,8 @@
 wd0: 1-sector PIO, LBA48, 3811MB, 7806960 sectors
 wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2
 pciide0: channel 1 ignored (disabled)
-ohci0 at pci0 dev 15 function 4 "AMD CS5536 USB" rev 0x02: irq 12, version 1.0, legacy support
-ehci0 at pci0 dev 15 function 5 "AMD CS5536 USB" rev 0x02: irq 12
+ohci0 at pci0 dev 15 function 4 "AMD CS5536 USB" rev 0x02: irq 9, version 1.0, legacy support
+ehci0 at pci0 dev 15 function 5 "AMD CS5536 USB" rev 0x02: irq 9
 usb0 at ehci0: USB revision 2.0
 uhub0 at usb0 "AMD EHCI root hub" rev 2.00/1.00 addr 1
 isa0 at glxpcib0


More information about the flashrom mailing list