Re: [PATCH v2 2/7] drivers/base: Verify struct device locking requirements at runtime

2018-10-17 Thread Greg Kroah-Hartman
On Wed, Oct 17, 2018 at 04:40:01PM -0700, Bart Van Assche wrote: > Make sure that a complaint appears in the kernel log if the driver core > locking assumptions are violated. > > Cc: Lee Duncan > Cc: Hannes Reinecke > Cc: Luis Chamberlain > Cc: Johannes Thumshirn > Cc: Christoph Hellwig >

Re: [PATCH v2 1/7] drivers/base: Fix a race condition in the device probing code

2018-10-17 Thread Greg Kroah-Hartman
On Wed, Oct 17, 2018 at 04:40:00PM -0700, Bart Van Assche wrote: > This patch avoids that complaints similar to the following appear in the > system log: > > sysfs: cannot create duplicate filename > '/devices/pseudo_0/adapter0/host3/target3:0:0/3:0:0:133/driver' > > Cc: Lee Duncan > Cc:

Re: [PATCH v2 3/7] drivers/base: Probe devices concurrently if requested by the driver

2018-10-17 Thread Greg KH
On Wed, Oct 17, 2018 at 05:54:56PM -0700, Dan Williams wrote: > On Wed, Oct 17, 2018 at 4:41 PM Bart Van Assche wrote: > > > > Instead of probing devices sequentially in the PROBE_PREFER_ASYNCHRONOUS > > mode, scan devices concurrently. This helps when the wall clock time for > > a single probe

[PATCH -next] scsi: hisi_sas: Fix missing unlock on error in hisi_sas_phy_read32()

2018-10-17 Thread Wei Yongjun
Add the missing unlock before return from function hisi_sas_phy_read32() in the error handling case. Fixes: 784b46b7cba0 ("scsi: hisi_sas: Use block layer tag instead for IPTT") Signed-off-by: Wei Yongjun --- drivers/scsi/hisi_sas/hisi_sas_v2_hw.c | 4 +++- 1 file changed, 3 insertions(+), 1

Re: [PATCH] fnic_scsi: replace gross legacy tag hack with blk-mq hack

2018-10-17 Thread Martin K. Petersen
Jens, > Would be nice to fix up the SCSI midlayer instead, but this will > do for now. Applied to 4.20/scsi-queue. -- Martin K. Petersen Oracle Linux Engineering

Re: switch most scsi drivers to the generic DMA API v2

2018-10-17 Thread Martin K. Petersen
Christoph, > A lot of SCSI drivers still use the legacy PCI DMA API. While a few > of them have various oddities that should be deal with separately, > most of them can be very trivially converted over. Applied to 4.20/scsi-queue. Thanks! -- Martin K. Petersen Oracle Linux Engineering

Re: dma-related cleanups for dc95x

2018-10-17 Thread Martin K. Petersen
Christoph, > A few bits found when auditing DMA API use. The first list cleanup > isn't directly related, but I had to to do this first to fully > understand the code.. Applied to 4.20/scsi-queue. Thank you! -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH] scsi_error: Remove scsi_block_when_processing_errors: message

2018-10-17 Thread Martin K. Petersen
Laurence, Patch completely mangled by your mailer, please use git send-email for submissions. I applied the change by hand. Thanks! -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH v2 3/7] drivers/base: Probe devices concurrently if requested by the driver

2018-10-17 Thread Dan Williams
On Wed, Oct 17, 2018 at 4:41 PM Bart Van Assche wrote: > > Instead of probing devices sequentially in the PROBE_PREFER_ASYNCHRONOUS > mode, scan devices concurrently. This helps when the wall clock time for > a single probe is significantly above the CPU time needed for a single > probe, e.g.

Re: [PATCH] scsi: ibmvscsi_tgt: Remove target_wait_for_sess_cmd()

