summaryrefslogtreecommitdiffstats
path: root/drivers/pci/slot.c
diff options
context:
space:
mode:
authorJames Smart <jsmart2021@gmail.com>2018-05-05 05:37:51 +0200
committerMartin K. Petersen <martin.petersen@oracle.com>2018-05-08 07:03:15 +0200
commit48f8fdb4b4269c0435238604d2ba3ca4f67f5620 (patch)
tree2d7616cbc2ebffa67f4d40992933f79582aa624d /drivers/pci/slot.c
parentscsi: lpfc: Change IO submit return to EBUSY if remote port is recovering (diff)
downloadlinux-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