Re: [PATCH 0/4] scsi: fixup dma_set_mask_and_coherent() calls

2019-02-15 Thread Christoph Hellwig
On Fri, Feb 15, 2019 at 08:43:55AM +0100, Christoph Hellwig wrote: > On Fri, Feb 15, 2019 at 07:55:39AM +0100, Hannes Reinecke wrote: > >> Yeah, there is a few more. And the sad part is as of a few kernel > >> release ago we shouldn't even need the fallback 32-bit dma mask > >> anymore - we've cle

[PATCH v3] fcoe: make use of fip_mode enum complete

2019-02-15 Thread Hannes Reinecke
From: Sedat Dilek commit 1917d42d14b7 ("fcoe: use enum for fip_mode") introduces a separate enum for the fip_mode that shall be used during initialisation handling until it is passed to fcoe_ctrl_link_up to set the initial fip_state. That change was incomplete and gcc quietly converted in various

Re: [PATCH 0/4] scsi: fixup dma_set_mask_and_coherent() calls

2019-02-15 Thread John Garry
On 15/02/2019 08:08, Christoph Hellwig wrote: On Fri, Feb 15, 2019 at 08:43:55AM +0100, Christoph Hellwig wrote: On Fri, Feb 15, 2019 at 07:55:39AM +0100, Hannes Reinecke wrote: Yeah, there is a few more. And the sad part is as of a few kernel release ago we shouldn't even need the fallback 32

[PATCH][V2] scsi: qla2xxx: remove redundant null check on pointer sess

2019-02-15 Thread Colin King
From: Colin Ian King The null check on pointer sess and the subsequent call is redundant as sess is null on all the the paths that lead to the out_term2 label. Hence the null check and the call can be removed. Also remove the redundant setting of sess to NULL as this is not required now. Detect

Re: [PATCH v3] fcoe: make use of fip_mode enum complete

2019-02-15 Thread kbuild test robot
Hi Sedat, Thank you for the patch! Yet something to improve: [auto build test ERROR on scsi/for-next] [also build test ERROR on v5.0-rc4 next-20190215] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux

[PATCH] scsi: megaraid_sas: return error when create DMA pool failed in megasas_alloc_cmds()

2019-02-15 Thread Jason Yan
when create DMA pool for cmd frames failed, we should return -ENOMEM, instead of 0. In some case in: megasas_init_adapter_fusion() -->megasas_alloc_cmds() -->megasas_create_frame_pool create DMA pool failed, --> megasas_free_cmds() [1] -->megasas_alloc_cmds_f

[PATCHv4] fcoe: make use of fip_mode enum complete

2019-02-15 Thread Hannes Reinecke
From: Sedat Dilek commit 1917d42d14b7 ("fcoe: use enum for fip_mode") introduces a separate enum for the fip_mode that shall be used during initialisation handling until it is passed to fcoe_ctrl_link_up to set the initial fip_state. That change was incomplete and gcc quietly converted in various

Re: [PATCH] sd: disable logical block provisioning if 'lbpme' is not set

2019-02-15 Thread Bart Van Assche
On Thu, 2019-02-14 at 22:15 +0100, Jean Delvare wrote: > From: Hannes Reinecke > > When evaluating the 'block limits' VPD page we need to check if > the 'lbpme' (logical block provisioning management enable) bit > is set in the READ CAPACITY (16) output. > If it isn't we can safely assume that we

kernel panic in late shutdown stage (after syncing) in _scsih_set_satl_pending() in mpt3sas

2019-02-15 Thread Michal Soltys
Hi, This basically happens on most shutdowns (and one of the ways to ensure it happens always is to for example change i/o schedulers after the boot via simple udev rules). Normally (on successful shutdown), the very last things displayed right after sync messages are "sending message unit reset

Re: [PATCHv4] fcoe: make use of fip_mode enum complete

2019-02-15 Thread Nick Desaulniers
On Fri, Feb 15, 2019 at 4:19 AM Hannes Reinecke wrote: > > From: Sedat Dilek > > commit 1917d42d14b7 ("fcoe: use enum for fip_mode") introduces a separate > enum for the fip_mode that shall be used during initialisation handling > until it is passed to fcoe_ctrl_link_up to set the initial fip_sta