2018-10-17 Thread Martin K. Petersen
Bryant, > There is currently a bug with the driver where there is never a call > to target_sess_cmd_list_set_waiting(), it only called > target_wait_for_sess_cmd(), which basically means that the > sess_wait_list would always be empty. > > Thus, list_empty(>sess_wait_list) = true, (eg: no

[PATCH v2 6/7] sd: Rely on the driver core for asynchronous probing

2018-10-17 Thread Bart Van Assche
As explained during the LSF/MM session about increasing SCSI disk probing concurrency, the problems with the current probing approach are as follows: - The driver core is unaware of asynchronous SCSI LUN probing. wait_for_device_probe() waits for all asynchronous probes except asynchronous

[PATCH v2 3/7] drivers/base: Probe devices concurrently if requested by the driver

2018-10-17 Thread Bart Van Assche
Instead of probing devices sequentially in the PROBE_PREFER_ASYNCHRONOUS mode, scan devices concurrently. This helps when the wall clock time for a single probe is significantly above the CPU time needed for a single probe, e.g. when scanning SCSI LUNs over a storage network. Cc: Lee Duncan Cc:

[PATCH v2 7/7] sd: Inline sd_probe_part2()

2018-10-17 Thread Bart Van Assche
This patch does not change any functionality. Cc: Lee Duncan Cc: Hannes Reinecke Cc: Luis Chamberlain Cc: Johannes Thumshirn Cc: Christoph Hellwig Cc: Greg Kroah-Hartman Signed-off-by: Bart Van Assche --- drivers/scsi/sd.c | 101 -- 1 file

[PATCH v2 2/7] drivers/base: Verify struct device locking requirements at runtime

2018-10-17 Thread Bart Van Assche
Make sure that a complaint appears in the kernel log if the driver core locking assumptions are violated. Cc: Lee Duncan Cc: Hannes Reinecke Cc: Luis Chamberlain Cc: Johannes Thumshirn Cc: Christoph Hellwig Cc: Greg Kroah-Hartman Signed-off-by: Bart Van Assche --- drivers/base/dd.c |

[PATCH v2 4/7] drivers/base, __device_release_driver(): Do not wait for asynchronous probing

2018-10-17 Thread Bart Van Assche
Since __device_release_driver() is called with the device lock held and since the same device lock is obtained by the functions that perform asynchronous probing (driver_attach_async() and __device_attach_async_helper()), asynchronous probing is already serialized against

[PATCH v2 5/7] sd: Avoid that hibernation triggers a kernel warning

2018-10-17 Thread Bart Van Assche
Although the power management code never calls the system-wide and runtime suspend callbacks concurrently, runtime power state changes can happen while the system is being suspended or resumed. See also the dpm_suspend() and dpm_resume() calls in hibernation_snapshot(). Make sure the sd driver

[PATCH v2 1/7] drivers/base: Fix a race condition in the device probing code

2018-10-17 Thread Bart Van Assche
This patch avoids that complaints similar to the following appear in the system log: sysfs: cannot create duplicate filename '/devices/pseudo_0/adapter0/host3/target3:0:0/3:0:0:133/driver' Cc: Lee Duncan Cc: Hannes Reinecke Cc: Luis Chamberlain Cc: Johannes Thumshirn Cc: Christoph Hellwig

[PATCH v2 0/7] Increase SCSI disk probing concurrency

2018-10-17 Thread Bart Van Assche
Hello Martin, During the 2018 edition of LSF/MM there was a session about increasing SCSI disk probing concurrency. This patch series implements what has been proposed during that session, namely: - Make sure that the driver core is aware of asynchronous SCSI LUN probing. - Avoid unnecessary

Re: [PATCH] scsi/sd: Avoid that hibernation triggers a kernel warning

2018-10-17 Thread Bart Van Assche
On Wed, 2018-10-17 at 13:27 -0700, Bart Van Assche wrote: > Although the power management code never calls the system-wide and runtime > suspend callbacks concurrently, runtime power state changes can happen > while the system is being suspended or resumed. See also the dpm_suspend() > and

Re: SCSI qla2xxx: tcm_qla2xxx target server code regession

2018-10-17 Thread Laurence Oberman
On Mon, 2018-10-15 at 08:51 -0400, Laurence Oberman wrote: > On Sat, 2018-10-13 at 10:42 -0400, Laurence Oberman wrote: > > On Fri, 2018-10-12 at 17:51 -0700, Bart Van Assche wrote: > > > On 10/12/18 1:36 PM, Laurence Oberman wrote: > > >  > While I have for the longest time used 4.5 as a base for

[PATCH] scsi/sd: Avoid that hibernation triggers a kernel warning

2018-10-17 Thread Bart Van Assche
Although the power management code never calls the system-wide and runtime suspend callbacks concurrently, runtime power state changes can happen while the system is being suspended or resumed. See also the dpm_suspend() and dpm_resume() calls in hibernation_snapshot(). Make sure the sd driver

Re: [PATCH] bsg: convert to use blk-mq

2018-10-17 Thread Jens Axboe
On 10/17/18 12:08 PM, Douglas Gilbert wrote: > On 2018-10-17 11:55 a.m., Benjamin Block wrote: >> On Tue, Oct 16, 2018 at 08:43:01AM -0600, Jens Axboe wrote: >>> Requires a few changes to the FC transport class as well. >>> >>> Cc: Johannes Thumshirn >>> Cc: Benjamin Block >>> Cc:

RE: aacraid: latest driver results in Host adapter abort request. / Outstanding commands on (0,0,0,0):

2018-10-17 Thread Dave.Carroll
> > Am 17.10.18 um 10:14 schrieb Christoph Hellwig: > > On Tue, Oct 16, 2018 at 07:33:53PM +0200, Stefan Priebe - Profihost AG > wrote: > >> Hi David, > >> > >> can you give as any hint? We're running aroud 120 Adaptec Controllers > >> and i don't want to replace them all... > > > > 4.15 had a

Re: [PATCH] bsg: convert to use blk-mq

2018-10-17 Thread Douglas Gilbert
On 2018-10-17 11:55 a.m., Benjamin Block wrote: On Tue, Oct 16, 2018 at 08:43:01AM -0600, Jens Axboe wrote: Requires a few changes to the FC transport class as well. Cc: Johannes Thumshirn Cc: Benjamin Block Cc: linux-scsi@vger.kernel.org Signed-off-by: Jens Axboe --- block/bsg-lib.c

Re: [PATCH] scsi: ibmvscsi_tgt: Remove target_wait_for_sess_cmd()

2018-10-17 Thread Mike Christie
On 10/16/2018 12:34 PM, Ly, Bryant wrote: > From: "Bryant G. Ly" > > There is currently a bug with the driver where there is never a > call to target_sess_cmd_list_set_waiting(), it only called > target_wait_for_sess_cmd(), which basically means that the > sess_wait_list would always be empty. >

For your photos 25

2018-10-17 Thread Jenny
We provide photoshop services to some of the companies from around the world. Some online stores use our services for retouching portraits, jewelry, apparels, furnitures etc. Here are the details of what we provide: Clipping path Deep etching Image masking Portrait retouching Jewelry retouching

For your photos 20

2018-10-17 Thread Jenny
We provide photoshop services to some of the companies from around the world. Some online stores use our services for retouching portraits, jewelry, apparels, furnitures etc. Here are the details of what we provide: Clipping path for photos Deep etching for photos Image masking for photos

Re: [PATCH] bsg: convert to use blk-mq

2018-10-17 Thread Jens Axboe
On 10/17/18 9:55 AM, Benjamin Block wrote: > On Tue, Oct 16, 2018 at 08:43:01AM -0600, Jens Axboe wrote: >> Requires a few changes to the FC transport class as well. >> >> Cc: Johannes Thumshirn >> Cc: Benjamin Block >> Cc: linux-scsi@vger.kernel.org >> Signed-off-by: Jens Axboe >> --- >>

Re: [PATCH] bsg: convert to use blk-mq

2018-10-17 Thread Benjamin Block
On Tue, Oct 16, 2018 at 08:43:01AM -0600, Jens Axboe wrote: > Requires a few changes to the FC transport class as well. > > Cc: Johannes Thumshirn > Cc: Benjamin Block > Cc: linux-scsi@vger.kernel.org > Signed-off-by: Jens Axboe > --- > block/bsg-lib.c | 102

[RFC PATCH 2/3] target: remove unused session PDU-format-errors metric

2018-10-17 Thread David Disseldorp
Signed-off-by: David Disseldorp --- drivers/target/iscsi/iscsi_target_stat.c | 14 +- include/target/iscsi/iscsi_target_stat.h | 2 -- 2 files changed, 1 insertion(+), 15 deletions(-) diff --git a/drivers/target/iscsi/iscsi_target_stat.c b/drivers/target/iscsi/iscsi_target_stat.c

[RFC PATCH 3/3] target: remove cumulative session errors metric

2018-10-17 Thread David Disseldorp
The cumulative session errors metric matches cxn_timeout_errors, so drop the duplicate. Signed-off-by: David Disseldorp --- drivers/target/iscsi/iscsi_target_stat.c | 16 1 file changed, 16 deletions(-) diff --git a/drivers/target/iscsi/iscsi_target_stat.c

[RFC PATCH 1/3] target: remove unused session digest-errors metric

2018-10-17 Thread David Disseldorp
Signed-off-by: David Disseldorp --- drivers/target/iscsi/iscsi_target_stat.c | 14 +- include/target/iscsi/iscsi_target_stat.h | 2 -- 2 files changed, 1 insertion(+), 15 deletions(-) diff --git a/drivers/target/iscsi/iscsi_target_stat.c b/drivers/target/iscsi/iscsi_target_stat.c

[RFC PATCH 0/3] target: remove some unused stats

2018-10-17 Thread David Disseldorp
This patchset removes a couple of unused error stat counters and a redundant cumulative counter. I've tagged this patchset RFC, as it may be considered a kernel<->user (configfs) API change. Cheers, David --- drivers/target/iscsi/iscsi_target_stat.c | 40

Re: [PATCHv2] ib_srp: Remove WARN_ON in srp_terminate_io()

2018-10-17 Thread Doug Ledford
On Wed, 2018-10-17 at 11:30 -0400, Doug Ledford wrote: > On Wed, 2018-10-17 at 07:43 -0700, Bart Van Assche wrote: > > On 10/17/18 12:20 AM, Hannes Reinecke wrote: > > > The WARN_ON() is pointless as the rport is placed in > > > SDEV_TRANSPORT_OFFLINE > > > at that time, so no new commands can be

Re: [PATCHv2] ib_srp: Remove WARN_ON in srp_terminate_io()

2018-10-17 Thread Doug Ledford
On Wed, 2018-10-17 at 07:43 -0700, Bart Van Assche wrote: > On 10/17/18 12:20 AM, Hannes Reinecke wrote: > > The WARN_ON() is pointless as the rport is placed in SDEV_TRANSPORT_OFFLINE > > at that time, so no new commands can be submitted via srp_queuecommand() > > > > Signed-off-by: Hannes

Re: [PATCHv2] ib_srp: Remove WARN_ON in srp_terminate_io()

2018-10-17 Thread Bart Van Assche
On 10/17/18 12:20 AM, Hannes Reinecke wrote: The WARN_ON() is pointless as the rport is placed in SDEV_TRANSPORT_OFFLINE at that time, so no new commands can be submitted via srp_queuecommand() Signed-off-by: Hannes Reinecke Reviewed-by: Jens Axboe Reviewed-by: Johannes Thumshirn ---

Re: [PATCH] scsi_error: Remove scsi_block_when_processing_errors: message

2018-10-17 Thread Ewan Milne
- Original Message - From: "Laurence Oberman" To: "linux-scsi" Cc: "Hannes Reinecke" , "Ewan Milne" , "Bart Van Assche" , "James Bottomley" Sent: Tuesday, October 16, 2018 4:39:16 PM Subject: [PATCH] scsi_error: Remove scsi_block_when_processing_errors: message This message floods

Re: [PATCH] scsi_error: Remove scsi_block_when_processing_errors: message

2018-10-17 Thread Dupuis, Chad
On Tue, 16 Oct 2018, 4:39pm, Laurence Oberman wrote: > External Email > > This message floods the log when enabling mask 0x7 for > /proc/sys/dev/scsi/logging_level > kernel: scsi_block_when_processing_errors: rtn: 1 > Its not needed and makes tracing just scsi_eh* messages way too

Re: aacraid: latest driver results in Host adapter abort request. / Outstanding commands on (0,0,0,0):

2018-10-17 Thread Stefan Priebe - Profihost AG
Am 17.10.18 um 10:14 schrieb Christoph Hellwig: > On Tue, Oct 16, 2018 at 07:33:53PM +0200, Stefan Priebe - Profihost AG wrote: >> Hi David, >> >> can you give as any hint? We're running aroud 120 Adaptec Controllers >> and i don't want to replace them all... > > 4.15 had a fair amount of

Re: aacraid: latest driver results in Host adapter abort request. / Outstanding commands on (0,0,0,0):

2018-10-17 Thread Christoph Hellwig
On Tue, Oct 16, 2018 at 07:33:53PM +0200, Stefan Priebe - Profihost AG wrote: > Hi David, > > can you give as any hint? We're running aroud 120 Adaptec Controllers > and i don't want to replace them all... 4.15 had a fair amount of aacraid changes. You can't bisect them by any chance?

[PATCH v3] scsi: tcmu: avoid cmd/qfull timers updated whenever a new cmd comes

2018-10-17 Thread xiubli
From: Xiubo Li Currently there has one cmd timeout timer and one qfull timer for each udev, and whenever there has any new coming cmd it will update the cmd timer or qfull timer. And for some corner case the timers are always working only for the ringbuffer's and full queue's newest cmd. That's

[PATCHv2] ib_srp: Remove WARN_ON in srp_terminate_io()

2018-10-17 Thread Hannes Reinecke
The WARN_ON() is pointless as the rport is placed in SDEV_TRANSPORT_OFFLINE at that time, so no new commands can be submitted via srp_queuecommand() Signed-off-by: Hannes Reinecke Reviewed-by: Jens Axboe Reviewed-by: Johannes Thumshirn --- drivers/infiniband/ulp/srp/ib_srp.c | 7 --- 1

Re: [PATCH] ib_srp: Remove WARN_ON in srp_terminate_io()

2018-10-17 Thread Christoph Hellwig
> diff --git a/drivers/nvme/host/fc.c b/drivers/nvme/host/fc.c > index e52b9d3c0bd6..c777b36ba62a 100644 > --- a/drivers/nvme/host/fc.c > +++ b/drivers/nvme/host/fc.c > @@ -483,6 +483,8 @@ nvme_fc_signal_discovery_scan(struct nvme_fc_lport *lport, > char hostaddr[FCNVME_TRADDR_LENGTH];/*

[PATCH] ib_srp: Remove WARN_ON in srp_terminate_io()

2018-10-17 Thread Hannes Reinecke
The WARN_ON() is pointless as the rport is placed in SDEV_TRANSPORT_OFFLINE at that time, so no new commands can be submitted via srp_queuecommand() Signed-off-by: Hannes Reinecke Reviewed-by: Jens Axboe Reviewed-by: Johannes Thumshirn --- drivers/infiniband/ulp/srp/ib_srp.c | 7 ---

[PATCH V2 19/19] megaraid_sas: Update driver version

2018-10-17 Thread Shivasharan S
Signed-off-by: Shivasharan S --- drivers/scsi/megaraid/megaraid_sas.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/scsi/megaraid/megaraid_sas.h b/drivers/scsi/megaraid/megaraid_sas.h index 994c6ac6f920..8edba2227cd3 100644 ---

[PATCH V2 18/19] megaraid_sas: modify max supported lds related print

2018-10-17 Thread Shivasharan S
The print related to number of VDs that a particular firmware supports is misleading in some cases. Even though supportMaxExtLDs is set, certain firmware profiles only supports upto 64VDs. Signed-off-by: Shivasharan S --- drivers/scsi/megaraid/megaraid_sas_base.c | 6 +++--- 1 file changed, 3

[PATCH V2 16/19] megaraid_sas: increase timeout for IOC INIT to 180seconds

2018-10-17 Thread Shivasharan S
IOC INIT frame needs to be fired with a timeout of 180seconds. Signed-off-by: Shivasharan S --- drivers/scsi/megaraid/megaraid_sas_fusion.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/megaraid/megaraid_sas_fusion.c

[PATCH V2 15/19] megaraid_sas: Remove double endian conversion

2018-10-17 Thread Shivasharan S
Signed-off-by: Shivasharan S --- drivers/scsi/megaraid/megaraid_sas_fusion.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/scsi/megaraid/megaraid_sas_fusion.c b/drivers/scsi/megaraid/megaraid_sas_fusion.c index b13fd1c601d7..a26abc041435 100644 ---

[PATCH V2 14/19] megaraid_sas: Re-use max_mfi_cmds to calculate queue sizes

2018-10-17 Thread Shivasharan S
In megasas_init_adapter_fusion(), max_mfi_cmds is being calcuated as (MEGASAS_FUSION_INTERNAL_CMDS + MEGASAS_FUSION_IOCTL_CMDS). max_mfi_cmds can be used in megasas_configure_queue_sizes. Signed-off-by: Shivasharan S --- drivers/scsi/megaraid/megaraid_sas_fusion.c | 4 +--- 1 file changed, 1

[PATCH V2 17/19] megaraid_sas: remove unused macro

2018-10-17 Thread Shivasharan S
Signed-off-by: Shivasharan S --- drivers/scsi/megaraid/megaraid_sas.h | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/scsi/megaraid/megaraid_sas.h b/drivers/scsi/megaraid/megaraid_sas.h index 2c044106c35f..994c6ac6f920 100644 --- a/drivers/scsi/megaraid/megaraid_sas.h +++

[PATCH V2 11/19] megaraid_sas: optimize raid context access in IO path

2018-10-17 Thread Shivasharan S
No functional change. Use local variables when accessing raid context in IO path. Improves code readability. Signed-off-by: Shivasharan S --- drivers/scsi/megaraid/megaraid_sas_fusion.c | 74 - 1 file changed, 31 insertions(+), 43 deletions(-) diff --git

[PATCH V2 12/19] megaraid_sas: Remove spin lock for dpc operation

2018-10-17 Thread Shivasharan S
Optimization - No need to hold hba_lock in dpc context for reading atomic variable. Signed-off-by: Shivasharan S --- drivers/scsi/megaraid/megaraid_sas_fusion.c | 7 +-- 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/scsi/megaraid/megaraid_sas_fusion.c

[PATCH V2 10/19] megaraid_sas: Fail init if heartbeat timer fails

2018-10-17 Thread Shivasharan S
When driver fails to start the heartbeat timer, exit from FW init. Signed-off-by: Shivasharan S --- drivers/scsi/megaraid/megaraid_sas_base.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/scsi/megaraid/megaraid_sas_base.c

[PATCH V2 13/19] megaraid_sas: Rename scratch_pad registers

2018-10-17 Thread Shivasharan S
No functional change. Rename the scratch pad registers to match firmware headers. Signed-off-by: Sumit Saxena Signed-off-by: Shivasharan S --- drivers/scsi/megaraid/megaraid_sas.h| 9 +++ drivers/scsi/megaraid/megaraid_sas_base.c | 40 +--

[PATCH V2 09/19] megaraid_sas: For SRIOV, do not set STOP_ADP bit

2018-10-17 Thread Shivasharan S
Fix - For SRIOV based adapters, driver should not set the STOP_ADP bit as part of kill adapter. Signed-off-by: Shivasharan S --- drivers/scsi/megaraid/megaraid_sas_base.c | 8 +--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/drivers/scsi/megaraid/megaraid_sas_base.c

[PATCH V2 08/19] megaraid_sas: Fix combined reply queue mode detection

2018-10-17 Thread Shivasharan S
Fix - For Invader series, if FW supports more than 8 MSI-x vectors, driver needs to enable combined reply queue mode. For Ventura series, driver enables combined reply queue mode in case of more than 16 MSI-x vectors. Signed-off-by: Sumit Saxena Signed-off-by: Shivasharan S ---

[PATCH V2 07/19] megaraid_sas: Fix module parameter description

2018-10-17 Thread Shivasharan S
Module parameter description for rdpq_enable incorrectly lists the default as enabled. Also, provide range of valid values for resetwaittime in the description. Signed-off-by: Shivasharan S --- drivers/scsi/megaraid/megaraid_sas_base.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-)

[PATCH V2 01/19] megaraid_sas: Add watchdog thread to detect Firmware fault

2018-10-17 Thread Shivasharan S
Issue - Currently driver checks for Firmware state change from ISR context, and only when there are interrupts tied with no I/O completions. We have seen multiple cases where doorbell interrupts sent by firmware, to indicate FW state change are not processed by driver and it takes long time for

[PATCH V2 06/19] megaraid_sas: Fix goto labels in error handling

2018-10-17 Thread Shivasharan S
Fix - During init, if pci_alloc_irq_vectors() fails, the driver has not yet setup the IRQs. Fix the goto labels and error handling for this case. Signed-off-by: Shivasharan S --- drivers/scsi/megaraid/megaraid_sas_base.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git

[PATCH V2 05/19] megaraid_sas: Update copyright information

2018-10-17 Thread Shivasharan S
Change copyright to Broadcom Inc. Also update any references to Avago with Broadcom. Update copyright duration wherever required. Signed-off-by: Shivasharan S --- drivers/scsi/megaraid/megaraid_sas.h| 14 ++ drivers/scsi/megaraid/megaraid_sas_base.c | 18 --

[PATCH V2 02/19] megaraid_sas: Add support for FW snap dump

2018-10-17 Thread Shivasharan S
Latest firmware adds a mechanism to save firmware logs just before controller reset on pre-allocated internal controller DRAM. This feature is called snapdump which will help debugging firmware issues. This feature requires extra time and firmware reports these values through new driver interface.

[PATCH V2 03/19] megaraid_sas: Fix msleep granularity

2018-10-17 Thread Shivasharan S
Issue - In megasas_transition_to_ready() driver waits 180seconds for controller to change FW state. Here we are calling msleep(1) in a loop for this. As explained in timers-howto.txt, msleep(1) will actually sleep longer than 1ms. If a faulty controller is connected, we will end up waiting for

[PATCH V2 04/19] megaraid_sas: Add check for reset adapter bit

2018-10-17 Thread Shivasharan S
For SAS3 and later controllers, FW sets the reset adapter bit indicating the driver to perform a controller reset. Driver needs to check if this bit is set before doing a reset. This reduces the driver probe failure time to 180seconds in case there is a faulty controller connected. Signed-off-by:

[PATCH V2 00/19] megaraid_sas: Driver updates

2018-10-17 Thread Shivasharan S
Changes in V2: - Rebased the entire series on top of below patches - "scsi: megaraid_sas: fix a missing-check bug" "megaraid_sas: switch to generic DMA API" - Patch 2/19: Replace PCI DMA APIs with generic DMA APIs. Shivasharan S (19): megaraid_sas: Add watchdog thread to detect Firmware

Re: [PATCH] scsi_error: Remove scsi_block_when_processing_errors: message

2018-10-17 Thread Hannes Reinecke
On 10/16/18 10:39 PM, Laurence Oberman wrote: This message floods the log when enabling mask 0x7 for  /proc/sys/dev/scsi/logging_level kernel: scsi_block_when_processing_errors: rtn: 1 Its not needed and makes tracing just scsi_eh* messages way too verbose so get rid of it