Via Cyrix 3 II / CentaurHauls Nehemiah support
Hi,
Now that I've tested the fixed RTL8139 network driver to work on my laptop, I want to try and demo Xen on a mini PC I have with the same card. However it's got a Via Nehemiah CPU, so Xen complains with "Only support Intel processors (P6+)".
I think it's supposed to be 686 class processor - "uname -mpi" reports "i686 i686 i386". I remember the earlier C3 also claimed to be a 686 but was missing the cmov instruction gcc apparently assumed to be present, so only i586 binaries worked. However the attached /proc/cpuinfo from the new Nehemiah includes cmov, and sure enough both i686 kernels and executables are running fine.
Hacking xen/arch/i386/setup.c to allow the chip seems to boot Xen fine without the warning. However adding processor support to xenolinux-2.4.25/arch/xeno/config.in results in xenolinux kernels that immediately hang starting DOM0 when built for 686, CYRIXIII or VIAC3_2. Passing "watchdog" to Xen didn't report any extra help to the screen on stalling.
Any thoughts on how I could fix support for this processor please?
Cheers,
Sean.
Signature · 2 lines
Sean Atkinson <[email protected]> Netproject
Quoted 7 lines
I think it's supposed to be 686 class processor - "uname -mpi" reports "i686 i686 i386". I remember the earlier C3 also claimed to be a 686 but was missing the cmov instruction gcc apparently assumed to be present, so only i586 binaries worked. However the attached
/proc/cpuinfofrom the new Nehemiah includes cmov, and sure enough both i686 kernels and executables are running fine.
Quoted 8 lines
Hacking
xen/arch/i386/setup.cto allow the chip seems to boot Xen fine without the warning. However adding processor support to xenolinux-2.4.25/arch/xeno/config.in results in xenolinux kernels that immediately hang starting DOM0 when built for 686, CYRIXIII orVIAC3_2. Passing "watchdog" to Xen didn't report any extra help to the screen on stalling.Any thoughts on how I could fix support for this processor please?
What happens if you try to boot an unmodified standard Xenolinux image? I would expect that you would see output from DOM0 but it will then panic about an unrecognised CPU type. If you see no output from DOM0 at all then that is weird.
-- Keir
Quoted 8 lines
Cheers,
Sean.
Signature · 3 lines
Sean Atkinson <[email protected]> Netproject Press C-c C-c here to receive file transmission
-=- MIME -=-
--=-XatUKqAoDuY5c0w1CG7Q
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
Hi,
Now that I've tested the fixed RTL8139 network driver to work on my laptop, I want to try and demo Xen on a mini PC I have with the same card. However it's got a Via Nehemiah CPU, so Xen complains with "Only support Intel processors (P6+)".
I think it's supposed to be 686 class processor - "uname -mpi" reports "i686 i686 i386". I remember the earlier C3 also claimed to be a 686 but was missing the cmov instruction gcc apparently assumed to be present, so only i586 binaries worked. However the attached /proc/cpuinfo from the new Nehemiah includes cmov, and sure enough both i686 kernels and executables are running fine.
Hacking xen/arch/i386/setup.c to allow the chip seems to boot Xen fine without the warning. However adding processor support to xenolinux-2.4.25/arch/xeno/config.in results in xenolinux kernels that immediately hang starting DOM0 when built for 686, CYRIXIII or VIAC3_2. Passing "watchdog" to Xen didn't report any extra help to the screen on stalling.
Any thoughts on how I could fix support for this processor please?
Cheers,
Sean.
Signature · 30 lines
Sean Atkinson <[email protected]> Netproject --=-XatUKqAoDuY5c0w1CG7Q Content-Disposition: attachment; filename=cpuinfo Content-Type: application/octet-stream; name=cpuinfo Content-Transfer-Encoding: 7bit --=-XatUKqAoDuY5c0w1CG7Q-- ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Xen-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/xen-devel ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
Quoted 4 lines
What happens if you try to boot an unmodified standard Xenolinux image? I would expect that you would see output from DOM0 but it will then panic about an unrecognised CPU type. If you see no output from DOM0 at all then that is weird.
Using my patched xen.gz to support the CPU but with the standard xenolinux.gz from a demo CD I get the same behaviour using console=tty0
- no output after "(XEN) DOM0: Guest OS virtual load address is c0000000". However without any console= argument or using console=vga I see this too:
*** Serial input -> DOM0 (type 'CTRL-a' to switch input to Xen). Domain 0 killed: rebooting machine!
Reboot disabled on cmdline: require manual reset
Does that help?
Signature · 10 lines
Sean Atkinson <[email protected]> Netproject ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
Quoted 11 lines
Quoted 4 lines
What happens if you try to boot an unmodified standard Xenolinux image? I would expect that you would see output from DOM0 but it will then panic about an unrecognised CPU type. If you see no output from DOM0 at all then that is weird.
Using my patched xen.gz to support the CPU but with the standard xenolinux.gz from a demo CD I get the same behaviour using console=tty0
- no output after "(XEN) DOM0: Guest OS virtual load address isc0000000". However without any console= argument or using console=vga I see this too:
Quoted 5 lines
*** Serial input -> DOM0 (type 'CTRL-a' to switch input to Xen). Domain 0 killed: rebooting machine!
Reboot disabled on cmdline: require manual resetDoes that help?
Make a debug build of Xen (edit arch/i386/Rules.mk and get rid of -DNDEBUG). You will then get some output when DOM0 crashes (you may want to specify 'noreboot' on Xen's command line).
Boot DOM0 without console=tty0 to get this output (or Xen gives up the VGA console).
-- Keir
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
Hi,
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
What happens if you try to boot an unmodified standard Xenolinux image? I would expect that you would see output from DOM0 but it will then panic about an unrecognised CPU type. If you see no output from DOM0 at all then that is weird.
Reading other posts on the list I just realised this was never going to work anyway, since Xen 1.3 silently fails with a 1.2 DOM0 as used on the demo CD. However I got similar results using the correct version as well.
Quoted 3 lines
Make a debug build of Xen (edit
arch/i386/Rules.mkand get rid of -DNDEBUG). You will then get some output when DOM0 crashes (you may want to specify 'noreboot' on Xen's command line).
Only get a couple more lines now:
DOM0: Guest OS virtual load adderss is c0000000
*** Serial input -> DOM0 (type 'CTRL-a' to switch input to Xen). (file=schedule.c, line=264) DOM0 killed itself! (file=schedule.c, line=265) EIP = c0008b69
Domain 0 killed: rebooting machine!
Reboot disabled on cmdline: require manual reset
Perhaps I need to add some debugging to xenolinux too, or is that not even getting started?
Cheers,
Sean.
Signature · 10 lines
Sean Atkinson <[email protected]> Netproject ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
Quoted 2 lines
Boot DOM0 without console=tty0 to get this output (or Xen gives up the VGA console).
Sorry - I only just tried this. I noticed that xenolinux-sparse/arch/xeno/kernel/setup.c panics if the vendor's not AMD or Intel, and wondered why I hadn't seen this on the C3-II. Sure enough adding "console=tty0" enables the DOM0 output as expected, so I'll try and hack it into submission now...
Signature · 10 lines
Sean Atkinson <[email protected]> Netproject ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
Hi,
Fixed! Attached is a patch for the current unstable tree to enable support for the Via C3-II. It allows the CPU in Xen itself, adds it to the Xenolinux CPU config (although this is equivalent to a regular 686 for now), and also lets Xenolinux initialise it. I just copied the relevant sections of code from the regular Linux source, and it seems to work fine.
Also attached are dmesg outputs from patched Xen and DOM0 running on the Nehemiah, plus /proc/cpuinfo from Red Hat 9 and DOM0. Apart from the CPU MHz changing slightly (as they often do between reboots), I notice DOM0 also includes the xstore flag and that the bogomips are almost 10 times the MHz, rather than almost double. Other than that it all looks pretty standard, which is comforting.
Incidentally I also had to connect a PS/2 keyboard since the USB keyboard wasn't recognised. Somehow both then allowed input, although the Num Lock changes only affected the PS/2 keyboard which prevented the right side of the USB keyboard from being used for letters (it's a mini laptop style thing and defaults to Num Lock on). Are there any thoughts on adding USB support yet?
Cheers,
Sean.
Signature · 2 lines
Sean Atkinson <[email protected]> Netproject
ERROR: cannot use unconfigured serial port COM1
__ __ _ _____ _ _
\ \/ /___ _ __ / | |___ / __| | _____ _____| | \ // _ \ '_ \ | | |_ \ __ / _` |/ _ \ \ / / _ \ | / \ __/ | | | | |_ ___) |__| (_| | __/\ V / __/ | /_/\_\___|_| |_| |_(_)____/ \__,_|\___| \_/ \___|_|
http://www.cl.cam.ac.uk/netos/xen
University of Cambridge Computer Laboratory
Xen version 1.3-devel ([email protected]) (gcc version 3.3.2 20031022 (Red Hat Linux 3.3.2-1)) Fri Mar 12 11:19:45 GMT 2004
(XEN) Initialised all memory on a 247MB machine
(XEN) Reading BIOS drive-info tables at 0xfefd5 and 0xfe7e9 (XEN) CPU0: Before vendor init, caps: 0380b13d 00000000 00000000, vendor = 5 (XEN) CPU caps: 0380b13d 00000000 00000000 00000000
(XEN) Initialising domains
(XEN) Initialising schedulers
(XEN) Initializing CPU#0
(XEN) Detected 731.499 MHz processor.
(XEN) No local APIC present or hardware disabled
(XEN) CPU0: Before vendor init, caps: 0380b13d 00000000 00000000, vendor = 5 (XEN) CPU caps: 0380b13d 00000000 00000000 00000000
(XEN) CPU0 booted
(XEN) SMP motherboard not detected.
(XEN) Local APIC not detected. Using dummy APIC emulation.
(XEN) ACT: Initialising Accurate timers
(XEN) Time init:
(XEN) .... System Time: 346282211ns
(XEN) .... cpu_freq: 00000000:2B99CC8C (XEN) .... scale: 00000001:5DF74AE1 (XEN) .... Wall Clock: 1079090919s 0us
(XEN) Start schedulers
(XEN) Testing NMI watchdog --- CPU#0 stuck.
(XEN) PCI: PCI BIOS revision 2.10 entry at 0xfb4f0, last bus=1
(XEN) PCI: Using configuration type 1
(XEN) PCI: Probing PCI hardware
(XEN) PCI: Using IRQ router VIA [1106/0686] at 00:07.0
(XEN) PCI: Disabling Via external APIC routing
(XEN) 8139too Fast Ethernet driver 0.9.26
(XEN) PCI: Found IRQ 15 for device 00:0d.0
(XEN) eth0: RealTek RTL8139 Fast Ethernet at 0xe800, 90:12:02:51:1d:28, IRQ 15 (XEN) eth0: Identified 8139 chip type 'RTL-8139C'
(XEN) Uniform Multi-Platform E-IDE driver Revision: 6.31
(XEN) ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx (XEN) VP_IDE: IDE controller on PCI bus 00 dev 39
(XEN) VP_IDE: detected chipset, but driver not compiled in!
(XEN) VP_IDE: chipset revision 6
(XEN) VP_IDE: not 100% native mode: will probe irqs later
(XEN) ide0: BM-DMA at 0xd000-0xd007, BIOS settings: hda:DMA, hdb:pio
(XEN) hda: ST92011A, ATA DISK drive
(XEN) ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
(XEN) hda: 39070080 sectors (20004 MB) w/2048KiB Cache, CHS=2432/255/63 PIO (slow!) (XEN) SCSI subsystem driver Revision: 1.00
(XEN) Red Hat/Adaptec aacraid driver (1.1.2 Mar 12 2004 11:19:03)
(XEN) eth0: Setting 100mbps full-duplex based on auto-negotiated partner ability 45e1. (XEN) Device eth0 opened and ready for use.
(XEN) DOM0: Guest OS virtual load address is c0000000
(XEN) *** Serial input -> DOM0 (type 'CTRL-a' to switch input to Xen).
processor : 0vendor_id : CentaurHauls
cpu family : 6
model : 9
model name : VIA Nehemiah
stepping : 4
cpu MHz : 731.499
cache size : 64 KBfdiv_bug : nohlt_bug : nof00f_bug : nocoma_bug : no
fpu : yesfpu_exception : yes
cpuid level : 1
wp : yes
flags : fpu de pse tsc msr cx8 mtrr pge cmov mmx fxsr sse xstore
bogomips : 7104.10
processor : 0vendor_id : CentaurHauls
cpu family : 6
model : 9
model name : VIA Nehemiah
stepping : 4
cpu MHz : 731.481
cache size : 64 KBfdiv_bug : nohlt_bug : nof00f_bug : nocoma_bug : no
fpu : yesfpu_exception : yes
cpuid level : 1
wp : yes
flags : fpu de pse tsc msr cx8 mtrr pge cmov mmx fxsr sse
bogomips : 1458.17
Linux version 2.4.25-xeno ([email protected]) (gcc version 3.3.2 20031022 (Red Hat Linux 3.3.2-1)) #2 Fri Mar 12 11:23:20 GMT 2004 On node 0 totalpages: 25000
zone(0): 4096 pages.
zone(1): 20904 pages.
zone(2): 0 pages.
Kernel command line: /xenolinux.gz root=/dev/hda3 ro console=tty0 s
Initializing CPU#0
Xen reported: 731.499 MHz processor.
Console: colour VGA+ 80x25
Calibrating delay loop... 7104.10 BogoMIPS
Memory: 96900k/100000k available (1274k kernel code, 3100k reserved, 243k data, 60k init, 0k highmem) Dentry cache hash table entries: 16384 (order: 5, 131072 bytes) Inode cache hash table entries: 8192 (order: 4, 65536 bytes) Mount cache hash table entries: 512 (order: 0, 4096 bytes) Buffer cache hash table entries: 4096 (order: 2, 16384 bytes) Page-cache hash table entries: 32768 (order: 5, 131072 bytes) CPU: Before vendor init, caps: 0380b13d 00000000 00000000, vendor = 5 CPU: L1 I Cache: 64K (32 bytes/line), D cache 64K (32 bytes/line) CPU: L2 Cache: 64K (32 bytes/line) CPU: After vendor init, caps: 0380b13d 00000000 00000000 00000000 CPU: After generic, caps: 0380b13d 00000000 00000000 00000000 CPU: Common caps: 0380b13d 00000000 00000000 00000000 CPU: Centaur VIA Nehemiah stepping 04
POSIX conformance testing by UNIFIX
Linux NET4.0 for Linux 2.4
Based upon Swansea University Computer Society NET3.039 Initializing RT netlink socket
Starting kswapd
Journalled Block Device driver loaded
Installing knfsd (copyright (C) 1996 [email protected]). Event-channel driver installed.
Xeno console successfully installed
Successfully installed virtual firewall/router interface Starting Xeno Balloon driver
Detected PS/2 Mouse Port.
pty: 256 Unix98 ptys configured
Partition check:
hda: hda1 hda2 hda3
RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize
loop: loaded (max 8 devices)
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP
IP: routing cache hash table of 512 buckets, 4Kbytes
TCP: Hash tables configured (established 8192 bind 16384) ip_conntrack version 2.1 (781 buckets, 6248 max) - 292 bytes per conntrackip_tables: (C) 2000-2002 Netfilter core team
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0. root_device_name = hda3
kjournald starting. Commit interval 5 seconds
EXT3-fs: mounted filesystem with ordered data mode.
VFS: Mounted root (ext3 filesystem) readonly.
Freeing unused kernel memory: 60k freed
EXT3 FS 2.4-0.9.19, 19 August 2002 on hd(3,3), internal journal Adding Swap: 506008k swap-space (priority -1)
kjournald starting. Commit interval 5 seconds
EXT3 FS 2.4-0.9.19, 19 August 2002 on hd(3,2), internal journal
EXT3-fs: mounted filesystem with ordered data mode.
xen/arch/i386/setup.c renamed from xen/arch/i386/setup.c.orig +2 -0
@@ -203,6 +203,8 @@break ;case X86_VENDOR_UNKNOWN :/* Connectix Virtual PC reports this */ break ; +case X86_VENDOR_CENTAUR :/* e.g. Via C3-II Nehemiah */ +break ;default :panic ("Only support Intel processors (P6+)\n" ); }
xenolinux-2.4.25-sparse/arch/xeno/config.in renamed from xenolinux-2.4.25-sparse/arch/xeno/config.in.orig +5 -1
@@ -39,7 +39,8 @@ "Pentium-Pro/Celeron/Pentium-II CONFIG_M686 \ Pentium-III/Celeron(Coppermine) CONFIG_MPENTIUMIII \ Pentium-4 CONFIG_MPENTIUM4 \ - Athlon/Duron/K7 CONFIG_MK7" Pentium-Pro + Athlon/Duron/K7 CONFIG_MK7 \ + VIA-C3-2 CONFIG_MVIAC3_2" Pentium-Pro define_bool CONFIG_X86_WP_WORKS_OK y define_bool CONFIG_X86_INVLPG y
@@ -68,6 +69,9 @@ define_int CONFIG_X86_L1_CACHE_SHIFT 6 define_bool CONFIG_X86_USE_3DNOW y fi +if [ "$CONFIG_MVIAC3_2" = "y" ]; then + define_int CONFIG_X86_L1_CACHE_SHIFT 5 +fi if [ "$CONFIG_EXPERIMENTAL" = "y" ]; then tristate 'BIOS Enhanced Disk Drive calls determine boot disk (EXPERIMENTAL)' CONFIG_EDD
xenolinux-2.4.25-sparse/arch/xeno/kernel/setup.c renamed from xenolinux-2.4.25-sparse/arch/xeno/kernel/setup.c.orig +41 -1
67 lines not on this page · raw message
Quoted 8 lines
Hi,
Fixed! Attached is a patch for the current unstable tree to enable support for the Via C3-II. It allows the CPU in Xen itself, adds it to the Xenolinux CPU config (although this is equivalent to a regular 686 for now), and also lets Xenolinux initialise it. I just copied the relevant sections of code from the regular Linux source, and it seems to work fine.
Cheers. We should probably make the default such that it prints a big warning message if it doesn't know about the CPU, but then has a go booting anyway. We could have an exclusion list of things we know don't work e.g. 586 or older. Want to update your patch? ;-)
Quoted 6 lines
Also attached are dmesg outputs from patched Xen and DOM0 running on the Nehemiah, plus
/proc/cpuinfofrom Red Hat 9 and DOM0. Apart from the CPU MHz changing slightly (as they often do between reboots), I notice DOM0 also includes the xstore flag and that the bogomips are almost 10 times the MHz, rather than almost double. Other than that it all looks pretty standard, which is comforting.
Interesting about the bogomips. I haven't looked too closely at what other CPUs do. I suspect its a generic problem in the xeno setup code, but I doubt it has any real consequence.
Quoted 6 lines
Incidentally I also had to connect a PS/2 keyboard since the USB keyboard wasn't recognised. Somehow both then allowed input, although the Num Lock changes only affected the PS/2 keyboard which prevented the right side of the USB keyboard from being used for letters (it's a mini laptop style thing and defaults to Num Lock on). Are there any thoughts on adding USB support yet?
I suspect the BIOS is making the USB keyboard look like PS/2.
Native USB support for Xen will be rather easier in the new IO model, but its not currently high on our priority list.
Ian
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click