1. 29 11月, 2006 2 次提交
    • T
      [PATCH] libata: add missing sht->slave_destroy · afdfe899
      Tejun Heo 提交于
      Many LLDs are missing sht->slave_destroy.  The method is mandatory to
      support device warm unplugging (echo 1 > /sys/.../delete).  Without
      it, libata might access released scsi device.
      Signed-off-by: NTejun Heo <htejun@gmail.com>
      afdfe899
    • T
      [PATCH] ahci: ignore PORT_IRQ_IF_ERR on JMB controllers · 41669553
      Tejun Heo 提交于
      JMicron AHCI controllers set PORT_IRQ_IF_ERR on device errors.  The
      IRQ status bit indicates interface error or protocol mismatch and ahci
      driver interprets it into AC_ERR_ATA_BUS.  So, whenever an ATAPI
      device raises check condition, ahci interprets it as ATA bus error and
      thus resets it which, in turn, raises check condition thus creating a
      reset loop and rendering the device unuseable.
      
      This patch makes JMB controllers ignore PORT_IRQ_IF_ERR when
      interpreting error condition.
      Signed-off-by: NTejun Heo <htejun@gmail.com>
      Cc: Justin Tsai <justin@jmicron.com>
      41669553
  2. 28 11月, 2006 3 次提交
  3. 15 11月, 2006 1 次提交
  4. 14 11月, 2006 3 次提交
  5. 08 11月, 2006 1 次提交
  6. 03 11月, 2006 2 次提交
  7. 02 11月, 2006 1 次提交
  8. 01 11月, 2006 6 次提交
  9. 22 10月, 2006 4 次提交
    • A
      [PATCH] libata-sff: Allow for wacky systems · 8eb166bf
      Alan Cox 提交于
      There are some Linux supported platforms that simply cannot hit the low
      I/O addresses used by ATA legacy mode PCI mappings. These platforms have
      a window for PCI space that is fixed by the board logic and doesn't
      include the neccessary locations.
      
      Provide a config option so that such platforms faced with a controller
      that they cannot support simply error it and punt
      Signed-off-by: NAlan Cox <alan@redhat.com>
      Signed-off-by: NJeff Garzik <jeff@garzik.org>
      8eb166bf
    • A
      [PATCH] ahci: readability tweak · 12a87d36
      Alan Cox 提交于
      Signed-off-by: NAlan Cox <alan@redhat.com>
      Signed-off-by: NJeff Garzik <jeff@garzik.org>
      12a87d36
    • A
      [PATCH] ATA must depend on BLOCK · bf2d401b
      Adrian Bunk 提交于
      Fix the following compile error with CONFIG_ATA=y, CONFIG_BLOCK=n:
      
      ...
        CC      drivers/ata/libata-scsi.o
      /home/bunk/linux/kernel-2.6/git/linux-2.6/drivers/ata/libata-scsi.c: In function ‘ata_scsi_dev_config’:
      /home/bunk/linux/kernel-2.6/git/linux-2.6/drivers/ata/libata-scsi.c:791: warning: implicit declaration of function ‘blk_queue_max_sectors’
      /home/bunk/linux/kernel-2.6/git/linux-2.6/drivers/ata/libata-scsi.c:799: error: ‘request_queue_t’ undeclared (first use in this function)
      /home/bunk/linux/kernel-2.6/git/linux-2.6/drivers/ata/libata-scsi.c:799: error: (Each undeclared identifier is reported only once
      /home/bunk/linux/kernel-2.6/git/linux-2.6/drivers/ata/libata-scsi.c:799: error: for each function it appears in.)
      /home/bunk/linux/kernel-2.6/git/linux-2.6/drivers/ata/libata-scsi.c:799: error: ‘q’ undeclared (first use in this function)
      /home/bunk/linux/kernel-2.6/git/linux-2.6/drivers/ata/libata-scsi.c:800: warning: implicit declaration of function ‘blk_queue_max_hw_segments’
      /home/bunk/linux/kernel-2.6/git/linux-2.6/drivers/ata/libata-scsi.c: In function ‘ata_scsi_slave_config’:
      /home/bunk/linux/kernel-2.6/git/linux-2.6/drivers/ata/libata-scsi.c:831:
      warning: implicit declaration of function ‘blk_queue_max_phys_segments’
      make[3]: *** [drivers/ata/libata-scsi.o] Error 1
      
      Bug report by Jesper Juhl.
      Signed-off-by: NAdrian Bunk <bunk@stusta.de>
      Cc: Jeff Garzik <jeff@garzik.org>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NJeff Garzik <jeff@garzik.org>
      bf2d401b
    • K
      [PATCH] libata: use correct map_db values for ICH8 · 158f30c8
      Kristen Carlson Accardi 提交于
      Use valid values for ICH8 map_db.  With the old values, when the
      controller was in Native mode, and SCC was 1 (drives configured for
      IDE), any drive plugged into a slave port was not recognized.  For
      Combined Mode (and SCC is still 1), 2 is a value value for MAP.map_value,
      and needs to be recognized.
      Signed-off-by: NKristen Carlson Accardi <kristen.c.accardi@intel.com>
      Signed-off-by: NJeff Garzik <jeff@garzik.org>
      158f30c8
  10. 11 10月, 2006 5 次提交
  11. 05 10月, 2006 2 次提交
    • 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
    • A
      46767aeb
  12. 04 10月, 2006 1 次提交
  13. 03 10月, 2006 1 次提交
  14. 01 10月, 2006 1 次提交
    • J
      [libata] pata_artop: kill gcc warning · 15a7c3bb
      Jeff Garzik 提交于
      gcc complains thusly:
      
      drivers/ata/pata_artop.c: In function ‘artop_init_one’:
      drivers/ata/pata_artop.c:429: warning: ‘info’ may be used uninitialized in this function
      
      While this warning is indeed bogus, even with improved static analysis
      and value range propagation, gcc will probably never be able to detect
      this.
      
      Add a BUG_ON() to trap invalid driver_data entries in the PCI table.
      Signed-off-by: NJeff Garzik <jeff@garzik.org>
      15a7c3bb
  15. 30 9月, 2006 1 次提交
  16. 29 9月, 2006 2 次提交
  17. 28 9月, 2006 4 次提交