1. 02 12月, 2006 2 次提交
    • M
      [PATCH] sata_promise fixes and updates · b2d1eee1
      Mikael Pettersson 提交于
      This patch updates the sata_promise driver as follows:
      - Correct typo in definition of PDC_TBG_MODE: it's at 0x41C not 0x41
        in first-generation chips. This error caused PCI access alignment
        exceptions on SPARC64, and on all platforms it disabled the expected
        initialisation of TBG mode.
      - Add flags field to struct pdc_host_priv. Define PDC_FLAG_GEN_II
        and use it to distinguish first- and second-generation chips.
      - Prevent the FLASH_CTL FIFO_SHD bit from being set to 1 on second-
        generation chips. This matches Promises' ulsata2 driver.
      - Prevent TBG mode and SLEW rate initialisation in second-generation chips.
        These two registers have moved, TBG mode has been redefined, and
        Promise's ulsata2 driver no longer attempts to initialise them.
      - Correct PCI device table so devices 0x3570, 0x3571, and 0x3d73 are
        marked as 2057x (2nd gen) not 2037x (1st gen).
      - Correct PCI device table so device 0x3d17 is marked as 40518
        (2nd gen 4 ports) not 20319 (1st gen 4 ports).
      - Correct pdc_ata_init_one() to treat 20771 as a second-generation chip.
      
      Tested on 0x3d75 (2nd gen), 0x3d73 (2nd gen), and 0x3373 (1st gen) chips.
      The information comes from the newly uploaded Promise SATA HW specs,
      Promise's ultra and ulsata2 drivers, and debugging on 3d75/3d73/3373 chips.
      
      hp->hotplug_offset could now be removed and its value recomputed
      in pdc_host_init() using hp->flags, but that would be a cleanup
      not a functional change, so I'm ignoring it for now.
      Signed-off-by: NMikael Pettersson <mikpe@it.uu.se>
      Signed-off-by: NJeff Garzik <jeff@garzik.org>
      b2d1eee1
    • J
      [libata] sata_promise: fix TBG mode register offset · 46b027cc
      Jeff Garzik 提交于
      Fixes crashes on sparc, and may correct weird behavior reported on
      occasions, because we were never programming this register correctly (or
      at all).
      Signed-off-by: NJeff Garzik <jeff@garzik.org>
      46b027cc
  2. 11 10月, 2006 2 次提交
  3. 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
  4. 28 9月, 2006 1 次提交
  5. 24 8月, 2006 1 次提交
    • J
      libata: Grand renaming. · cca3974e
      Jeff Garzik 提交于
      The biggest change is that ata_host_set is renamed to ata_host.
      
      * ata_host_set			=> ata_host
      * ata_probe_ent->host_flags	=> ata_probe_ent->port_flags
      * ata_probe_ent->host_set_flags	=> ata_probe_ent->_host_flags
      * ata_host_stats		=> ata_port_stats
      * ata_port->host		=> ata_port->scsi_host
      * ata_port->host_set		=> ata_port->host
      * ata_port_info->host_flags	=> ata_port_info->flags
      * ata_(.*)host_set(.*)\(\)	=> ata_\1host\2()
      
      The leading underscore in ata_probe_ent->_host_flags is to avoid
      reusing ->host_flags for different purpose.  Currently, the only user
      of the field is libata-bmdma.c and probe_ent itself is scheduled to be
      removed.
      
      ata_port->host is reused for different purpose but this field is used
      inside libata core proper and of different type.
      Signed-off-by: NTejun Heo <htejun@gmail.com>
      Signed-off-by: NJeff Garzik <jeff@garzik.org>
      cca3974e
  6. 10 8月, 2006 2 次提交
  7. 24 7月, 2006 1 次提交
  8. 03 7月, 2006 1 次提交
  9. 31 5月, 2006 1 次提交
  10. 24 5月, 2006 2 次提交
  11. 15 5月, 2006 1 次提交
  12. 11 4月, 2006 1 次提交
  13. 03 4月, 2006 1 次提交
  14. 02 4月, 2006 1 次提交
  15. 22 3月, 2006 1 次提交
  16. 05 3月, 2006 1 次提交
  17. 13 2月, 2006 1 次提交
  18. 10 2月, 2006 2 次提交
  19. 29 1月, 2006 1 次提交
  20. 27 1月, 2006 2 次提交
  21. 17 1月, 2006 1 次提交
  22. 06 1月, 2006 1 次提交
  23. 14 12月, 2005 1 次提交
  24. 13 12月, 2005 1 次提交
    • J
      [libata] mark certain hardware (or drivers) with a no-atapi flag · 50630195
      Jeff Garzik 提交于
      Some hardware does not support the PACKET command at all.
      Other hardware supports ATAPI, but the driver does something nasty such
      as calling BUG() when an ATAPI command is issued.
      
      For these such cases, we mark them with a new flag, ATA_FLAG_NO_ATAPI.
      
      Initial version contributed by Ben Collins.
      50630195
  25. 06 12月, 2005 1 次提交
  26. 01 12月, 2005 2 次提交
  27. 17 11月, 2005 1 次提交
  28. 11 11月, 2005 1 次提交
  29. 10 11月, 2005 1 次提交
  30. 07 11月, 2005 1 次提交
  31. 31 10月, 2005 1 次提交
  32. 30 10月, 2005 1 次提交
    • J
      [libata] change ata_qc_complete() to take error mask as second arg · a7dac447
      Jeff Garzik 提交于
      The second argument to ata_qc_complete() was being used for two
      purposes: communicate the ATA Status register to the completion
      function, and indicate an error.  On legacy PCI IDE hardware, the latter
      is often implicit in the former.  On more modern hardware, the driver
      often completely emulated a Status register value, passing ATA_ERR as an
      indication that something went wrong.
      
      Now that previous code changes have eliminated the need to use drv_stat
      arg to communicate the ATA Status register value, we can convert it to a
      mask of possible error classes.
      
      This will lead to more flexible error handling in the future.
      a7dac447
  33. 29 10月, 2005 1 次提交