Skip to content

Commit

Permalink
cxl: Configure PSL to not use APC virtual machines
Browse files Browse the repository at this point in the history
APC virtual machines arent used on POWER-9 chips and are already
disabled in on-chip CAPP. They also need to be disabled on the PSL via
'PSL Data Send Control Register' by setting bit(47). This forces the
PSL to send commands to CAPP with queue.id == 0.

Fixes: 5632874 ("cxl: Add support for POWER9 DD2")
Cc: [email protected] # v4.15+
Signed-off-by: Vaibhav Jain <[email protected]>
Acked-by: Andrew Donnellan <[email protected]>
Reviewed-by: Alastair D'Silva <[email protected]>
Reviewed-by: Christophe Lombard <[email protected]>
Signed-off-by: Michael Ellerman <[email protected]>
  • Loading branch information
vaibhav92 authored and mpe committed Jun 1, 2018
1 parent b6c84ba commit 9a6d202
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/misc/cxl/pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -514,9 +514,9 @@ static int init_implementation_adapter_regs_psl9(struct cxl *adapter,
cxl_p1_write(adapter, CXL_PSL9_FIR_CNTL, psl_fircntl);

/* Setup the PSL to transmit packets on the PCIe before the
* CAPP is enabled
* CAPP is enabled. Make sure that CAPP virtual machines are disabled
*/
cxl_p1_write(adapter, CXL_PSL9_DSNDCTL, 0x0001001000002A10ULL);
cxl_p1_write(adapter, CXL_PSL9_DSNDCTL, 0x0001001000012A10ULL);

/*
* A response to an ASB_Notify request is returned by the
Expand Down

0 comments on commit 9a6d202

Please sign in to comment.