Re: [PATCH v2 13/22] qla2xxx: Fix PRLI state check

2017-11-30 Thread Hannes Reinecke
On 11/30/2017 04:40 AM, Himanshu Madhani wrote: > From: Quinn Tran > > Get Port Database MBX cmd is to validate current Login state upon > PRLI completion. Current code looks at the last login state for > re-validation which was incorrect. This patch removed incorrect >

Re: [PATCH v2 22/22] qla2xxx: Update driver version to 10.00.00.03-k

2017-11-30 Thread Hannes Reinecke
On 11/30/2017 04:40 AM, Himanshu Madhani wrote: > 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 >

Re: [PATCH] scsi: fix race condition when removing target

2017-11-30 Thread gre...@linuxfoundation.org
On Thu, Nov 30, 2017 at 04:08:38PM +, Bart Van Assche wrote: > On Thu, 2017-11-30 at 09:18 +0800, Jason Yan wrote: > > Hi Bart, I chose the approach in my patch because it has been used in > > scsi_device_get() for years and been proved safe. I think using > > kobject_get_unless_zero() is safe

Re: [PATCH v2 17/22] qla2xxx: Clear loop id after delete

2017-11-30 Thread Hannes Reinecke
On 11/30/2017 04:40 AM, Himanshu Madhani wrote: > From: Quinn Tran > > clear loop id after delete to prevent session invalidation > of stale session. > > Fixes: 726b85487067d ("qla2xxx: Add framework for async fabric discovery") > Cc: # 4.10+ >

Re: [PATCH v2 16/22] qla2xxx: Fix scan state field for fcport

2017-11-30 Thread Hannes Reinecke
On 11/30/2017 04:40 AM, Himanshu Madhani wrote: > From: Quinn Tran > > Add correct value of scan_state field indicating state > of the FC port > > Fixes: 726b85487067d ("qla2xxx: Add framework for async fabric discovery") > Cc: # 4.10+ >

Re: [PATCH v2 20/22] qla2xxx: Fix system crash in qlt_plogi_ack_unref

2017-11-30 Thread Hannes Reinecke
On 11/30/2017 04:40 AM, Himanshu Madhani wrote: > From: Quinn Tran > > Fix system crash due to NULL pointer access. > > qlt_plogi_ack_t and fc_port structures were not properly > bound before calling qlt_plogi_ack_unref(). > > RIP: 0010:qlt_plogi_ack_unref+0xa1/0x150

Re: [PATCH v2 19/22] qla2xxx: Remove aborting ELS IOCB call issued as part of timeout.

2017-11-30 Thread Hannes Reinecke
On 11/30/2017 04:40 AM, Himanshu Madhani wrote: > From: Giridhar Malavali > > This fix the spinlock recursion issue seen while unloading the driver. > > 14 [9f2e21e03db8] native_queued_spin_lock_slowpath at ad0d8802 > 15 [9f2e21e03dc0]

Re: [PATCH] scsi: fix race condition when removing target

2017-11-30 Thread Bart Van Assche
On Thu, 2017-11-30 at 09:18 +0800, Jason Yan wrote: > Hi Bart, I chose the approach in my patch because it has been used in > scsi_device_get() for years and been proved safe. I think using > kobject_get_unless_zero() is safe here and can fix this issue too. And > this approach is beneficial to

Re: [PATCH v2 18/22] qla2xxx: Defer processing of GS IOCB calls

2017-11-30 Thread Hannes Reinecke
On 11/30/2017 04:40 AM, Himanshu Madhani wrote: > From: Giridhar Malavali > > This patch defers processing of GS IOCB calls from interrupt > context to avoid hardware spinlock recursion. > > Following stack trace is seen > > ? mod_timer+0x193/0x330 > ?

Re: [PATCH v2 07/22] qla2xxx: Serialize GPNID for multiple RSCN

2017-11-30 Thread Madhani, Himanshu
> On Nov 30, 2017, at 7:53 AM, Hannes Reinecke wrote: > > Two spelling errors in one line ... Embarrassing.. Will fix them in v3 Thanks, - Himanshu

Re: [PATCH v2 06/22] qla2xxx: Retry switch command on time out

2017-11-30 Thread Hannes Reinecke
On 11/30/2017 04:40 AM, Himanshu Madhani wrote: > From: Quinn Tran > > Retry GID_PN & GPN_ID switch commands for time out case. > > Fixes: 726b85487067d ("qla2xxx: Add framework for async fabric discovery") > Cc: # 4.10+ > Signed-off-by: Quinn

Re: [PATCH v2 09/22] qla2xxx: Fix NPIV host cleanup in target mode

2017-11-30 Thread Hannes Reinecke
On 11/30/2017 04:40 AM, Himanshu Madhani wrote: > From: Sawan Chandak > > Add check to make sure we are cleaning up global target host > list only for NPIV hosts > > Fixes: bdbe24de281e2 ("scsi: qla2xxx: Cleanup NPIV host in target mode during > config teardown") >

Re: [PATCH v2 08/22] qla2xxx: Fix login state machine stuck at GPDB

