1. 26 1月, 2007 1 次提交
  2. 24 1月, 2007 4 次提交
    • I
      [POWERPC] Add IRQ remapping hook · acc900ef
      Ishizaki Kou 提交于
      This patch adds irq remapping hook. On interrupt mechanism on Beat,
      when an irq outlet which has an id which is formerly used is created,
      remapping the irq is required.
      Signed-off-by: NKou Ishizaki <kou.ishizaki@toshiba.co.jp>
      Acked-by: NBenjamin Herrenschmidt <benh@kernel.crashing.org>
      Signed-off-by: NPaul Mackerras <paulus@samba.org>
      acc900ef
    • I
      [POWERPC] Add a field for each specific bus to struct pci_controller · 5b7c726f
      Ishizaki Kou 提交于
      Struct pci_controller doesn't prepare for the dependent data of each
      specific bus. This patch adds private member to struct pci_controller.
      Signed-off-by: NKou Ishizaki <kou.ishizaki@toshiba.co.jp>
      Acked-by: NArnd Bergmann <arnd.bergmann@de.ibm.com>
      Signed-off-by: NPaul Mackerras <paulus@samba.org>
      5b7c726f
    • A
      [POWERPC] Remove the broken Gemini support · c5365313
      Adrian Bunk 提交于
      Signed-off-by: NAdrian Bunk <bunk@stusta.de>
      Signed-off-by: NPaul Mackerras <paulus@samba.org>
      c5365313
    • A
      [POWERPC] Move ELF_ET_DYN_BASE up to 512MB point · 7e60d1b4
      Anton Blanchard 提交于
      I often test new versions of glibc by doing:
      
      LD_LIBRARY_PATH=/XXX/lib /XXX/lib/ld.so.1 <binary>
      
      One test case ended up SEGV'ing. Upon closer inspection ld.so was loaded
      at 0x8000000 (128MB) with the heap right after it. Since we normally
      link binaries at 0x10000000 (256MB) we only had about 128MB of space for
      the heap:
      
      00100000-00103000 r-xp 00100000 00:00 0           [vdso]
      08000000-0801e000 r-xp 00000000 00:01 33079       /lib/ld-2.5.so
      0802d000-0802f000 rwxp 0001d000 00:01 33079       /lib/ld-2.5.so
      0802f000-08050000 rwxp 0802f000 00:00 0           [heap]
      0fe91000-0ffd9000 r-xp 00000000 00:01 33082       /lib/libc-2.5.so
      0ffd9000-0ffe8000 ---p 00148000 00:01 33082       /lib/libc-2.5.so
      0ffe8000-0ffea000 r--p 00147000 00:01 33082       /lib/libc-2.5.so
      0ffea000-0ffed000 rwxp 00149000 00:01 33082       /lib/libc-2.5.so
      10000000-10004000 r-xp 00000000 00:01 76          /bin/sleep
      10013000-10014000 rwxp 00003000 00:01 76          /bin/sleep
      ffb41000-ffb56000 rw-p ffb41000 00:00 0           [stack]
      
      One way to fix this is move ELF_ET_DYN_BASE from 0x08000000 to 0x20000000.
      This allows 128MB for the binary (hopefully enough for even the most
      crazy c++ apps), and with our current layout we will grow the heap up
      and the stack down, allowing potentially gigabytes of heap:
      
      00100000-00103000 r-xp 00100000 00:00 0           [vdso]
      0fe8a000-0ffd3000 r-xp 00000000 00:01 3350        /lib/tls/libc-2.3.6.so
      0ffd3000-0ffe3000 ---p 00149000 00:01 3350        /lib/tls/libc-2.3.6.so
      0ffe3000-0ffea000 r--p 00149000 00:01 3350        /lib/tls/libc-2.3.6.so
      0ffea000-0ffee000 rwxp 00150000 00:01 3350        /lib/tls/libc-2.3.6.so
      10000000-10004000 r-xp 00000000 00:01 76          /bin/sleep
      10013000-10014000 rwxp 00003000 00:01 76          /bin/sleep
      20000000-20018000 r-xp 00000000 00:01 3478        /lib/ld-2.3.6.so
      20028000-20029000 r--p 00018000 00:01 3478        /lib/ld-2.3.6.so
      20029000-2002a000 rwxp 00019000 00:01 3478        /lib/ld-2.3.6.so
      2002a000-2004b000 rwxp 2002a000 00:00 0           [heap]
      ffd67000-ffd7c000 rw-p ffd67000 00:00 0           [stack]
      Signed-off-by: NAnton Blanchard <anton@samba.org>
      Signed-off-by: NPaul Mackerras <paulus@samba.org>
      7e60d1b4
  3. 23 1月, 2007 1 次提交
    • J
      [PATCH] x86: fix PDA variables to work during boot · 9ee79a3d
      James Bottomley 提交于
      The current PDA code, which went in in post 2.6.19 has a flaw in that it
      doesn't correctly cycle the GDT and %GS segment through the boot PDA,
      the CPU PDA and finally the per-cpu PDA.
      
      The bug generally doesn't show up if the boot CPU id is zero, but
      everything falls apart for a non zero boot CPU id.  The basically kills
      voyager which is perfectly capable of doing non zero CPU id boots, so
      voyager currently won't boot without this.
      
      The fix is to be careful and actually do the GDT setups correctly.
      Signed-off-by: NJames Bottomley <James.Bottomley@SteelEye.com>
      Cc: Andi Kleen <ak@suse.de>
      Cc: Jeremy Fitzhardinge <jeremy@goop.org>
      Cc: Andrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      9ee79a3d
  4. 22 1月, 2007 2 次提交
    • R
      [POWERPC] atomic_dec_if_positive sign extension fix · 434f98c4
      Robert Jennings 提交于
      On 64-bit machines, if an atomic counter is explicitly set to a
      negative value, the atomic_dec_if_positive function will decrement and
      store the next smallest value in the atomic counter, contrary to its
      intended operation.
      
      The comparison to determine if the decrement will make the result
      negative was done by the "addic." instruction, which operates on a
      64-bit value, namely the zero-extended word loaded from the atomic
      variable.  This patch uses an explicit word compare (cmpwi) and
      changes the addic. to an addi (also changing "=&r" to "=&b" so that r0
      isn't used, and addi doesn't become li).
      
      This also fixes a bug for both 32-bit and 64-bit in that previously
      0x80000000 was considered positive, since the result after
      decrementing is positive.  Now it is considered negative.
      
      Also, I clarify the return value in the comments just to make it clear
      that the value returned is always the decremented value, even if that
      value is not stored back to the atomic counter.
      Signed-off-by: NRobert Jennings <rcj@linux.vnet.ibm.com>
      Signed-off-by: NPaul Mackerras <paulus@samba.org>
      434f98c4
    • S
      HID: add missing RX, RZ and RY enum values to hid-debug output · f7ebf99e
      Simon Budig 提交于
      This trivial change adds some missing enum values to the hid-debug output.
      Signed-off-by: NSimon Budig <simon@budig.de>
      Signed-off-by: NJiri Kosina <jkosina@suse.cz>
      f7ebf99e
  5. 20 1月, 2007 1 次提交
    • T
      libata: initialize qc->dma_dir to DMA_NONE · 501e0c50
      Tejun Heo 提交于
      libata didn't used to init qc->dma_dir to any specific value on qc
      initialization and command translation path didn't set qc->dma_dir if
      the command doesn't need data transfer.  This made non-data commands
      to have random qc->dma_dir.
      
      This usually doesn't cause problem because LLDs usually check
      qc->protocol first and look at qc->dma_dir iff the command needs data
      transfer but this doesn't hold for all LLDs.
      
      It might be worthwhile to rename qc->dma_dir to qc->data_dir as we use
      the field to tag data direction for both PIO and DMA protocols.
      
      This problem has been spotted by James Bottomley.
      Signed-off-by: NTejun Heo <htejun@gmail.com>
      Cc: James Bottomley <James.Bottomley@SteelEye.com>
      Signed-off-by: NJeff Garzik <jeff@garzik.org>
      501e0c50
  6. 16 1月, 2007 1 次提交
  7. 15 1月, 2007 1 次提交
  8. 12 1月, 2007 5 次提交
    • A
      [PATCH] FD_ZERO build fix · aae7d14f
      Andrew Morton 提交于
      unionfs managed to hit this on s390.  Some architectures use __ptr_t in their
      FD_ZERO implementation.  We don't have a __ptr_t.  Switch them over to plain
      old void*.
      
      Cc: Richard Henderson <rth@twiddle.net>
      Cc: Ivan Kokshaysky <ink@jurassic.park.msu.ru>
      Cc: Al Viro <viro@zeniv.linux.org.uk>
      Cc: Paul Mackerras <paulus@samba.org>
      Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
      Cc: "Luck, Tony" <tony.luck@intel.com>
      Cc: Martin Schwidefsky <schwidefsky@de.ibm.com>
      Cc: Heiko Carstens <heiko.carstens@de.ibm.com>
      Cc: Josef 'Jeff' Sipek <jsipek@cs.sunysb.edu>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      aae7d14f
    • D
      [PATCH] Revert bd_mount_mutex back to a semaphore · f73ca1b7
      David Chinner 提交于
      Revert bd_mount_mutex back to a semaphore so that xfs_freeze -f /mnt/newtest;
      xfs_freeze -u /mnt/newtest works safely and doesn't produce lockdep warnings.
      
      (XFS unlocks the semaphore from a different task, by design.  The mutex
      code warns about this)
      Signed-off-by: NDave Chinner <dgc@sgi.com>
      Cc: Ingo Molnar <mingo@elte.hu>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      f73ca1b7
    • T
      [PATCH] NFS: Fix race in nfs_release_page() · e3db7691
      Trond Myklebust 提交于
          NFS: Fix race in nfs_release_page()
      
          invalidate_inode_pages2() may find the dirty bit has been set on a page
          owing to the fact that the page may still be mapped after it was locked.
          Only after the call to unmap_mapping_range() are we sure that the page
          can no longer be dirtied.
          In order to fix this, NFS has hooked the releasepage() method and tries
          to write the page out between the call to unmap_mapping_range() and the
          call to remove_mapping(). This, however leads to deadlocks in the page
          reclaim code, where the page may be locked without holding a reference
          to the inode or dentry.
      
          Fix is to add a new address_space_operation, launder_page(), which will
          attempt to write out a dirty page without releasing the page lock.
      Signed-off-by: NTrond Myklebust <Trond.Myklebust@netapp.com>
      
          Also, the bare SetPageDirty() can skew all sort of accounting leading to
          other nasties.
      
      [akpm@osdl.org: cleanup]
      Signed-off-by: NPeter Zijlstra <a.p.zijlstra@chello.nl>
      Cc: Trond Myklebust <Trond.Myklebust@netapp.com>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      e3db7691
    • I
      [PATCH] KVM: add VM-exit profiling · 07031e14
      Ingo Molnar 提交于
      This adds the profile=kvm boot option, which enables KVM to profile VM
      exits.
      
      Use: "readprofile -m ./System.map | sort -n" to see the resulting
      output:
      
         [...]
         18246 serial_out                               148.3415
         18945 native_flush_tlb                         378.9000
         23618 serial_in                                212.7748
         29279 __spin_unlock_irq                        622.9574
         43447 native_apic_write                        2068.9048
         52702 enable_8259A_irq                         742.2817
         54250 vgacon_scroll                             89.3740
         67394 ide_inb                                  6126.7273
         79514 copy_page_range                           98.1654
         84868 do_wp_page                                86.6000
        140266 pit_read                                 783.6089
        151436 ide_outb                                 25239.3333
        152668 native_io_delay                          21809.7143
        174783 mask_and_ack_8259A                       783.7803
        362404 native_set_pte_at                        36240.4000
       1688747 total                                      0.5009
      Signed-off-by: NIngo Molnar <mingo@elte.hu>
      Acked-by: NAvi Kivity <avi@qumranet.com>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      07031e14
    • D
      [PATCH] Fix sparsemem on Cell · a2f3aa02
      Dave Hansen 提交于
      Fix an oops experienced on the Cell architecture when init-time functions,
      early_*(), are called at runtime.  It alters the call paths to make sure
      that the callers explicitly say whether the call is being made on behalf of
      a hotplug even, or happening at boot-time.
      
      It has been compile tested on ppc64, ia64, s390, i386 and x86_64.
      Acked-by: NArnd Bergmann <arndb@de.ibm.com>
      Signed-off-by: NDave Hansen <haveblue@us.ibm.com>
      Cc: Yasunori Goto <y-goto@jp.fujitsu.com>
      Acked-by: NAndy Whitcroft <apw@shadowen.org>
      Cc: Christoph Lameter <clameter@engr.sgi.com>
      Cc: Martin Schwidefsky <schwidefsky@de.ibm.com>
      Acked-by: NHeiko Carstens <heiko.carstens@de.ibm.com>
      Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
      Cc: Paul Mackerras <paulus@samba.org>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      a2f3aa02
  9. 11 1月, 2007 2 次提交
  10. 10 1月, 2007 4 次提交
  11. 09 1月, 2007 9 次提交
  12. 06 1月, 2007 5 次提交
  13. 05 1月, 2007 2 次提交
  14. 04 1月, 2007 1 次提交
  15. 03 1月, 2007 1 次提交