mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/2] [Target_Core_Mod]: Add support for UNIT_ATTENTION with SPC-3 PR
@ 2009-03-25  6:05 Nicholas A. Bellinger
  0 siblings, 0 replies; only message in thread
From: Nicholas A. Bellinger @ 2009-03-25  6:05 UTC (permalink / raw)
  To: LKML, linux-scsi
  Cc: James Bottomley, Douglas Gilbert, FUJITA Tomonori, Mike Christie,
	Hannes Reinecke, Boaz Harrosh, Martin K. Petersen

Greetings all,

This patch adds support for SAM4/SPC4 compliant UNIT_ATTENTION with ua_intlck_ctrl 
control mode page value 00b, 10b and 11b.  The default has been set to 0 in configfs,
which is to clear the UNIT ATTENTION with a CHECK_CONDITION+Sense data with a
corresponding ASC+ASCQ.  Currently, Linux/SCSI midlayer clients require a manual sg_request
to clear the UNIT ATTENTION with a REQUEST_SENSE for modes 10b and 11b.  These values can be
changed (without active $FABRIC_MOD target ports) for a given target_core_mod storage object
with ConfigFS via /sys/kernel/config/target/core/$HBA/$DEV/attrib/emulated_ua_intlck_ctrl.
The echoed values for the attribute into ConfigFS are 0, 1, and 2 respectively for the
interlock codes 00b, 10b, and 11b.

These patches are made against lio-core-2.6.git/master and tested on
v2.6.29 x86 32-bit HVM using sg_persist from sg3_utils.  The lio-core-2.6.git tree
can be found at: 

http://git.kernel.org/?p=linux/kernel/git/nab/lio-core-2.6.git;a=summary

Subject: [PATCH 1/2] [Target_Core_Mod]: Add support for UNIT_ATTENTION conditions
Subject: [PATCH 2/2] [Target_Core_Mod/Persistent_Reservations]: Add UNIT ATTENTION support for PROUT SAs 

 drivers/lio-core/Makefile                |    1 +
 drivers/lio-core/target_core_base.h      |   13 ++
 drivers/lio-core/target_core_configfs.c  |    4 +
 drivers/lio-core/target_core_device.c    |   27 +++-
 drivers/lio-core/target_core_device.h    |    1 +
 drivers/lio-core/target_core_pr.c        |  107 +++++++++-
 drivers/lio-core/target_core_tpg.c       |   10 +
 drivers/lio-core/target_core_transport.c |  127 ++++++++++--
 drivers/lio-core/target_core_transport.h |    2 +
 drivers/lio-core/target_core_ua.c        |  333 ++++++++++++++++++++++++++++++
 drivers/lio-core/target_core_ua.h        |   36 ++++
 11 files changed, 632 insertions(+), 29 deletions(-)



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-03-25  6:05 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-03-25  6:05 [PATCH 0/2] [Target_Core_Mod]: Add support for UNIT_ATTENTION with SPC-3 PR Nicholas A. Bellinger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®