Re: [PATCHv4] fcoe: make use of fip_mode enum complete

2019-02-15 Thread Nathan Chancellor
On Fri, Feb 15, 2019 at 01:19:20PM +0100, Hannes Reinecke wrote: > From: Sedat Dilek > > commit 1917d42d14b7 ("fcoe: use enum for fip_mode") introduces a separate > enum for the fip_mode that shall be used during initialisation handling > until it is passed to fcoe_ctrl_link_up to set the initial

Re: [PATCH V2 0/7] Add FOLL_LONGTERM to GUP fast and use it

2019-02-15 Thread Ira Weiny
> NOTE: This series depends on my clean up patch to remove the write parameter > from gup_fast_permitted()[1] > > HFI1, qib, and mthca, use get_user_pages_fast() due to it performance > advantages. These pages can be held for a significant time. But > get_user_pages_fast() does not protect again

[GIT PULL] SCSI fixes for 5.0-rc

2019-02-15 Thread James Bottomley
Two fairly small fixes: the qla one is a panic inducing use after free and the entropy fix may seem minor but it has had huge userspace impact thanks to an unrelated change in openssl that causes sshd to refuse logins until it has enough entropy for the session keys, which causes tens of minutes de

Re: [PATCH] scsi: libsas: Fix rphy phy_identifier for PHYs with end devices attached

2019-02-15 Thread dann frazier
On Fri, Feb 15, 2019 at 12:37:57AM +0800, John Garry wrote: > The sysfs phy_identifier attribute for a sas_end_device comes > from the rphy phy_identifier value. > > Currently this is not being set for rphys with an end device attached, > so we see incorrect symlinks from systemd disk/by-path: >

Re: [GIT PULL] SCSI fixes for 5.0-rc

2019-02-15 Thread pr-tracker-bot
The pull request you sent on Fri, 15 Feb 2019 11:17:11 -0800: > git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi.git scsi-fixes has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/5ded5871030eb75017639148da0a58931dfbfc25 Thank you! -- Deet-doot-dot, I am a bot. ht

[PATCH] scsi: aacraid: Fix missing break in switch statement

2019-02-15 Thread Gustavo A. R. Silva
Add missing break statement and fix identation issue. This bug was found thanks to the ongoing efforts to enable -Wimplicit-fallthrough. Fixes: 9cb62fa24e0d ("aacraid: Log firmware AIF messages") Cc: sta...@vger.kernel.org Signed-off-by: Gustavo A. R. Silva --- drivers/scsi/aacraid/commsup.c |

Re: [RESEND PATCH] libiscsi: Fix race between iscsi_xmit_task and iscsi_complete_task

