1. 19 6月, 2009 1 次提交
  2. 17 6月, 2009 1 次提交
  3. 12 6月, 2009 1 次提交
  4. 28 4月, 2009 1 次提交
    • Y
      irq: change ->set_affinity() to return status · d5dedd45
      Yinghai Lu 提交于
      according to Ingo, change set_affinity() in irq_chip should return int,
      because that way we can handle failure cases in a much cleaner way, in
      the genirq layer.
      
      v2: fix two typos
      
      [ Impact: extend API ]
      Signed-off-by: NYinghai Lu <yinghai@kernel.org>
      Cc: Andrew Morton <akpm@linux-foundation.org>
      Cc: Suresh Siddha <suresh.b.siddha@intel.com>
      Cc: "Eric W. Biederman" <ebiederm@xmission.com>
      Cc: Rusty Russell <rusty@rustcorp.com.au>
      Cc: linux-arch@vger.kernel.org
      LKML-Reference: <49F654E9.4070809@kernel.org>
      Signed-off-by: NIngo Molnar <mingo@elte.hu>
      d5dedd45
  5. 03 4月, 2009 1 次提交
  6. 02 4月, 2009 3 次提交
  7. 01 4月, 2009 2 次提交
  8. 31 3月, 2009 8 次提交
  9. 28 3月, 2009 1 次提交
    • C
      generic compat_sys_ustat · 2b1c6bd7
      Christoph Hellwig 提交于
      Due to a different size of ino_t ustat needs a compat handler, but
      currently only x86 and mips provide one.  Add a generic compat_sys_ustat
      and switch all architectures over to it.  Instead of doing various
      user copy hacks compat_sys_ustat just reimplements sys_ustat as
      it's trivial.  This was suggested by Arnd Bergmann.
      
      Found by Eric Sandeen when running xfstests/017 on ppc64, which causes
      stack smashing warnings on RHEL/Fedora due to the too large amount of
      data writen by the syscall.
      Signed-off-by: NChristoph Hellwig <hch@lst.de>
      Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
      2b1c6bd7
  10. 16 3月, 2009 3 次提交
  11. 13 3月, 2009 6 次提交
  12. 30 1月, 2009 1 次提交
  13. 13 1月, 2009 1 次提交
  14. 11 1月, 2009 1 次提交
    • Y
      sparseirq: use kstat_irqs_cpu instead · dee4102a
      Yinghai Lu 提交于
      Impact: build fix
      
      Ingo Molnar wrote:
      
      > tip/arch/blackfin/kernel/irqchip.c: In function 'show_interrupts':
      > tip/arch/blackfin/kernel/irqchip.c:85: error: 'struct kernel_stat' has no member named 'irqs'
      > make[2]: *** [arch/blackfin/kernel/irqchip.o] Error 1
      > make[2]: *** Waiting for unfinished jobs....
      >
      
      So could move kstat_irqs array to irq_desc struct.
      
      (s390, m68k, sparc) are not touched yet, because they don't support genirq
      Signed-off-by: NYinghai Lu <yinghai@kernel.org>
      Signed-off-by: NIngo Molnar <mingo@elte.hu>
      dee4102a
  15. 06 1月, 2009 8 次提交
    • K
      parisc: export length of os_hpmc vector · ae16489e
      Kyle McMartin 提交于
      and use this instead of dealing with exporting start/end and
      toying with function descriptors.
      Signed-off-by: NKyle McMartin <kyle@mcmartin.ca>
      ae16489e
    • K
      parisc: fix kernel crash (protection id trap) when compiling ruby1.9 · c61c25eb
      Kyle McMartin 提交于
      On Wed, Dec 17, 2008 at 11:46:05PM +0100, Helge Deller wrote:
      >
      
      Honestly, I can't decide whether to apply this. It really should never
      happen in the kernel, since the kernel can guarantee it won't get the
      access rights failure (highest privilege level, and can set %sr and
      %protid to whatever it wants.)
      
      It really genuinely is a bug that probably should panic the kernel. The
      only precedent I can easily see is x86 fixing up a bad iret with a
      general protection fault, which is more or less analogous to code 27
      here.
      
      On the other hand, taking the exception on a userspace access really
      isn't all that critical, and there's fundamentally little reason for the
      kernel not to SIGSEGV the process, and continue...
      
      Argh.
      
      (btw, I've instrumented my do_sys_poll with a pile of assertions that
       %cr8 << 1 == %sr3 == current->mm.context... let's see if where we're
       getting corrupted is deterministic, though, I would guess that it won't
       be.)
      Signed-off-by: NKyle McMartin <kyle@mcmartin.ca>
      c61c25eb
    • J
      parisc: Use DEFINE_SPINLOCK · aefa8b6b
      Julia Lawall 提交于
      SPIN_LOCK_UNLOCKED is deprecated.  The following makes the change suggested
      in Documentation/spinlocks.txt
      
      The semantic patch that makes this change is as follows:
      (http://www.emn.fr/x-info/coccinelle/)
      
      // <smpl>
      @@
      declarer name DEFINE_SPINLOCK;
      identifier xxx_lock;
      @@
      
      - spinlock_t xxx_lock = SPIN_LOCK_UNLOCKED;
      + DEFINE_SPINLOCK(xxx_lock);
      // </smpl>
      Signed-off-by: NJulia Lawall <julia@diku.dk>
      Signed-off-by: NKyle McMartin <kyle@mcmartin.ca>
      aefa8b6b
    • H
      parisc: add uevent helper for parisc bus · 7246c31e
      Helge Deller 提交于
      parisc: add uevent helper for parisc bus
      
      udev device-driver auto detection was failing to work on the GSC bus, since
      udev didn't knew wich driver to load due to a missing MODALIAS environment
      variable from kernel.
      
      This patch fixes this by adding the MODALIAS environment variable to the
      uevent kernel notifications.
      Since modalias_show() generated the modalias string already, I splitted this
      out and created a new static function make_modalias() which is now used by
      modalias_show() and the new parisc_uevent() function.
      
      Tested on 715/64 and c3000.
      Signed-off-by: NHelge Deller <deller@gmx.de>
      Signed-off-by: NKyle McMartin <kyle@mcmartin.ca>
      7246c31e
    • H
      parisc: Replace NR_CPUS in parisc code · ef017beb
      Helge Deller 提交于
      parisc: Replace most arrays sized by NR_CPUS with percpu variables.
      Signed-off-by: NHelge Deller <deller@gmx.de>
      Signed-off-by: NKyle McMartin <kyle@mcmartin.ca>
      ef017beb
    • H
      parisc: trivial fixes · 7f2347a4
      Helge Deller 提交于
      trivial fixes:
      - use KERN_WARNING for printk()
      - use BUG_ON() instead of "if (xx) BUG();"
      Signed-off-by: NHelge Deller <deller@gmx.de>
      Signed-off-by: NKyle McMartin <kyle@mcmartin.ca>
      
      --
      To unsubscribe from this list: send the line "unsubscribe linux-parisc" in
      the body of a message to majordomo@vger.kernel.org
      More majordomo info at  http://vger.kernel.org/majordomo-info.html
      7f2347a4
    • H
      parisc: fix GFP_KERNEL use while atomic in unwinder · e0e7ed48
      Helge Deller 提交于
      Since unwind_frame_init_from_blocked_task() may be called from
      interrupt/in_atomic context, it needs to kmalloc() memory with
      GFP_ATOMIC instead of GFP_KERNEL.
      
      This fixes this warning (ShowTasks called from sysrq handler):
      
      BUG: sleeping function called from invalid context at mm/slab.c:3044
      in_atomic(): 1, irqs_disabled(): 1, pid: 2119, name: miniruby
      Backtrace:
       [<10132e78>] __might_sleep+0x4c/0x118
       [<1018f644>] kmem_cache_alloc+0x2c/0xb4
       [<1011bae0>] unwind_frame_init_from_blocked_task+0x30/0xa0
       [<1010fd3c>] parisc_show_stack+0x3c/0xac
       [<10132c7c>] show_state_filter+0x80/0xd8
       [<102f4074>] __handle_sysrq+0xd0/0x1b0
       [<102f9558>] receive_chars+0x22c/0x318
       [<102f9940>] serial8250_handle_port+0x40/0x88
       [<102f9a8c>] serial8250_interrupt+0x104/0x10c
       [<10161920>] handle_IRQ_event+0x44/0x94
       [<10161acc>] __do_IRQ+0x15c/0x1dc
       [<102c442c>] superio_interrupt+0x74/0xa8
       [<10161920>] handle_IRQ_event+0x44/0x94
       [<10161acc>] __do_IRQ+0x15c/0x1dc
       [<10110fb4>] do_cpu_irq_mask+0x90/0xbc
       [<10114068>] intr_return+0x0/0x4
      Signed-off-by: NHelge Deller <deller@gmx.de>
      Signed-off-by: NKyle McMartin <kyle@mcmartin.ca>
      e0e7ed48
    • F
      parisc: remove dead BIO_VMERGE_BOUNDARY and BIO_VMERGE_MAX_SIZE definitions · 00635077
      FUJITA Tomonori 提交于
      The block layer dropped the virtual merge feature
      (b8b3e16c). BIO_VMERGE_BOUNDARY and
      BIO_VMERGE_MAX_SIZE definitions are meaningless now.
      Signed-off-by: NFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
      Acked-by: NGrant Grundler <grundler@parisc-linux.org>
      Signed-off-by: NKyle McMartin <kyle@mcmartin.ca>
      00635077
  16. 05 1月, 2009 1 次提交
    • H
      parisc: fix module loading failure of large kernel modules · c298be74
      Helge Deller 提交于
      On 32bit (and sometimes 64bit) and with big kernel modules like xfs or
      ipv6 the relocation types R_PARISC_PCREL17F and R_PARISC_PCREL22F may
      fail to reach their PLT stub if we only create one big stub array for
      all sections at the beginning of the core or init section.
      
      With this patch we now instead add individual PLT stub entries
      directly in front of the code sections where the stubs are actually
      called. This reduces the distance between the PCREL location and the
      stub entry so that the relocations can be fulfilled.
      
      While calculating the final layout of the kernel module in memory, the
      kernel module loader calls arch_mod_section_prepend() to request the
      to be reserved amount of memory in front of each individual section.
      
      Tested with 32- and 64bit kernels.
      Signed-off-by: NHelge Deller <deller@gmx.de>
      Signed-off-by: NRusty Russell <rusty@rustcorp.com.au>
      c298be74