Re: [RESEND][PATCH v3] scsi: ufs: Fix hynix ufs bug with quirk on hi36xx SoC

2018-11-08 Thread Martin K. Petersen
John, > Hynix ufs has deviations on hi36xx platform which will result in ufs > bursts transfer failures. Applied to 4.20/scsi-fixes. Thank you! -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH v4 2/2] scsi: ufs: Add UFS platform driver for Cadence UFS

2018-11-08 Thread Martin K. Petersen
Janek, >> Rob reviewed the dt binding patch but has it been merged or should I >> take both patches through SCSI? Applied to 4.21/scsi-queue. Thank you! -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH 09/30] scsi: kill off the legacy IO path

2018-11-08 Thread Martin K. Petersen
Jens, > Thanks for reviewing both of these. Since the series is hard to break > apart, are you fine with me carrying this for 4.21 in the block tree? > I can stage it very soon, which would make it trivial for you to base > the 4.21 SCSI branch on it to avoid conflicting changes. Sure, that's f

Re: [PATCH] mpt3sas: Display message on Configurable secure HBA

2018-11-08 Thread Martin K. Petersen
Sreekanth, >> Display below warning message only up on detection of >> Configurable secure type controllers. Actually, same question as for Shivasharan: Why a warning? -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH] megaraid_sas: Add support for MegaRAID Aero controllers

2018-11-08 Thread Martin K. Petersen
Shivasharan, > This patch adds support for MegaRAID Aero controller PCI IDs. > Throw a warning message when a Configurable secure type controller is > encountered. > + dev_warn(&pdev->dev, "Adapter is in configurable secure > mode\n"); Why warn and not info? -- Martin K. Peterse

Re: [PATCH V2 RESEND] Timeouts occur on surprise removal of QLogic adapter

2018-11-08 Thread Martin K. Petersen
Bill, > When doing a surprise removal of an adapter, some in flight I/Os can get > stuck and take a while to complete (they actually timeout and are > retried). We are not handling an early error exit from > qla2xxx_eh_abort properly. Applied to 4.20/scsi-fixes, thank you. -- Martin K. Pet

Re: [PATCH 01/23] zfcp: make DIX experimental, disabled, and independent of DIF

2018-11-08 Thread Martin K. Petersen
Steffen, > There are too many unresolved issues with DIX outside of zfcp such as > wrong protection data on writesame/discard (over device-mapper) We don't configure protected transfers for anything but read and write commands. There is currently no protection information generated for WRITE SA

Re: [PATCH] mpt3sas: Display message on Configurable secure HBA

2018-11-08 Thread Martin K. Petersen
Sreekanth, > Display below warning message only up on detection of > Configurable secure type controllers. > > "HBA is in Configurable Secure mode" Applied to 4.21/scsi-queue, thanks. -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH 6/9] PCI: consolidate PCI config entry in drivers/pci

2018-11-08 Thread Bjorn Helgaas
On Fri, Oct 19, 2018 at 02:09:49PM +0200, Christoph Hellwig wrote: > There is no good reason to duplicate the PCI menu in every architecture. > Instead provide a selectable HAVE_PCI symbol that indicates availability > of PCI support and the handle the rest in drivers/pci. > > Note that for powerp

Re: [PATCH v4 0/5] qla2xxx: Add FC-NVMe Target support

2018-11-08 Thread Malavali, Giridhar
Thanks James. Please let us know. -- Giri On 11/8/18, 9:18 AM, "linux-scsi-ow...@vger.kernel.org on behalf of James Smart" wrote: External Email Madhani, I'll be looking through it over the weekend. -- james On 11/8/2018 8:58 AM, Madhani, Himanshu

Re: [PATCH v4 0/5] qla2xxx: Add FC-NVMe Target support

2018-11-08 Thread James Smart
Madhani, I'll be looking through it over the weekend. -- james On 11/8/2018 8:58 AM, Madhani, Himanshu wrote: Hi James, Any more review comments? On Oct 31, 2018, at 9:40 AM, Himanshu Madhani wrote: Hi Martin, This series adds support for FC-NVMe Target. Patch #1 adds infrastructure t

[RESEND][PATCH v3] scsi: ufs: Fix hynix ufs bug with quirk on hi36xx SoC

2018-11-08 Thread John Stultz
From: Wei Li Hynix ufs has deviations on hi36xx platform which will result in ufs bursts transfer failures. To fix the problem, the Hynix device must set the register VS_DebugSaveConfigTime to 0x10, which will set time reference for SaveConfigTime is 250 ns. The time reference for SaveConfigTime

