1. 14 Jun, 2007 12 commits
    • Benjamin Herrenschmidt's avatar
      [POWERPC] Rewrite IO allocation & mapping on powerpc64 · 3d5134ee
      Benjamin Herrenschmidt authored
      This rewrites pretty much from scratch the handling of MMIO and PIO
      space allocations on powerpc64.  The main goals are:
      
       - Get rid of imalloc and use more common code where possible
       - Simplify the current mess so that PIO space is allocated and
         mapped in a single place for PCI bridges
       - Handle allocation constraints of PIO for all bridges including
         hot plugged ones within the 2GB space reserved for IO ports,
         so that devices on hotplugged busses will now work with drivers
         that assume IO ports fit in an int.
       - Cleanup and separate tracking of the ISA space in the reserved
         low 64K of IO space. No ISA -> Nothing mapped there.
      
      I booted a cell blade with IDE on PIO and MMIO and a dual G5 so
      far, that's it :-)
      
      With this patch, all allocations are done using the code in
      mm/vmalloc.c, though we use the low level __get_vm_area with
      explicit start/stop constraints in order to manage separate
      areas for vmalloc/vmap, ioremap, and PCI IOs.
      
      This greatly simplifies a lot of things, as you can see in the
      diffstat of that patch :-)
      
      A new pair of functions pcibios_map/unmap_io_space() now replace
      all of the previous code that used to manipulate PCI IOs space.
      The allocation is done at mapping time, which is now called from
      scan_phb's, just before the devices are probed (instead of after,
      which is by itself a bug fix). The only other caller is the PCI
      hotplug code for hot adding PCI-PCI bridges (slots).
      
      imalloc is gone, as is the "sub-allocation" thing, but I do beleive
      that hotplug should still work in the sense that the space allocation
      is always done by the PHB, but if you unmap a child bus of this PHB
      (which seems to be possible), then the code should properly tear
      down all the HPTE mappings for that area of the PHB allocated IO space.
      
      I now always reserve the first 64K of IO space for the bridge with
      the ISA bus on it. I have moved the code for tracking ISA in a separate
      file which should also make it smarter if we ever are capable of
      hot unplugging or re-plugging an ISA bridge.
      
      This should have a side effect on platforms like powermac where VGA IOs
      will no longer work. This is done on purpose though as they would have
      worked semi-randomly before. The idea at this point is to isolate drivers
      that might need to access those and fix them by providing a proper
      function to obtain an offset to the legacy IOs of a given bus.
      Signed-off-by: default avatarBenjamin Herrenschmidt <benh@kernel.crashing.org>
      Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
      3d5134ee
    • Benjamin Herrenschmidt's avatar
      [POWERPC] unmap_vm_area becomes unmap_kernel_range for the public · c19c03fc
      Benjamin Herrenschmidt authored
      This makes unmap_vm_area static and a wrapper around a new
      exported unmap_kernel_range that takes an explicit range instead
      of a vm_area struct.
      
      This makes it more versatile for code that wants to play with kernel
      page tables outside of the standard vmalloc area.
      
      (One example is some rework of the PowerPC PCI IO space mapping
      code that depends on that patch and removes some code duplication
      and horrible abuse of forged struct vm_struct).
      Signed-off-by: default avatarBenjamin Herrenschmidt <benh@kernel.crashing.org>
      Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
      c19c03fc
    • Linas Vepstas's avatar
      [POWERPC] Tweak EEH copyright info · 3c8c90ab
      Linas Vepstas authored
      Twiddle the copyright notices. Per current guidelines, the use
      of the (C) or (c) in source code is deprecated.
      Signed-off-by: default avatarLinas Vepstas <linas@austin.ibm.com>
      
      ----
       arch/powerpc/platforms/pseries/eeh.c        |    6 +++++-
       arch/powerpc/platforms/pseries/eeh_cache.c  |    3 ++-
       arch/powerpc/platforms/pseries/eeh_driver.c |    6 +++---
       3 files changed, 10 insertions(+), 5 deletions(-)
      Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
      3c8c90ab
    • Linas Vepstas's avatar
      [POWERPC] Remove dead EEH code · 42253a68
      Linas Vepstas authored
      Remove some dead code.
      Signed-off-by: default avatarLinas Vepstas <linas@austin.ibm.com>
      
      ----
       arch/powerpc/platforms/pseries/eeh.c |    4 +---
       1 file changed, 1 insertion(+), 3 deletions(-)
      Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
      42253a68
    • Linas Vepstas's avatar
      [POWERPC] Show EEH per-device false positives · 858955bd
      Linas Vepstas authored
      Track and report the number of times we read an all-1s value (0xff,
      0xffff or 0xffffffff) from each device which is valid data, not
      indicating EEH isolation.
      Signed-off-by: default avatarLinas Vepstas <linas@austin.ibm.com>
      
      ----
       arch/powerpc/platforms/pseries/eeh.c       |    5 +++++
       arch/powerpc/platforms/pseries/eeh_sysfs.c |    3 +++
       include/asm-powerpc/pci-bridge.h           |    1 +
       3 files changed, 9 insertions(+)
      Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
      858955bd
    • Linas Vepstas's avatar
      [POWERPC] Add EEH sysfs blinkenlights · e1d04c97
      Linas Vepstas authored
      Add sysfs blinkenlights for EEH statistics.  Shuffle the
      eeh_add_device_tree() call so that it appears in the correct
      sequence.
      Signed-off-by: default avatarLinas Vepstas <linas@austin.ibm.com>
      
      ----
       arch/powerpc/platforms/pseries/Makefile    |    2
       arch/powerpc/platforms/pseries/eeh.c       |    4 +
       arch/powerpc/platforms/pseries/eeh_cache.c |    2
       arch/powerpc/platforms/pseries/eeh_sysfs.c |   84 +++++++++++++++++++++++++++++
       arch/powerpc/platforms/pseries/pci_dlpar.c |    7 +-
       include/asm-powerpc/ppc-pci.h              |    3 +
       6 files changed, 98 insertions(+), 4 deletions(-)
      Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
      e1d04c97
    • Linas Vepstas's avatar
      [POWERPC] pseries: asm/pci-bridge.h CONFIG_ minor cleanup · c2e221e8
      Linas Vepstas authored
      Use the correct CONFIG_ option to mark off the EEH bits.
      Move the EEH bits to the bottom of the struct.
      The config_space array is used by EEH only; it does not
      need to be part of the struct for non-pseries machines.
      Signed-off-by: default avatarLinas Vepstas <linas@austin.ibm.com>
      
      ----
      Revised patch, per commments from Michael Ellerman.
      
       include/asm-powerpc/pci-bridge.h |   16 +++++++++-------
       1 file changed, 9 insertions(+), 7 deletions(-)
      Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
      c2e221e8
    • Jon Tollefson's avatar
      [POWERPC] Move common code out of if/else · 3f1df7a2
      Jon Tollefson authored
      Move common code out of if/else.
      Signed-off-by: default avatarJon Tollefson <kniht@linux.vnet.ibm.com>
      ----
      
      hash_native_64.c |    3 +--
       1 files changed, 1 insertion(+), 2 deletions(-)
      Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
      3f1df7a2
    • Segher Boessenkool's avatar
      [POWERPC] Fix VDSO compile warning · 31fe5bf6
      Segher Boessenkool authored
      Maybe the type should have been char[] instead of __u8[]
      in the first place, but this will do.
      Signed-off-by: default avatarSegher Boessenkool <segher@kernel.crashing.org>
      Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
      31fe5bf6
    • Anton Blanchard's avatar
      [POWERPC] Reserve threadinfo flags for perfmon2 · f341973d
      Anton Blanchard authored
      Reserve two TIF flags for perfmon2 and shift them into the low 16 bits
      so we can use single assembly instructions to create constants based off
      them.
      Signed-off-by: default avatarAnton Blanchard <anton@samba.org>
      Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
      f341973d
    • Milton Miller's avatar
      [POWERPC] Fix console output getting dropped on platforms without udbg_putc · 220ddc08
      Milton Miller authored
      Previously, registering this early console would just result
      in dropping early buffered printk output until a udbg_putc
      was registered.
      
      However, commit 69331af7
      clears the CON_PRINTBUFFER flag on the main console when a
      CON_BOOT (early) console has been registered, resulting in
      the buffered messages never being displayed to the user.
      
      This fixes the problem by making sure we don't register udbg_console
      on platforms that don't implement udbg_putc.
      Signed-off-by: default avatarMilton Miller <miltonm@bga.com>
      Acked-by: default avatarMark A. Greer <mgreer@mvista.com>
      Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
      220ddc08
    • Paul Mackerras's avatar
      [POWERPC] Fix per-cpu allocation on oldworld SMP powermacs · c63c4faa
      Paul Mackerras authored
      The per-cpu area(a) for the secondary CPU(s) isn't getting allocated
      on old SMP powermacs that don't have the secondary CPU(s) listed in
      the device tree, as per-cpu areas are now only allocated for CPUs in
      the cpu_possible_map, and we aren't setting the bits for the secondary
      CPU(s) until smp_prepare_cpus(), which is after per-cpu allocation.
      Therefore this sets the bits for CPUs 1..3 in cpu_possible_map in
      pmac_setup_arch, so they get per-cpu data allocated.
      Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
      c63c4faa
  2. 13 Jun, 2007 8 commits
  3. 12 Jun, 2007 15 commits
  4. 11 Jun, 2007 5 commits
    • Linus Torvalds's avatar
      Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/roland/infiniband · 99f9f3d4
      Linus Torvalds authored
      * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/roland/infiniband:
        IB/mlx4: Make sure RQ allocation is always valid
        RDMA/cma: Fix initialization of next_port
        IB/mlx4: Fix zeroing of rnr_retry value in ib_modify_qp()
        mlx4_core: Don't set MTT address in dMPT entries with PA set
        mlx4_core: Check firmware command interface revision
        IB/mthca, mlx4_core: Fix typo in comment
        mlx4_core: Free catastrophic error MSI-X interrupt with correct dev_id
        mlx4_core: Initialize ctx_list and ctx_lock earlier
        mlx4_core: Fix CQ context layout
      99f9f3d4
    • Linus Torvalds's avatar
      Merge branch 'upstream' of git://ftp.linux-mips.org/pub/scm/upstream-linus · 22353f35
      Linus Torvalds authored
      * 'upstream' of git://ftp.linux-mips.org/pub/scm/upstream-linus:
        [MIPS] Fix smp barriers in test_and_{change,clear,set}_bit
        [MIPS] Fix IP27 build
        [MIPS] Fix modpost warnings by making start_secondary __cpuinit
        [MIPS] SMTC: Fix build error caused by nonsense code.
        [MIPS] SMTC: The MT ASE requires to initialize c0_pagemask and c0_wired.
        [MIPS] SMTC: Don't continue in set_vi_srs_handler on detected bad arguments.
        [MIPS] SMTC: Fix warning.
        [MIPS] Wire up utimensat, signalfd, timerfd, eventfd
        [MIPS] Atlas: Fix build.
        [MIPS] Always install the DSP exception handler.
        [MIPS] SMTC: Don't set and restore irqregs ptr from self_ipi.
        [MIPS] Fix KMODE for the R3000
      22353f35
    • Linus Torvalds's avatar
      Merge git://git.kernel.org/pub/scm/linux/kernel/git/sfrench/cifs-2.6 · 3e2ce4da
      Linus Torvalds authored
      * git://git.kernel.org/pub/scm/linux/kernel/git/sfrench/cifs-2.6:
        [CIFS] CIFS should honour umask
        [CIFS] Missing flag on negprot needed for some servers to force packet signing
        [CIFS] whitespace cleanup part 2
        [CIFS] whitespace cleanup
        [CIFS] fix mempool destroy done in wrong order in cifs error path
        [CIFS] typo in previous patch
        [CIFS] Fix oops on failed cifs mount (in kthread_stop)
      3e2ce4da
    • Linus Torvalds's avatar
      Merge master.kernel.org:/pub/scm/linux/kernel/git/davej/agpgart · 3334500b
      Linus Torvalds authored
      * master.kernel.org:/pub/scm/linux/kernel/git/davej/agpgart:
        [AGPGART] intel_agp: Add support for G33, Q33 and Q35 chipsets
        [AGPGART] intel_agp: add support for 945GME
        [AGPGART] intel_agp: add support for 965GME/GLE
        [AGPGART] intel_agp: use table for device probe
        [AGPGART] intel_agp: cleanup intel private data
      3334500b
    • Linus Torvalds's avatar
      Merge branch 'linus-plus-plus' of master.kernel.org:/pub/scm/linux/kernel/git/jgarzik/libata-dev · 72f60acb
      Linus Torvalds authored
      * 'linus-plus-plus' of master.kernel.org:/pub/scm/linux/kernel/git/jgarzik/libata-dev:
        libata: limit post SRST nsect/lbal wait to ~100ms
        libata: force PIO on IOMEGA ZIP 250 ATAPI
        libata passthru: update cached device paramters
        libata passthru: always enforce correct DEV bit
        libata passthru: map UDMA protocols
        libata passthru: support PIO multi commands
        libata passthru: update protocol numbers
        libata: Correct abuse of language
        libata-core/sff: Fix multiple assumptions about DMA
        ahci: Add MCP73/MCP77 support to AHCI driver
        libata: fix hw_sata_spd_limit initialization
        libata: print device model and firmware revision for ATAPI devices
        libata: fix probe time irq printouts
        libata: disable NCQ for HITACHI HTS541680J9SA00/SB21C7EP
        remove unused variable in pata_isapnp
      72f60acb