Re: [PATCH 0/9] tcmu: configuration fixes and cleanups

2018-07-25 Thread Xiubo Li
On 2018/7/24 3:07, Mike Christie wrote: The following patches were made over Martin's for-next branch. The first patch fixes a locking bug in the command setup path. The rest of the patches fix several bugs and cleanup the setup and configuration code paths. It looks good to me. This is also

target/iscsi: Allocate session IDs from an IDA

2018-07-25 Thread Matthew Wilcox
Ping? It'd be nice to get some answers to these questions rather than merging this conversion with the questions still in the changelog ... - Forwarded message from Matthew Wilcox - Date: Thu, 21 Jun 2018 14:28:27 -0700 From: Matthew Wilcox To: linux-ker...@vger.kernel.org Cc:

Re: [PATCH, RESEND] Avoid that SCSI device removal through sysfs triggers a deadlock

2018-07-25 Thread Martin K. Petersen
Bart, > This patch avoids that self-removal triggers the following deadlock: Somebody please review this so we can get it merged. -- Martin K. Petersen Oracle Linux Engineering

USB Drives - custom made with your logo

2018-07-25 Thread Vanessa
How are you? I would like to speak with the person in charge of purchasing your branded promotional products for your company? We create custom LOGO USB flash drives for our clients throughout the US. We can print your logo, and load your digital images, videos and files! If you need marketing,

[PATCH v3] scsi: ufs: Make sysfs attributes writable

2018-07-25 Thread Evan Green
This change makes the UFS controller's sysfs attributes writable, which will enable users to modify attributes. This can be useful during factory provisioning for setting up critical attributes like the reference clock frequency. Signed-off-by: Evan Green --- Configfs was determined to be the

[PATCH, RESEND] Avoid that SCSI device removal through sysfs triggers a deadlock

2018-07-25 Thread Bart Van Assche
This patch avoids that self-removal triggers the following deadlock: == WARNING: possible circular locking dependency detected 4.18.0-rc2-dbg+ #5 Not tainted -- modprobe/6539 is trying to

Re: [PATCH v2] scsi_debug: add cmd abort option to every_nth

2018-07-25 Thread Bart Van Assche
On Sat, 2018-07-21 at 01:10 -0400, Douglas Gilbert wrote: > This patch is motivated by a response in the thread: > Re: [PATCH 0/5]stop normal completion path entering a timeout req > by Jianchao Wang . It generalizes the error injection of > blk_abort_request() to use scsi_debug's "every_nth"

[PATCH 02/16] qla2xxx: Fix N2N link re-connect

2018-07-25 Thread Himanshu Madhani
From: Quinn Tran In case of N2N connect, when sg_regset for bus/device/host was causing driver and firmware state to go out of sync. This patch fixes this link instablity when reconnect is attempted after link flap. Signed-off-by: Quinn Tran Signed-off-by: Himanshu Madhani ---

[PATCH 03/16] qla2xxx: Fix login retry count

2018-07-25 Thread Himanshu Madhani
From: Quinn Tran Login retry count was not properly decrementing, which lead to endless login retry. Signed-off-by: Quinn Tran Signed-off-by: Himanshu Madhani --- drivers/scsi/qla2xxx/qla_gs.c | 16 +++ drivers/scsi/qla2xxx/qla_init.c | 23 +++--- drivers/scsi/qla2xxx/qla_mbx.c

[PATCH 11/16] qla2xxx: Fix Management Server NPort handle reservation logic

2018-07-25 Thread Himanshu Madhani
From: Quinn Tran After selecting the NPort handle/loop_id, set a bit in the loop_id_map to prevent others from selecting the same NPort handle. Signed-off-by: Quinn Tran Signed-off-by: Himanshu Madhani --- drivers/scsi/qla2xxx/qla_gbl.h | 1 + drivers/scsi/qla2xxx/qla_init.c | 28

[PATCH 14/16] qla2xxx: Save frame payload size from ICB

2018-07-25 Thread Himanshu Madhani
From: Quinn Tran Save frame payload size from init control block. This field/data is used to register with switch data base. This allow the init control block temp buf to be reuse Signed-off-by: Quinn Tran Signed-off-by: Himanshu Madhani --- drivers/scsi/qla2xxx/qla_def.h | 1 +

[PATCH 08/16] qla2xxx: Fix session state stuck in Get Port DB

2018-07-25 Thread Himanshu Madhani
From: Quinn Tran This patch sets discovery state back to GNL (Get Name List) when session is stuck at GPDB (Get Port DataBase). This will allow state machine to retry login and move session state ahead in discovery. Signed-off-by: Quinn Tran Signed-off-by: Himanshu Madhani ---

