diff options
author | James Smart <jsmart2021@gmail.com> | 2018-05-05 05:37:51 +0200 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2018-05-08 07:03:15 +0200 |
commit | 48f8fdb4b4269c0435238604d2ba3ca4f67f5620 (patch) | |
tree | 2d7616cbc2ebffa67f4d40992933f79582aa624d /drivers/pci/slot.c | |
parent | scsi: lpfc: Change IO submit return to EBUSY if remote port is recovering (diff) | |
download | linux-48f8fdb4b4269c0435238604d2ba3ca4f67f5620.tar.xz linux-48f8fdb4b4269c0435238604d2ba3ca4f67f5620.zip |
scsi: lpfc: enhance LE data structure copies to hardware
The driver builds the control structures in host memory using
definitions that are based on 32-bit words. After building the structure
it is then written to the adapter.
This patch slightly optimizes LE hosts by copying the structures via
64-bit copies. This is doable as the adapter interface is LE thus there
is no byteswapping as the copy is performed.
The same optimization would be nice on BE systems, but when byteswapping
occurs, it swaps 32-bit words as well, thus trashing the control
structure. Given amount of code that is dependent upon the 32-bit word
definition, it was decided to not change things for the minor
optimization. Thus PPC 64-bit systems sticks with doing 32-bit copies.
Signed-off-by: Dick Kennedy <dick.kennedy@broadcom.com>
Signed-off-by: James Smart <james.smart@broadcom.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/pci/slot.c')
0 files changed, 0 insertions, 0 deletions