Re: [PATCH v4 0/5] qla2xxx: Add FC-NVMe Target support

2018-11-08 Thread Madhani, Himanshu
Hi James, Any more review comments? > On Oct 31, 2018, at 9:40 AM, Himanshu Madhani > wrote: > > Hi Martin, > > This series adds support for FC-NVMe Target. > > Patch #1 adds infrastructure to support FC-NVMeT Link Service processing. > Patch #2 adds addes new qla_nvmet.[ch] files for FC-

Re: [PATCH] rescan-scsi-bus.sh: use LUN wildcard in idlist

2018-11-08 Thread Douglas Gilbert
On 2018-10-25 10:49 a.m., Martin Wilck wrote: By scanning for LUN 0 only, we may encounter a device that the kernel won't add (e.g. peripheral device type 31) and which may thus never appear in sysfs for us to use for REPORT LUNS. That causes LUN additions for such devices to be missed by "rescan

[PATCH 05/23] zfcp: move scsi_eh & non-ERP timeout defines owned by and local to zfcp_fsf.c

2018-11-08 Thread Steffen Maier
Also clarify namespace prefix for the timeout used for FSF requests on behalf of SCSI error recovery: It is zfcp_fsf_ not zfcp_scsi_. Signed-off-by: Steffen Maier Reviewed-by: Benjamin Block --- drivers/s390/scsi/zfcp_def.h | 6 -- drivers/s390/scsi/zfcp_fsf.c | 9 +++-- 2 files changed

[PATCH 00/23] zfcp updates for v4.21

2018-11-08 Thread Steffen Maier
James, Martin, this is the zfcp patch set for the v4.21 merge window. The patches apply to Martin's 4.21/scsi-queue and to James' misc branch. Patch 1 is a small feature to select DIF only without DIX. Patches 2-23 are cleanups including resolving new build warnings. Fedor Loshakov (1): zfcp:

[PATCH 06/23] zfcp: update width in comment for ZFCP_COMMON_FLAGS mask

2018-11-08 Thread Steffen Maier
v2.6.10 history commit 4062e12b2ba2 ("[PATCH] s390: zfcp act enhancements") extended this mask by one nibble with the introduction of ZFCP_STATUS_COMMON_ACCESS_DENIED == 0x0080 for ACT (access control table). Signed-off-by: Steffen Maier Reviewed-by: Benjamin Block --- drivers/s390/scsi/zfc

Re: [PATCH] rescan-scsi-bus.sh: use LUN wildcard in idlist

2018-11-08 Thread Martin Wilck
On Thu, 2018-10-25 at 10:49 +0200, Martin Wilck wrote: > By scanning for LUN 0 only, we may encounter a device that the > kernel won't add (e.g. peripheral device type 31) and which may > thus never appear in sysfs for us to use for REPORT LUNS. That > causes LUN additions for such devices to be mi

[PATCH 20/23] zfcp: silence remaining kdoc warnings in header files

