1. 09 5月, 2007 3 次提交
  2. 08 5月, 2007 3 次提交
    • M
      [POWERPC] RTAS MSI implementation · 85f2bf9f
      Michael Ellerman 提交于
      Implement MSI support via RTAS (RTAS = run-time firmware on pSeries
      machines).  For now we assumes that if the required RTAS tokens for
      MSI are present, then we want to use the RTAS MSI routines.
      
      When RTAS is managing MSIs for us, it will/may enable MSI on devices that
      support it by default. This is contrary to the Linux model where a device
      is in LSI mode until the driver requests MSIs.
      
      To remedy this we add a pci_irq_fixup call, which disables MSI if they've
      been assigned by firmware and the device also supports LSI. Devices that
      don't support LSI at all will be left as is, drivers are still expected
      to call pci_enable_msi() before using the device.
      
      At the moment there is no pci_irq_fixup on pSeries, so we can just set it
      unconditionally. If other platforms use the RTAS MSI backend they'll need
      to check that still holds.
      Signed-off-by: NMichael Ellerman <michael@ellerman.id.au>
      Signed-off-by: NPaul Mackerras <paulus@samba.org>
      85f2bf9f
    • B
      [POWERPC] Add powerpc PCI-E reset API implementation · 00c2ae35
      Brian King 提交于
      Adds the pSeries platform implementation for a new PCI API
      which can be used to issue various types of PCI-E reset,
      including PCI-E warm reset and PCI-E hot reset. This is needed
      for an ipr PCI-E adapter which does not properly implement BIST.
      Running BIST on this adapter results in PCI-E errors. The only
      reliable reset mechanism that exists on this hardware is PCI
      Fundamental reset (warm reset).
      Acked-by: NLinas Vepstas <linas@austin.ibm.com>
      Signed-off-by: NBrian King <brking@linux.vnet.ibm.com>
      Signed-off-by: NPaul Mackerras <paulus@samba.org>
      00c2ae35
    • L
      [POWERPC] Export pcibios_remove_pci_devices · fb39a96e
      Linas Vepstas 提交于
      The pseries PCI hotplug code cannot build as a module, unless
      the pcibios_remove_pci_devices function is exported.
      Signed-off-by: NLinas Vepstas <linas@austin.ibm.com>
      ----
       arch/powerpc/platforms/pseries/pci_dlpar.c |    1 +
       1 file changed, 1 insertion(+)
      Signed-off-by: NPaul Mackerras <paulus@samba.org>
      fb39a96e
  3. 07 5月, 2007 1 次提交
  4. 03 5月, 2007 2 次提交
    • J
      PCI: Cleanup the includes of <linux/pci.h> · 6473d160
      Jean Delvare 提交于
      I noticed that many source files include <linux/pci.h> while they do
      not appear to need it. Here is an attempt to clean it all up.
      
      In order to find all possibly affected files, I searched for all
      files including <linux/pci.h> but without any other occurence of "pci"
      or "PCI". I removed the include statement from all of these, then I
      compiled an allmodconfig kernel on both i386 and x86_64 and fixed the
      false positives manually.
      
      My tests covered 66% of the affected files, so there could be false
      positives remaining. Untested files are:
      
      arch/alpha/kernel/err_common.c
      arch/alpha/kernel/err_ev6.c
      arch/alpha/kernel/err_ev7.c
      arch/ia64/sn/kernel/huberror.c
      arch/ia64/sn/kernel/xpnet.c
      arch/m68knommu/kernel/dma.c
      arch/mips/lib/iomap.c
      arch/powerpc/platforms/pseries/ras.c
      arch/ppc/8260_io/enet.c
      arch/ppc/8260_io/fcc_enet.c
      arch/ppc/8xx_io/enet.c
      arch/ppc/syslib/ppc4xx_sgdma.c
      arch/sh64/mach-cayman/iomap.c
      arch/xtensa/kernel/xtensa_ksyms.c
      arch/xtensa/platform-iss/setup.c
      drivers/i2c/busses/i2c-at91.c
      drivers/i2c/busses/i2c-mpc.c
      drivers/media/video/saa711x.c
      drivers/misc/hdpuftrs/hdpu_cpustate.c
      drivers/misc/hdpuftrs/hdpu_nexus.c
      drivers/net/au1000_eth.c
      drivers/net/fec_8xx/fec_main.c
      drivers/net/fec_8xx/fec_mii.c
      drivers/net/fs_enet/fs_enet-main.c
      drivers/net/fs_enet/mac-fcc.c
      drivers/net/fs_enet/mac-fec.c
      drivers/net/fs_enet/mac-scc.c
      drivers/net/fs_enet/mii-bitbang.c
      drivers/net/fs_enet/mii-fec.c
      drivers/net/ibm_emac/ibm_emac_core.c
      drivers/net/lasi_82596.c
      drivers/parisc/hppb.c
      drivers/sbus/sbus.c
      drivers/video/g364fb.c
      drivers/video/platinumfb.c
      drivers/video/stifb.c
      drivers/video/valkyriefb.c
      include/asm-arm/arch-ixp4xx/dma.h
      sound/oss/au1550_ac97.c
      
      I would welcome test reports for these files. I am fine with removing
      the untested files from the patch if the general opinion is that these
      changes aren't safe. The tested part would still be nice to have.
      
      Note that this patch depends on another header fixup patch I submitted
      to LKML yesterday:
        [PATCH] scatterlist.h needs types.h
        http://lkml.org/lkml/2007/3/01/141Signed-off-by: NJean Delvare <khali@linux-fr.org>
      Cc: Badari Pulavarty <pbadari@us.ibm.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      6473d160
    • G
      remove "struct subsystem" as it is no longer needed · 823bccfc
      Greg Kroah-Hartman 提交于
      We need to work on cleaning up the relationship between kobjects, ksets and
      ktypes.  The removal of 'struct subsystem' is the first step of this,
      especially as it is not really needed at all.
      
      Thanks to Kay for fixing the bugs in this patch.
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      823bccfc
  5. 02 5月, 2007 1 次提交
    • L
      [POWERPC] pseries: Handle null iommu dma-window property correctly · 650f7b3b
      Linas Vepstas 提交于
      Some versions of pSeries firmware fail to set up a
      dma-window property for PCI slots that are unoccupied.
      As a result, the loop searching for this propery, in
      pci_dma_dev_setup_pSeriesLP(), can run to the end, resulting
      in a NULL pointer dereference later in the routine. This
      patch prevents the crash, and prints a warning message.
      
      This is theoretically a rare error, as it occurs on what
      is hopefully just beta levels of firmware. But just in case
      this firmware escapes into the wild, this patch will avoid
      the crash.
      Signed-off-by: NLinas Vepstas <linas@austin.ibm.com>
      650f7b3b
  6. 27 4月, 2007 1 次提交
  7. 13 4月, 2007 3 次提交
  8. 22 3月, 2007 14 次提交
  9. 09 3月, 2007 2 次提交
  10. 17 2月, 2007 1 次提交
  11. 16 2月, 2007 1 次提交
  12. 14 2月, 2007 3 次提交
  13. 13 2月, 2007 2 次提交
    • O
      [POWERPC] Mark winbond IDE PCI resources with start 0 as unassigned · 2d99c41f
      Olaf Hering 提交于
      libata calls pci_request_regions to claim PCI BAR 0 - 5
      pci_request_regions fails if one of the regions cant be claimed.
      bar 5 has start == 0,  __request_resource will fail.
      
      Tested on a p630 in SMP mode with pata_sl82c105
      
       00:03.1 IDE interface: Symphony Labs SL82c105 (rev 05) (prog-if 8f [Master SecP SecO PriP PriO])
               Control: I/O+ Mem- BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr+ Stepping- SERR+ FastB2B-
               Status: Cap- 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR-
               Interrupt: pin A routed to IRQ 86
               Region 0: I/O ports at 3fd3000f000 [size=8]
               Region 1: I/O ports at 3fd3000f010 [size=4]
               Region 2: I/O ports at 3fd3000f020 [size=8]
               Region 3: I/O ports at 3fd3000f030 [size=4]
               Region 4: I/O ports at 3fd3000f040 [size=16]
               Region 5: I/O ports at 3fd30000000 [size=16]
       00: ad 10 05 01 41 01 80 02 05 8f 01 01 08 48 80 00
       10: 01 f0 00 00 11 f0 00 00 21 f0 00 00 31 f0 00 00
       20: 41 f0 00 00 01 00 00 00 00 00 00 00 00 00 00 00
       30: 00 00 00 00 00 00 00 00 00 00 00 00 56 01 02 28
       40: b3 08 ff 00 09 09 00 00 09 09 00 00 09 09 00 00
       50: 09 09 00 00 00 00 00 00 00 00 00 00 00 00 00 00
       60: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
       70: 00 00 00 00 00 00 00 00 00 00 00 00 ff 00 00 00
       80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
       90: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
       a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
       b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
       c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
       d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
       e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
       f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
      
       name             "ide"
       linux,phandle    00d5cdc0 (14011840)
       assigned-addresses 81001910 00000000 0000f000 00000000 00000008 81001914
                        00000000 0000f010 00000000 00000004 81001918 00000000
                        0000f020 00000000 00000008 8100191c 00000000 0000f030
                        00000000 00000004 81001920 00000000 0000f040 00000000
                        00000010 81001924 00000000 00000000 00000000 00000010
       interrupts       00000003
       built-in
       #size-cells      00000000
       #address-cells   00000001
       device_type      "ide"
       reg              00001900 00000000 00000000 00000000 00000000
                        41001910 00000000 00000000 00000000 00000008
                        41001914 00000000 00000000 00000000 00000004
                        41001918 00000000 00000000 00000000 00000008
                        4100191c 00000000 00000000 00000000 00000004
                        41001920 00000000 00000000 00000000 00000010
                        41001924 00000000 00000000 00000000 00000010
       compatible       "pci10ad,105"
                        "pciclass,01018f"
       ibm,fw-slot-number 00000000
       fast-back-to-back
       devsel-speed     00000001
       max-latency      00000028 (40)
       min-grant        00000002
       class-code       0001018f (65935)
       revision-id      00000005
       device-id        00000105 (261)
       vendor-id        000010ad (4269)
       ibm,loc-code     "U0.1-P1/Q6"
      Signed-off-by: NOlaf Hering <olaf@aepfle.de>
      Signed-off-by: NPaul Mackerras <paulus@samba.org>
      2d99c41f
    • A
      [PATCH] mark struct file_operations const 2 · 5dfe4c96
      Arjan van de Ven 提交于
      Many struct file_operations in the kernel can be "const".  Marking them const
      moves these to the .rodata section, which avoids false sharing with potential
      dirty data.  In addition it'll catch accidental writes at compile time to
      these shared resources.
      
      [akpm@osdl.org: sparc64 fix]
      Signed-off-by: NArjan van de Ven <arjan@linux.intel.com>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      5dfe4c96
  14. 12 2月, 2007 1 次提交
  15. 08 2月, 2007 1 次提交
  16. 07 2月, 2007 1 次提交