kernel-ark/arch/sparc64/kernel
David S. Miller 72aff53f1f [SPARC64]: Get SUN4V SMP working.
The sibling cpu bringup is extremely fragile.  We can only
perform the most basic calls until we take over the trap
table from the firmware/hypervisor on the new cpu.

This means no accesses to %g4, %g5, %g6 since those can't be
TLB translated without our trap handlers.

In order to achieve this:

1) Change sun4v_init_mondo_queues() so that it can operate in
   several modes.

   It can allocate the queues, or install them in the current
   processor, or both.

   The boot cpu does both in it's call early on.

   Later, the boot cpu allocates the sibling cpu queue, starts
   the sibling cpu, then the sibling cpu loads them in.

2) init_cur_cpu_trap() is changed to take the current_thread_info()
   as an argument instead of reading %g6 directly on the current
   cpu.

3) Create a trampoline stack for the sibling cpus.  We do our basic
   kernel calls using this stack, which is locked into the kernel
   image, then go to our proper thread stack after taking over the
   trap table.

4) While we are in this delicate startup state, we put 0xdeadbeef
   into %g4/%g5/%g6 in order to catch accidental accesses.

5) On the final prom_set_trap_table*() call, we put &init_thread_union
   into %g6.  This is a hack to make prom_world(0) work.  All that
   wants to do is restore the %asi register using
   get_thread_current_ds().

Longer term we should just do the OBP calls to set the trap table by
hand just like we do for everything else.  This would avoid that silly
prom_world(0) issue, then we can remove the init_thread_union hack.

