aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAge
* sysctl: Use CONFIG_SPARC instead of __sparc__ for ifdef tests.David S. Miller2008-09-12
| | | | Signed-off-by: David S. Miller <davem@davemloft.net>
* sparc64: Fix sparse warnings in global reg snapshotting.David S. Miller2008-09-12
| | | | | | | 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-12
| | | | | | | | | | | 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>
* sparc32: Call parse_early_param() in setup_arch().David S. Miller2008-09-11
| | | | | | | Mirror sparc64. This will allow us to use early_param() on sparc32 too. Signed-off-by: David S. Miller <davem@davemloft.net>
* sparc64: Kill hand-crafted I/O accessors in PCI controller drivers.David S. Miller2008-09-11
| | | | | | 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-11
| | | | | | | 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-11
| | | | Signed-off-by: David S. Miller <davem@davemloft.net>
* sparc64: Start commonizing code common between SABRE and PSYCHO.David S. Miller2008-09-11
| | | | | | | | | | 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-11
| | | | Signed-off-by: David S. Miller <davem@davemloft.net>
* sparc64: Get rid of pci_controller_info.David S. Miller2008-09-11
| | | | | | | | | | 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>
* sparc32: Need to close openned RTC device just like sparc64.David S. Miller2008-09-10
| | | | | | Otherwise we get refcount problems. Signed-off-by: David S. Miller <davem@davemloft.net>
* sparc64: Fix return value in update_persistent_clock().David S. Miller2008-09-10
| | | | | | Noticed by Stephen Rothwell. Signed-off-by: David S. Miller <davem@davemloft.net>
* rtc-bq4802: Fix sparse warnings.David S. Miller2008-09-09
| | | | | | As reported by Harvey Harrison. Signed-off-by: David S. Miller <davem@davemloft.net>
* sparc: remove unused includesBjoern B. Brandenburg2008-09-09
| | | | | | | | The spinlock code does not use NR_CPUS. Compile tested using allyesconfig and allnoconfig. Signed-off-by: Bjoern B. Brandenburg <bbb@cs.unc.edu> Signed-off-by: David S. Miller <davem@davemloft.net>
* rtc-m48t59: Only check century bits on m48t59 chips.Robert Reif2008-09-09
| | | | | Signed-off-by: Robert Reif <reif@earthlink.net> Signed-off-by: David S. Miller <davem@davemloft.net>
* sparc64: Add missing rtc_close() in update_persistent_clock()David S. Miller2008-09-08
| | | | | | Noticed by David Brownell. Signed-off-by: David S. Miller <davem@davemloft.net>
* sparc32: Move sun4d show_leds() out of asm/obio.hDavid S. Miller2008-09-08
| | | | | | Put it, as well as cpu_leds[] array, into sun4d_irq.c Signed-off-by: David S. Miller <davem@davemloft.net>
* sparc32: Fix coding style of sparc_cpu_model setting code.David S. Miller2008-09-08
| | | | Signed-off-by: David S. Miller <davem@davemloft.net>
* Merge branch 'master' of ↵David S. Miller2008-09-08
|\ | | | | | | | | | | | | | | 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-03
| | | | | | | | | | | | | | | | | | | | 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-03
| | | | | | | | | | | | | | | | | | | | 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-30
| | | | | | | | Signed-off-by: David S. Miller <davem@davemloft.net>
| * sparc: Fix resource flags for PCI children in OF device tree.David S. Miller2008-08-29
| | | | | | | | | | | | | | | | | | | | | | | | 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>
| * sparc32: Implement smp_call_function_single().David S. Miller2008-08-27
| | | | | | | | | | | | | | | | Reported by Stephen Rothwell. Needed to fix the build when CONFIG_RELAY is enabled. Signed-off-by: David S. Miller <davem@davemloft.net>
| * sparc: Add target for a stripped kernelMartin Habets2008-08-24
| | | | | | | | | | | | | | | | Add a target for a stripped kernel. This is used for the various packaging targets (*-pkg). Signed-off-by: Martin Habets <errandir_news@mph.eclipse.co.uk> Signed-off-by: David S. Miller <davem@davemloft.net>
| * sparc64: Make NUMA depend upon SMP.David S. Miller2008-08-24
| | | | | | | | Signed-off-by: David S. Miller <davem@davemloft.net>
* | rtc-m48t59: fix setting of a year on m48t08 and m48t02 rtcsKrzysztof Helt2008-09-07
| | | | | | | | | | | | | | | | | | | | | | Fix setting of a year in m48t08 and m48t02 clocks. They do not have century bits and setting them causes the year to overflow (bit 0x80 set). Problem found by Robert Reif on Sun Sparcstation 20. Signed-off-by: Krzysztof Helt <krzysztof.h1@wp.pl> Signed-off-by: David S. Miller <davem@davemloft.net>
* | sparc64: fix wrong m48t59 RTC yearKrzysztof Helt2008-09-07
| | | | | | | | | | | | | | | | 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>
* | sparc32: add init memory poisoningRobert Reif2008-09-03
| | | | | | | | | | | | | | | | | | This patch adds init memory poisoning. It looks like totalram_pages was not updated properly in free_initrd_mem so I fixed that as well. Signed-off-by: Robert Reif <reif@earthlink.net> Signed-off-by: David S. Miller <davem@davemloft.net>
* | sparc: Remove asm/rtc.hDavid S. Miller2008-09-03
| | | | | | | | | | | | No more users. Signed-off-by: David S. Miller <davem@davemloft.net>
* | sparc32: Kill asm/mostek.h.David S. Miller2008-09-03
| | | | | | | | | | | | No longer used. Signed-off-by: David S. Miller <davem@davemloft.net>
* | sparc32: Kill remaining asm/mostek.h inclusions.David S. Miller2008-09-03
| | | | | | | | | | | | No longer needed. Signed-off-by: David S. Miller <davem@davemloft.net>
* | sparc: Kill sbus mostek RTC driver.David S. Miller2008-09-03
| | | | | | | | | | | | No longer used. Signed-off-by: David S. Miller <davem@davemloft.net>
* | sparc32: use RTC subsystemDavid S. Miller2008-09-03
| | | | | | | | | | | | | | | | | | | | | | | | Use rtc subsystem for sparc32 architecture. Actually, only one driver is needed: m48t59 as it supports the most common clocks on sparc32 machines: m48t08 and m48t02. [ Add proper RTC layer calls to set_rtc_mmss() -DaveM ] Signed-off-by: Krzysztof Helt <krzysztof.h1@wp.pl> Signed-off-by: David S. Miller <davem@davemloft.net>
* | rtc-m48t59: allow externally mapped ioaddrKrzysztof Helt2008-09-03
| | | | | | | | | | | | | | | | Add support for externally mapped ioaddr. This is required on sparc32 as the ioaddr must be mapped with of_ioremap(). Signed-off-by: Krzysztof Helt <krzysztof.h1@wp.pl> Signed-off-by: David S. Miller <davem@davemloft.net>
* | rtc-m48t59: add support for M48T02 and M48T59 chipsKrzysztof Helt2008-09-03
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add support for two compatible RTC: - M48T08 which does not have alarm part, - M48T08 which does not have alarm part and has only 2KB of NVRAM These types covers all Mostek's RTC used in Sun UltraSparc workstations. Tested on Sun Ultra60 with M48T59 RTC. Signed-off-by: Krzysztof Helt <krzysztof.h1@wp.pl> Signed-off-by: Alessandro Zummo <a.zummo@towertech.it> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: David S. Miller <davem@davemloft.net>
* | rtc-m48t59: reduce structure m48t59_privateKrzysztof Helt2008-09-03
| | | | | | | | | | | | | | | | | | | | Remove element size from the structure m48t59_private as it is used as local variable for storing temporary value. Signed-off-by: Krzysztof Helt <krzysztof.h1@wp.pl> Signed-off-by: Alessandro Zummo <a.zummo@towertech.it> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> 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-03
| | | | | | | | | | | | | | | | | | | | 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>
* | sparc32: Fix sun4c build warnings.David S. Miller2008-09-02
| | | | | | | | | | | | Reported by Stephen Rothwell. Signed-off-by: David S. Miller <davem@davemloft.net>
* | pci_sun4v: Use of_get_property().David S. Miller2008-09-02
| | | | | | | | Signed-off-by: David S. Miller <davem@davemloft.net>
* | pci_schizo: Use of_get_property() and delete spurious local vars.David S. Miller2008-09-02
| | | | | | | | Signed-off-by: David S. Miller <davem@davemloft.net>
* | pci_psycho: Use of_getintprop_default().David S. Miller2008-09-02
| | | | | | | | Signed-off-by: David S. Miller <davem@davemloft.net>
* | sparc64: Implement SSTATE purely using notifiers and initcalls.David S. Miller2008-09-02
| | | | | | | | | | | | | | 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-02
| | | | | | | | | | | | 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-01
| | | | | | | | 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-01
| | | | | | | | | | | | No longer used. Signed-off-by: David S. Miller <davem@davemloft.net>
* | sparc64: Use ENTRY/ENDPROC in PCI SUN4V asm.David S. Miller2008-09-01
| | | | | | | | Signed-off-by: David S. Miller <davem@davemloft.net>
* | sparc64: Use ENTRY/ENDPROC in hypervisor asm.David S. Miller2008-09-01
| | | | | | | | Signed-off-by: David S. Miller <davem@davemloft.net>
* | sparc64: Apply const or __initdata to vio_device_id[]David S. Miller2008-09-01
| | | | | | | | | | | | | | | | This mirrors the of_device_id[] changes done in fd098316ef533e8441576f020ead4beab93154ce ("sparc: Annotate of_device_id arrays with const or __initdata.") Signed-off-by: David S. Miller <davem@davemloft.net>
* | sparc64: Clean up CPU chip type probing code.David S. Miller2008-09-01
| | | | | | | | | | | | | | | | | | | | | | | | | | Three main things: 1) Make prober an arch initcall instead of using hard-coded invocation from paging_init() 2) Shrink table size, the fpu ident stuff was never used. 3) Use named struct initialized in table. Signed-off-by: David S. Miller <davem@davemloft.net>