2019-02-15 Thread Lee Duncan
On 2/12/19 9:21 PM, Bob Liu wrote: > From: Anoob Soman > > When a target sends Check Condition, whilst initiator is busy xmiting > re-queued data, could lead to race between iscsi_complete_task() and > iscsi_xmit_task() and eventually crashing with the following kernel > backtrace. > > [3326150.

Re: [PATCH 1/5] libiscsi: Use scsi_[gs]et_resid() where appropriate

2019-02-15 Thread Lee Duncan
On 2/8/19 1:24 PM, Bart Van Assche wrote: > This patch does not change any functionality. > > Cc: Lee Duncan > Cc: Chris Leech > Signed-off-by: Bart Van Assche > --- > drivers/scsi/libiscsi.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/scsi/libiscsi.c b/dr

Re: [LSF/MM TOPIC] : blktests: status, an expansion plan for the storage stack test framework

2019-02-15 Thread Lee Duncan
On 2/6/19 2:32 AM, Johannes Thumshirn wrote: > On 06/02/2019 06:21, Chaitanya Kulkarni wrote: >> Hi, >> >> Since discussion of the storage stack and device driver at the LSFMM 2017 >> (https://lwn.net/Articles/717699/), Omar Sandoval introduced a new framework >> "blktests" dedicated for Linux Ker

Re: [PATCH][V2] scsi: qla2xxx: remove redundant null check on pointer sess

2019-02-15 Thread Himanshu Madhani
Hi Colin, On 2/15/19, 1:52 AM, "Colin King" wrote: External Email From: Colin Ian King The null check on pointer sess and the subsequent call is redundant as sess is null on all the the paths that lead to the out_term2 label. Hence the null check and the call can

[PATCH v3 09/11] qla2xxx: Fix code indentation for qla27xx_fwdt_entry

2019-02-15 Thread Himanshu Madhani
This patch fixes following checkpatch ERROR ERROR: space prohibited before that ',' (ctx:WxW) No change is functionality due to this patch. Signed-off-by: Himanshu Madhani --- drivers/scsi/qla2xxx/qla_tmpl.c | 46 - 1 file changed, 23 insertions(+), 23

[PATCH v3 10/11] qla2xxx: Add new FW dump template entry types

2019-02-15 Thread Himanshu Madhani
From: Joe Carnuccio This patch adds new firmware dump template entries for ISP27XX firmware dump. Signed-off-by: Joe Carnuccio Signed-off-by: Himanshu Madhani --- drivers/scsi/qla2xxx/qla_tmpl.c | 191 +--- drivers/scsi/qla2xxx/qla_tmpl.h | 26 +- 2 fi

[PATCH v3 07/11] qla2xxx: Prevent SysFS access when chip is down

2019-02-15 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 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/scsi/qla2xxx/qla_attr

[PATCH v3 06/11] qla2xxx: Add support for setting port speed

2019-02-15 Thread Himanshu Madhani
From: Anil Gurumurthy This patch adds SysFS node 1. There is a new sysfs node port_speed 2. The possible values are 2(Auto neg), 8, 16, 32 3. A value outside of the above defaults to Auto neg 4. Any update to the setting causes a link toggle 5. This feature is currently only for ISP27xx Signed-

[PATCH v3 00/11] qla2xxx: Misc bug fixes for the driver

2019-02-15 Thread Himanshu Madhani
Hi Martin, This series has misc bug fixes which includes cleanup for FC-NVMe code and added first burst support for FC-NVMe devices. Other patches included in the series adds new SysFS hook for setting port speed and patch to prevent access to SysFS hook whle chip is down. Please apply this ser

[PATCH v3 01/11] qla2xxx: Fix LUN discovery if loop id is not assigned yet by firmware

2019-02-15 Thread Himanshu Madhani
This patch fixes LUN discovery when loop ID is not yet assigned by the firmware during driver load/sg_reset operations. Driver will now search for new loop id before retrying login. Fixes: 48acad099074 ("scsi: qla2xxx: Fix N2N link re-connect") Cc: sta...@vger.kernel.org #4.19 Signed-off-by: Himan

[PATCH v3 02/11] qla2xxx: Add First Burst support for FC-NVMe devices

2019-02-15 Thread Himanshu Madhani
From: Darren Trapp Add Support for First Burst for FC-NVMe protocol. This feature requires First Burst support in the firmware. Signed-off-by: Darren Trapp Signed-off-by: Himanshu Madhani --- drivers/scsi/qla2xxx/qla_def.h | 4 drivers/scsi/qla2xxx/qla_init.c | 6 ++ drivers/scsi/

[PATCH v3 05/11] qla2xxx: Prevent multiple ADISC commands per session

2019-02-15 Thread Himanshu Madhani
From: Quinn Tran add check to allow 1 discovery command per session to be sent. Signed-off-by: Quinn Tran Signed-off-by: Himanshu Madhani --- drivers/scsi/qla2xxx/qla_init.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/scsi/qla2xxx/qla_init.c b/drivers/scs

[PATCH v3 11/11] qla2xxx: Update driver version to 10.00.00.14-k

2019-02-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 537098e8f1c1..0690dac24081 100644 --- a/drivers/scsi/qla2xxx/qla_version.h +++

[PATCH v3 08/11] qla2xxx: Move marker request behind QPair

2019-02-15 Thread Himanshu Madhani
From: Quinn Tran current code hard code marker request to use request and response queue 0. This patch make use of the qpair as the path to access the request/response queues. It allows marker to be place on any hardware queues. Signed-off-by: Quinn Tran Signed-off-by: Himanshu Madhani --- dr

[PATCH v3 04/11] qla2xxx: Check for FW started flag before aborting

2019-02-15 Thread Himanshu Madhani
For FC-NVMe, if the fw_started flag is not set or fcport is deleted, then do not send Abort command Signed-off-by: Himanshu Madhani --- drivers/scsi/qla2xxx/qla_nvme.c | 8 1 file changed, 8 insertions(+) diff --git a/drivers/scsi/qla2xxx/qla_nvme.c b/drivers/scsi/qla2xxx/qla_nvme.c in

[PATCH v3 03/11] qla2xxx: Fix unload when NVMe devices are configured

2019-02-15 Thread Himanshu Madhani
This patch fixes driver unload issue when FC-NVMe devices are configured. Signed-off-by: Himanshu Madhani --- drivers/scsi/qla2xxx/qla_nvme.c | 22 ++ 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/drivers/scsi/qla2xxx/qla_nvme.c b/drivers/scsi/qla2xxx/qla_nv

[PATCH] scsi: mpt3sas: Add missing breaks in switch statements

2019-02-15 Thread Gustavo A. R. Silva
Fix the following warnings by adding the proper missing breaks: drivers/scsi/mpt3sas/mpt3sas_base.c: In function ‘_base_display_OEMs_branding’: drivers/scsi/mpt3sas/mpt3sas_base.c:3548:4: warning: this statement may fall through [-Wimplicit-fallthrough=] switch (ioc->pdev->subsystem_device) {

[PATCH] qla2xxx: Avoid PCI IRQ affinity mapping when multiqueue is not supported.

2019-02-15 Thread Himanshu Madhani
From: Giridhar Malavali This patch fixes warning seen when BLK-MQ is enabled and hardware does not support MQ. This will result into driver requesting MSIx vectors which are equal or less than pre_desc via PCI IRQ Affinity infrastructure. [ 19.746300] qla2xxx [:00:00.0]-0005: : QLogic

Re: qla2xxx init warning with blk_mq at drivers/pci/msi.c:1273 pci_irq_get_affinity+0xf4/0x120

2019-02-15 Thread Himanshu Madhani
Hi Meelis, On 2/12/19, 6:37 PM, "Ming Lei" wrote: External Email On Wed, Feb 13, 2019 at 5:36 AM Meelis Roos wrote: > > > I tested todays 5.0.0-rc5-00358-gdf3865f on my sparcs and a couple of servers that have qla2xxx > > FC adapter gave me this warning:

Re: [PATCH v2] scsi: sd: Optimal I/O size should be a multiple of physical block size

2019-02-15 Thread Martin K. Petersen
Christoph? > It was reported that some devices report an OPTIMAL TRANSFER LENGTH of > 0x blocks. That looks bogus, especially for a device with a > 4096-byte physical block size. > > Ignore OPTIMAL TRANSFER LENGTH if it is not a multiple of the device's > reported physical block size. > > To

Re: [PATCH v2 3/3] scsi: ufs: Add HI3670 SoC UFS driver support

2019-02-15 Thread Martin K. Petersen
Manivannan, > Ping on this patch! Applied to 5.1/scsi-queue, thanks! -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH v2] scsi: sd: block: Fix regressions in read-only block device handling

2019-02-15 Thread Martin K. Petersen
Christoph? Jens? > Some devices come online in write protected state and switch to > read-write once they are ready to process I/O requests. These devices > broke with commit 20bd1d026aac ("scsi: sd: Keep disk read-only when > re-reading partition") because we had no way to distinguish between a

Re: [RESEND PATCH] libiscsi: Fix race between iscsi_xmit_task and iscsi_complete_task

2019-02-15 Thread Martin K. Petersen
Bob, > When a target sends Check Condition, whilst initiator is busy xmiting > re-queued data, could lead to race between iscsi_complete_task() and > iscsi_xmit_task() and eventually crashing with the following kernel > backtrace. Applied to 5.0/scsi-fixes, thanks! -- Martin K. Petersen

Re: [PATCH v2] scsi: sd_zbc: Fix sd_zbc_report_zones() buffer allocation

2019-02-15 Thread Martin K. Petersen
Damien, > The function sd_zbc_do_report_zones() issues a REPORT ZONES command > with a buffer size calculated based on the number of zones requested > by the caller. This value should however not exceed the capabilities > of the hardware maximum command size, that is, should not exceed the > max

Re: [PATCH] Move debug messages before sending srb preventing panic

2019-02-15 Thread Martin K. Petersen
Bill, > When sending an srb with qla2x00_start_sp, the sp can complete and be > freed by the time we log the debug message saying we sent it. This can > cause a panic if sp gets reused quickly or when running a kernel that > poisons freed memory. Applied to 5.1/scsi-queue, thanks! -- Martin

Re: [PATCH] scsi: libsas: Fix rphy phy_identifier for PHYs with end devices attached

2019-02-15 Thread Martin K. Petersen
John, > The sysfs phy_identifier attribute for a sas_end_device comes > from the rphy phy_identifier value. Applied to 5.0/scsi-fixes, thank you! -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH] scsi: reset host byte in DID_NEXUS_FAILURE case

2019-02-15 Thread Martin K. Petersen
Martin, > Up to 4.12, __scsi_error_from_host_byte() would reset the host > byte to DID_OK for various cases including DID_NEXUS_FAILURE. > Commit 2a842acab109 ("block: introduce new block status code type") > replaced this function with scsi_result_to_blk_status() and removed > the host-byte res

Re: [PATCH] sd: disable logical block provisioning if 'lbpme' is not set

2019-02-15 Thread Martin K. Petersen
Jean, > When evaluating the 'block limits' VPD page we need to check if the > 'lbpme' (logical block provisioning management enable) bit is set in > the READ CAPACITY (16) output. If it isn't we can safely assume that > we cannot use DISCARD on this device. That's not entirely correct. We stil

Re: [PATCH][V2] scsi: qla2xxx: remove redundant null check on pointer sess

2019-02-15 Thread Martin K. Petersen
Colin, > The null check on pointer sess and the subsequent call is redundant as > sess is null on all the the paths that lead to the out_term2 label. > Hence the null check and the call can be removed. Also remove the > redundant setting of sess to NULL as this is not required now. Applied to

Re: [PATCH v3 00/11] qla2xxx: Misc bug fixes for the driver

2019-02-15 Thread Martin K. Petersen
Himanshu, > This series has misc bug fixes which includes cleanup for FC-NVMe code > and added first burst support for FC-NVMe devices. Other patches > included in the series adds new SysFS hook for setting port speed and > patch to prevent access to SysFS hook whle chip is down. Applied to 5.1

Re: [PATCH] qla2xxx: Avoid PCI IRQ affinity mapping when multiqueue is not supported.

2019-02-15 Thread Martin K. Petersen
Himanshu, > This patch fixes warning seen when BLK-MQ is enabled and hardware does > not support MQ. This will result into driver requesting MSIx vectors > which are equal or less than pre_desc via PCI IRQ Affinity > infrastructure. Applied to 5.1/scsi-queue, thanks! -- Martin K. Petersen

Re: [PATCH v2 1/3] dt-bindings: ufs: Add HI3670 UFS controller binding

2019-02-15 Thread Manivannan Sadhasivam
On Fri, Jan 11, 2019 at 03:35:02PM -0600, Rob Herring wrote: > On Sat, 5 Jan 2019 12:58:57 +0530, Manivannan Sadhasivam wrote: > > Add devicetree binding for HI3670 UFS controller. HI3760 SoC is very > > similar to HI3660 SoC with almost same IPs. Only major difference in terms > > of UFS is the P

[PATCH -next] scsi: qedi: Remove set but not used variable 'cls_sess'

2019-02-15 Thread YueHaibing
Fixes gcc '-Wunused-but-set-variable' warning: drivers/scsi/qedi/qedi_fw.c: In function 'qedi_tmf_resp_work': drivers/scsi/qedi/qedi_fw.c:158:28: warning: variable 'cls_sess' set but not used [-Wunused-but-set-variable] drivers/scsi/qedi/qedi_fw.c: In function 'qedi_tmf_work': drivers/scsi/qedi/