1. 17 7月, 2007 1 次提交
    • S
      Fix too few arguments to function `scsi_cmd_ioctl' · 9793c326
      S.Çağlar Onur 提交于
      This corrects the following compile error introduced by the merge of the
      new bsg layer in commit e245befc:
      
        caglar@zangetsu linux-2.6 $ make
          CHK     include/linux/version.h
          CHK     include/linux/utsrelease.h
          CALL    scripts/checksyscalls.sh
          CHK     include/linux/compile.h
          LD      drivers/block/built-in.o
          CC [M]  drivers/block/cciss.o
        drivers/block/cciss.c: In function `cciss_ioctl':
        drivers/block/cciss.c:1173: warning: passing arg 2 of `scsi_cmd_ioctl' from incompatible pointer type
        drivers/block/cciss.c:1173: warning: passing arg 3 of `scsi_cmd_ioctl' makes pointer from integer without a cast
        drivers/block/cciss.c:1173: warning: passing arg 4 of `scsi_cmd_ioctl' makes integer from pointer without a cast
        drivers/block/cciss.c:1173: error: too few arguments to function `scsi_cmd_ioctl'
        ...
        make[2]: *** [drivers/block/cciss.o] Hata 1
        make[1]: *** [drivers/block] Hata 2
        make: *** [drivers] Hata 2
      Signed-off-by: NS.Çağlar Onur <caglar@pardus.org.tr>
      Cc: Jens Axboe <jens.axboe@oracle.com>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      9793c326
  2. 10 7月, 2007 1 次提交
  3. 19 5月, 2007 1 次提交
  4. 09 5月, 2007 4 次提交
  5. 13 4月, 2007 1 次提交
    • B
      [PATCH] cciss: unregister from SCSI before tearing down device resources · b6550777
      Bjorn Helgaas 提交于
      We must unregister from SCSI before we unmap device resources and unhook
      the IRQ handler.  Otherwise, SCSI may send us more requests, and we won't
      be able to handle them.
      
      I see the following oops during every reboot of my HP DL360:
      
          ...
          Unmounting local filesystems...done.
          Rebooting... Completed flushing cache on controller 0
          BUG: unable to handle kernel paging request at virtual address f8808040
           printing eip:
          c02dc72b
          *pde = 02120067
          *pte = 00000000
          Oops: 0002 [#1]
          SMP
          Modules linked in:
          CPU:    1
          EIP:    0060:[<c02dc72b>]    Not tainted VLI
          EFLAGS: 00010046   (2.6.21-rc6 #1)
          EIP is at SA5_submit_command+0xb/0x20
          eax: f8808000   ebx: f7a00000   ecx: f79f0000   edx: 37a00000
          esi: f79f0000   edi: 00000000   ebp: 00000000   esp: dd717a44
          ds: 007b   es: 007b   fs: 00d8  gs: 0000  ss: 0068
          Process khelper (pid: 1427, ti=dd716000 task=c2260a70 task.ti=dd716000)
          Stack: c02df2c0 f7a00000 f7a00000 00d41008 c02df691 00000000 00000010 00000002
      	   00000001 f79f0000 f7fff844 c1398420 00000000 00000000 00001000 230a3020
      	   69666564 5420656e 50434f49 465f544b 4853554c 44414552 0a312009 66656423
          Call Trace:
           [<c02df2c0>] start_io+0x80/0x120
           [<c02df691>] do_cciss_request+0x331/0x350
           [<c014242a>] mempool_alloc+0x2a/0xe0
           [<c020ad71>] blk_alloc_request+0x61/0x80
           [<c020b02e>] get_request+0x15e/0x1e0
           [<c01595e0>] cache_alloc_refill+0xb0/0x1e0
           [<c021049d>] as_update_rq+0x2d/0x80
           [<c0210d28>] as_add_request+0x68/0x90
           [<c0207f99>] elv_insert+0x119/0x160
           [<c020bd0b>] __make_request+0xcb/0x320
           [<c0122ee0>] lock_timer_base+0x20/0x50
           [<c0123096>] del_timer+0x56/0x60
           [<c020a7b8>] blk_remove_plug+0x38/0x70
           [<c020a815>] __generic_unplug_device+0x25/0x30
           [<c020a835>] generic_unplug_device+0x15/0x30
          ...
      Signed-off-by: NBjorn Helgaas <bjorn.helgaas@hp.com>
      Acked-by: NMike Miller <mike.miller@hp.com>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      b6550777
  6. 05 4月, 2007 1 次提交
  7. 15 3月, 2007 1 次提交
  8. 07 3月, 2007 2 次提交
  9. 31 12月, 2006 1 次提交
  10. 18 12月, 2006 2 次提交
  11. 14 12月, 2006 3 次提交
    • R
      [PATCH] getting rid of all casts of k[cmz]alloc() calls · 5cbded58
      Robert P. J. Day 提交于
      Run this:
      
      	#!/bin/sh
      	for f in $(grep -Erl "\([^\)]*\) *k[cmz]alloc" *) ; do
      	  echo "De-casting $f..."
      	  perl -pi -e "s/ ?= ?\([^\)]*\) *(k[cmz]alloc) *\(/ = \1\(/" $f
      	done
      
      And then go through and reinstate those cases where code is casting pointers
      to non-pointers.
      
      And then drop a few hunks which conflicted with outstanding work.
      
      Cc: Russell King <rmk@arm.linux.org.uk>, Ian Molton <spyro@f2s.com>
      Cc: Mikael Starvik <starvik@axis.com>
      Cc: Yoshinori Sato <ysato@users.sourceforge.jp>
      Cc: Roman Zippel <zippel@linux-m68k.org>
      Cc: Geert Uytterhoeven <geert@linux-m68k.org>
      Cc: Ralf Baechle <ralf@linux-mips.org>
      Cc: Paul Mackerras <paulus@samba.org>
      Cc: Kyle McMartin <kyle@mcmartin.ca>
      Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
      Cc: Martin Schwidefsky <schwidefsky@de.ibm.com>
      Cc: "David S. Miller" <davem@davemloft.net>
      Cc: Jeff Dike <jdike@addtoit.com>
      Cc: Greg KH <greg@kroah.com>
      Cc: Jens Axboe <jens.axboe@oracle.com>
      Cc: Paul Fulghum <paulkf@microgate.com>
      Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
      Cc: Karsten Keil <kkeil@suse.de>
      Cc: Mauro Carvalho Chehab <mchehab@infradead.org>
      Cc: Jeff Garzik <jeff@garzik.org>
      Cc: James Bottomley <James.Bottomley@steeleye.com>
      Cc: Ian Kent <raven@themaw.net>
      Cc: Steven French <sfrench@us.ibm.com>
      Cc: David Woodhouse <dwmw2@infradead.org>
      Cc: Neil Brown <neilb@cse.unsw.edu.au>
      Cc: Jaroslav Kysela <perex@suse.cz>
      Cc: Takashi Iwai <tiwai@suse.de>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      5cbded58
    • M
      [PATCH] cciss: remove calls to pci_disable_device · 872225ca
      Mike Miller 提交于
      Remove calls to pci_disable_device except in fail_all_cmds.  The
      pci_disable_device function does something nasty to Smart Array controllers
      that pci_enable_device does not undo.  So if the driver is unloaded it
      cannot be reloaded.
      
      Also, customers can disable any pci device via the ROM Based Setup Utility
      (RBSU).  If the customer has disabled the controller we should not try to
      blindly enable the card from the driver.  Please consider this for
      inclusion.
      Signed-off-by: NMike Miller <mike.miller@hp.com>
      Acked-by: NAlan Cox <alan@redhat.com>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      872225ca
    • M
      [PATCH] cciss: map out more memory for config table · a5b92873
      Mike Miller 提交于
      Map out more memory for our config table.  It's required to reach offset
      0x214 to disable DMA on the P600.  I'm not sure how I lost this hunk.
      Please consider this for inclusion.
      Signed-off-by: NMike Miller <mike.miller@hp.com>
      Cc: Jens Axboe <jens.axboe@oracle.com>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      a5b92873
  12. 13 12月, 2006 3 次提交
  13. 09 12月, 2006 1 次提交
  14. 08 12月, 2006 10 次提交
  15. 15 11月, 2006 1 次提交
  16. 29 10月, 2006 1 次提交
  17. 22 10月, 2006 1 次提交
  18. 05 10月, 2006 1 次提交
    • D
      IRQ: Maintain regs pointer globally rather than passing to IRQ handlers · 7d12e780
      David Howells 提交于
      Maintain a per-CPU global "struct pt_regs *" variable which can be used instead
      of passing regs around manually through all ~1800 interrupt handlers in the
      Linux kernel.
      
      The regs pointer is used in few places, but it potentially costs both stack
      space and code to pass it around.  On the FRV arch, removing the regs parameter
      from all the genirq function results in a 20% speed up of the IRQ exit path
      (ie: from leaving timer_interrupt() to leaving do_IRQ()).
      
      Where appropriate, an arch may override the generic storage facility and do
      something different with the variable.  On FRV, for instance, the address is
      maintained in GR28 at all times inside the kernel as part of general exception
      handling.
      
      Having looked over the code, it appears that the parameter may be handed down
      through up to twenty or so layers of functions.  Consider a USB character
      device attached to a USB hub, attached to a USB controller that posts its
      interrupts through a cascaded auxiliary interrupt controller.  A character
      device driver may want to pass regs to the sysrq handler through the input
      layer which adds another few layers of parameter passing.
      
      I've build this code with allyesconfig for x86_64 and i386.  I've runtested the
      main part of the code on FRV and i386, though I can't test most of the drivers.
      I've also done partial conversion for powerpc and MIPS - these at least compile
      with minimal configurations.
      
      This will affect all archs.  Mostly the changes should be relatively easy.
      Take do_IRQ(), store the regs pointer at the beginning, saving the old one:
      
      	struct pt_regs *old_regs = set_irq_regs(regs);
      
      And put the old one back at the end:
      
      	set_irq_regs(old_regs);
      
      Don't pass regs through to generic_handle_irq() or __do_IRQ().
      
      In timer_interrupt(), this sort of change will be necessary:
      
      	-	update_process_times(user_mode(regs));
      	-	profile_tick(CPU_PROFILING, regs);
      	+	update_process_times(user_mode(get_irq_regs()));
      	+	profile_tick(CPU_PROFILING);
      
      I'd like to move update_process_times()'s use of get_irq_regs() into itself,
      except that i386, alone of the archs, uses something other than user_mode().
      
      Some notes on the interrupt handling in the drivers:
      
       (*) input_dev() is now gone entirely.  The regs pointer is no longer stored in
           the input_dev struct.
      
       (*) finish_unlinks() in drivers/usb/host/ohci-q.c needs checking.  It does
           something different depending on whether it's been supplied with a regs
           pointer or not.
      
       (*) Various IRQ handler function pointers have been moved to type
           irq_handler_t.
      Signed-Off-By: NDavid Howells <dhowells@redhat.com>
      (cherry picked from 1b16e7ac850969f38b375e511e3fa2f474a33867 commit)
      7d12e780
  19. 04 10月, 2006 1 次提交
  20. 01 10月, 2006 3 次提交