1. 21 Apr, 2008 35 commits
    • Trent Piepho's avatar
      PCI: Hotplug: fakephp: Return success, not ENODEV, when bus rescan is triggered · ca99eb8c
      Trent Piepho authored
      The 'power' attribute of the fakephp driver originally only let one turn a
      slot off.  If one tried to turn a slot on (echo 1 > .../power), it would
      return ENODEV, as fakephp did not support this function.
      
      An old (pre-git) patch changed this:
      2004/11/11 16:33:31-08:00 jdittmer
      [PATCH] fakephp: add pci bus rescan ability
      http://article.gmane.org/gmane.linux.kernel/251183
      
      Now writing "1" to the power attribute has the effect of triggering a bus
      rescan, but it still returns ENODEV, probably an oversight in the above
      patch.
      
      Using the BusyBox echo will not produce an error message, but will
      trigger *two* bus rescans (and return an exit code of 1):
      ~ # strace echo -n 1 > /sys/bus/pci/slots/0000:00:00.0/power
      ...
      write(1, "1", 1)                        = -1 ENODEV (No such device)
      write(1, "1", 1)                        = -1 ENODEV (No such device)
      exit(1)                                 = ?
      
      Using cp gives a write error, even though the write did happen and a rescan
      was triggered:
      ~ # echo -n 1 > tmp ; cp tmp /sys/bus/pci/slots/0000:00:00.0/power
      cp: Write Error: No such device
      
      It seems much better to return success instead of failure.  The actual
      status of the bus rescan is hard to return.  It happens asynchronously in a
      work thread, so the sysfs store functions returns before any status is
      ready (the whole point of the work queue).  And even if it didn't do this,
      the rescan doesn't have any clear status to return.
      Signed-off-by: default avatarTrent Piepho <tpiepho@freescale.com>
      CC: Jan Dittmer <jdittmer@ppp0.net>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
      ca99eb8c
    • Jesper Juhl's avatar
      PCI: Hotplug: Fix leaks in IBM Hot Plug Controller Driver - ibmphp_init_devno() · 029c3c13
      Jesper Juhl authored
      In drivers/pci/hotplug/ibmphp_core.c::ibmphp_init_devno() we allocate
      space dynamically for a PCI irq routing table by calling
      pcibios_get_irq_routing_table(), but we never free the allocated space.
      
      This patch frees the allocated space at the function exit points.
      
      Spotted by the Coverity checker. Compile tested only.
      
      Please consider applying.
      Signed-off-by: default avatarJesper Juhl <jesper.juhl@gmail.com>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
      029c3c13
    • Ivan Kokshaysky's avatar
      PCI: clean up resource alignment management · 88452565
      Ivan Kokshaysky authored
      Done per Linus' request and suggestions. Linus has explained that
      better than I'll be able to explain:
      
      On Thu, Mar 27, 2008 at 10:12:10AM -0700, Linus Torvalds wrote:
      > Actually, before we go any further, there might be a less intrusive
      > alternative: add just a couple of flags to the resource flags field (we
      > still have something like 8 unused bits on 32-bit), and use those to
      > implement a generic "resource_alignment()" routine.
      >
      > Two flags would do it:
      >
      >  - IORESOURCE_SIZEALIGN: size indicates alignment (regular PCI device
      >    resources)
      >
      >  - IORESOURCE_STARTALIGN: start field is alignment (PCI bus resources
      >    during probing)
      >
      > and then the case of both flags zero (or both bits set) would actually be
      > "invalid", and we would also clear the IORESOURCE_STARTALIGN flag when we
      > actually allocate the resource (so that we don't use the "start" field as
      > alignment incorrectly when it no longer indicates alignment).
      >
      > That wouldn't be totally generic, but it would have the nice property of
      > automatically at least add sanity checking for that whole "res->start has
      > the odd meaning of 'alignment' during probing" and remove the need for a
      > new field, and it would allow us to have a generic "resource_alignment()"
      > routine that just gets a resource pointer.
      
      Besides, I removed IORESOURCE_BUS_HAS_VGA flag which was unused for ages.
      Signed-off-by: default avatarIvan Kokshaysky <ink@jurassic.park.msu.ru>
      Cc: Linus Torvalds <torvalds@linux-foundation.org>
      Cc: Gary Hade <garyhade@us.ibm.com>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
      88452565
    • Adrian Bunk's avatar
      PCI: aerdrv_acpi.c: remove unneeded NULL check · d75b3052
      Adrian Bunk authored
      There's no reason for checking pdev->bus for being NULL here (and we'd
      anyway Oops 3 lines below if it was).
      Signed-off-by: default avatarAdrian Bunk <bunk@kernel.org>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
      d75b3052
    • Tim Yamin's avatar
      PCI: Update VIA CX700 quirk · bc043274
      Tim Yamin authored
      This follows up 53a9bf42. Some newer
      CX700 BIOSes from our vendor have PCI Bus Parking disabled but PCI
      Master read caching enabled. This creates problems such as system
      freezing when both the network controller and the USB controller are
      active and one of them is pretty busy (e.g. heavy network traffic).
      
      This patch separates the checks and both the bus parking and the read
      caching are disabled independently if either is enabled by the BIOS.
      Signed-off-by: default avatarTim Yamin <tim.yamin@zonbu.com>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
      bc043274
    • Ben Hutchings's avatar
      PCI: Expose PCI VPD through sysfs · 94e61088
      Ben Hutchings authored
      Vital Product Data (VPD) may be exposed by PCI devices in several
      ways.  It is generally unsafe to read this information through the
      existing interfaces to user-land because of stateful interfaces.
      
      This adds:
      - abstract operations for VPD access (struct pci_vpd_ops)
      - VPD state information in struct pci_dev (struct pci_vpd)
      - an implementation of the VPD access method specified in PCI 2.2
        (in access.c)
      - a 'vpd' binary file in sysfs directories for PCI devices with VPD
        operations defined
      
      It adds a probe for PCI 2.2 VPD in pci_scan_device() and release of
      VPD state in pci_release_dev().
      Signed-off-by: default avatarBen Hutchings <bhutchings@solarflare.com>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
      94e61088
    • mark gross's avatar
      PCI: iommu: iotlb flushing · 5e0d2a6f
      mark gross authored
      This patch is for batching up the flushing of the IOTLB for the DMAR
      implementation found in the Intel VT-d hardware.  It works by building a list
      of to be flushed IOTLB entries and a bitmap list of which DMAR engine they are
      from.
      
      After either a high water mark (250 accessible via debugfs) or 10ms the list
      of iova's will be reclaimed and the DMAR engines associated are IOTLB-flushed.
      
      This approach recovers 15 to 20% of the performance lost when using the IOMMU
      for my netperf udp stream benchmark with small packets.  It can be disabled
      with a kernel boot parameter "intel_iommu=strict".
      
      Its use does weaken the IOMMU protections a bit.
      Signed-off-by: default avatarMark Gross <mgross@linux.intel.com>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
      5e0d2a6f
    • Bjorn Helgaas's avatar
      PCI: simplify quirk debug output · 0255f543
      Bjorn Helgaas authored
      print_fn_descriptor_symbol() prints the address if we don't have a symbol,
      so no need to print both.
      Signed-off-by: default avatarBjorn Helgaas <bjorn.helgaas@hp.com>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
      0255f543
    • mark gross's avatar
      PCI: iova RB tree setup tweak · ddf02886
      mark gross authored
      The following patch merges two functions into one allowing for a 3%
      reduction in overhead in locating, allocating and inserting pages for
      use in IOMMU operations.
      
      Its a bit of a eye-crosser so I welcome any RB-tree / MM experts to take
      a look.  It works by re-using some of the information gathered in the
      search for the pages to use in setting up the IOTLB's in the insertion
      of the iova structure into the RB tree.
      
      Signed-off-by: <mgross@linux.intel.com>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
      ddf02886
    • Bjorn Helgaas's avatar
      PCI: parisc: use generic pci_enable_resources() · c9e9e0bf
      Bjorn Helgaas authored
      Use the generic pci_enable_resources() instead of the arch-specific code.
      
      Unlike this arch-specific code, the generic version:
          - checks PCI_NUM_RESOURCES (11), not DEVICE_COUNT_RESOURCE (12), resources
          - skips resources that have neither IORESOURCE_IO nor IORESOURCE_MEM set
          - skips ROM resources unless IORESOURCE_ROM_ENABLE is set
          - checks for resource collisions with "!r->parent"
      Signed-off-by: default avatarBjorn Helgaas <bjorn.helgaas@hp.com>
      Acked-by: default avatarKyle McMartin <kyle@mcmartin.ca>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
      c9e9e0bf
    • Bjorn Helgaas's avatar
      PCI: ppc: use generic pci_enable_resources() · e789920d
      Bjorn Helgaas authored
      Use the generic pci_enable_resources() instead of the arch-specific code.
      
      Unlike this arch-specific code, the generic version:
          - checks PCI_NUM_RESOURCES (11), not 6, resources
          - skips resources that have neither IORESOURCE_IO nor IORESOURCE_MEM set
          - skips ROM resources unless IORESOURCE_ROM_ENABLE is set
          - checks for resource collisions with "!r->parent", not IORESOURCE_UNSET
      Signed-off-by: default avatarBjorn Helgaas <bjorn.helgaas@hp.com>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
      e789920d
    • Bjorn Helgaas's avatar
      PCI: powerpc: use generic pci_enable_resources() · 7cfb5f9a
      Bjorn Helgaas authored
      Use the generic pci_enable_resources() instead of the arch-specific code.
      The generic version is functionally equivalent, but uses dev_printk.
      Signed-off-by: default avatarBjorn Helgaas <bjorn.helgaas@hp.com>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
      7cfb5f9a
    • Bjorn Helgaas's avatar
      PCI: ia64: use generic pci_enable_resources() · d981f163
      Bjorn Helgaas authored
      Use the generic pci_enable_resources() instead of the arch-specific code.
      
      Unlike this arch-specific code, the generic version:
          - does not check for a NULL dev pointer
          - skips resources that have neither IORESOURCE_IO nor IORESOURCE_MEM set
      Signed-off-by: default avatarBjorn Helgaas <bjorn.helgaas@hp.com>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
      d981f163
    • Bjorn Helgaas's avatar
      PCI: alpha: use generic pci_enable_resources() · 10f000a2
      Bjorn Helgaas authored
      Use the generic pci_enable_resources() instead of the arch-specific code.
      
      Unlike this arch-specific code, the generic version:
          - skips resources unless requested in "mask"
          - skips ROM resources unless IORESOURCE_ROM_ENABLE is set
          - checks for resource collisions with "!r->parent"
      Signed-off-by: default avatarBjorn Helgaas <bjorn.helgaas@hp.com>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
      10f000a2
    • Bjorn Helgaas's avatar
      PCI: x86: use generic pci_enable_resources() · b81d988c
      Bjorn Helgaas authored
      Use the generic pci_enable_resources() instead of the arch-specific code.
      
      Unlike this arch-specific code, the generic version:
          - checks for resource collisions with "!r->parent"
      Signed-off-by: default avatarBjorn Helgaas <bjorn.helgaas@hp.com>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
      b81d988c
    • Bjorn Helgaas's avatar
      PCI: add generic pci_enable_resources() · 842de40d
      Bjorn Helgaas authored
      Each architecture has its own pcibios_enable_resources() implementation.
      These differ in many minor ways that have nothing to do with actual
      architectural differences.  Follow-on patches will make most arches
      use this generic version instead.
      
      This version is based on powerpc, which seemed most up-to-date.  The only
      functional difference from the x86 version is that this uses "!r->parent"
      to check for resource collisions instead of "!r->start && r->end".
      Signed-off-by: default avatarBjorn Helgaas <bjorn.helgaas@hp.com>
      Acked-by: default avatarBenjamin Herrenschmidt <benh@kernel.crashing.org>
      Acked-by: default avatarDavid Howells <dhowells@redhat.com>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
      842de40d
    • Shaohua Li's avatar
      PCI: add PCI Express ASPM support · 7d715a6c
      Shaohua Li authored
      PCI Express ASPM defines a protocol for PCI Express components in the D0
      state to reduce Link power by placing their Links into a low power state
      and instructing the other end of the Link to do likewise. This
      capability allows hardware-autonomous, dynamic Link power reduction
      beyond what is achievable by software-only controlled power management.
      However, The device should be configured by software appropriately.
      Enabling ASPM will save power, but will introduce device latency.
      
      This patch adds ASPM support in Linux. It introduces a global policy for
      ASPM, a sysfs file /sys/module/pcie_aspm/parameters/policy can control
      it. The interface can be used as a boot option too. Currently we have
      below setting:
              -default, BIOS default setting
              -powersave, highest power saving mode, enable all available ASPM
      state and clock power management
              -performance, highest performance, disable ASPM and clock power
      management
      By default, the 'default' policy is used currently.
      
      In my test, power difference between powersave mode and performance mode
      is about 1.3w in a system with 3 PCIE links.
      
      Note: some devices might not work well with aspm, either because chipset
      issue or device issue. The patch provide API (pci_disable_link_state),
      driver can disable ASPM for specific device.
      Signed-off-by: default avatarShaohua Li <shaohua.li@intel.com>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
      7d715a6c
    • Bjorn Helgaas's avatar
      PCI: remove "pci=routeirq" noise from dmesg · 657472e9
      Bjorn Helgaas authored
      The "pci=routeirq" option was added in 2004, and I don't get any valid
      reports anymore.  The option is still mentioned in kernel-parameters.txt.
      Signed-off-by: default avatarBjorn Helgaas <bjorn.helgaas@hp.com>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
      657472e9
    • Gary Hade's avatar
      PCI: Include PCI domain in PCI bus names on x86/x86_64 · cb3576fa
      Gary Hade authored
      The PCI bus names included in /proc/iomem and /proc/ioports are
      of the form 'PCI Bus #XX' where XX is the bus number.  This patch
      changes the naming to 'PCI Bus XXXX:YY' where XXXX is the domain
      number and YY is the bus number.  For example, PCI bus 14 in
      domain 0 will show as 'PCI Bus 0000:14' instead of 'PCI Bus #14'.
      This change makes the naming consistent with other architectures
      such as ia64 where multiple PCI domain support has been around
      longer.
      Signed-off-by: default avatarGary Hade <garyhade@us.ibm.com>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
      cb3576fa
    • Adrian Bunk's avatar
      PCI: #if 0 pci_cleanup_aer_correct_error_status() · 21c68474
      Adrian Bunk authored
      #if 0 the no longer used pci_cleanup_aer_correct_error_status().
      Signed-off-by: default avatarAdrian Bunk <bunk@kernel.org>
      Cc: Stephen Hemminger <shemminger@linux-foundation.org>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
      21c68474
    • Yinghai Lu's avatar
      PCI: pcie AER: don't check _OSC when acpi is disabled · 4c44bac8
      Yinghai Lu authored
      [PATCH] pcie AER: don't check _OSC when acpi is disabled
      
      when acpi=off or pci=noacpi, get warning
      
      AER service couldn't init device 0000:00:0a.0:pcie01 - no _OSC support
      AER service couldn't init device 0000:00:0e.0:pcie01 - no _OSC support
      AER service couldn't init device 0000:00:0f.0:pcie01 - no _OSC support
      AER service couldn't init device 0000:80:0b.0:pcie01 - no _OSC support
      AER service couldn't init device 0000:80:0e.0:pcie01 - no _OSC support
      AER service couldn't init device 0000:80:0f.0:pcie01 - no _OSC support
      
      so don't check _OSC in aer_osc_setup
      Signed-off-by: default avatarYinghai Lu <yinghai.lu@sun.com>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
      4c44bac8
    • Greg Kroah-Hartman's avatar
      PCI: remove global list of PCI devices · 5ff580c1
      Greg Kroah-Hartman authored
      This patch finally removes the global list of PCI devices.  We are
      relying entirely on the list held in the driver core now, and do not
      need a separate "shadow" list as no one uses it.
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
      5ff580c1
    • James Bottomley's avatar
      PCI: remove parisc consumer of the pci global_list · c71c68a0
      James Bottomley authored
      Remove the parisc usage of the global_list, as it's not needed anymore.
      Signed-off-by: default avatarJames Bottomley <James.Bottomley@HansenPartnership.com>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
      c71c68a0
    • Greg Kroah-Hartman's avatar
      PCI: remove pcibios_fixup_ghosts() · 6355f3d1
      Greg Kroah-Hartman authored
      This function was obviously never being used since early 2.5 days as any
      device that it would try to remove would never really be removed from
      the system due to the PCI device list being held in the driver core, not
      the general list of PCI devices.
      
      As we have not had a single report of a problem here in 4 years, I think
      it's safe to remove now.
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
      6355f3d1
    • Greg Kroah-Hartman's avatar
      PCI: add is_added flag to struct pci_dev · 8a1bc901
      Greg Kroah-Hartman authored
      This lets us check if the device is really added to the driver core or
      not, which is what we need when walking some of the bus lists.  The flag
      is there in anticipation of getting rid of the other PCI device list,
      which is what we used to check in this situation.
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
      8a1bc901
    • Greg Kroah-Hartman's avatar
      PCI: make no_pci_devices() use the pci_bus_type list · 70308923
      Greg Kroah-Hartman authored
      no_pci_devices() should use the driver core list of PCI devices, not our
      "separate" one.
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
      70308923
    • Greg Kroah-Hartman's avatar
      PCI: remove initial bios sort of PCI devices on x86 · 1ba6ab11
      Greg Kroah-Hartman authored
      We currently keep 2 lists of PCI devices in the system, one in the
      driver core, and one all on its own.  This second list is sorted at boot
      time, in "BIOS" order, to try to remain compatible with older kernels
      (2.2 and earlier days).  There was also a "nosort" option to turn this
      sorting off, to remain compatible with even older kernel versions, but
      that just ends up being what we have been doing from 2.5 days...
      
      Unfortunately, the second list of devices is not really ever used to 
      determine the probing order of PCI devices or drivers[1].  That is done
      using the driver core list instead.  This change happened back in the
      early 2.5 days.
      
      Relying on BIOS ording for the binding of drivers to specific device
      names is problematic for many reasons, and userspace tools like udev
      exist to properly name devices in a persistant manner if that is needed,
      no reliance on the BIOS is needed.
      
      Matt Domsch and others at Dell noticed this back in 2006, and added a
      boot option to sort the PCI device lists (both of them) in a
      breadth-first manner to help remain compatible with the 2.4 order, if
      needed for any reason.  This option is not going away, as some systems
      rely on them.
      
      This patch removes the sorting of the internal PCI device list in "BIOS"
      mode, as it's not needed at all anymore, and hasn't for many years.
      I've also removed the PCI flags for this from some other arches that for
      some reason defined them, but never used them.
      
      This should not change the ordering of any drivers or device probing.
      
      [1] The old-style pci_get_device and pci_find_device() still used this
      sorting order, but there are very few drivers that use these functions,
      as they are deprecated for use in this manner.  If for some reason, a
      driver rely on the order and uses these functions, the breadth-first
      boot option will resolve any problem.
      
      Cc: Matt Domsch <Matt_Domsch@dell.com>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
      1ba6ab11
    • Greg Kroah-Hartman's avatar
      PCI Hotplug: the ibm driver is not dependant on PCI_LEGACY · 3b57eff0
      Greg Kroah-Hartman authored
      This was marked incorrectly for some reason.  Allow the ibmphp driver to
      be built even if PCI_LEGACY is not enabled.
      
      Cc: Kristen Carlson Accardi <kristen.c.accardi@intel.com>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
      3b57eff0
    • Greg Kroah-Hartman's avatar
      PCI Hotplug: make cpcihp driver use modern apis · 33ae6ef2
      Greg Kroah-Hartman authored
      This removes the depandancy of the cpcihp driver from the PCI_LEGACY
      config option by removing its usage of the pci_find_bus() function.
      
      
      Cc: Kristen Carlson Accardi <kristen.c.accardi@intel.com>
      Signed-off-by: default avatarScott Murray <scottm@somanetworks.com>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
      33ae6ef2
    • Greg Kroah-Hartman's avatar
      PCI: clean up search.c a lot · 95247b57
      Greg Kroah-Hartman authored
      This cleans up the search.c file, now using the pci list of devices that
      are created for the driver core, instead of relying on our separate list
      of devices.  It's better to use the functions already created for this
      kind of thing, instead of rolling our own all the time.
      
      This work is done in anticipation of getting rid of that second list of
      pci devices all together.
      
      And it ends up saving code, always a nice benefit.
      
      This also removes one compiler warning for when CONFIG_PCI_LEGACY is
      enabled as we no longer internally use the deprecated functions anymore.
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
      95247b57
    • Greg Kroah-Hartman's avatar
      PCI: remove pci_get_device_reverse · 34220909
      Greg Kroah-Hartman authored
      This removes the pci_get_device_reverse function as there should not be
      any need to walk pci devices backwards anymore.  All users of this call
      are now gone from the tree, so it is safe to remove it.
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
      34220909
    • Greg Kroah-Hartman's avatar
      PCI: remove pci_get_device_reverse from calgary driver · a2b5d877
      Greg Kroah-Hartman authored
      This isn't needed, we can just walk the devices in bus order with no
      problems at all, as we really want to remove pci_get_device_reverse from
      the kernel tree.
      Acked-by: default avatarMuli Ben-Yehuda <muli@il.ibm.com>
      Cc: Jon Mason <jdmason@kudzu.us>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
      a2b5d877
    • Greg Kroah-Hartman's avatar
      PCI: remove pci_find_present · 448432c4
      Greg Kroah-Hartman authored
      No one is using this function anymore for quite some time, so remove it.
      Everyone calls pci_dev_present() instead anyway...
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
      448432c4
    • Adrian Bunk's avatar
      PCI: #if 0 pci_assign_resource_fixed() · 2baad5f9
      Adrian Bunk authored
      An unused function that bloated the kernel only when CONFIG_EMBEDDED was
      enabled...
      Signed-off-by: default avatarAdrian Bunk <bunk@kernel.org>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
      2baad5f9
    • Randy Dunlap's avatar
      PCI: doc/pci: create Documentation/PCI/ and move files into it · 4b5ff469
      Randy Dunlap authored
      Create Documentation/PCI/ and move PCI-related files to it.
      Fix a few instances of trailing whitespace.
      Update references to the new file locations.
      Signed-off-by: default avatarRandy Dunlap <randy.dunlap@oracle.com>
      Cc: Jesse Barnes <jbarnes@virtuousgeek.org>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
      4b5ff469
  2. 19 Apr, 2008 4 commits
    • Linus Torvalds's avatar
      Merge branch 'for-linus' of... · 3925e6fc
      Linus Torvalds authored
      Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/security-testing-2.6
      
      * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/security-testing-2.6:
        security: fix up documentation for security_module_enable
        Security: Introduce security= boot parameter
        Audit: Final renamings and cleanup
        SELinux: use new audit hooks, remove redundant exports
        Audit: internally use the new LSM audit hooks
        LSM/Audit: Introduce generic Audit LSM hooks
        SELinux: remove redundant exports
        Netlink: Use generic LSM hook
        Audit: use new LSM hooks instead of SELinux exports
        SELinux: setup new inode/ipc getsecid hooks
        LSM: Introduce inode_getsecid and ipc_getsecid hooks
      3925e6fc
    • Linus Torvalds's avatar
      Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6.26 · 334d0945
      Linus Torvalds authored
      * git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6.26: (1090 commits)
        [NET]: Fix and allocate less memory for ->priv'less netdevices
        [IPV6]: Fix dangling references on error in fib6_add().
        [NETLABEL]: Fix NULL deref in netlbl_unlabel_staticlist_gen() if ifindex not found
        [PKT_SCHED]: Fix datalen check in tcf_simp_init().
        [INET]: Uninline the __inet_inherit_port call.
        [INET]: Drop the inet_inherit_port() call.
        SCTP: Initialize partial_bytes_acked to 0, when all of the data is acked.
        [netdrvr] forcedeth: internal simplifications; changelog removal
        phylib: factor out get_phy_id from within get_phy_device
        PHY: add BCM5464 support to broadcom PHY driver
        cxgb3: Fix __must_check warning with dev_dbg.
        tc35815: Statistics cleanup
        natsemi: fix MMIO for PPC 44x platforms
        [TIPC]: Cleanup of TIPC reference table code
        [TIPC]: Optimized initialization of TIPC reference table
        [TIPC]: Remove inlining of reference table locking routines
        e1000: convert uint16_t style integers to u16
        ixgb: convert uint16_t style integers to u16
        sb1000.c: make const arrays static
        sb1000.c: stop inlining largish static functions
        ...
      334d0945
    • James Morris's avatar
      security: fix up documentation for security_module_enable · 7cea51be
      James Morris authored
      security_module_enable() can only be called during kernel init.
      Signed-off-by: default avatarJames Morris <jmorris@namei.org>
      7cea51be
    • Ahmed S. Darwish's avatar
      Security: Introduce security= boot parameter · 076c54c5
      Ahmed S. Darwish authored
      Add the security= boot parameter. This is done to avoid LSM
      registration clashes in case of more than one bult-in module.
      
      User can choose a security module to enable at boot. If no
      security= boot parameter is specified, only the first LSM
      asking for registration will be loaded. An invalid security
      module name will be treated as if no module has been chosen.
      
      LSM modules must check now if they are allowed to register
      by calling security_module_enable(ops) first. Modify SELinux
      and SMACK to do so.
      
      Do not let SMACK register smackfs if it was not chosen on
      boot. Smackfs assumes that smack hooks are registered and
      the initial task security setup (swapper->security) is done.
      Signed-off-by: default avatarAhmed S. Darwish <darwish.07@gmail.com>
      Acked-by: default avatarJames Morris <jmorris@namei.org>
      076c54c5
  3. 18 Apr, 2008 1 commit