On 11/03/2017 11:56 PM, James Smart wrote: > Hardware queues are a fast staging area to push commands into the adapter. > The adapter should drain them extremely quickly. However, under heavy > io load, the host cpu is pushing commands faster than the drain rate of > the adapter causing the driver to resource busy commands. > > Enlarge the hardware queue (wq & cq) to support a larger number of > queue entries (4x the prior size) before backpressure. Enlarging > the queue requires larger contiguous buffers (16k) per logical page > for the hardware. This changed calling sequences that were expecting > 4K page sizes that now must pass a parameter with the page sizes. It > also required use of a new version of an adapter command that can vary > the page size values. > > Signed-off-by: Dick Kennedy <dick.kennedy@xxxxxxxxxxxx> > Signed-off-by: James Smart <james.smart@xxxxxxxxxxxx> > --- > drivers/scsi/lpfc/lpfc_hw4.h | 6 +++- > drivers/scsi/lpfc/lpfc_init.c | 67 ++++++++++++++++++++++++++-------------- > drivers/scsi/lpfc/lpfc_nvme.h | 3 +- > drivers/scsi/lpfc/lpfc_sli.c | 71 +++++++++++++++++++++++++++++++++---------- > drivers/scsi/lpfc/lpfc_sli4.h | 8 +++-- > 5 files changed, 112 insertions(+), 43 deletions(-) > Reviewed-by: Hannes Reinecke <hare@xxxxxxxx> Cheers, Hannes -- Dr. Hannes Reinecke Teamlead Storage & Networking hare@xxxxxxx +49 911 74053 688 SUSE LINUX GmbH, Maxfeldstr. 5, 90409 Nürnberg GF: F. Imendörffer, J. Smithard, J. Guild, D. Upmanyu, G. Norton HRB 21284 (AG Nürnberg)