[PATCH 09/16] qla2xxx: Fix unintended Logout

2018-07-25 Thread Himanshu Madhani
From: Quinn Tran During normal IO, FW can return IO with 'port unavailble' status. Driver would send a LOGO to remote port for session resync. On an off chance, a PLOGI could arrive before sending the LOGO. This patch will skip sendiing LOGO, if a PLOGI just came in. Signed-off-by: Quinn Tran

[PATCH 05/16] qla2xxx: Prevent SysFS access when chip is down

2018-07-25 Thread Himanshu Madhani
From: Quinn Tran Prevent user from sending commands through SysFS while FW is not running or reset is in progress. Signed-off-by: Quinn Tran Signed-off-by: Himanshu Madhani --- drivers/scsi/qla2xxx/qla_attr.c | 33 +++-- drivers/scsi/qla2xxx/qla_init.c | 2 +-

[PATCH 13/16] qla2xxx: Fix stalled relogin

2018-07-25 Thread Himanshu Madhani
This patch sets and clears FCF_ASYNC_{SENT|ACTIVE} flags to prevent stalling of relogin attempt. Once flag are correctly set/cleared, relogin timer can retry relogin attempt for driver to continue login. Fixes: fa83e65885b9 ("scsi: qla2xxx: ensure async flags are reset correctly") Cc:

[PATCH 04/16] qla2xxx: Add longer window for Chip reset

2018-07-25 Thread Himanshu Madhani
From: Quinn Tran The qla2x00_reset_active only cover the window of turning the chip off, add check to cover Chip on. Signed-off-by: Quinn Tran Signed-off-by: Himanshu Madhani --- drivers/scsi/qla2xxx/qla_dbg.c | 3 +++ drivers/scsi/qla2xxx/qla_tmpl.c | 4 +++- 2 files changed, 6

[PATCH 10/16] qla2xxx: Flush mailbox commands on chip reset

2018-07-25 Thread Himanshu Madhani
From: Quinn Tran Flush pending mailbox commands on chip reset. Wake up command that's waiting for an interrupt and wait for mailbox counters to go to zero. Signed-off-by: Quinn Tran Signed-off-by: Himanshu Madhani --- drivers/scsi/qla2xxx/qla_def.h | 5 +

[PATCH 12/16] qla2xxx: Fix race between switch cmd completion and timeout

2018-07-25 Thread Himanshu Madhani
From: Quinn Tran Fix race condition between switch cmd completion and timeout timer. Timer has popped triggers command free. On IOCB completion, stale sp point was reused. Instead, an abort will be sent to FW to nudge the command out of FW, where the normal completion will take place. RIP:

[PATCH 15/16] qla2xxx: Migrate NVME N2N handling into state machine

2018-07-25 Thread Himanshu Madhani
From: Quinn Tran This patch fixes regression introduced for the N2N support for FC-NVMe. For FC-NVMe with N2N connection, instead of FW initiating the Login, Driver starts Login process. This patch migrate that new process from a standalone path into existing session management state machine.

[PATCH 16/16] qla2xxx: Update driver version to 10.00.00.08-k

2018-07-25 Thread Himanshu Madhani
Signed-off-by: Himanshu Madhani --- drivers/scsi/qla2xxx/qla_version.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/qla2xxx/qla_version.h b/drivers/scsi/qla2xxx/qla_version.h index 1ad7582220c3..3850b28518e5 100644 --- a/drivers/scsi/qla2xxx/qla_version.h +++

[PATCH 06/16] qla2xxx: Silent erroneous message

2018-07-25 Thread Himanshu Madhani
From: Quinn Tran Driver uses shadow pointer instead of Mirror pointer for firmware dump collection. Skip those entries for Mirror pointers for Request/Response queue from firmware dump template reading. Following messages are printed in log messages qla27xx_fwdt_entry_t268: unknown buffer 4

[PATCH 07/16] qla2xxx: Fix redundant fc_rport registration

2018-07-25 Thread Himanshu Madhani
From: Quinn Tran Prevent multiple registration with transport layer for the same remote port. Signed-off-by: Quinn Tran Signed-off-by: Himanshu Madhani --- drivers/scsi/qla2xxx/qla_init.c | 19 ++- 1 file changed, 6 insertions(+), 13 deletions(-) diff --git

[PATCH 00/16] qla2xxx: Updates for the driver

2018-07-25 Thread Himanshu Madhani
Hi Martin, This patch series addresses issue with N2N connection for FCP and FC-NVMe by moving login to state machine and handle various state change. Please apply this series to 4.19/scsi-queue at your earliest. Thanks, Himanshu Himanshu Madhani (3): qla2xxx: Cleanup for N2N code

