Linux boot Support for 4KB sector drives ?

2013-07-01 Thread Mahesh Rajashekhara
Hello, Does any of the Linux OS flavors support booting from the 4K sector (advanced format) drive in legacy BIOS mode (MBR partitioning scheme) ? Thanks Regards, Mahesh -- To unsubscribe from this list: send the line unsubscribe linux-scsi in the body of a message to

[PATCH 4/7] tmscsim: Move 'last_reset' into host structure

2013-07-01 Thread Hannes Reinecke
The 'last_reset' value is only used internally, so move it into the internal host structure. Signed-off-by: Hannes Reinecke h...@suse.de --- drivers/scsi/tmscsim.c | 14 +++--- drivers/scsi/tmscsim.h | 1 + 2 files changed, 8 insertions(+), 7 deletions(-) diff --git

[PATCH 3/7] advansys: Remove 'last_reset' references

2013-07-01 Thread Hannes Reinecke
Serves no purpose whatsoever. Signed-off-by: Hannes Reinecke h...@suse.de --- drivers/scsi/advansys.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/scsi/advansys.c b/drivers/scsi/advansys.c index c67e401..d814588 100644 --- a/drivers/scsi/advansys.c +++

[PATCH 6/7] scsi: remove check for 'resetting'

2013-07-01 Thread Hannes Reinecke
Field is now unused, so this is dead code. Signed-off-by: Hannes Reinecke h...@suse.de --- drivers/scsi/scsi.c | 28 1 file changed, 28 deletions(-) diff --git a/drivers/scsi/scsi.c b/drivers/scsi/scsi.c index 2c0d0ec..ebe3b0a 100644 --- a/drivers/scsi/scsi.c +++

[PATCH 7/7] scsi: Add 'eh_deadline' to limit SCSI EH runtime

2013-07-01 Thread Hannes Reinecke
This patchs adds an 'eh_deadline' sysfs attribute to the scsi host which limits the overall runtime of the SCSI EH. The 'eh_deadline' value is stored in the now obsolete field 'resetting'. When a command is failed the start time of the EH is stored in 'last_reset'. If the overall runtime of the

[PATCH 5/7] dc395: Move 'last_reset' into internal host structure

2013-07-01 Thread Hannes Reinecke
'last_reset' is only used internally, so move it into the internal host structure. Signed-off-by: Hannes Reinecke h...@suse.de --- drivers/scsi/dc395x.c | 24 +--- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/drivers/scsi/dc395x.c b/drivers/scsi/dc395x.c

Re: [PATCH v2 08/15] scsi_transport_srp: Add transport layer error handling

