summaryrefslogtreecommitdiffstats
path: root/arch/sparc64
Commit message (Collapse)AuthorAgeFilesLines
* chmc: Mark %ver register inline asm with __volatile__David S. Miller2008-10-121-1/+1
| | | | | | | | | | Otherwise GCC can try to do the register read before the guarding test on us3mc_platform() being true. If that happens we can take an exception, because %ver register reads are not allowed in privileged more on hypervisor platforms. Signed-off-by: David S. Miller <davem@davemloft.net>
* sparc64: Add missing notify_cpu_starting() call.David S. Miller2008-10-121-0/+4
| | | | | | | | | | Commit e545a6140b698b2494daf0b32107bdcc5e901390 ("kernel/cpu.c: create a CPU_STARTING cpu_chain notifier") added a notify_cpu_starting() notifier event, and hit every arch except sparc64. Fix that missed case. Signed-off-by: David S. Miller <davem@davemloft.net>
* Merge branch 'master' of ↵David S. Miller2008-10-114-9/+10
|\ | | | | | | | | | | | | | | master.kernel.org:/pub/scm/linux/kernel/git/torvalds/linux-2.6 Conflicts: sound/core/memalloc.c
| * sparc64: Fix missing devices due to PCI bridge test in of_create_pci_dev().David S. Miller2008-09-221-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | Just like in the arch/sparc64/kernel/of_device.c code fix commit 071d7f4c3b411beae08d27656e958070c43b78b4 ("sparc64: Fix SMP bootup with CONFIG_STACK_DEBUG or ftrace.") we have to check the OF device node name for "pci" instead of relying upon the 'device_type' property being there on all PCI bridges. Tested by Meelis Roos, and confirmed to make the PCI QFE devices reappear on the E3500 system. Signed-off-by: David S. Miller <davem@davemloft.net>
| * sparc64: Fix disappearing PCI devices on e3500.David S. Miller2008-09-201-5/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Based upon a bug report by Meelis Roos. The OF device layer builds properties by matching bus types and applying 'range' properties as appropriate, up to the root. The match for "PCI" busses is looking at the 'device_type' property, and this does work %99 of the time. But on an E3500 system with a PCI QFE card, the DEC 21153 bridge sitting above the QFE network interface devices has a 'name' of "pci", but it completely lacks a 'device_type' property. So we don't match it as a PCI bus, and subsequently we end up with no resource values at all for the devices sitting under that DEC bridge. Signed-off-by: David S. Miller <davem@davemloft.net>
| * sparc64: Fix SMP bootup with CONFIG_STACK_DEBUG or ftrace.David S. Miller2008-09-162-3/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Based upon a report by Meelis Roos. Any function call can try to access the current thread register via the _mcount hooks when the kernel is built with -pg (via ftrace or STACK_DEBUG). That can't be setup properly very early on during the bootup of other cpus for sun4u and some early sun4v systems. So add notrace markers to these specific functions, so that _mcount doesn't get invoked too early. Signed-off-by: David S. Miller <davem@davemloft.net>
* | Merge branch 'master' of ↵David S. Miller2008-09-165-131/+41
|\ \ | |/ | | | | | | | | | | | | master.kernel.org:/pub/scm/linux/kernel/git/davem/sparc-2.6 Conflicts: arch/sparc64/kernel/pci_psycho.c
| * sparc64: Fix OOPS in psycho_pcierr_intr_other().David S. Miller2008-09-161-3/+5
| | | | | | | | | | | | | | | | | | | | | | | | We no longer put the top-level PCI controller device into the PCI layer device list. So pbm->pci_bus->self is always NULL. Therefore, use direct PCI config space accesses to get at the PCI controller's PCI_STATUS register. Tested by Meelis Roos. Signed-off-by: David S. Miller <davem@davemloft.net>
| * sparc: Fix user_regset 'n' field values.David S. Miller2008-09-121-4/+4
| | | | | | | | | | | | | | | | | | | | As noticed by Russell King, we were not setting this properly to the number of entries, but rather the total size. This results in the core dumping code allocating waayyyy too much memory. Signed-off-by: David S. Miller <davem@davemloft.net>
| * sparc64: Fix PCI error interrupt registry on PSYCHO.David S. Miller2008-09-121-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We need to pass IRQF_SHARED, otherwise we get things like: IRQ handler type mismatch for IRQ 33 current handler: PSYCHO_UE Call Trace: [000000000048394c] request_irq+0xac/0x120 [00000000007c5f6c] psycho_scan_bus+0x98/0x158 [00000000007c2bc0] pcibios_init+0xdc/0x12c [0000000000426a5c] do_one_initcall+0x1c/0x160 [00000000007c0180] kernel_init+0x9c/0xfc [0000000000427050] kernel_thread+0x30/0x60 [00000000006ae1d0] rest_init+0x10/0x60 on e3500 and similar systems. On a single board, the UE interrupts of two Psycho nodes are funneled through the same interrupt, from of_debug=3 dump: /pci@b,4000: direct translate 2ee --> 21 ... /pci@b,2000: direct translate 2ee --> 21 Decimal "33" mentioned above is the hex "21" mentioned here. Thanks to Meelis Roos for dumps and testing. Signed-off-by: David S. Miller <davem@davemloft.net>
| * sparc64: Fix interrupt register calculations on Psycho and Sabre.David S. Miller2008-09-101-98/+6
| | | | | | | | | | | | | | Use the IMAP offset calculation for OBIO devices as documented in the programmer's manual. Which is "0x10000 + ((ino & 0x1f) << 3)" Signed-off-by: David S. Miller <davem@davemloft.net>
| * sparc64: Disable timer interrupts in fixup_irqs().David S. Miller2008-09-081-0/+2
| | | | | | | | | | | | | | | | | | | | | | When a CPU is offlined, we leave the timer interrupts disabled because fixup_irqs() does not explicitly take care of that case. Fix this by invoking tick_ops->disable_irq(). Based upon analysis done by Paul E. McKenney. Signed-off-by: David S. Miller <davem@davemloft.net>
* | sparc: Fix user_regset 'n' field values.David S. Miller2008-09-121-4/+4
| | | | | | | | | | | | | | | | | | | | As noticed by Russell King, we were not setting this properly to the number of entries, but rather the total size. This results in the core dumping code allocating waayyyy too much memory. Signed-off-by: David S. Miller <davem@davemloft.net>
* | sparc64: Fix sparse warnings in chmc.cDavid S. Miller2008-09-121-10/+10
| | | | | | | | | | | | Several constants are larger than 32-bit and need "UL" markers. Signed-off-by: David S. Miller <davem@davemloft.net>
* | sparc64: Kill sparse warnings in mm/init.hDavid S. Miller2008-09-122-29/+56
| | | | | | | | | | | | | | | | | | | | | | 1) Several exported symbols need extern decls, they are exported not for C code but for assembler routines. 2) PAGE_EXEC isn't used, delete 3) Several larger than 32-bit constants need "UL" markers Signed-off-by: David S. Miller <davem@davemloft.net>
* | sparc64: Fix sparse warnings in fault.cDavid S. Miller2008-09-121-37/+0
| | | | | | | | | | | | | | | | | | 1) set_brkpt() is referenced by nothing and hasn't been used by anyone to my knowledge for many many years. So just delete it. 2) add extern decl for do_sparc64_fault() in asm/pgtable_64.h Signed-off-by: David S. Miller <davem@davemloft.net>
* | sparc64: Remove explicit initialization of mmu_gathersDavid S. Miller2008-09-121-1/+1
| | | | | | | | | | | | | | | | | | | | | | This was just needed to work around an ancient gcc bug that we don't care about any more. It was also causing a sparse warnings: arch/sparc64/mm/tlb.c:22:52: warning: Using plain integer as NULL pointer Signed-off-by: David S. Miller <davem@davemloft.net>
* | sparc64: Fix sparse warnings in vio.cDavid S. Miller2008-09-121-4/+4
| | | | | | | | | | | | Several variables should be marked static. Signed-off-by: David S. Miller <davem@davemloft.net>
* | sparc64: Fix sparse warnings in pci_sun4v.cDavid S. Miller2008-09-121-3/+3
| | | | | | | | | | | | 'err' variable shadowing in pci_sun4v_probe() Signed-off-by: David S. Miller <davem@davemloft.net>
* | sparc64: Fix sparse warnings in pci.cDavid S. Miller2008-09-113-12/+11
| | | | | | | | | | | | | | | | | | | | 1) Declare pci_poke_* in pci_impl.h 2) of_create_pci_dev() should be static 3) ->setup_msi_irq() wants an unsigned int pointer not a plain int one 4) void value expression return in arch_teardown_msi_irq() Signed-off-by: David S. Miller <davem@davemloft.net>
* | sparc64: Fix sparse warnings in of_device.cDavid S. Miller2008-09-111-2/+1
| | | | | | | | | | | | | | Passing unsigned int pointer where plain int pointer is expected. Signed-off-by: David S. Miller <davem@davemloft.net>
* | sparc64: Fix sparse warnings in prom.cDavid S. Miller2008-09-111-30/+55
| | | | | | | | | | | | | | 1) Testing null with '0' 2) returning void-valued expression Signed-off-by: David S. Miller <davem@davemloft.net>
* | sparc64: Fix sparse warnings in visemul.cDavid S. Miller2008-09-112-7/+6
| | | | | | | | | | | | | | 1) edge8 tables should be static 2) add vis_emul() extern decl. to asm/visasm.h Signed-off-by: David S. Miller <davem@davemloft.net>
* | sparc64: Fix sparse warnings in kernel/time.cDavid S. Miller2008-09-111-11/+11
| | | | | | | | | | | | | | | | | | 1) Using "clock" as a local variable shadows a global variable of the same name declared in linux/clocksource.h 2) rtc_cmos_resource should be static Signed-off-by: David S. Miller <davem@davemloft.net>
* | sysctl: Use header file for sysctl knob declarations on sparc.David S. Miller2008-09-111-0/+1
| | | | | | | | | | | | | | This also takes care of a sparse warning as scons_pwroff's definition point. Signed-off-by: David S. Miller <davem@davemloft.net>
* | sparc64: Fix sparse warnings in global reg snapshotting.David S. Miller2008-09-111-2/+0
| | | | | | | | | | | | | | Lots of shadowed local variables and global_reg_snapshot[] needs an extern declaration in asm/ptrace_64.h. Signed-off-by: David S. Miller <davem@davemloft.net>
* | sparc64: Add __arch64__ to CHECKFLAGSDavid S. Miller2008-09-111-1/+1
| | | | | | | | | | | | | | | | | | | | | | Otherwise sparse doesn't work. The 32 vs. 64 header ifdef used under arch/sparc/include/asm/ is: #if defined(__sparc__) && defined(__arch64__) And that doesn't work for sparse unless we give it __arch64__ Signed-off-by: David S. Miller <davem@davemloft.net>
* | sparc64: Kill hand-crafted I/O accessors in PCI controller drivers.David S. Miller2008-09-104-256/+177
| | | | | | | | | | | | Use existing upa_{read,write}q() interfaces instead. Signed-off-by: David S. Miller <davem@davemloft.net>
* | sparc64: Commonize large portions of PSYCHO error handling.David S. Miller2008-09-104-579/+369
| | | | | | | | | | | | | | The IOMMU and streaming cache error interrogation is moved here as well as the PCI error interrupt handler. Signed-off-by: David S. Miller <davem@davemloft.net>
* | sparc64: Create and use psycho_pbm_init_common().David S. Miller2008-09-104-46/+31
| | | | | | | | Signed-off-by: David S. Miller <davem@davemloft.net>
* | sparc64: Start commonizing code common between SABRE and PSYCHO.David S. Miller2008-09-105-120/+111
| | | | | | | | | | | | | | | | | | | | These are very similar chips, in fact they are identical in some macro blocks. So start commonizing code which they can share. We begin with the IOMMU initialization sequence. Signed-off-by: David S. Miller <davem@davemloft.net>
* | sparc64: Record OF device instead of device node pointer in pci_pbm_info.David S. Miller2008-09-109-29/+30
| | | | | | | | Signed-off-by: David S. Miller <davem@davemloft.net>
* | sparc64: Get rid of pci_controller_info.David S. Miller2008-09-107-241/+178
| | | | | | | | | | | | | | | | | | | | It is just used as a parent to encapsulate two PBM objects. But that layout is only really relevant and necessary for psycho PCI controllers, which unlike all the others share a single IOMMU instance between sibling PCI busses. Signed-off-by: David S. Miller <davem@davemloft.net>
* | sparc64: Fix return value in update_persistent_clock().David S. Miller2008-09-101-2/+2
| | | | | | | | | | | | Noticed by Stephen Rothwell. Signed-off-by: David S. Miller <davem@davemloft.net>
* | sparc64: Add missing rtc_close() in update_persistent_clock()David S. Miller2008-09-081-2/+5
| | | | | | | | | | | | Noticed by David Brownell. Signed-off-by: David S. Miller <davem@davemloft.net>
* | Merge branch 'master' of ↵David S. Miller2008-09-084-15/+22
|\ \ | |/ | | | | | | | | | | | | master.kernel.org:/pub/scm/linux/kernel/git/davem/sparc-2.6 Conflicts: arch/sparc/kernel/of_device.c
| * sparc64: Prevent sparc64 from invoking irq handlers on offline CPUsPaul E. McKenney2008-09-031-4/+4
| | | | | | | | | | | | | | | | | | | | Make sparc64 refrain from clearing a given to-be-offlined CPU's bit in the cpu_online_mask until it has processed pending irqs. This change prevents other CPUs from being blindsided by an apparently offline CPU nevertheless changing globally visible state. Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com> Signed-off-by: David S. Miller <davem@davemloft.net>
| * sparc64: Fix IPI call locking.David S. Miller2008-09-031-6/+4
| | | | | | | | | | | | | | | | | | | | When I switched sparc64 over to the generic helpers for smp_call_function(), I didn't convert the dinky call_lock we had. Use ipi_call_lock() and ipi_call_unlock(). Signed-off-by: David S. Miller <davem@davemloft.net>
| * sparc64: setup_valid_addr_bitmap_from_pavail() should be __initDavid S. Miller2008-08-301-1/+1
| | | | | | | | Signed-off-by: David S. Miller <davem@davemloft.net>
| * sparc: Fix resource flags for PCI children in OF device tree.David S. Miller2008-08-281-6/+14
| | | | | | | | | | | | | | | | | | | | | | | | When a device is under an EBUS or ISA bus, the resource flags don't get set properly. Fix this by re-evaluating the resource flags at each level of bus as we apply ranges on the way to the root. And let PCI override any existing flags setting, but don't let the default flags calculator make such overrides. Signed-off-by: David S. Miller <davem@davemloft.net>
| * sparc64: Make NUMA depend upon SMP.David S. Miller2008-08-241-0/+1
| | | | | | | | Signed-off-by: David S. Miller <davem@davemloft.net>
* | sparc64: fix wrong m48t59 RTC yearKrzysztof Helt2008-09-071-2/+4
| | | | | | | | | | | | | | | | Correctly calculate offset to the year register for Mostek RTC. Signed-off-by: Krzysztof Helt <krzysztof.h1@wp.pl> Signed-off-by: David S. Miller <davem@davemloft.net>
* | sparc: Fix handling of LANCE and ESP parent nodes in of_device.cDavid S. Miller2008-09-031-1/+10
| | | | | | | | | | | | | | | | | | | | The device nodes that sit above 'esp' and 'le' on SBUS lack a 'ranges' property, but we should pass the translation up to the parent node so that the SBUS level ranges get applied. Based upon a bug report from Robert Reif. Signed-off-by: David S. Miller <davem@davemloft.net>
* | pci_sun4v: Use of_get_property().David S. Miller2008-09-021-14/+7
| | | | | | | | Signed-off-by: David S. Miller <davem@davemloft.net>
* | pci_schizo: Use of_get_property() and delete spurious local vars.David S. Miller2008-09-021-17/+8
| | | | | | | | Signed-off-by: David S. Miller <davem@davemloft.net>
* | pci_psycho: Use of_getintprop_default().David S. Miller2008-09-021-14/+3
| | | | | | | | Signed-off-by: David S. Miller <davem@davemloft.net>
* | sparc64: Implement SSTATE purely using notifiers and initcalls.David S. Miller2008-09-024-32/+45
| | | | | | | | | | | | | | Don't clutter up the tree with sstate_blah() scattered all over the place. Signed-off-by: David S. Miller <davem@davemloft.net>
* | sparc64: Move reboot handling into seperate file and kill power reg programming.David S. Miller2008-09-024-71/+57
| | | | | | | | | | | | We should always use prom_power_off(). Signed-off-by: David S. Miller <davem@davemloft.net>
* | sparc64: Pass proper parent device down into root pci_create_bus() call.David S. Miller2008-09-016-39/+45
| | | | | | | | Signed-off-by: David S. Miller <davem@davemloft.net>
* | sparc64: Kill the scan_bus function pointer in struct pci_pbm_info.David S. Miller2008-09-011-2/+2
| | | | | | | | | | | | No longer used. Signed-off-by: David S. Miller <davem@davemloft.net>
OpenPOWER on IntegriCloud