RE: A qla2xxx commit cause Linux no response, has not fixed in lastest version 4.15-rc6

2018-01-15 Thread Changlimin
Hi Himanshu, This is my progress. First, I compiled 4.15-rc6, I found linux hang when booting, the stack showed something wrong in qla2xxx driver. Second, I want to find which commit introduced the issue. So I tried many times via git bisect to linux kernel. Finally, I found the

[PATCH] scsi_sysfs: fix list entry double-deletion

2018-01-15 Thread zhenwei.pi
Test iscsi performance in unstable network. And hit kernel die. Here are two different call trace, but they have the same RIP & RCX. 1> CPU: 15 PID: 23529 Comm: lvm Tainted: G D W E 4.14.11 #1 task: 91a382b72e00 task.stack: b3928ade8000 RIP:

Re: A qla2xxx commit cause Linux no response, has not fixed in lastest version 4.15-rc6

2018-01-15 Thread Madhani, Himanshu
Hi Chang, > On Jan 15, 2018, at 4:27 PM, Changlimin wrote: > > Hi Himanshu, > The issue is: When insmod the qla2xxx.ko from 4.15-rc6, linux hang. >From the log file attached. I see that you are trying to load driver from >4.9.x in 4.15.0-rc6. [ 279.898704] qla2xxx

[PATCH 1/8] qla2xxx: Fix NULL pointer crash due to probe failure

2018-01-15 Thread Himanshu Madhani
This patch fixes regression added by commit d74595278f4ab ("scsi: qla2xxx: Add multiple queue pair functionality."). When driver is not able to get reqeusted IRQs from the system, driver will attempt tp clean up memory before failing hardware probe. During this cleanup, driver assigns NULL value

[PATCH 3/8] qla2xxx: Fix warning in qla2x00_async_iocb_timeout()

2018-01-15 Thread Himanshu Madhani
This patch fixes following Smatch warning drivers/scsi/qla2xxx/qla_init.c:130 qla2x00_async_iocb_timeout() error: we previously assumed 'fcport' could be null (see line 107) Fixes: 5c25d451163c ("scsi: qla2xxx: Fix NULL pointer access for fcport structure") Reported by: Dan Carpenter

[PATCH 0/8] qla2xxx: Minor fixes for the driver

2018-01-15 Thread Himanshu Madhani
Hi Martin, This series has fixes for smatch warnings. Patch 3 addresses smatch warning reported by Dan Carpenter. We've also added a patch for async abort handling for initiator multiqueue in the driver along with a patch for NULL pointer access during probe failure. Please apply this series

[PATCH 4/8] qla2xxx: Fix warning during port_name debug print

2018-01-15 Thread Himanshu Madhani
This patch fixes following smatch warning drivers/scsi/qla2xxx/qla_iocb.c:2622 qla2x00_els_dcmd2_sp_done() error: '%pC' expects argument of type 'struct clk*', argument 8 has type 'uchar[]' Signed-off-by: Himanshu Madhani --- drivers/scsi/qla2xxx/qla_iocb.c | 2 +-

[PATCH 2/8] qla2xxx: Fix recursion while sending terminate exchange

2018-01-15 Thread Himanshu Madhani
During error test case where switch port status is toggled from enable to disable, following stack trace is seen which indicates recursion trying to send terminate exchange. This regression was introduced by commit 82de802ad46e ("scsi: qla2xxx: Preparation for Target MQ.") BUG: stack guard page

[PATCH 6/8] qla2xxx: Fix queue ID for async abort with Multiqueue

2018-01-15 Thread Himanshu Madhani
From: Darren Trapp Signed-off-by: Darren Trapp Signed-off-by: Himanshu Madhani --- drivers/scsi/qla2xxx/qla_def.h | 1 + drivers/scsi/qla2xxx/qla_init.c | 9 + drivers/scsi/qla2xxx/qla_iocb.c | 6 -- 3

[PATCH 5/8] qla2xxx: Fix warning for code intentation in __qla24xx_handle_gpdb_event()

2018-01-15 Thread Himanshu Madhani
This patch fixes following smatch warning drivers/scsi/qla2xxx/qla_init.c:1054 __qla24xx_handle_gpdb_event() warn: inconsistent indenting Signed-off-by: Himanshu Madhani --- drivers/scsi/qla2xxx/qla_init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