2018-11-08 Thread Steffen Maier
Improve whatever the following simple invocation reported: $ ./scripts/kernel-doc -none drivers/s390/scsi/*.h While at it, improve some related kdoc, including struct zfcp_fsf_ct_els in zfcp_fsf.h. Signed-off-by: Steffen Maier Reviewed-by: Benjamin Block --- drivers/s390/scsi/zfcp_dbf.h |

[PATCH 18/23] zfcp: properly format LUN (and WWPN) for LUN sharing violation kmsg

2018-11-08 Thread Steffen Maier
zfcp: : LUN 0x0 on port 0x5005076. ... zfcp: : LUN 0x1 on port 0x5005076. ... should be zfcp: : LUN 0x on port 0x5005076. ... zfcp: : LUN 0x0001 on port 0x5005076. is already in use by CSS., MIF Image ID .

[PATCH 22/23] zfcp: drop default switch case which might paper over missing case

2018-11-08 Thread Steffen Maier
This was introduced with v4.18 commit 8c3d20aada70 ("scsi: zfcp: fix missing REC trigger trace for all objects in ERP_FAILED") but would now suppress helpful -Wswitch compiler warnings when building with W=1 such as the following forced example: drivers/s390/scsi/zfcp_erp.c: In function 'zfcp_erp_

[PATCH 23/23] zfcp: drop old default switch case which might paper over missing case

2018-11-08 Thread Steffen Maier
This was introduced with v2.6.27 commit 287ac01acf22 ("[SCSI] zfcp: Cleanup code in zfcp_erp.c") but would now suppress helpful -Wswitch compiler warnings when building with W=1 such as the following forced example: drivers/s390/scsi/zfcp_erp.c: In function 'zfcp_erp_setup_act': drivers/s390/scsi/

[PATCH 19/23] zfcp: silence all W=1 build warnings for existing kdoc

2018-11-08 Thread Steffen Maier
While at it also improve some copy&paste kdoc mistakes. Signed-off-by: Steffen Maier Reviewed-by: Benjamin Block --- drivers/s390/scsi/zfcp_dbf.c | 13 - drivers/s390/scsi/zfcp_erp.c | 6 +++--- drivers/s390/scsi/zfcp_fc.c | 2 +- drivers/s390/scsi/zfcp_fsf.c | 14 +--

[PATCH 16/23] zfcp: use enum zfcp_erp_steps for struct zfcp_erp_action.step

2018-11-08 Thread Steffen Maier
Use the already defined enum for this purpose to get at least some build checking (even though an enum is type equivalent to an int in C). v2.6.27 commit 287ac01acf22 ("[SCSI] zfcp: Cleanup code in zfcp_erp.c") introduced the enum which was cpp defines previously. Since struct zfcp_erp_action type

[PATCH 21/23] zfcp: silence -Wimplicit-fallthrough in zfcp_erp_lun_strategy()

2018-11-08 Thread Steffen Maier
For some reason the already existing substring "fall through" in the comment is not sufficient for GCC to silence -Wimplicit-fallthrough. CC [M] drivers/s390/scsi/zfcp_erp.o drivers/s390/scsi/zfcp_erp.c: In function 'zfcp_erp_lun_strategy': drivers/s390/scsi/zfcp_erp.c:1065:6: warning: this sta

[PATCH 13/23] zfcp: ERP thread setup kdoc update

2018-11-08 Thread Steffen Maier
zfcp_erp_thread_setup() update complements v2.6.32 commit 347c6a965dc1 ("[SCSI] zfcp: Use kthread API for zfcp erp thread"). Signed-off-by: Steffen Maier Reviewed-by: Benjamin Block --- drivers/s390/scsi/zfcp_erp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/s390

[PATCH 17/23] zfcp: use enum zfcp_erp_act_result for argument/return of affected functions

2018-11-08 Thread Steffen Maier
With that instead of just "int" it becomes clear which functions return this type and which ones also accept it as argument they just pass through in some cases or modify in other cases. v2.6.27 commit 287ac01acf22 ("[SCSI] zfcp: Cleanup code in zfcp_erp.c") introduced the enum which was cpp define

[PATCH 14/23] zfcp: clarify function argument name for trace tag string

2018-11-08 Thread Steffen Maier
v2.6.30 commit 5ffd51a5e495 ("[SCSI] zfcp: replace current ERP logging with a more convenient version") changed trace record distinguishing from a numerical ID to a 7 character string called "trace tag". While starting to use function arguments with different type and semantics, it did not change t

[PATCH 15/23] zfcp: the action field of zfcp_erp_action is actually the type

2018-11-08 Thread Steffen Maier
&zfcp_erp_action.action ==> &zfcp_erp_action.type While at it, make use of the already defined enum for this purpose to get at least some build checking (even though an enum is type equivalent to an int in C). v2.6.27 commit 287ac01acf22 ("[SCSI] zfcp: Cleanup code in zfcp_erp.c") introduced the e

[PATCH 09/23] zfcp: drop unnecessary forward prototype for struct zfcp_fsf_req

2018-11-08 Thread Steffen Maier
Signed-off-by: Steffen Maier Reviewed-by: Benjamin Block --- drivers/s390/scsi/zfcp_def.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/s390/scsi/zfcp_def.h b/drivers/s390/scsi/zfcp_def.h index 31b3e2bb3b42..572debf2f528 100644 --- a/drivers/s390/scsi/zfcp_def.h +++ b/drivers/s390

[PATCH 04/23] zfcp: drop unnecessary forward prototype for struct zfcp_reqlist

2018-11-08 Thread Steffen Maier
While struct zfcp_adapter contains a pointer to zfcp_reqlist, the pointer field does not need to know the structure or even a prototype. The prototype was introduced with v2.6.34 commit b6bd2fb92a7b ("[SCSI] zfcp: Move FSF request tracking code to new file"). Signed-off-by: Steffen Maier Reviewe

[PATCH 10/23] zfcp: drop duplicate fsf_command from zfcp_fsf_req which is also in QTCB header

2018-11-08 Thread Steffen Maier
Status read buffers (SRBs, unsolicited notifications) never use a QTCB [zfcp_fsf_req_create()]. zfcp_fsf_req_send() already uses this to distinguish SRBs from other FSF request types. We can re-use this method in zfcp_fsf_req_complete(). Introduce a helper function to make the check for req->qtcb l

[PATCH 12/23] zfcp: update kernel message for invalid FCP_CMND length, it's not the CDB

2018-11-08 Thread Steffen Maier
The CDB is just a part inside of FCP_CMND, see zfcp_fc_scsi_to_fcp(). While at it, fix the device driver reaction: adapter not LUN shutdown. Signed-off-by: Steffen Maier Reviewed-by: Benjamin Block --- drivers/s390/scsi/zfcp_fsf.c | 7 ++- 1 file changed, 2 insertions(+), 5 deletions(-) di

[PATCH 11/23] zfcp: drop duplicate seq_no from zfcp_fsf_req which is also in QTCB header

2018-11-08 Thread Steffen Maier
There is no point for double bookkeeping especially just for tracing. The trace can take it from the QTCB which always exists for non-SRB responses traced with zfcp_dbf_hba_fsf_res(). As a side effect, this removes an alignment hole and reduces the size of struct zfcp_fsf_req, and thus of each pen

[PATCH 03/23] zfcp: move SG table helper from aux to fc and make them static

2018-11-08 Thread Steffen Maier
Since commit 663e0890e31c ("[SCSI] zfcp: remove access control tables interface") these helper functions are only used for auto port scan in zfcp_fc.c. Also change them to the corresponding namespace prefix. This is a small cleanup for the miscellaneous catchall compile unit zfcp_aux.c. Signed-of

[PATCH 08/23] zfcp: group sort internal structure definitions for proximity

2018-11-08 Thread Steffen Maier
Have structures just before the structures that use them (without disrupting sequences of using structures such as zfcp_unit and zfcp_scsi_dev): - zfcp_adapter_mempool embedded in zfcp_adapter, - zfcp_latenc... embedded in zfcp_scsi_dev. Signed-off-by: Steffen Maier Reviewed-by: Benjamin Block

[PATCH 07/23] zfcp: namespace prefix for internal latency data structures

2018-11-08 Thread Steffen Maier
In contrast to struct fsf_qual_latency_info, the ones here are not FSF but software defined zfcp-internal. Signed-off-by: Steffen Maier Reviewed-by: Benjamin Block --- drivers/s390/scsi/zfcp_def.h | 14 +++--- drivers/s390/scsi/zfcp_fsf.c | 4 ++-- 2 files changed, 9 insertions(+), 9 d

[PATCH 02/22] zfcp: remove unnecessary null pointer check before mempool_destroy

2018-11-08 Thread Steffen Maier
From: zhong jiang mempool_destroy has taken null pointer check into account. so remove the redundant check. Signed-off-by: zhong jiang Acked-by: Benjamin Block [ma...@linux.ibm.com: depends on v4.3 4e3ca3e033d1 ("mm/mempool: allow NULL `pool' pointer in mempool_destroy()")] Signed-off-by: Ste

[PATCH 01/23] zfcp: make DIX experimental, disabled, and independent of DIF

2018-11-08 Thread Steffen Maier
From: Fedor Loshakov There are too many unresolved issues with DIX outside of zfcp such as wrong protection data on writesame/discard (over device-mapper) or due to unstable page writes. This can cause I/O stalls or endless loops or even kernel panics, or I/O errors due to erroneously failed logi

[PATCH -next] scsi: qedi: remove set but not used variable 'conn'

2018-11-08 Thread YueHaibing
Fixes gcc '-Wunused-but-set-variable' warning: drivers/scsi/qedi/qedi_main.c: In function 'qedi_queue_cqe': drivers/scsi/qedi/qedi_main.c:1105:21: warning: variable 'conn' set but not used [-Wunused-but-set-variable] It never used since introduction in commit ace7f46ba5fd ("scsi: qedi: Add QLogi

[PATCH] mpt3sas: Display message on Configurable secure HBA

2018-11-08 Thread Sreekanth Reddy
Display below warning message only up on detection of Configurable secure type controllers. "HBA is in Configurable Secure mode" Signed-off-by: Sreekanth Reddy --- drivers/scsi/mpt3sas/mpt3sas_scsih.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/scsi/mpt3sa