[PATCH] scsi: Fix erratic device offline during EH

2013-06-13 Thread Hannes Reinecke
Commit 18a4d0a22ed6c54b67af7718c305cd010f09ddf8 (Handle disk devices which can not process medium access commands) was introduced to offline any device which cannot process medium access commands. However, commit 3eef6257de48ff84a5d98ca533685df8a3beaeb8 (Reduce error recovery time by reducing use

Re: [PATCH] user_space_eject: unlock door before issuing CDROMEJECT command

2013-06-13 Thread Karel Zak
On Thu, Jun 06, 2013 at 04:47:15PM +0800, Aaron Lu wrote: Hi Karel Michal, sys-utils/eject.c | 3 +++ 1 file changed, 3 insertions(+) Applied, thanks. -- Karel Zak k...@redhat.com http://karelzak.blogspot.com -- To unsubscribe from this list: send the line unsubscribe linux-scsi in the

[PATCH 1/2] scsi: ufs: Add support for host assisted background operations

2013-06-13 Thread Sujit Reddy Thumma
Background operations in the UFS device can be disabled by the host to reduce the response latency of transfer requests. Add support for enabling/disabling the background operations during runtime suspend/resume of the device. If the device is in critical need of BKOPS it will raise an

[PATCH 0/2] scsi: ufs: Add support to control UFS device background operations

2013-06-13 Thread Sujit Reddy Thumma
Add host assisted background operations for UFS device and runtime PM helpers for ufshcd platform and pci glue drivers. The background operations are disabled during runtime resume and enabled when the device is idle and runtime suspended. These patches depends on: [PATCH 2/8] scsi: ufs: wrap the

[PATCH 2/2] scsi: ufs: Add runtime PM helpers for UFS host driver

2013-06-13 Thread Sujit Reddy Thumma
Add runtime PM helpers to suspend/resume the UFS controller device at runtime. Change-Id: I70b8f7ab9c5a806234701a5eb7735910ee6d052e Signed-off-by: Sujit Reddy Thumma sthu...@codeaurora.org --- drivers/scsi/ufs/ufshcd-pci.c| 60 ++

[PATCH 0/4] scsi: ufs: Improve UFS error handling

2013-06-13 Thread Sujit Reddy Thumma
The first patch fixes many issues with current task management handling in UFSHCD driver. Others improve error handling in various scenarios. These patches depends on: [PATCH 2/8] scsi: ufs: wrap the i/o access operations [PATCH 3/8] scsi: ufs: amend interrupt configuration [PATCH 4/8] scsi: ufs:

[PATCH 2/4] scsi: ufs: Fix hardware race conditions while aborting a command

2013-06-13 Thread Sujit Reddy Thumma
There is a possible race condition in the hardware when the abort command is issued to terminate the ongoing SCSI command. It can happen that when the abort command is issued, the device doesn't have the command pending but just before the command is cleared in controller the command is comitted

[PATCH 1/4] scsi: ufs: Fix broken task management command implementation

2013-06-13 Thread Sujit Reddy Thumma
Currently, sending Task Management (TM) command to the card might be broken in some scenarios as listed below: - If there are more than 8 TM commands the implementation returns error to the caller. Fix: Wait for one of the slots to be emptied and send the command. - Sometimes it is necessary for

[PATCH 4/4] scsi: ufs: Improve UFS fatal error handling

2013-06-13 Thread Sujit Reddy Thumma
Error handling in UFS driver is broken and resets the host controller for fatal errors without re-initialization. Correct the fatal error handling sequence according to UFS Host Controller Interface (HCI) v1.1 specification. o Upon determining fatal error condition the host controller may hang

[PATCH 3/4] scsi: ufs: Fix device and host reset methods

2013-06-13 Thread Sujit Reddy Thumma
As of now SCSI initiated error handling is broken because, the reset APIs don't try to bring back the device initialized and ready for further transfers. In case of timeouts, the scsi error handler takes care of handling aborts and resets. Improve the error handling in such scenario by resetting

[PATCH 08/10] [RFC] SCSI: esas2r: Add IOCTL functions

2013-06-13 Thread Bradley Grove
Signed-off-by: Bradley Grove bgr...@attotech.com --- drivers/scsi/esas2r/esas2r_ioctl.c | 2110 1 file changed, 2110 insertions(+) create mode 100644 drivers/scsi/esas2r/esas2r_ioctl.c diff --git a/drivers/scsi/esas2r/esas2r_ioctl.c

[PATCH 03/10] [RFC] SCSI: esas2r: Add initialization functions

2013-06-13 Thread Bradley Grove
Signed-off-by: Bradley Grove bgr...@attotech.com --- drivers/scsi/esas2r/esas2r_init.c | 2019 + 1 file changed, 2019 insertions(+) create mode 100644 drivers/scsi/esas2r/esas2r_init.c diff --git a/drivers/scsi/esas2r/esas2r_init.c

[PATCH 04/10] [RFC] SCSI: esas2r: Add device discovery and logging functions

2013-06-13 Thread Bradley Grove
Signed-off-by: Bradley Grove bgr...@attotech.com --- drivers/scsi/esas2r/esas2r_disc.c | 1192 + drivers/scsi/esas2r/esas2r_log.c | 255 drivers/scsi/esas2r/esas2r_log.h | 118 3 files changed, 1565 insertions(+) create mode 100644

[PATCH 05/10] [RFC] SCSI: esas2r: Add interrupt and IO functions

2013-06-13 Thread Bradley Grove
Signed-off-by: Bradley Grove bgr...@attotech.com --- drivers/scsi/esas2r/esas2r_int.c | 935 +++ drivers/scsi/esas2r/esas2r_io.c | 886 + 2 files changed, 1821 insertions(+) create mode 100644

[PATCH 01/10] [RFC] SCSI: esas2r: Add main header file

2013-06-13 Thread Bradley Grove
Signed-off-by: Bradley Grove bgr...@attotech.com --- drivers/scsi/esas2r/esas2r.h | 1755 ++ 1 file changed, 1755 insertions(+) create mode 100644 drivers/scsi/esas2r/esas2r.h diff --git a/drivers/scsi/esas2r/esas2r.h b/drivers/scsi/esas2r/esas2r.h new

[PATCH 00/10] [RFC] SCSI: esas2r: ATTO Technology ExpressSAS 6G SAS/SATA RAID Adapter Driver

2013-06-13 Thread Bradley Grove
This is a new driver for ATTO Technology's ExpressSAS series of hardware RAID adapters. It supports the following adapters: - ExpressSAS R60F - ExpressSAS R680 - ExpressSAS R608 - ExpressSAS R644 This patch is split into ten parts to make reviewing easier. You'll need to

[PATCH 06/10] [RFC] SCSI: esas2r: Add flash and target database functions

2013-06-13 Thread Bradley Grove
Signed-off-by: Bradley Grove bgr...@attotech.com --- drivers/scsi/esas2r/esas2r_flash.c | 1518 +++ drivers/scsi/esas2r/esas2r_targdb.c | 306 +++ 2 files changed, 1824 insertions(+) create mode 100644 drivers/scsi/esas2r/esas2r_flash.c create mode 100644

[PATCH 09/10] [RFC] SCSI: esas2r: Add ATTO VDA Firmware API headers and functions. This API is used to control and manage the RAID adapter.

2013-06-13 Thread Bradley Grove
Signed-off-by: Bradley Grove bgr...@attotech.com --- drivers/scsi/esas2r/atvda.h | 1327 ++ drivers/scsi/esas2r/esas2r_vda.c | 526 +++ 2 files changed, 1853 insertions(+) create mode 100644 drivers/scsi/esas2r/atvda.h create mode 100644

[PATCH 10/10] [RFC] SCSI: esas2r: Add Makefile, Kconfig, and MAINTAINERS files

2013-06-13 Thread Bradley Grove
Signed-off-by: Bradley Grove bgr...@attotech.com --- MAINTAINERS | 9 - drivers/scsi/Kconfig | 1 + drivers/scsi/Makefile| 1 + drivers/scsi/esas2r/Kconfig | 6 ++ drivers/scsi/esas2r/Makefile | 6 ++ 5 files changed, 22 insertions(+), 1

RE:[PATCH 10/10] [RFC] SCSI: esas2r: Add Makefile, Kconfig, and MAINTAINERS files

2013-06-13 Thread Jack Wang
S: Supported -F: drivers/block/nvme* +F: drivers/block/nvme.c F: include/linux/nvme.h I don't think you want to change this, it seems you are not generate your patch set against scsi misc branch? Regards, Jack -- To unsubscribe from this list: send the line unsubscribe

Re: [PATCH V2 1/1] ipr: IOA Status Code(IOASC) update

2013-06-13 Thread wenxiong
Hi James, Can you double check if you have any questions about this patch? Thanks for your help! Wendy Quoting Brian King brk...@linux.vnet.ibm.com: On 06/04/2013 06:57 PM, wenxi...@linux.vnet.ibm.com wrote: The patch updates some new IOA Status Code(IOASC) in ipr driver. Signed-off-by:

Re: [PATCH 10/10] [RFC] SCSI: esas2r: Add Makefile, Kconfig, and MAINTAINERS files

2013-06-13 Thread Bradley Grove
On 06/13/2013 11:50 AM, Jack Wang wrote: S: Supported -F: drivers/block/nvme* +F: drivers/block/nvme.c F: include/linux/nvme.h I don't think you want to change this, it seems you are not generate your patch set against scsi misc branch? Regards, Jack I generated the

[Trivial PATCH 16/33] scsi_sysctl: Convert use of typedef ctl_table to struct ctl_table

2013-06-13 Thread Joe Perches
This typedef is unnecessary and should just be removed. Signed-off-by: Joe Perches j...@perches.com --- drivers/scsi/scsi_sysctl.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/scsi/scsi_sysctl.c b/drivers/scsi/scsi_sysctl.c index 2b6b93f..546f162 100644 ---

[Trivial PATCH 00/33] Remove uses of typedef ctl_table

2013-06-13 Thread Joe Perches
It's clearer to use struct ctl_table instead Joe Perches (33): arm: kernel: isa: Convert use of typedef ctl_table to struct ctl_table frv: Convert use of typedef ctl_table to struct ctl_table ia64: crash: Convert use of typedef ctl_table to struct ctl_table mips: lasat: sysctl: Convert