ocxl: Update the Process Element Entry
authorChristophe Lombard <clombard@linux.vnet.ibm.com>
Wed, 25 Nov 2020 15:50:11 +0000 (16:50 +0100)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 3 Dec 2020 14:01:30 +0000 (01:01 +1100)
commitd731feea00c7c1734c9697558f2a1962c12d2710
tree06b53cfd7eef05dbf3f7e4996244a7006443b69e
parent19b311ca51e108b6d8d679496af8635fdc1984a8
ocxl: Update the Process Element Entry

To complete the MMIO based mechanism, the fields: PASID, bus, device and
function of the Process Element Entry have to be filled. (See
OpenCAPI Power Platform Architecture document)

                   Hypervisor Process Element Entry
Word
    0 1 .... 7  8  ...... 12  13 ..15  16.... 19  20 ........... 31
0                  OSL Configuration State (0:31)
1                  OSL Configuration State (32:63)
2               PASID                      |    Reserved
3       Bus   |   Device    |Function |        Reserved
4                             Reserved
5                             Reserved
6                               ....

Signed-off-by: Christophe Lombard <clombard@linux.vnet.ibm.com>
Acked-by: Frederic Barrat <fbarrat@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20201125155013.39955-4-clombard@linux.vnet.ibm.com
drivers/misc/ocxl/context.c
drivers/misc/ocxl/link.c
drivers/misc/ocxl/ocxl_internal.h
drivers/scsi/cxlflash/ocxl_hw.c
include/misc/ocxl.h