i am new about SGI o2 r10K
# euses -a kernel | mips-stuff
USE="ip32r10k" should be correct for O2+,sys-kernel/mips-headers:ip27 - Enables support for SGI Origin (IP27)
sys-kernel/mips-headers:ip28 - Enables support for SGI Indigo2 Impact R10000 (IP28)
sys-kernel/mips-headers:ip30 - Enables support for SGI Octane (IP30, 'Speedracer')
sys-kernel/mips-sources:cobalt - Enables support for Cobalt Microserver hardware (Qube2/RaQ2)
sys-kernel/mips-sources:ip27 - Enables support for SGI Origin (IP27)
sys-kernel/mips-sources:ip28 - Enables support for SGI Indigo2 Impact R10000 (IP28)
sys-kernel/mips-sources:ip30 - Enables support for SGI Octane (IP30, 'Speedracer')
sys-kernel/mips-sources:ip32r10k - Enables experimental support for IP32 R10K kernels (SGI O2, 'Moosehead')
my questions are:
1) for which kernel ? 2.6.22.6 ? it has been declared "stable" but it is reporting errors in applying patch
2) why there is no IP32/IP32r10k o32 in the default-linux/mips* profile tree ?* >>> linux-2.6.22 --> linux-2.6.22.6 ...
* Applying patch-2.6.22.6 ... [ ok ]
* >>> linux-2.6.22.6 --> linux-2.6.22.6-20070902 patch ...
* Applying mipsgit-2.6.22-20070902.diff ... [ ok ]
* >>> Generic Patches ...
* Applying misc-2.6.16-ip22-vino-64bit-ioctl-fixes.patch ... [ ok ]
* Applying misc-2.6.11-ip32-mace-is-always-eth0.patch ... [ ok ]
* Applying misc-2.6.22-cobalt-bits.patch ... [ ok ]
* Applying misc-2.6.17-ths-mips-tweaks.patch ... [ ok ]
* Applying misc-2.6.12-seccomp-no-default.patch ... [ ok ]
* Applying misc-2.6.11-add-byteorder-to-proc.patch ... [ ok ]
* Applying misc-2.6.22-squashfs-3.2-r2.patch ... [ ok ]
* Applying misc-2.6.20-ip32-r10k-support.patch ...
* Failed Patch: misc-2.6.20-ip32-r10k-support.patch !
* ( /var/tmp/portage/sys-kernel/mips-sources-2.6.22.6/work/mips-patches/misc-2.6.20-ip32-r10k-support.patch )
*
* Include in your bugreport the contents of:
*
* /var/tmp/portage/sys-kernel/mips-sources-2.6.22.6/temp/misc-2.6.20-ip32-r10k-support.patch-5331.out
*
* ERROR: sys-kernel/mips-sources-2.6.22.6 failed.
* Call stack:
* ebuild.sh, line 49: Called src_unpack
* environment, line 2745: Called do_sekrit_patches
* environment, line 728: Called epatch 'src_unpack'
* environment, line 1300: Called die
* The specific snippet of code:
* die "Failed Patch: ${patchname}!";
* The die message:
* Failed Patch: misc-2.6.20-ip32-r10k-support.patch!
*
* If you need support, post the topmost build error, and the call stack if relevant.
* A complete build log is located at '/var/tmp/portage/sys-kernel/mips-sources-2.6.22.6/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/sys-kernel/mips-sources-2.6.22.6/temp/environment'.
*
* Messages for package sys-kernel/mips-sources-2.6.22.6:
* R10000/R12000 Support on IP32 is HIGHLY EXPERIMENTAL!
* This is intended ONLY for people interested in fixing it up. And
* by that, I mean people willing to SEND IN PATCHES! If you're not
* interested in debugging this issue seriously or just want to run it
* as a user, then DO NOT USE THIS. Really, we mean it.
* All that said, initial testing seems to indicate that this system will
* stay online for a reasonable amount of time and will compile packages.
* However, the primary console (which is serial, gbefb seems dead for now)
* will fill with CRIME CPU errors every so often. A majority of these
* seem harmless, however a few non-fatal oopses have also been triggered.
* We're interesting in finding anyone with knowledge of the R10000
* workaround for speculative execution listed in the R10000 Processor
* manual, or those who are familiar with the IP32 chipset and the feature
* called "Juice".
* !!! BIG FAT WARNING
* !!! To Build 64bit kernels for SGI O2 (IP32) or SGI Indy/Indigo2 R4x00 (IP22)
* !!! systems, you _need_ to be using a >=gcc-4.1.1 compiler, have CONFIG_BUILD_ELF64
* !!! disabled in your kernel config, and building with the vmlinux.32 make target.
* !!! In prior times, an ugly hack was used to build an ELF64 binary that resembled
* !!! an ELF32 binary in order to make the ARCS PROMs on these systems boot the
* !!! kernel. This hack is no longer in use nor supported in 2.6.17 and beyond. In
* !!! order to achieve the same effect, a new flag available in >=gcc-4.x is used,
* !!! and as such, makes >=gcc-4.1.1 the preferred compiler for 2.6.17 and beyond.
*
* !!! Remember, build your IP22 and IP32 kernels with the following command:
* !!! following make command: make vmlinux.32
* !!! Once done, copy the vmlinux.32 file and boot that. Do not use the
* !!! vmlinux file -- this will either not boot on IP22 or result in
* !!! undocumented weirdness on IP32 systems.
* Failed Patch: misc-2.6.20-ip32-r10k-support.patch !
* ( /var/tmp/portage/sys-kernel/mips-sources-2.6.22.6/work/mips-patches/misc-2.6.20-ip32-r10k-support.patch )
*
* Include in your bugreport the contents of:
*
* /var/tmp/portage/sys-kernel/mips-sources-2.6.22.6/temp/misc-2.6.20-ip32-r10k-support.patch-5331.out
*
* ERROR: sys-kernel/mips-sources-2.6.22.6 failed.
* Call stack:
* ebuild.sh, line 49: Called src_unpack
* environment, line 2745: Called do_sekrit_patches
* environment, line 728: Called epatch 'src_unpack'
* environment, line 1300: Called die
* The specific snippet of code:
* die "Failed Patch: ${patchname}!";
* The die message:
* Failed Patch: misc-2.6.20-ip32-r10k-support.patch!
*
* If you need support, post the topmost build error, and the call stack if relevant.
* A complete build log is located at '/var/tmp/portage/sys-kernel/mips-sources-2.6.22.6/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/sys-kernel/mips-sources-2.6.22.6/temp/environment'.
*
3) how is O2+/R12K really supported ?
i read this from http://www.nekochan.net/wiki/index.php/SGI_O2 : it seems the r10000/r12000 is not well supported.
Also messages posted to linux-mips.org indicated that the r10k problems are being worked on, what is it the truth ?
I mean: what about "R10000/R12000 CPUs issue with the way they handle speculative loads and stores" ?? solved ?? if so, in which kernel ?
Linux
There is official Linux support for the O2 in Debian 4.0 "Etch" as well as in Gentoo but only for R5000/R7000 O2s. Linux is not stable on R10000/R12000 CPUs due to a known issue with the way they handle speculative loads and stores, detailed here. This is not a problem for Linux on the Octane as there is different hardware to support these processor features.
O2 hardware currently not fully supported by Linux: (as of kernel 2.6.24)
R10K or R12K processors.
CRM Accelerated Graphics (framebuffer only)
Sound (experimental ALSA driver exists, output is distorted)
Video capture via SAA 7111 (Linux driver exists for the chip)
ICE (experimental patches exist)
AIC-7880 SCSI only works in 20MB/s synchronous mode or slower.