2017-11-30 Thread Hannes Reinecke
On 11/30/2017 04:40 AM, Himanshu Madhani wrote: > From: Quinn Tran > > This patch returns discovery state machine back to > Login Complete. > > Fixes: 726b85487067d ("qla2xxx: Add framework for async fabric discovery") > Cc: # 4.10+ >

Re: [PATCH v2 05/22] qla2xxx: Fix re-login for Nport Handle in use

2017-11-30 Thread Hannes Reinecke
On 11/30/2017 04:40 AM, Himanshu Madhani wrote: > From: Quinn Tran > > When NPort Handle is in use, driver needs to mark the handle > as used and pick another. Instead, the code clears the handle > and re-pick the same handle. > > Fixes: 726b85487067d ("qla2xxx: Add

Re: [PATCH v2 07/22] qla2xxx: Serialize GPNID for multiple RSCN

2017-11-30 Thread Hannes Reinecke
On 11/30/2017 04:40 AM, Himanshu Madhani wrote: > From: Quinn Tran > > GPNID is triggered by RSCN. For multiple RSCNs of the same > affected NPORT ID, serialize the GPNID to prevent confusion. > > Fixes: 726b85487067d ("qla2xxx: Add framework for async fabric discovery")

Re: [PATCH v2 11/22] qla2xxx: Fix Relogin being triggered too fast

2017-11-30 Thread Hannes Reinecke
On 11/30/2017 04:40 AM, Himanshu Madhani wrote: > From: Quinn Tran > > Current driver design schedules relogin process via DPC thread > every 1 second. In a large fabric, this DPC thread tries to > schedule too many jobs and might get overloaded. As a result of > this

Re: [PATCH v2 12/22] qla2xxx: Clear send ELS LOGO flag after target re-login

2017-11-30 Thread Hannes Reinecke
On 11/30/2017 04:40 AM, Himanshu Madhani wrote: > From: Quinn Tran > > This patch fixes clearing out els_send_logo flag at the > time of session deletion. > > Fixes: 3515832cc614 ("scsi: qla2xxx: Reset the logo flag, after target > re-login.") > Cc:

Re: [PATCH v2 05/22] qla2xxx: Fix re-login for Nport Handle in use

2017-11-30 Thread Madhani, Himanshu
Hi Hannes, > On Nov 30, 2017, at 7:51 AM, Hannes Reinecke wrote: > > Does this really belong to the above patch? > It looks to me as if it fixes a completely different issue... This flag indicates firmware to purge all IO’s of a session instead of assuming FW will purge them.

Re: [PATCH v2 10/22] qla2xxx: Relogin to target port on a cable swap

2017-11-30 Thread Hannes Reinecke
On 11/30/2017 04:40 AM, Himanshu Madhani wrote: > From: Quinn Tran > > If user swaps one target port for another target port for same > switch port, the new target port is not being recognized by the > driver. Current code assumes that old Target port has recovered > from

[Bug 197875] Processes hang on attempted access of WDC WD30-EZRX 3TB HDD on HP Z420 Workstation

2017-11-30 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=197875 --- Comment #8 from Chuck Burt (chuck.burt+kernel@gmail.com) --- Created attachment 260953 --> https://bugzilla.kernel.org/attachment.cgi?id=260953=edit Output of lspci on 4.10.x kernel I won't be able to boot into the newer kernel for

Re: [PATCH v2 14/22] qla2xxx: Fix abort command deadlock due to spinlock

2017-11-30 Thread Hannes Reinecke
On 11/30/2017 04:40 AM, Himanshu Madhani wrote: > From: Quinn Tran > > Original code acquires hardware_lock to add Abort IOCB > onto driver's request queue for processing. However, > abort_command() will also acquire hardware lock to look up > sp pointer before issuing

Re: [PATCH v2 15/22] qla2xxx: Replace fcport alloc with qla2x00_alloc_fcport

2017-11-30 Thread Hannes Reinecke
On 11/30/2017 04:40 AM, Himanshu Madhani wrote: > From: Quinn Tran > > Current code manually allocate an fcport structure that > is not properly initialize. Replace kzalloc with > qla2x00_alloc_fcport, so that all fields are initialized. > Also set set scan flag to port

Re: [PATCH v2 21/22] qla2xxx: Fix memory leak in dual/target mode

2017-11-30 Thread Hannes Reinecke
On 11/30/2017 04:40 AM, Himanshu Madhani wrote: > When driver is loaded in Target/Dual mode, it creates QPair > to support MQ and allocates resources for each QPair. This Qpair > initialization is delayed until the FW personality is changed to > Dual/Target mode by issuing chip reset. At the time

Re: BUG: KASAN: use-after-scope in ep_poll+0x5cd/0xc90

2017-11-30 Thread Jason Baron
Hi, On 11/29/2017 10:41 PM, Fengguang Wu wrote: > Hello, > > FYI this happens in mainline kernel 4.15.0-rc1. > It looks a new regression and bisect is on the way. > > It occurs in 3 out of 3 boots. > > [ 35.704690] init: Failed to create pty - disabling logging for job > [ 35.706676] init:

Re: [PATCH] scsi: fix race condition when removing target

2017-11-30 Thread Finn Thain
On Thu, 30 Nov 2017, James Bottomley wrote: > +#define __sdev_for_each_get(sdev, head, list) > \ > + list_for_each_entry(sdev, head, list) \ > + if (kobject_get_unless_zero(>sdev_gendev.kobj)) > + I think that should have

[PATCH 0/2] Ensure that the SCSI error handler gets woken up

2017-11-30 Thread Bart Van Assche
Hello Martin, As reported by Pavel Tikhomirov it can happen that the SCSI error handler does not get woken up. This is very annoying because it results in a queue stall. The two patches in this series address this issue without acquiring the SCSI host lock in the hot path. Please consider these

[PATCH 1/2] Ensure that the SCSI error handler gets woken up

2017-11-30 Thread Bart Van Assche
If scsi_eh_scmd_add() is called concurrently with scsi_host_queue_ready() while shost->host_blocked > 0 then it can happen that neither function wakes up the SCSI error handler. Fix this by making every function that decreases the host_busy counter wake up the error handler if necessary and by

Re: [PATCH 2/2] scsi: ufs: add Exynos-specific driver

2017-11-30 Thread Jaehoon Chung
Hi, On 11/30/2017 05:35 PM, 김기웅 wrote: > Dear Jaehoon > > Actually, I used to use the way what you mentioned, but > now a new way has been using with latest products. > > Anyway, I would refer to your comment. If you will send the next version, you need to run "checkpatch". When i run

Re: [PATCH] scsi: fix race condition when removing target

2017-11-30 Thread James Bottomley
On Thu, 2017-11-30 at 16:08 +, Bart Van Assche wrote: > On Thu, 2017-11-30 at 09:18 +0800, Jason Yan wrote: > > > > Hi Bart, I chose the approach in my patch because it has been used > > in scsi_device_get() for years and been proved safe. I think using > > kobject_get_unless_zero() is safe

[PATCH 2/2] Convert a source code comment into a runtime check

2017-11-30 Thread Bart Van Assche
Signed-off-by: Bart Van Assche Cc: Christoph Hellwig Cc: Hannes Reinecke Cc: Johannes Thumshirn --- drivers/scsi/scsi_error.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/scsi/scsi_error.c

答复: 答复: [PATCH v5 2/5] dt-bindings: scsi: ufs: add document for hisi-ufs

2017-11-30 Thread liwei (CM)
Hi, Arnd Sorry to bother you, some questions about this patch will trouble you to give some advice: + ufs: ufs@ff3b { + compatible = "hisilicon,hi3660-ufs", "jedec,ufs-1.1"; + /* 0: HCI standard */ + /* 1: UFS SYS CTRL */ + reg =

RE: [PATCH 2/2] scsi: ufs: add Exynos-specific driver

2017-11-30 Thread 김기웅
Dear Jaehoon Actually, I used to use the way what you mentioned, but now a new way has been using with latest products. Anyway, I would refer to your comment. Thank you. > -Original Message- > From: linux-scsi-ow...@vger.kernel.org [mailto:linux-scsi- > ow...@vger.kernel.org] On Behalf

Re: [PATCH v2 01/22] qla2xxx: Fix system crash for Notify ack timeout handling

2017-11-30 Thread Hannes Reinecke
On 11/30/2017 04:40 AM, Himanshu Madhani wrote: > From: Quinn Tran > > Fix NULL pointer crash due to missing timeout handling callback > for Notify Ack IOCB. > > Fixes: 726b85487067d ("qla2xxx: Add framework for async fabric discovery") > Cc: #

Re: [PATCH v2 02/22] qla2xxx: Fix gpnid error processing

2017-11-30 Thread Hannes Reinecke
On 11/30/2017 04:40 AM, Himanshu Madhani wrote: > From: Quinn Tran > > Stop GPNID command from advancing if command has failed. > > Fixes: 726b85487067d ("qla2xxx: Add framework for async fabric discovery") > Cc: # 4.10+ > Signed-off-by: Quinn

Re: [PATCH v2 03/22] qla2xxx: Move session delete to driver work queue

2017-11-30 Thread Hannes Reinecke
On 11/30/2017 04:40 AM, Himanshu Madhani wrote: > From: Quinn Tran > > Move session delete from system work queue to driver's > work queue for in time processing. > > Fixes: 726b85487067d ("qla2xxx: Add framework for async fabric discovery") > Cc:

Re: [PATCH v2 04/22] qla2xxx: Skip IRQ affinity for Target QPairs

2017-11-30 Thread Hannes Reinecke
On 11/30/2017 04:40 AM, Himanshu Madhani wrote: > From: Quinn Tran > > Fix co-existence between Block MQ and Target Mode. Block MQ > and initiator mode requires midlayer queue mapping to check > for IRQ to be affinitize. For target mode, it's not the case. > > Fixes: