summaryrefslogtreecommitdiffstats
path: root/drivers/misc/ocxl/ocxl_internal.h
diff options
context:
space:
mode:
authorChristophe Lombard <clombard@linux.vnet.ibm.com>2018-08-14 14:45:15 +0200
committerMichael Ellerman <mpe@ellerman.id.au>2018-09-19 13:58:09 +0200
commit6f8e45f7eb1bee5efdbe4a9cfe4a45627403c5fb (patch)
tree53f3fe0615be9973b849e45dcb23feef214419c9 /drivers/misc/ocxl/ocxl_internal.h
parentpowerpc/memtrace: Remove memory in chunks (diff)
downloadlinux-6f8e45f7eb1bee5efdbe4a9cfe4a45627403c5fb.tar.xz
linux-6f8e45f7eb1bee5efdbe4a9cfe4a45627403c5fb.zip
ocxl: Fix access to the AFU Descriptor Data
The AFU Information DVSEC capability is a means to extract common, general information about all of the AFUs associated with a Function independent of the specific functionality that each AFU provides. Write in the AFU Index field allows to access to the descriptor data for each AFU. With the current code, we are not able to access to these specific data when the index >= 1 because we are writing to the wrong location. All requests to the data of each AFU are pointing to those of the AFU 0, which could have impacts when using a card with more than one AFU per function. This patch fixes the access to the AFU Descriptor Data indexed by the AFU Info Index field. Fixes: 5ef3166e8a32 ("ocxl: Driver code for 'generic' opencapi devices") Cc: stable <stable@vger.kernel.org> # 4.16 Signed-off-by: Christophe Lombard <clombard@linux.vnet.ibm.com> Acked-by: Frederic Barrat <fbarrat@linux.vnet.ibm.com> Acked-by: Andrew Donnellan <andrew.donnellan@au1.ibm.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'drivers/misc/ocxl/ocxl_internal.h')
0 files changed, 0 insertions, 0 deletions