Signed-off-by: David S. Miller <davem@davemloft.net>
2006-03-20 01:13:22 -08:00
..
asm-offsets.c kbuild: frv,m32r,sparc64 introduce fake asm-offsets.h file 2005-09-09 22:47:53 +02:00
auxio.c [SPARC64]: Get rid of fast IRQ feature. 2005-06-27 17:04:45 -07:00
binfmt_aout32.c [SPARC64]: Add infrastructure for dynamic TSB sizing. 2006-03-20 01:11:17 -08:00
binfmt_elf32.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
central.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
chmc.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
cpu.c [SPARC64]: kernel/cpu.c needs asm/spitfire.h 2006-03-20 01:12:05 -08:00
devices.c [SPARC64]: Decode virtual-devices interrupts correctly. 2006-03-20 01:13:05 -08:00
dtlb_miss.S [SPARC64]: Access TSB with physical addresses when possible. 2006-03-20 01:11:32 -08:00
dtlb_prot.S [SPARC64]: Fix boot failures on SunBlade-150 2005-10-12 12:22:46 -07:00
ebus.c [PATCH] PCI: pci_find_device remove (sparc64/kernel/ebus.c) 2006-01-09 12:13:15 -08:00
entry.S [SPARC64]: Add sun4v_cpu_qconf() hypervisor call. 2006-03-20 01:13:16 -08:00
etrap.S [SPARC64]: Fix tl1 trap state capture/dump on SUN4V. 2006-03-20 01:13:12 -08:00
head.S [SPARC64]: Fix sun4v early bootup. 2006-03-20 01:12:21 -08:00
idprom.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
init_task.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
iommu_common.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
iommu_common.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
irq.c [SPARC64]: Get SUN4V SMP working. 2006-03-20 01:13:22 -08:00
isa.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
itlb_miss.S [SPARC64]: Deal with PTE layout differences in SUN4V. 2006-03-20 01:12:25 -08:00
kprobes.c [PATCH] kprobes: fix race in recovery of reentrant probe 2006-01-11 18:42:12 -08:00
ktlb.S [SPARC64]: Deal with PTE layout differences in SUN4V. 2006-03-20 01:12:25 -08:00
Makefile [SPARC64]: More SUN4V PCI controller work. 2006-03-20 01:12:11 -08:00
module.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
pci_common.c [SPARC64]: Rewrite pci_intmap_match(). 2006-03-20 01:13:20 -08:00
pci_impl.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
pci_iommu.c [SPARC64]: First cut at SUN4V PCI IOMMU handling. 2006-03-20 01:12:15 -08:00
pci_psycho.c [SPARC64]: Consolidate common PCI IOMMU init code. 2005-10-13 21:10:08 -07:00
pci_sabre.c [SPARC64]: Consolidate common PCI IOMMU init code. 2005-10-13 21:10:08 -07:00
pci_schizo.c [SPARC64]: Consolidate common PCI IOMMU init code. 2005-10-13 21:10:08 -07:00
pci_sun4v_asm.S [SPARC64]: Move devino_to_sysino out of pci_sun4v_asm.S 2006-03-20 01:12:36 -08:00
pci_sun4v.c [SPARC64] PCI: Size TSB correctly on SUN4V. 2006-03-20 01:13:10 -08:00
pci_sun4v.h [SPARC64]: Move devino_to_sysino out of pci_sun4v_asm.S 2006-03-20 01:12:36 -08:00
pci.c [SPARC64]: Beginnings of SUN4V PCI controller support. 2006-03-20 01:12:10 -08:00
power.c [SPARC64]: Add needed pm_power_off symbol. 2006-01-09 14:12:50 -08:00
process.c [SPARC64]: Disable smp_report_regs() for now. 2006-03-20 01:13:21 -08:00
ptrace.c [PATCH] sparc64: task_pt_regs() 2006-01-12 09:08:52 -08:00
rtrap.S [SPARC64]: Fix return from trap on SUN4V. 2006-03-20 01:13:19 -08:00
sbus.c [PATCH] unpaged: fix sound Bad page states 2005-11-22 09:13:43 -08:00
semaphore.c [SPARC64]: Avoid membar instructions in delay slots. 2005-06-27 15:42:04 -07:00
setup.c [SPARC64]: Get SUN4V SMP working. 2006-03-20 01:13:22 -08:00
signal32.c [SPARC]: Add support for *at(), ppoll, and pselect syscalls. 2006-01-19 02:42:49 -08:00
signal.c [SPARC]: Add support for *at(), ppoll, and pselect syscalls. 2006-01-19 02:42:49 -08:00
smp.c [SPARC64]: Get SUN4V SMP working. 2006-03-20 01:13:22 -08:00
sparc64_ksyms.c [SPARC64]: Kill pgtable quicklists and use SLAB. 2006-03-20 01:11:14 -08:00
starfire.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
sun4v_ivec.S [SPARC64]: Use TRAP_LOAD_IRQ_WORK() in sun4v device mondo handler. 2006-03-20 01:12:49 -08:00
sun4v_tlb_miss.S [SPARC64]: Don't use ASI_QUAD_LDD_PHYS on SUN4V. 2006-03-20 01:13:09 -08:00
sunos_ioctl32.c [SPARC]: Kill remaining kbio.h references. 2005-11-07 14:12:21 -08:00
sys32.S [SPARC64]: Mark __ex_table section correctly. 2006-03-04 23:23:56 -08:00
sys_sparc32.c [SPARC]: sys_newfstatat --> sys_fstatat64 2006-02-12 23:30:11 -08:00
sys_sparc.c [PATCH] Avoiding mmap fragmentation 2005-06-21 18:46:16 -07:00
sys_sunos32.c [PATCH] capable/capability.h (arch/) 2006-01-11 18:42:14 -08:00
systbls.S [SPARC]: sys_newfstatat --> sys_fstatat64 2006-02-12 23:30:11 -08:00
time.c [SPARC64]: Do not try to write to %tick or %stick on SUN4V. 2006-03-20 01:12:27 -08:00
trampoline.S [SPARC64]: Get SUN4V SMP working. 2006-03-20 01:13:22 -08:00
traps.c [SPARC64]: Get SUN4V SMP working. 2006-03-20 01:13:22 -08:00
tsb.S [SPARC64]: Do not write garbage into %pstate in tsb_context_switch(). 2006-03-20 01:13:08 -08:00
ttable.S [SPARC64]: Implement sun4v TSB miss handlers. 2006-03-20 01:12:05 -08:00
una_asm.S [SPARC64]: Mark __ex_table section correctly. 2006-03-04 23:23:56 -08:00
unaligned.c [SPARC64]: SUN4V memory exception trap handlers. 2006-03-20 01:12:07 -08:00
us2e_cpufreq.c [SPARC64]: Detect sun4v early in boot process. 2006-03-20 01:12:03 -08:00
us3_cpufreq.c [SPARC64]: Detect sun4v early in boot process. 2006-03-20 01:12:03 -08:00
vmlinux.lds.S [SPARC64]: Rename gl_{1,2}insn_patch --> sun4v_{1,2}insn_patch 2006-03-20 01:11:53 -08:00
winfixup.S [SPARC64]: Fix bogus call to sun4v_mna in winfixup code. 2006-03-20 01:13:13 -08:00