[PATCH 8/8] qla2xxx: Update driver version to 10.00.00.05-k

2018-01-15 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 0843def08356..549bef9afddd 100644 ---

[PATCH 7/8] qla2xxx: Add XCB counters to debugfs

2018-01-15 Thread Himanshu Madhani
From: Anil Gurumurthy Signed-off-by: Anil Gurumurthy Signed-off-by: Himanshu Madhani --- drivers/scsi/qla2xxx/qla_dfs.c | 9 + 1 file changed, 9 insertions(+) diff --git

Re: [PATCH 13/14] megaraid_sas: NVME passthru command support

2018-01-15 Thread Martin K. Petersen
Kashyap, > This patch is not yet included because of the ongoing discussion. > > Chris H, Martin et all - How are we moving forward with this patch ? Well, I guess I'll go ahead and queue it up even through I am no fan of these dreadful driver-specific ioctl interfaces. I really wish the SCSI

[LSF/MM TOPIC] blk-mq priority based hctx selection

2018-01-15 Thread Keith Busch
For the storage track, I would like to propose a topic for differentiated blk-mq hardware contexts. Today, blk-mq considers all hardware contexts equal, and are selected based on the software's CPU context. There are use cases that benefit from having hardware context selection criteria beyond

RE: A qla2xxx commit cause Linux no response, has not fixed in lastest version 4.15-rc6

2018-01-15 Thread Changlimin
Hi Himanshu, The issue is: When insmod the qla2xxx.ko from 4.15-rc6, linux hang. I have git bisect the commits. The issue was introduced in commit: 726b85487067d7f5b23495bc33c484b8517c4074 qla2xxx: Add framework for async fabric discovery. The previous commit is good:

Re: [PATCH] drivers/scsi/qla2xxx: fix double free bug after firmware timeout

2018-01-15 Thread Madhani, Himanshu
Hi Max, > On Jan 15, 2018, at 12:37 PM, Max Kellermann wrote: > > On 2018/01/15 20:58, "Madhani, Himanshu" wrote: >> We have patch to prevent this double free in 4.16/scsi-queue >> already. > > No, let me repeat: this is a different bug! > >

Re: [PATCH] drivers/scsi/qla2xxx: fix double free bug after firmware timeout

2018-01-15 Thread Max Kellermann
On 2018/01/15 20:58, "Madhani, Himanshu" wrote: > We have patch to prevent this double free in 4.16/scsi-queue > already. No, let me repeat: this is a different bug! Your bug is about the free call after waiting for completion synchronously in

aacaid: Difference in `/sys` between 4.14.13 andout of tree driver 55022 (was: Driver version for PMC Adaptec HBA in Linux and from vendor)

2018-01-15 Thread Paul Menzel
Dear Raghava, Am 18.12.2017 um 19:09 schrieb Raghava Aditya Renukunta: -Original Message- From: Paul Menzel [mailto:pmen...@molgen.mpg.de] Sent: Saturday, December 16, 2017 1:39 AM […] Am 17.02.2017 um 20:29 schrieb Raghava Aditya Renukunta: […] Searching the vendor Web site,

[PATCH] scsi: handle ABORTED_COMMAND on Fujitsu ETERNUS

