2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-22 20:23:57 +08:00
linux-next/drivers/scsi/lpfc
James.Smart@Emulex.Com 875fbdfe9b [SCSI] lpfc 8.1.1 : Add polled-mode support
- Add functionality to run in polled mode only. Includes run time
  attribute to enable mode.
- Enable runtime writable hba settings for coallescing and delay parameters

Customers have requested a mode in the driver to run strictly polled.
This is generally to support an environment where the server is extremely
loaded and is looking to reclaim some cpu cycles from adapter interrupt
handling.

This patch adds a new "poll" attribute, and the following behavior:

if value is 0 (default):
  The driver uses the normal method for i/o completion. It uses the
  firmware feature of interrupt coalesing. The firmware allows a
  minimum number of i/o completions before an interrupt, or a maximum
  time delay between interrupts.  By default, the driver sets these
  to no delay (disabled) or 1 i/o - meaning coalescing is disabled.

  Attributes were provided to change the coalescing values, but it was
  a module-load time only and global across all adapters.
  This patch allows them to be writable on a per-adapter basis.

if value is 1 :
  Interrupts are left enabled, expecting that the user has tuned the
  interrupt coalescing values. When this setting is enabled, the driver
  will attempt to service completed i/o whenever new i/o is submitted
  to the adapter. If the coalescing values are large, and the i/o
  generation rate steady, an interrupt will be avoided by servicing
  completed i/o prior to the coalescing thresholds kicking in. However,
  if the i/o completion load is high enough or i/o generation slow, the
  coalescion values will ensure that completed i/o is serviced in a timely
  fashion.

if value is 3 :
  Turns off FCP i/o interrupts altogether. The coalescing values now have
  no effect. A new attribute "poll_tmo" (default 10ms) exists to set
  the polling interval for i/o completion. When this setting is enabled,
  the driver will attempt to service completed i/o and restart the
  interval timer whenever new i/o is submitted. This behavior allows for
  servicing of completed i/o sooner than the interval timer, but ensures
  that if no i/o is being issued, then the interval timer will kick in
  to service the outstanding i/o.

Signed-off-by: James Smart <James.Smart@emulex.com>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
2005-12-13 18:34:14 -07:00
..
lpfc_attr.c [SCSI] lpfc 8.1.1 : Add polled-mode support 2005-12-13 18:34:14 -07:00
lpfc_compat.h [PATCH] turn many #if $undefined_string into #ifdef $undefined_string 2005-07-27 16:26:08 -07:00
lpfc_crtn.h [SCSI] lpfc 8.1.1 : Add polled-mode support 2005-12-13 18:34:14 -07:00
lpfc_ct.c [SCSI] lpfc: Fix eh_ return codes for commands 2005-10-29 10:31:48 -05:00
lpfc_disc.h [SCSI] lpfc: Remove RPI hash from the driver 2005-10-29 10:22:50 -05:00
lpfc_els.c [SCSI] lpfc 8.1.1 : Fixes for short cable pulls 2005-12-13 18:16:01 -07:00
lpfc_hbadisc.c [SCSI] lpfc 8.1.1 : Adjust use of scsi_block_requests and interaction w/ FC transport 2005-12-13 18:18:47 -07:00
lpfc_hw.h [SCSI] lpfc 8.1.1 : Bring model descriptions in sync with Emulex standard generic names 2005-12-13 18:27:57 -07:00
lpfc_init.c [SCSI] lpfc 8.1.1 : Add polled-mode support 2005-12-13 18:34:14 -07:00
lpfc_logmsg.h [SCSI] lpfc: Update copyright notices 2005-07-02 19:08:29 -05:00
lpfc_mbox.c [PATCH] kfree cleanup: drivers/scsi 2005-11-07 07:54:01 -08:00
lpfc_mem.c [PATCH] gfp_t: drivers/scsi 2005-10-28 08:16:50 -07:00
lpfc_nportdisc.c [SCSI] lpfc 8.1.1 : Correct some 8bit to 16bit field conversions/comparisons 2005-12-13 18:15:40 -07:00
lpfc_scsi.c [SCSI] lpfc 8.1.1 : Add polled-mode support 2005-12-13 18:34:14 -07:00
lpfc_scsi.h [SCSI] lpfc driver 8.0.30 : convert to use of int_to_scsilun() 2005-08-12 12:09:01 -05:00
lpfc_sli.c [SCSI] lpfc 8.1.1 : Add polled-mode support 2005-12-13 18:34:14 -07:00
lpfc_sli.h [SCSI] lpfc: Fix eh_ return codes for commands 2005-10-29 10:31:48 -05:00
lpfc_version.h [SCSI] lpfc: Change version number to 8.1.0 2005-10-29 10:33:14 -05:00
lpfc.h [SCSI] lpfc 8.1.1 : Add polled-mode support 2005-12-13 18:34:14 -07:00
Makefile [SCSI] lpfc: Update copyright notices 2005-07-02 19:08:29 -05:00