2013-07-01 Thread Bart Van Assche
On 06/30/13 23:05, David Dillow wrote: On Fri, 2013-06-28 at 14:53 +0200, Bart Van Assche wrote: +int srp_tmo_valid(int fast_io_fail_tmo, int dev_loss_tmo) +{ + return (fast_io_fail_tmo 0 || dev_loss_tmo 0 || + fast_io_fail_tmo dev_loss_tmo) +

Re: [PATCH v12 2/6] Avoid calling __scsi_remove_device() twice

2013-07-01 Thread James Bottomley
On Thu, 2013-06-27 at 16:53 +0200, Bart Van Assche wrote: If something goes wrong during LUN scanning, e.g. a transport layer failure occurs, then __scsi_remove_device() can get invoked by the LUN scanning code for a SCSI device in state SDEV_CREATED_BLOCK. If this happens then the SCSI

Re: [PATCH v12 2/6] Avoid calling __scsi_remove_device() twice

2013-07-01 Thread Bart Van Assche
On 07/01/13 09:05, James Bottomley wrote: On Thu, 2013-06-27 at 16:53 +0200, Bart Van Assche wrote: If something goes wrong during LUN scanning, e.g. a transport layer failure occurs, then __scsi_remove_device() can get invoked by the LUN scanning code for a SCSI device in state

[PATCH 4/5] scsi: Return ENODATA on medium error

2013-07-01 Thread Hannes Reinecke
When a medium error is detected the SCSI stack should return ENODATA to the upper layers. Signed-off-by: Hannes Reinecke h...@suse.de --- block/blk-core.c | 3 +++ drivers/scsi/scsi_error.c | 2 +- drivers/scsi/scsi_lib.c | 5 + include/scsi/scsi.h | 1 + 4 files changed, 10

[PATCHv2 0/5] scsi: More detailed I/O errors

2013-07-01 Thread Hannes Reinecke
As discussed at LSF the SCSI stack already knows about several error conditions, it's just not well documented. Also there are some more conditions upper layers might be interested in. This patchset improves the documentation of the existing I/O error codes and adds three more error codes, ENOSPC

[PATCH 1/5] scsi: Document enhanced error codes

2013-07-01 Thread Hannes Reinecke
Document the various error codes returned on I/O failure. Signed-off-by: Hannes Reinecke h...@suse.de --- drivers/scsi/scsi_lib.c | 12 1 file changed, 12 insertions(+) diff --git a/drivers/scsi/scsi_lib.c b/drivers/scsi/scsi_lib.c index 86d5220..d3fc50f 100644 ---

[PATCH 5/5] scsi: Return ENXIO on invalid device

2013-07-01 Thread Hannes Reinecke
The scsi stack already uses DID_NO_CONNECT internally to signal an invalid or removed device. This should be mapped to ENXIO, as this then allows us to use a correct error code in scsi_prep_return(). Signed-off-by: Hannes Reinecke h...@suse.de --- block/blk-core.c| 3 +++

[PATCH 2/5] scsi: Set hostbyte status in scsi_check_sense()

2013-07-01 Thread Hannes Reinecke
We should be modifying the host_byte status in scsi_check_sense() directly; this saves us to introduce a special return code for each and every condition. Signed-off-by: Hannes Reinecke h...@suse.de --- drivers/scsi/scsi_error.c | 21 +++-- include/scsi/scsi.h | 1 - 2

[PATCH 3/5] scsi: return ENOSPC on thin provisioning failure

2013-07-01 Thread Hannes Reinecke
When the thin provisioning hard threshold is reached we should return ENOSPC to inform upper layers about this fact. Signed-off-by: Hannes Reinecke h...@suse.de --- block/blk-core.c | 3 +++ drivers/scsi/scsi_error.c | 7 ++- drivers/scsi/scsi_lib.c | 5 + include/scsi/scsi.h

Re: [PATCH v12 3/6] Restrict device state changes allowed via sysfs

2013-07-01 Thread Hannes Reinecke
On 06/27/2013 04:54 PM, Bart Van Assche wrote: Restrict the SCSI device state changes allowd via sysfs to the OFFLINERUNNING transitions. Other transitions may confuse the SCSI mid-layer. As an example, changing the state of a SCSI device via sysfs into cancel or deleted prevents removal of a

Re: [PATCH v12 6/6] Avoid re-enabling I/O after the transport became offline

2013-07-01 Thread Hannes Reinecke
On 06/27/2013 04:57 PM, Bart Van Assche wrote: Disallow the SDEV_TRANSPORT_OFFLINE to SDEV_CANCEL transition such that no I/O is sent to devices for which the transport is offline. Notes: - Functions like sd_shutdown() use scsi_execute_req() and hence set the REQ_PREEMPT flag. Such requests

Re: [PATCH 4/5] scsi: Return ENODATA on medium error

2013-07-01 Thread Jun'ichi Nomura
On 07/01/13 17:12, Hannes Reinecke wrote: When a medium error is detected the SCSI stack should return ENODATA to the upper layers. Hi Hannes, since you change the error code from -EREMOTEIO to -ENODATA/-ENOSPC, upper layers that checks -EREMOTEIO have to be updated as well. Something like

Re: [PATCH 4/5] scsi: Return ENODATA on medium error

2013-07-01 Thread Hannes Reinecke
On 07/01/2013 11:12 AM, Jun'ichi Nomura wrote: On 07/01/13 17:12, Hannes Reinecke wrote: When a medium error is detected the SCSI stack should return ENODATA to the upper layers. Hi Hannes, since you change the error code from -EREMOTEIO to -ENODATA/-ENOSPC, upper layers that checks

Re: [PATCH V1 1/4] scsi_transport_iscsi: Exporting new attrs for iscsi session and connection in sysfs

2013-07-01 Thread Vikas Chaudhary
-Original Message- From: James Bottomley jbottom...@parallels.com Date: Saturday 29 June 2013 1:24 AM To: Vikas vikas.chaudh...@qlogic.com Cc: Mike Christie micha...@cs.wisc.edu, scsi linux-scsi@vger.kernel.org, Lalit Chandivade lalit.chandiv...@qlogic.com, Adheer Chandravanshi

[PATCH V2 4/4] qla4xxx: Update driver version to 5.03.00-k10

2013-07-01 Thread vikas.chaudhary
From: Vikas Chaudhary vikas.chaudh...@qlogic.com Signed-off-by: Vikas Chaudhary vikas.chaudh...@qlogic.com --- drivers/scsi/qla4xxx/ql4_version.h |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/scsi/qla4xxx/ql4_version.h b/drivers/scsi/qla4xxx/ql4_version.h

[PATCH V2 2/4] libiscsi: Exporting new attrs for iscsi session and connection in sysfs

2013-07-01 Thread vikas.chaudhary
From: Adheer Chandravanshi adheer.chandravan...@qlogic.com Signed-off-by: Adheer Chandravanshi adheer.chandravan...@qlogic.com Signed-off-by: Vikas Chaudhary vikas.chaudh...@qlogic.com --- drivers/scsi/libiscsi.c | 97 +++ include/scsi/libiscsi.h |

[PATCH V2 3/4] qla4xxx: Exporting new attrs for iscsi session and connection in sysfs

2013-07-01 Thread vikas.chaudhary
From: Adheer Chandravanshi adheer.chandravan...@qlogic.com Signed-off-by: Adheer Chandravanshi adheer.chandravan...@qlogic.com Signed-off-by: Vikas Chaudhary vikas.chaudh...@qlogic.com --- drivers/scsi/qla4xxx/ql4_os.c | 203 + 1 files changed, 146

[PATCH V2 1/4] scsi_transport_iscsi: Exporting new attrs for iscsi session and connection in sysfs

2013-07-01 Thread vikas.chaudhary
From: Adheer Chandravanshi adheer.chandravan...@qlogic.com Exporting new iSCSI Session and Connection parameters to sysfs Signed-off-by: Adheer Chandravanshi adheer.chandravan...@qlogic.com Signed-off-by: Vikas Chaudhary vikas.chaudh...@qlogic.com --- drivers/scsi/scsi_transport_iscsi.c | 123

Re: [PATCH v12 6/6] Avoid re-enabling I/O after the transport became offline

2013-07-01 Thread Bart Van Assche
On 07/01/13 10:27, Hannes Reinecke wrote: On 06/27/2013 04:57 PM, Bart Van Assche wrote: diff --git a/drivers/scsi/scsi_sysfs.c b/drivers/scsi/scsi_sysfs.c index dfbaa34..666b741 100644 --- a/drivers/scsi/scsi_sysfs.c +++ b/drivers/scsi/scsi_sysfs.c @@ -959,14 +959,16 @@ void

Re: [PATCH v12 6/6] Avoid re-enabling I/O after the transport became offline

2013-07-01 Thread Hannes Reinecke
On 07/01/2013 02:05 PM, Bart Van Assche wrote: On 07/01/13 10:27, Hannes Reinecke wrote: On 06/27/2013 04:57 PM, Bart Van Assche wrote: diff --git a/drivers/scsi/scsi_sysfs.c b/drivers/scsi/scsi_sysfs.c index dfbaa34..666b741 100644 --- a/drivers/scsi/scsi_sysfs.c +++

Re: [PATCH v2 08/15] scsi_transport_srp: Add transport layer error handling

2013-07-01 Thread David Dillow
On Mon, 2013-07-01 at 09:01 +0200, Bart Van Assche wrote: On 06/30/13 23:05, David Dillow wrote: On Fri, 2013-06-28 at 14:53 +0200, Bart Van Assche wrote: +int srp_tmo_valid(int fast_io_fail_tmo, int dev_loss_tmo) +{ + return (fast_io_fail_tmo 0 || dev_loss_tmo 0 || +

[PATCH 2/4] scsi: Set hostbyte status in scsi_check_sense()

2013-07-01 Thread Hannes Reinecke
We should be modifying the host_byte status in scsi_check_sense() directly; this saves us to introduce a special return code for each and every condition. Signed-off-by: Hannes Reinecke h...@suse.de --- drivers/scsi/scsi_error.c | 21 +++-- include/scsi/scsi.h | 1 - 2

[PATCH 1/4] scsi: Document enhanced error codes

2013-07-01 Thread Hannes Reinecke
Document the various error codes returned on I/O failure. Signed-off-by: Hannes Reinecke h...@suse.de --- drivers/scsi/scsi_lib.c | 12 1 file changed, 12 insertions(+) diff --git a/drivers/scsi/scsi_lib.c b/drivers/scsi/scsi_lib.c index 86d5220..d3fc50f 100644 ---

[PATCHv3 0/4] scsi: More detailed I/O errors

2013-07-01 Thread Hannes Reinecke
As discussed at LSF the SCSI stack already knows about several error conditions, it's just not well documented. Also there are some more conditions upper layers might be interested in. This patchset improves the documentation of the existing I/O error codes and adds two more error codes, ENOSPC

[PATCH 3/4] scsi: return ENOSPC on thin provisioning failure

2013-07-01 Thread Hannes Reinecke
When the thin provisioning hard threshold is reached we should return ENOSPC to inform upper layers about this fact. Signed-off-by: Hannes Reinecke h...@suse.de --- block/blk-core.c | 3 +++ drivers/scsi/scsi_error.c | 7 ++- drivers/scsi/scsi_lib.c | 5 + include/scsi/scsi.h

[PATCH 4/4] scsi: Return ENODATA on medium error

2013-07-01 Thread Hannes Reinecke
When a medium error is detected the SCSI stack should return ENODATA to the upper layers. Cc: Jun'ichi Nomura j-nom...@ce.jp.nec.com Signed-off-by: Hannes Reinecke h...@suse.de --- block/blk-core.c | 3 +++ drivers/md/dm-mpath.c | 16 +++- drivers/scsi/scsi_error.c | 2

Can not see/access devices on Marvell 88SE9485 + SiI 3726 PMP

2013-07-01 Thread Hajo Möller
Hi, I've got a box which recently got a Marvell 88SE9485 PCIe card (Supermicro AOC-SAS2LP-MV8), which is connected by a mSAS-4x SATA-cable to some 5 HDD backplanes (CFI-B53PM, chip is a SiI 3726). The HBA's BIOS can see and access the HDDs through the backplanes, which various Linux

[PATCH 7/9] mpt2sas: Enable new EH timeout handler

2013-07-01 Thread Hannes Reinecke
Signed-off-by: Hannes Reinecke h...@suse.de --- drivers/scsi/mpt2sas/mpt2sas_scsih.c | 13 - 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/drivers/scsi/mpt2sas/mpt2sas_scsih.c b/drivers/scsi/mpt2sas/mpt2sas_scsih.c index c6bdc92..a557e74 100644 ---

[PATCHv3 0/9] New EH command timeout handler

2013-07-01 Thread Hannes Reinecke
This patchset implements a new SCSI EH command timeout handler which will be sending command aborts inline without actually engaging SCSI EH. SCSI EH will only be invoked if command abort fails. In addition the commands will be returned directly if the command abort succeeded, cutting down

[PATCH 4/9] virtio_scsi: Enable new EH timeout handler

2013-07-01 Thread Hannes Reinecke
Signed-off-by: Hannes Reinecke h...@suse.de Acked-by: Paolo Bonzini pbonz...@redhat.com --- drivers/scsi/virtio_scsi.c | 8 1 file changed, 8 insertions(+) diff --git a/drivers/scsi/virtio_scsi.c b/drivers/scsi/virtio_scsi.c index 2168258..f23b9ef 100644 --- a/drivers/scsi/virtio_scsi.c

[PATCH 8/9] mpt3sas: Enable new EH timeout handler

2013-07-01 Thread Hannes Reinecke
Signed-off-by: Hannes Reinecke h...@suse.de --- drivers/scsi/mpt3sas/mpt3sas_scsih.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/drivers/scsi/mpt3sas/mpt3sas_scsih.c b/drivers/scsi/mpt3sas/mpt3sas_scsih.c index dcbf7c8..3a35ddc 100644 ---

[PATCH 2/9] blk-timeout: add BLK_EH_SCHEDULED return code

2013-07-01 Thread Hannes Reinecke
Add a 'BLK_EH_SCHEDULED' return code for blk-timeout to indicate that a delayed error recovery has been initiated. Signed-off-by: Hannes Reinecke h...@suse.de --- drivers/scsi/scsi_error.c | 4 include/linux/blkdev.h| 1 + 2 files changed, 5 insertions(+) diff --git

[PATCH 3/9] scsi: improved eh timeout handler

2013-07-01 Thread Hannes Reinecke
When a command runs into a timeout we need to send an 'ABORT TASK' TMF. This is typically done by the 'eh_abort_handler' LLDD callback. Conceptually, however, this function is a normal SCSI command, so there is no need to enter the error handler. This patch implements a new scsi_abort_command()

[PATCH 1/9] scsi: Fix erratic device offline during EH

2013-07-01 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

[PATCH 9/9] scsi_transport_fc: Enable new EH timeout handler

2013-07-01 Thread Hannes Reinecke
Signed-off-by: Hannes Reinecke h...@suse.de --- drivers/scsi/scsi_transport_fc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/scsi_transport_fc.c b/drivers/scsi/scsi_transport_fc.c index e106c27..1e1de9f 100644 --- a/drivers/scsi/scsi_transport_fc.c +++

[PATCH 6/9] mptsas: Enable new EH timeout handler

2013-07-01 Thread Hannes Reinecke
Signed-off-by: Hannes Reinecke h...@suse.de --- drivers/message/fusion/mptsas.c | 3 ++- drivers/message/fusion/mptscsih.c | 7 +++ drivers/message/fusion/mptscsih.h | 1 + 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/drivers/message/fusion/mptsas.c

[PATCH 5/9] libsas: Enable new EH timeout handler

2013-07-01 Thread Hannes Reinecke
Signed-off-by: Hannes Reinecke h...@suse.de --- drivers/scsi/libsas/sas_scsi_host.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/libsas/sas_scsi_host.c b/drivers/scsi/libsas/sas_scsi_host.c index 6e795a1..9d5bd29 100644 ---

Re: Can not see/access devices on Marvell 88SE9485 + SiI 3726 PMP

2013-07-01 Thread James Bottomley
On Mon, 2013-07-01 at 16:09 +0200, Hajo Möller wrote: Hi, I've got a box which recently got a Marvell 88SE9485 PCIe card (Supermicro AOC-SAS2LP-MV8), which is connected by a mSAS-4x SATA-cable to some 5 HDD backplanes (CFI-B53PM, chip is a SiI 3726). The HBA's BIOS can see and access the

Re: [PATCH v12 2/6] Avoid calling __scsi_remove_device() twice

2013-07-01 Thread James Bottomley
On Mon, 2013-07-01 at 09:14 +0200, Bart Van Assche wrote: On 07/01/13 09:05, James Bottomley wrote: On Thu, 2013-06-27 at 16:53 +0200, Bart Van Assche wrote: If something goes wrong during LUN scanning, e.g. a transport layer failure occurs, then __scsi_remove_device() can get invoked by

Re: [PATCH v12 5/6] Avoid that scsi_device_set_state() triggers a race

2013-07-01 Thread James Bottomley
On Thu, 2013-06-27 at 16:56 +0200, Bart Van Assche wrote: Make concurrent invocations of scsi_device_set_state() safe. Firstly, I don't understand from this where you think the races are. Secondly, shouldn't this be the device lock? and thirdly, if we accept that locking is required,

Re: [PATCH v12 5/6] Avoid that scsi_device_set_state() triggers a race

2013-07-01 Thread Bart Van Assche
On 07/01/13 16:49, James Bottomley wrote: On Thu, 2013-06-27 at 16:56 +0200, Bart Van Assche wrote: Make concurrent invocations of scsi_device_set_state() safe. Firstly, I don't understand from this where you think the races are. Secondly, shouldn't this be the device lock? and thirdly, if we

[PATCH] block: Fix possible sleep in invalid context

2013-07-01 Thread Sujit Reddy Thumma
When block runtime PM is enabled following warning is seen while resuming the device. BUG: sleeping function called from invalid context at .../drivers/base/power/runtime.c:923 in_atomic(): 1, irqs_disabled(): 128, pid: 12, name: kworker/0:1 [c0014448] (unwind_backtrace+0x0/0x120) from [c03120e4]

Upgrade Your Account!!!

2013-07-01 Thread Admin Portal
Attention, Important message from ADMIN- Please confirm your email address by clicking this link: http://upd.jimdo.com/ Webmaster -- To unsubscribe from this list: send the line unsubscribe linux-scsi in the body of a message to majord...@vger.kernel.org More majordomo info at

Re: [PATCH v12 5/6] Avoid that scsi_device_set_state() triggers a race

2013-07-01 Thread James Bottomley
On Mon, 2013-07-01 at 17:17 +0200, Bart Van Assche wrote: On 07/01/13 16:49, James Bottomley wrote: On Thu, 2013-06-27 at 16:56 +0200, Bart Van Assche wrote: Make concurrent invocations of scsi_device_set_state() safe. Firstly, I don't understand from this where you think the races are.

Re: [PATCHv2 0/7] Limit overall SCSI EH runtime

2013-07-01 Thread Jörn Engel
On Mon, 1 July 2013 08:50:48 +0200, Hannes Reinecke wrote: This patchset implements a new 'eh_deadline' attribute to the SCSI host. It will limit the overall SCSI EH runtime by a given timeout. If the timeout is reached all intermediate EH steps will be skipped and host reset will be

Re: [PATCHv2 0/7] Limit overall SCSI EH runtime

2013-07-01 Thread James Bottomley
On Mon, 2013-07-01 at 13:44 -0400, Jörn Engel wrote: If a single device is bad, don't ever do a host reset. This isn't a tenable position. Sometimes a device looks bad because the host state for it has gone insane. At that point, the only safe action is a reset of the host to sane state. I

Re: [PATCH] block: Fix possible sleep in invalid context

2013-07-01 Thread Andrew Morton
On Mon, 1 Jul 2013 20:58:35 +0530 Sujit Reddy Thumma sthu...@codeaurora.org wrote: When block runtime PM is enabled following warning is seen while resuming the device. BUG: sleeping function called from invalid context at .../drivers/base/power/runtime.c:923 in_atomic(): 1,

Re: [PATCH] block: Fix possible sleep in invalid context

2013-07-01 Thread James Bottomley
On Mon, 2013-07-01 at 15:17 -0700, Andrew Morton wrote: On Mon, 1 Jul 2013 20:58:35 +0530 Sujit Reddy Thumma sthu...@codeaurora.org wrote: When block runtime PM is enabled following warning is seen while resuming the device. BUG: sleeping function called from invalid context at

Re: [PATCHv2 0/7] Limit overall SCSI EH runtime

2013-07-01 Thread Jörn Engel
On Mon, 1 July 2013 19:23:25 +, James Bottomley wrote: On Mon, 2013-07-01 at 13:44 -0400, Jörn Engel wrote: If a single device is bad, don't ever do a host reset. This isn't a tenable position. Sometimes a device looks bad because the host state for it has gone insane. At that

Re: [PATCH] block: Fix possible sleep in invalid context

2013-07-01 Thread Andrew Morton
On Mon, 01 Jul 2013 15:24:11 -0700 James Bottomley james.bottom...@hansenpartnership.com wrote: --- a/block/blk-core.c~block-fix-possible-sleep-in-invalid-context-fix +++ a/block/blk-core.c @@ -3159,15 +3159,14 @@ EXPORT_SYMBOL(blk_pre_runtime_resume); */ void

[PATCH -next] [SCSI] ufshcd-pltfrm: remove redundant dev_err call in ufshcd_pltfrm_probe()

2013-07-01 Thread Wei Yongjun
From: Wei Yongjun yongjun_...@trendmicro.com.cn There is a error message within devm_ioremap_resource already, so remove the dev_err call to avoid redundant error message. Signed-off-by: Wei Yongjun yongjun_...@trendmicro.com.cn --- drivers/scsi/ufs/ufshcd-pltfrm.c | 1 - 1 file changed, 1

Re: [PATCH] block: Fix possible sleep in invalid context

2013-07-01 Thread Aaron Lu
On 07/01/2013 11:28 PM, Sujit Reddy Thumma wrote: When block runtime PM is enabled following warning is seen while resuming the device. BUG: sleeping function called from invalid context at .../drivers/base/power/runtime.c:923 in_atomic(): 1, irqs_disabled(): 128, pid: 12, name: kworker/0:1

Re: [PATCH 4/4] scsi: Return ENODATA on medium error

2013-07-01 Thread Jun'ichi Nomura
Hi Hannes, On 07/01/13 22:16, Hannes Reinecke wrote: When a medium error is detected the SCSI stack should return ENODATA to the upper layers. Cc: Jun'ichi Nomura j-nom...@ce.jp.nec.com Signed-off-by: Hannes Reinecke h...@suse.de --- block/blk-core.c | 3 +++

Re: [PATCH] block: Fix possible sleep in invalid context

2013-07-01 Thread Sujit Reddy Thumma
On 7/2/2013 8:34 AM, Aaron Lu wrote: Fix this by releasing spin_lock_irq() before calling pm_runtime_autosuspend() in blk_post_runtime_resume(). Hi Sujit, Thanks for testing out block layer runtime PM! As for the problem here, it is already fixed by: commit

[PATCH] SCSI command, sense key + additional sense strings

2013-07-01 Thread Douglas Gilbert
to SPC-4 T10/1713-D Rev 20, 22 May 2009, D. Gilbert 20090624 + * Updated to SPC-4 T10/1713-D Rev 36g, D. Gilbert 20130701 */ #include linux/blkdev.h @@ -21,12 +21,13 @@ /* Commands with service actions that change the command name */ -#define MAINTENANCE_IN 0xa3 -#define MAINTENANCE_OUT 0xa4

RE: [patch] [SCSI] megaraid_sas: fix a bug for 64 bit arches

2013-07-01 Thread Saxena, Sumit
-Original Message- From: Dan Carpenter [mailto:dan.carpen...@oracle.com] Sent: Saturday, June 29, 2013 2:51 AM To: DL-MegaRAID Linux; Saxena, Sumit Cc: James E.J. Bottomley; linux-scsi@vger.kernel.org; kernel- janit...@vger.kernel.org Subject: [patch] [SCSI] megaraid_sas: fix a bug for 64

Re: [PATCHv2 0/7] Limit overall SCSI EH runtime

2013-07-01 Thread Hannes Reinecke
On 07/01/2013 10:55 PM, Jörn Engel wrote: On Mon, 1 July 2013 19:23:25 +, James Bottomley wrote: On Mon, 2013-07-01 at 13:44 -0400, Jörn Engel wrote: If a single device is bad, don't ever do a host reset. This isn't a tenable position. Sometimes a device looks bad because the host