2018-01-15 Thread Martin Wilck
On Fujitsu ETERNUS systems, sense code ABORTED COMMAND with ASC/Q C1/01 is used to indicate temporary condition where the storage-internal path to a target is switched from one controller to another. SCSI commands that return with this error code must be retried unconditionally (i.e. without the

Re: [PATCH] drivers/scsi/qla2xxx: fix double free bug after firmware timeout

2018-01-15 Thread Madhani, Himanshu
Hi Max, > On Jan 15, 2018, at 9:26 AM, Max Kellermann wrote: > > When the qla2xxx firmware is unavailable, eventually > qla2x00_sp_timeout() is reached, which calls the timeout function and > frees the srb_t instance. > > The timeout function always resolves to

Re: [PATCH] mptfusion: use strlcpy() instead of strncpy()

2018-01-15 Thread Andy Shevchenko
On Fri, Jan 12, 2018 at 5:09 PM, Bart Van Assche wrote: > On Fri, 2018-01-12 at 15:45 +0200, Andy Shevchenko wrote: >> On Fri, Jan 12, 2018 at 1:46 PM, Wang wrote: >> This one is false positive. >> > + strlcpy (karg.name, ioc->name,

[PATCH] drivers/scsi/qla2xxx: fix double free bug after firmware timeout

2018-01-15 Thread Max Kellermann
When the qla2xxx firmware is unavailable, eventually qla2x00_sp_timeout() is reached, which calls the timeout function and frees the srb_t instance. The timeout function always resolves to qla2x00_async_iocb_timeout(), which invokes another callback function called "done". All of these

[PATCH v1] mptfusion: Use snprintf() instead of open coded divisions

2018-01-15 Thread Andy Shevchenko
Numbers up to 100 snprintf() prints without using a division. Besides that the code looks more readable. Signed-off-by: Andy Shevchenko --- drivers/message/fusion/mptctl.c | 25 +++-- 1 file changed, 7 insertions(+), 18 deletions(-) diff

Re: A qla2xxx commit cause Linux no response, has not fixed in lastest version 4.15-rc6

2018-01-15 Thread Madhani, Himanshu
Hi Nic, Chang, > On Jan 12, 2018, at 9:28 PM, Nicholas A. Bellinger > wrote: > > Hi Chang & Co, > > (Adding list + Himanshu CC') > > On Sun, 2018-01-07 at 10:21 +, Changlimin wrote: >> Hi, >> It seems the qla2xxx commit cause Linux no response, has not fixed in >>

[PATCH] scsi: devinfo: fix format of the device list

2018-01-15 Thread Xose Vazquez Perez
Replace "" with NULL for product revision level, and merge TEXEL duplicate entries. Cc: Hannes Reinecke Cc: Martin K. Petersen Cc: James E.J. Bottomley Cc: SCSI ML Signed-off-by: Xose Vazquez Perez

LSF/MM 2018: Call for Proposals

2018-01-15 Thread Johannes Weiner
The annual Linux Storage, Filesystem and Memory Management (LSF/MM) Summit for 2018 will be held from April 23-25 at the Deer Valley Lodges in Park City, Utah. LSF/MM is an invitation-only technical workshop to map out improvements to the Linux storage, filesystem and memory management subsystems

Re: HP ProLiant DL360p Gen8 hangs with Linux 4.13+.

2018-01-15 Thread Laurence Oberman
On Mon, 2018-01-15 at 07:01 -0800, Hellwig, Christoph wrote: > Laurence, I'm a little confused.  Is this the same issue we just > fixed, > or is this an issue showing up with the fix? > > E.g. what kernel versions or trees are affected? Hello Christoph This showed up on a combined tree of

Re: [PATCH] blk_rq_map_user_iov: fix error override

2018-01-15 Thread Jens Axboe
On 1/14/18 3:00 PM, Douglas Gilbert wrote: > During stress tests by syzkaller on the sg driver the block layer > infrequently returns EINVAL. Closer inspection shows the block > layer was trying to return ENOMEM (which is much more > understandable) but for some reason overroad that useful error.

Re: [PATCH 23/27] drbd: make intelligent use of blkdev_issue_zeroout

2018-01-15 Thread Mike Snitzer
On Mon, Jan 15 2018 at 7:46am -0500, Lars Ellenberg wrote: > As I understood it, > blkdev_issue_zeroout() was supposed to "always try to unmap", > deprovision, the relevant region, and zero-out any unaligned > head or tail, just like my work around above was doing. >

Re: HP ProLiant DL360p Gen8 hangs with Linux 4.13+.

2018-01-15 Thread Hellwig, Christoph
Laurence, I'm a little confused. Is this the same issue we just fixed, or is this an issue showing up with the fix? E.g. what kernel versions or trees are affected?

Re: [Drbd-dev] [PATCH 23/27] drbd: make intelligent use of blkdev_issue_zeroout

2018-01-15 Thread Lars Ellenberg
On Sat, Jan 13, 2018 at 12:46:40AM +, Eric Wheeler wrote: > Hello All, > > We just noticed that discards to DRBD devices backed by dm-thin devices > are fully allocating the thin blocks. > > This behavior does not exist before > ee472d83 block: add a flags argument to

Re: HP ProLiant DL360p Gen8 hangs with Linux 4.13+.

2018-01-15 Thread Laurence Oberman
On Mon, 2018-01-15 at 20:17 +0800, Ming Lei wrote: > On Sun, Jan 14, 2018 at 06:40:40PM -0500, Laurence Oberman wrote: > > On Thu, 2018-01-04 at 14:32 -0800, Vinson Lee wrote: > > > Hi. > > > > > > HP ProLiant DL360p Gen8 with Smart Array P420i boots to the login > > > prompt and hangs with Linux

RE: [RFC 1/2] mpt3sas/megaraid_sas : irq poll to avoid CPU hard and soft lockups

2018-01-15 Thread Kashyap Desai
> -Original Message- > From: Johannes Thumshirn [mailto:jthumsh...@suse.de] > Sent: Monday, January 15, 2018 5:49 PM > To: Kashyap Desai > Cc: linux-scsi@vger.kernel.org; Peter Rivera > Subject: Re: [RFC 1/2] mpt3sas/megaraid_sas : irq poll to avoid CPU hard and > soft lockups > > On Mon,

Re: [RFC 1/2] mpt3sas/megaraid_sas : irq poll to avoid CPU hard and soft lockups

2018-01-15 Thread Johannes Thumshirn
On Mon, Jan 15, 2018 at 05:42:35PM +0530, Kashyap Desai wrote: > Patch for Fix-1 explained in PATCH 0. Ahm, PATCH 0 a.k.a the cover letter doesn't get merged so the git history won't have an explanation at all. Please write a proper commit message. Thanks, Johannes -- Johannes

Re: HP ProLiant DL360p Gen8 hangs with Linux 4.13+.

2018-01-15 Thread Ming Lei
On Sun, Jan 14, 2018 at 06:40:40PM -0500, Laurence Oberman wrote: > On Thu, 2018-01-04 at 14:32 -0800, Vinson Lee wrote: > > Hi. > > > > HP ProLiant DL360p Gen8 with Smart Array P420i boots to the login > > prompt and hangs with Linux 4.13 or later. I cannot log in on console > > or SSH into the

RE: [PATCH 13/14] megaraid_sas: NVME passthru command support

2018-01-15 Thread Kashyap Desai
This patch is not yet included because of the ongoing discussion. Chris H, Martin et all - How are we moving forward with this patch ? Thanks, Kashyap > -Original Message- > From: Sathya Prakash Veerichetty [mailto:sathya.prak...@broadcom.com] > Sent: Thursday, January 11, 2018 11:37

liramandoz...@gmail.com

2018-01-15 Thread M
liramandoz...@gmail.com<>

[RFC 2/2] mpt3sas/megaraid_sas : reply queue load balancing

2018-01-15 Thread Kashyap Desai
Patch for Fix-2 explained in PATCH 0. Signed-off-by: Kashyap Desai < kashyap.de...@broadcom.com> --- mpt3sas/mpt3sas_base.c | 5 - mpt3sas/mpt3sas_base.h | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/mpt3sas/mpt3sas_base.c b/mpt3sas/mpt3sas_base.c index

[RFC 1/2] mpt3sas/megaraid_sas : irq poll to avoid CPU hard and soft lockups

2018-01-15 Thread Kashyap Desai
Patch for Fix-1 explained in PATCH 0. Signed-off-by: Kashyap Desai < kashyap.de...@broadcom.com> --- mpt3sas/mpt3sas_base.c | 67 ++ mpt3sas/mpt3sas_base.h | 4 +++ 2 files changed, 55 insertions(+), 17 deletions(-) diff --git

[RFC 0/2] mpt3sas/megaraid_sas : irq poll and load balancing of reply queue

2018-01-15 Thread Kashyap Desai
Hi All - We have seen cpu lock up issue from fields if system has greater (more than 96) logical cpu count. SAS3.0 controller (Invader series) supports at max 96 msix vector and SAS3.5 product (Ventura) supports at max 128 msix vectors. This may be a generic issue (if PCI device support