[PATCH 01/16] qla2xxx: Cleanup for N2N code

2018-07-25 Thread Himanshu Madhani
Signed-off-by: Himanshu Madhani --- drivers/scsi/qla2xxx/qla_init.c | 112 drivers/scsi/qla2xxx/qla_iocb.c | 25 - 2 files changed, 137 deletions(-) diff --git a/drivers/scsi/qla2xxx/qla_init.c b/drivers/scsi/qla2xxx/qla_init.c index

Re: [PATCHv2 2/2] scsi: set timed out out mq requests to complete

2018-07-25 Thread Keith Busch
On Wed, Jul 25, 2018 at 03:52:17PM +, Bart Van Assche wrote: > On Mon, 2018-07-23 at 08:37 -0600, Keith Busch wrote: > > diff --git a/drivers/scsi/scsi_error.c b/drivers/scsi/scsi_error.c > > index 8932ae81a15a..2715cdaa669c 100644 > > --- a/drivers/scsi/scsi_error.c > > +++

Re: [PATCH 2/6] module: add support for symbol namespaces.

2018-07-25 Thread Lucas De Marchi
On Wed, Jul 25, 2018 at 8:55 AM Jessica Yu wrote: > > +++ Martijn Coenen [24/07/18 09:56 +0200]: > >I did find an issue with my approach: > > > >On Mon, Jul 16, 2018 at 2:21 PM, Martijn Coenen wrote: > >> The ELF symbols are renamed to include the namespace with an asm label; > >> for example,

Hitachi Technologies Users list.

2018-07-25 Thread Cynthia Taylor
Hi, I would like to know if you are interested in acquiring Hitachi Technologies Users list. Information fields: Names, Title, Email, Phone, Company Name, Company URL, Company physical address, SIC Code, Industry, Company Size (Revenue and Employee). Let me know if you are interested and I

Re: [PATCH 2/6] module: add support for symbol namespaces.

2018-07-25 Thread Jessica Yu
+++ Martijn Coenen [24/07/18 09:56 +0200]: I did find an issue with my approach: On Mon, Jul 16, 2018 at 2:21 PM, Martijn Coenen wrote: The ELF symbols are renamed to include the namespace with an asm label; for example, symbol 'usb_stor_suspend' in namespace USB_STORAGE becomes

Re: [PATCHv2 2/2] scsi: set timed out out mq requests to complete

2018-07-25 Thread Bart Van Assche
On Mon, 2018-07-23 at 08:37 -0600, Keith Busch wrote: > diff --git a/drivers/scsi/scsi_error.c b/drivers/scsi/scsi_error.c > index 8932ae81a15a..2715cdaa669c 100644 > --- a/drivers/scsi/scsi_error.c > +++ b/drivers/scsi/scsi_error.c > @@ -296,6 +296,20 @@ enum blk_eh_timer_return

Re: [PATCH] mpt3sas: Swap I/O memory read value back to cpu endianness

2018-07-25 Thread Andy Shevchenko
On Wed, Jul 25, 2018 at 12:42 PM, Sreekanth Reddy wrote: > Swap the I/O memory read value back to cpu endianness before storing it > in a data structures which are defined in the MPI headers where > u8 components are not defined in the endianness order. > > In this area from day one mpt3sas

[PATCH 1/2] block: move bio_integrity_{intervals,bytes} into blkdev.h

2018-07-25 Thread Greg Edwards
This allows bio_integrity_bytes() to be called from drivers instead of open coding it. Signed-off-by: Greg Edwards --- block/bio-integrity.c | 22 -- include/linux/blkdev.h | 34 ++ 2 files changed, 34 insertions(+), 22 deletions(-) diff

[PATCH 2/2] scsi: virtio_scsi: fix pi_bytes{out,in} on 4 KiB block size devices

2018-07-25 Thread Greg Edwards
The current calculation for pi_bytes{out,in} assumes a 512 byte logical block size and a protection interval exponent of 0, i.e. 512 bytes data + 8 bytes PI. When run on a 4 KiB logical block size device with a protection interval exponent of 0, i.e. 4096 bytes data + 8 bytes PI, the driver

[PATCH 0/2] virtio_scsi pi_bytes{out,in} miscalculated on 4 KiB devices

2018-07-25 Thread Greg Edwards
When the VIRTIO_SCSI_F_T10_PI feature bit is enabled, the virtio_scsi driver does not correctly calculate pi_bytes{out,in} when the underlying device has a 4 KiB logical block size. The current code assumes a 512 byte logical block size and protection interval exponent of 0 (512 bytes + 8 bytes