1. 18 12月, 2009 1 次提交
  2. 16 12月, 2009 3 次提交
  3. 15 12月, 2009 6 次提交
  4. 13 12月, 2009 2 次提交
  5. 12 12月, 2009 2 次提交
  6. 11 12月, 2009 1 次提交
  7. 09 12月, 2009 6 次提交
    • R
      powerpc: Make "intspec" pointers in irq_host->xlate() const · 40d50cf7
      Roman Fietze 提交于
      Writing a driver using SCLPC on the MPC5200B I detected, that the
      intspec arrays to map irqs to Linux virq cannot be const, because the
      mapping and xlate functions only take non const pointers. All those
      functions do not modify the intspec, so a const pointer could be used.
      Signed-off-by: NRoman Fietze <roman.fietze@telemotive.de>
      Signed-off-by: NBenjamin Herrenschmidt <benh@kernel.crashing.org>
      40d50cf7
    • J
      powerpc/8xx: Restore _PAGE_WRITETHRU · 0c466169
      Joakim Tjernlund 提交于
      8xx has not had WRITETHRU due to lack of bits in the pte.
      After the recent rewrite of the 8xx TLB code, there are
      two bits left. Use one of them to WRITETHRU.
      
      Perhaps use the last SW bit to PAGE_SPECIAL or PAGE_FILE?
      Signed-off-by: NJoakim Tjernlund <Joakim.Tjernlund@transmode.se>
      Signed-off-by: NBenjamin Herrenschmidt <benh@kernel.crashing.org>
      0c466169
    • J
      powerpc/8xx: Update TLB asm so it behaves as linux mm expects. · fe11dc3f
      Joakim Tjernlund 提交于
      Update the TLB asm to make proper use of _PAGE_DIRY and _PAGE_ACCESSED.
      Get rid of _PAGE_HWWRITE too.
      Pros:
       - I/D TLB Miss never needs to write to the linux pte.
       - _PAGE_ACCESSED is only set on TLB Error fixing accounting
       - _PAGE_DIRTY is mapped to 0x100, the changed bit, and is set directly
          when a page has been made dirty.
       - Proper RO/RW mapping of user space.
       - Free up 2 SW TLB bits in the linux pte(add back _PAGE_WRITETHRU ?)
       - kernel RO/user NA support.
      Cons:
       - A few more instructions in the TLB Miss routines.
      Signed-off-by: NJoakim Tjernlund <Joakim.Tjernlund@transmode.se>
      Signed-off-by: NBenjamin Herrenschmidt <benh@kernel.crashing.org>
      fe11dc3f
    • N
      sysfs/cpu: Add probe/release files · 12633e80
      Nathan Fontenot 提交于
      Version 3 of this patch is updated with documentation added to
      Documentation/ABI.  There are no changes to any of the C code from v2
      of the patch.
      
      In order to support kernel DLPAR of CPU resources we need to provide an
      interface to add (probe) and remove (release) the resource from the system.
      This patch Creates new generic probe and release sysfs files to facilitate
      cpu probe/release.  The probe/release interface provides for allowing each
      arch to supply their own routines for implementing the backend of adding
      and removing cpus to/from the system.
      
      This also creates the powerpc specific stubs to handle the arch callouts
      from writes to the sysfs files.
      
      The creation and use of these files is regulated by the
      CONFIG_ARCH_CPU_PROBE_RELEASE option so that only architectures that need the
      capability will have the files created.
      Signed-off-by: NNathan Fontenot <nfont@austin.ibm.com>
      Signed-off-by: NBenjamin Herrenschmidt <benh@kernel.crashing.org>
      12633e80
    • N
      powerpc/pseries: Kernel DLPAR Infrastructure · ab519a01
      Nathan Fontenot 提交于
      The Dynamic Logical Partitioning capabilities of the powerpc pseries platform
      allows for the addition and removal of resources (i.e. CPU's, memory, and PCI
      devices) from a partition. The removal of a resource involves
      removing the resource's node from the device tree and then returning the
      resource to firmware via the rtas set-indicator call.  To add a resource, it
      is first obtained from firmware via the rtas set-indicator call and then a
      new device tree node is created using the ibm,configure-coinnector rtas call
      and added to the device tree.
      
      This patch provides the kernel DLPAR infrastructure in a new filed named
      dlpar.c.  The functionality provided is for acquiring and releasing a resource
      from firmware and the parsing of information returned from the
      ibm,configure-connector rtas call.  Additionally this exports the pSeries
      reconfiguration notifier chain so that it can be invoked when device tree
      updates are made.
      Signed-off-by: NNathan Fontenot <nfont@austin.ibm.com>
      Acked-by: NPaul Mackerras <paulus@samba.org>
      Signed-off-by: NBenjamin Herrenschmidt <benh@kernel.crashing.org>
      ab519a01
    • B
      powerpc/macio: Rework hotplug media bay support · d58b0c39
      Benjamin Herrenschmidt 提交于
      The hotplug mediabay has tendrils deep into drivers/ide code
      which makes a libata port reather difficult. In addition it's
      ugly and could be done better.
      
      This reworks the interface between the mediabay and the rest
      of the world so that:
      
         - Any macio_driver can now have a mediabay_event callback
      which will be called when that driver sits on a mediabay and
      it's been either plugged or unplugged. The device type is
      passed as an argument. We can now move all the IDE cruft
      into the IDE driver itself
      
         - A check_media_bay() function can be used to take a peek
      at the type of device currently in the bay if any, a cleaner
      variant of the previous function with the same name.
      
         - A pair of lock/unlock functions are exposed to allow the
      IDE driver to block the hotplug callbacks during the initial
      setup and probing of the bay in order to avoid nasty race
      conditions.
      
         - The mediabay code no longer needs to spin on the status
      register of the IDE interface when it detects an IDE device,
      this is done just fine by the IDE code itself
      
      Overall, less code, simpler, and allows for another driver
      than our old drivers/ide based one.
      Signed-off-by: NBenjamin Herrenschmidt <benh@kernel.crashing.org>
      d58b0c39
  8. 08 12月, 2009 4 次提交
  9. 07 12月, 2009 1 次提交
  10. 04 12月, 2009 1 次提交
  11. 02 12月, 2009 1 次提交
  12. 01 12月, 2009 1 次提交
  13. 27 11月, 2009 1 次提交
  14. 26 11月, 2009 1 次提交
    • I
      block: add helpers to run flush_dcache_page() against a bio and a request's pages · 2d4dc890
      Ilya Loginov 提交于
      Mtdblock driver doesn't call flush_dcache_page for pages in request.  So,
      this causes problems on architectures where the icache doesn't fill from
      the dcache or with dcache aliases.  The patch fixes this.
      
      The ARCH_IMPLEMENTS_FLUSH_DCACHE_PAGE symbol was introduced to avoid
      pointless empty cache-thrashing loops on architectures for which
      flush_dcache_page() is a no-op.  Every architecture was provided with this
      flush pages on architectires where ARCH_IMPLEMENTS_FLUSH_DCACHE_PAGE is
      equal 1 or do nothing otherwise.
      
      See "fix mtd_blkdevs problem with caches on some architectures" discussion
      on LKML for more information.
      Signed-off-by: NIlya Loginov <isloginov@gmail.com>
      Cc: Ingo Molnar <mingo@elte.hu>
      Cc: David Woodhouse <dwmw2@infradead.org>
      Cc: Peter Horton <phorton@bitbox.co.uk>
      Cc: "Ed L. Cashin" <ecashin@coraid.com>
      Signed-off-by: NJens Axboe <jens.axboe@oracle.com>
      2d4dc890
  15. 24 11月, 2009 4 次提交
  16. 14 11月, 2009 1 次提交
  17. 13 11月, 2009 1 次提交
  18. 12 11月, 2009 3 次提交