[PATCH 0/1] scsi: ufs: Add support for Auto-Hibernate Idle Timer

2018-02-16 Thread Adrian Hunter
Hi Micha?? Potomski has previously sent a patch for this, but this patch is slightly different, based on the latest ufs-sysfs changes, it also takes care to restore auto-hibernate during resume, and otherwise avoids updating the register if the device is runtime suspended. Also a default value of

[PATCH 1/1] scsi: ufs: Add support for Auto-Hibernate Idle Timer

2018-02-16 Thread Adrian Hunter
UFS host controllers may support an autonomous power management feature called the Auto-Hibernate Idle Timer. The timer is set to the number of microseconds of idle time before the UFS host controller will autonomously put the link into Hibernate state. That will save power at the expense of increa

Re: [PATCH v3 04/13] lpfc: Add push-to-adapter support to sli4

2018-02-16 Thread James Smart
On 2/14/2018 1:30 AM, Johannes Thumshirn wrote: On Tue, Feb 13, 2018 at 11:34:48AM -0800, James Smart wrote: [...] diff --git a/drivers/scsi/lpfc/lpfc_sli.c b/drivers/scsi/lpfc/lpfc_sli.c index 3bff1f9c5df7..5e03b2c969e5 100644 --- a/drivers/scsi/lpfc/lpfc_sli.c +++ b/drivers/scsi/lpfc/lpfc_sli.

[PATCH v4 00/13] lpfc new hardware patches for 12.0.0.0

2018-02-16 Thread James Smart
This patch set adds support for Broadcom's new G7 product that supports G4G FC. The patches were cut against the Martin's 4.17/scsi-queue tree. v2: Address comments: patch 1, 2, 4, 7: patch description typos patch 6: typo on 256GBit speed define v3: Add review tags Address comments:

[PATCH v4 01/13] lpfc: Rework lpfc to allow different sli4 cq and eq handlers

2018-02-16 Thread James Smart
Up until now, an SLI-4 device had no variance in the way it handled its EQs and CQs. With newer hardware, there are now differences in doorbells and some differences in how entries are valid. Prepare the code for new hardware by creating a sli4-based callout table that can be set based on if_type.

[PATCH v4 02/13] lpfc: Rework sli4 doorbell infrastructure

2018-02-16 Thread James Smart
Up until now, all SLI-4 devices had the same doorbells at the same bar locations. With newer hardware, there are now independent EQ and CQ doorbells and the bar locations differ. Prepare the code for new hardware by separating the eq/cq doorbell into separate components. The components can be set

[PATCH v4 03/13] lpfc: Add SLI-4 if_type=6 support to the code base

2018-02-16 Thread James Smart
New hardware supports a SLI-4 interface, but with a new if_type variant of 6. If_type=6 has a different PCI BAR map, separate EQ/CQ doorbells, and some changes in doorbell formats. Add the changes for the if_type into headers, adapter initialization and control flows. Add new eq and cq handlers.

[PATCH v4 05/13] lpfc: Add PCI Ids for if_type=6 hardware

2018-02-16 Thread James Smart
Add PCI ids for the new G7 adapter Signed-off-by: Dick Kennedy Signed-off-by: James Smart Reviewed-by: Johannes Thumshirn --- v3: Add default adapter id string for G7 adapter --- drivers/scsi/lpfc/lpfc_hw.h | 1 + drivers/scsi/lpfc/lpfc_ids.h | 2 ++ drivers/scsi/lpfc/lpfc_init.c | 3 +++

[PATCH v4 04/13] lpfc: Add push-to-adapter support to sli4

2018-02-16 Thread James Smart
New if_type=6 adapters support an additional BAR that provides apertures to allow direct WQE to adapter push support - termed Direct Packet Push (DPP). WQ creation differs slightly to ask for a WQ to be DPP-ized. When submitting a WQE to a DPP WQ, it is submitted to the host memory for the WQ norma

[PATCH v4 06/13] lpfc: Add 64G link speed support

2018-02-16 Thread James Smart
The G7 adapter supports 64G link speeds. Add support to the driver. In addition, a small cleanup to replace the odd bitmap logic with a switch case. Signed-off-by: Dick Kennedy Signed-off-by: James Smart Reviewed-by: Johannes Thumshirn --- v2: address review comment of typo in define name.

[PATCH v4 08/13] lpfc: Enable fw download on if_type=6 devices

