* [PATCH 1/2] ipr: Inhibit underlength data check for AFDASD in raw mode.
@ 2015-08-19 14:47 Gabriel Krisman Bertazi
2015-08-19 14:47 ` [PATCH 2/2] ipr: Enable SIS pipe commands for SIS-32 devices Gabriel Krisman Bertazi
` (2 more replies)
0 siblings, 3 replies; 6+ messages in thread
From: Gabriel Krisman Bertazi @ 2015-08-19 14:47 UTC (permalink / raw)
To: brking; +Cc: linux-scsi, Gabriel Krisman Bertazi
Disable underlength error verification based on count of bytes actually
transferred for AF DASD devices when SIS pipe mode is enabled.
This avoids unexpected underlength errors when issuing some commands in
raw mode.
Signed-off-by: Gabriel Krisman Bertazi <krisman@linux.vnet.ibm.com>
---
drivers/scsi/ipr.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/drivers/scsi/ipr.c b/drivers/scsi/ipr.c
index a9aa389..db0c2cf 100644
--- a/drivers/scsi/ipr.c
+++ b/drivers/scsi/ipr.c
@@ -6382,9 +6382,13 @@ static int ipr_queuecommand(struct Scsi_Host *shost,
(!ipr_is_gscsi(res) || scsi_cmd->cmnd[0] == IPR_QUERY_RSRC_STATE)) {
ioarcb->cmd_pkt.request_type = IPR_RQTYPE_IOACMD;
}
- if (res->raw_mode && ipr_is_af_dasd_device(res))
+ if (res->raw_mode && ipr_is_af_dasd_device(res)) {
ioarcb->cmd_pkt.request_type = IPR_RQTYPE_PIPE;
+ if (scsi_cmd->underflow == 0)
+ ioarcb->cmd_pkt.flags_hi |= IPR_FLAGS_HI_NO_ULEN_CHK;
+ }
+
if (ioa_cfg->sis64)
rc = ipr_build_ioadl64(ioa_cfg, ipr_cmd);
else
--
2.1.0
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [PATCH 2/2] ipr: Enable SIS pipe commands for SIS-32 devices.
2015-08-19 14:47 [PATCH 1/2] ipr: Inhibit underlength data check for AFDASD in raw mode Gabriel Krisman Bertazi
@ 2015-08-19 14:47 ` Gabriel Krisman Bertazi
2015-08-20 20:28 ` Brian King
2015-08-27 19:28 ` Wendy Xiong
2015-08-20 20:27 ` [PATCH 1/2] ipr: Inhibit underlength data check for AFDASD in raw mode Brian King
2015-08-28 13:39 ` Wendy Xiong
2 siblings, 2 replies; 6+ messages in thread
From: Gabriel Krisman Bertazi @ 2015-08-19 14:47 UTC (permalink / raw)
To: brking; +Cc: linux-scsi, Gabriel Krisman Bertazi
Remove unnecessary check that disabled SIS pipe commands for SIS-32
devices. This change was sufficient to enable raw mode and send SIS
pipe commands for a 57B3 device.
Fixes: f8ee25d7d239 ("ipr: AF DASD raw mode implementation in ipr driver")
Signed-off-by: Gabriel Krisman Bertazi <krisman@linux.vnet.ibm.com>
---
drivers/scsi/ipr.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/scsi/ipr.c b/drivers/scsi/ipr.c
index db0c2cf..b19719f 100644
--- a/drivers/scsi/ipr.c
+++ b/drivers/scsi/ipr.c
@@ -4554,7 +4554,7 @@ static ssize_t ipr_store_raw_mode(struct device *dev,
spin_lock_irqsave(ioa_cfg->host->host_lock, lock_flags);
res = (struct ipr_resource_entry *)sdev->hostdata;
if (res) {
- if (ioa_cfg->sis64 && ipr_is_af_dasd_device(res)) {
+ if (ipr_is_af_dasd_device(res)) {
res->raw_mode = simple_strtoul(buf, NULL, 10);
len = strlen(buf);
if (res->sdev)
--
2.1.0
^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [PATCH 1/2] ipr: Inhibit underlength data check for AFDASD in raw mode.
2015-08-19 14:47 [PATCH 1/2] ipr: Inhibit underlength data check for AFDASD in raw mode Gabriel Krisman Bertazi
2015-08-19 14:47 ` [PATCH 2/2] ipr: Enable SIS pipe commands for SIS-32 devices Gabriel Krisman Bertazi
@ 2015-08-20 20:27 ` Brian King
2015-08-28 13:39 ` Wendy Xiong
2 siblings, 0 replies; 6+ messages in thread
From: Brian King @ 2015-08-20 20:27 UTC (permalink / raw)
To: Gabriel Krisman Bertazi; +Cc: linux-scsi
On 08/19/2015 09:47 AM, Gabriel Krisman Bertazi wrote:
> Disable underlength error verification based on count of bytes actually
> transferred for AF DASD devices when SIS pipe mode is enabled.
>
> This avoids unexpected underlength errors when issuing some commands in
> raw mode.
>
> Signed-off-by: Gabriel Krisman Bertazi <krisman@linux.vnet.ibm.com>
> ---
Looks good. Thanks!
Acked-by: Brian King <brking@linux.vnet.ibm.com>
--
Brian King
Power Linux I/O
IBM Linux Technology Center
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH 2/2] ipr: Enable SIS pipe commands for SIS-32 devices.
2015-08-19 14:47 ` [PATCH 2/2] ipr: Enable SIS pipe commands for SIS-32 devices Gabriel Krisman Bertazi
@ 2015-08-20 20:28 ` Brian King
2015-08-27 19:28 ` Wendy Xiong
1 sibling, 0 replies; 6+ messages in thread
From: Brian King @ 2015-08-20 20:28 UTC (permalink / raw)
To: Gabriel Krisman Bertazi; +Cc: linux-scsi
On 08/19/2015 09:47 AM, Gabriel Krisman Bertazi wrote:
> Remove unnecessary check that disabled SIS pipe commands for SIS-32
> devices. This change was sufficient to enable raw mode and send SIS
> pipe commands for a 57B3 device.
>
> Fixes: f8ee25d7d239 ("ipr: AF DASD raw mode implementation in ipr driver")
> Signed-off-by: Gabriel Krisman Bertazi <krisman@linux.vnet.ibm.com>
> ---
Thanks!
Acked-by: Brian King <brking@linux.vnet.ibm.com>
--
Brian King
Power Linux I/O
IBM Linux Technology Center
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH 2/2] ipr: Enable SIS pipe commands for SIS-32 devices.
2015-08-19 14:47 ` [PATCH 2/2] ipr: Enable SIS pipe commands for SIS-32 devices Gabriel Krisman Bertazi
2015-08-20 20:28 ` Brian King
@ 2015-08-27 19:28 ` Wendy Xiong
1 sibling, 0 replies; 6+ messages in thread
From: Wendy Xiong @ 2015-08-27 19:28 UTC (permalink / raw)
To: linux-scsi
Gabriel Krisman Bertazi <krisman <at> linux.vnet.ibm.com> writes:
>
> Remove unnecessary check that disabled SIS pipe commands for SIS-32
> devices. This change was sufficient to enable raw mode and send SIS
> pipe commands for a 57B3 device.
>
Reviewed-by: Wen Xiong <wenxiong@linux.vnet.ibm.com>
Thanks,
Wendy
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH 1/2] ipr: Inhibit underlength data check for AFDASD in raw mode.
2015-08-19 14:47 [PATCH 1/2] ipr: Inhibit underlength data check for AFDASD in raw mode Gabriel Krisman Bertazi
2015-08-19 14:47 ` [PATCH 2/2] ipr: Enable SIS pipe commands for SIS-32 devices Gabriel Krisman Bertazi
2015-08-20 20:27 ` [PATCH 1/2] ipr: Inhibit underlength data check for AFDASD in raw mode Brian King
@ 2015-08-28 13:39 ` Wendy Xiong
2 siblings, 0 replies; 6+ messages in thread
From: Wendy Xiong @ 2015-08-28 13:39 UTC (permalink / raw)
To: linux-scsi
Gabriel Krisman Bertazi <krisman <at> linux.vnet.ibm.com> writes:
>
> Disable underlength error verification based on count of bytes actually
> transferred for AF DASD devices when SIS pipe mode is enabled.
>
> This avoids unexpected underlength errors when issuing some commands in
> raw mode.
>
> Signed-off-by: Gabriel Krisman Bertazi <krisman <at> linux.vnet.ibm.com>
Reviewed-by: Wen Xiong<wenxiong@linux.vnet.ibm.com>
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2015-08-28 13:39 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-08-19 14:47 [PATCH 1/2] ipr: Inhibit underlength data check for AFDASD in raw mode Gabriel Krisman Bertazi
2015-08-19 14:47 ` [PATCH 2/2] ipr: Enable SIS pipe commands for SIS-32 devices Gabriel Krisman Bertazi
2015-08-20 20:28 ` Brian King
2015-08-27 19:28 ` Wendy Xiong
2015-08-20 20:27 ` [PATCH 1/2] ipr: Inhibit underlength data check for AFDASD in raw mode Brian King
2015-08-28 13:39 ` Wendy Xiong
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).