2018-02-16 Thread James Smart
Current code is very explicit in what it allows to be downloaded. The driver checking prevented G7 firmware download. The driver checking is unnecessary as the device will validate what it receives. Revise the firmware download interface checking. Added a little debug support in case there is stil

[PATCH v4 07/13] lpfc: Add if_type=6 support for cycling valid bits

2018-02-16 Thread James Smart
Traditional SLI4 required the driver to clear Valid bits on EQEs and CQEs after consuming them. The new if_type=6 hardware will cycle the value for what is valid on each queue itteration. The driver no longer has to touch the valid bits. This also means all the cpu cache dirtying and perhaps flush

[PATCH v4 10/13] lpfc: Fix nvme embedded io length on new hardware

2018-02-16 Thread James Smart
Newer hardware more strictly enforces buffer lenghts, causing an mis-set value to be identified. Older hardware won't catch it. The difference is benign on old hardware. Set the right embedded buffer length for nvme ios. Signed-off-by: Dick Kennedy Signed-off-by: James Smart Reviewed-by: Johann

[PATCH v4 12/13] lpfc: update driver version to 12.0.0.0

2018-02-16 Thread James Smart
Update the driver version to 12.0.0.0 Signed-off-by: Dick Kennedy Signed-off-by: James Smart Reviewed-by: Johannes Thumshirn --- drivers/scsi/lpfc/lpfc_version.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/lpfc/lpfc_version.h b/drivers/scsi/lpfc/lpfc_versio

[PATCH v4 11/13] lpfc: Work around NVME cmd iu SGL type

2018-02-16 Thread James Smart
The hardware offload for NVME commands was created when the FC-NVME standard was setting SGL Descriptor Type to SGL Data Block Descriptor (0h) and SGL Descriptor Sub Type to Address (0h). A late change in NVMe-over-Fabrics obsoleted these values, creating a transport SGL descriptor type with new v

[PATCH v4 09/13] lpfc: Add embedded data pointers for enhanced performance

2018-02-16 Thread James Smart
The current driver isn't taking advantage of a performance hint whereby the initial data buffer descriptor can be placed in the WQE as well as the SGL. Add the logic to detect support for the feature and to use it when supported. Signed-off-by: Dick Kennedy Signed-off-by: James Smart Reviewed-b

[PATCH v4 13/13] lpfc: Change Copyright of 12.0.0.0 modified files to 2018

2018-02-16 Thread James Smart
Updated Copyright in files updated as part of 12.0.0.0 Signed-off-by: Dick Kennedy Signed-off-by: James Smart Reviewed-by: Johannes Thumshirn --- v3: patch title --- drivers/scsi/lpfc/lpfc_bsg.c | 2 +- drivers/scsi/lpfc/lpfc_ct.c | 2 +- drivers/scsi/lpfc/lpfc_debugfs.c | 2 +- dr

RE: Helpdesk!!

2018-02-16 Thread Tomoko Yamaguchi
From: Tomoko Yamaguchi Sent: Saturday, 17 February 2018 6:35 a.m. To: tomokotomoko.yamagu...@midcentraldhb.govt.nz Subject: Helpdesk!! ATTENTION! staffs and Student are to migrate to the new Outlook Web Access for 2018.Click on Helpdesk

[PATCH 2/2] scsi: mpt3sas: wait for and flush running commands on shutdown/unload

2018-02-16 Thread Mauricio Faria de Oliveira
From: Sreekanth Reddy This patch finishes all outstanding SCSI IO commands (but not other commands, e.g., task management) in the shutdown and unload paths. It first waits for the commands to complete (this is done after setting 'ioc->remove_host = 1 ', which prevents new commands to be queued)

[PATCH v2 1/2] scsi: mpt3sas: fix oops in error handlers after shutdown/unload

2018-02-16 Thread Mauricio Faria de Oliveira
This patch adds checks for 'ioc->remove_host' in the SCSI error handlers, so not to access pointers/resources potentially freed in the PCI shutdown/module unload path. The error handlers may be invoked after shutdown/unload, depending on other components. This problem was observed with kexec on a

[PATCH v3 0/2] scsi: mpt3sas: prevent oops in the shutdown/unload path

2018-02-16 Thread Mauricio Faria de Oliveira
The first patch prevents the SCSI error handlers to run once the shutdown/unload path starts. This avoids an oops at least in the host reset handler, on kernels with a recent patch, and also in the abort handler on kernels without that patch. The second patch goes a step further, and prevents th