aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/misc/cxl
diff options
context:
space:
mode:
authorVaibhav Jain <vaibhav@linux.vnet.ibm.com>2018-04-17 01:11:02 -0400
committerMichael Ellerman <mpe@ellerman.id.au>2018-06-01 11:48:10 -0400
commit9a6d2022bacd8fca0be6297459a02dfd28dad6ba (patch)
tree8e136f2e448d797a1f2afcacfe12132c8d1a4a36 /drivers/misc/cxl
parentb6c84ba22ff3a198eb8d5552cf9b8fda1d792e54 (diff)
cxl: Configure PSL to not use APC virtual machines
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: 5632874311db ("cxl: Add support for POWER9 DD2") Cc: stable@vger.kernel.org # v4.15+ Signed-off-by: Vaibhav Jain <vaibhav@linux.vnet.ibm.com> Acked-by: Andrew Donnellan <andrew.donnellan@au1.ibm.com> Reviewed-by: Alastair D'Silva <alastair@d-silva.org> Reviewed-by: Christophe Lombard <clombard@linux.vnet.ibm.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'drivers/misc/cxl')
-rw-r--r--drivers/misc/cxl/pci.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/misc/cxl/pci.c b/drivers/misc/cxl/pci.c
index 83f1d08058fc..2e8b187956bc 100644
--- a/drivers/misc/cxl/pci.c
+++ b/drivers/misc/cxl/pci.c
@@ -514,9 +514,9 @@ static int init_implementation_adapter_regs_psl9(struct cxl *adapter,
514 cxl_p1_write(adapter, CXL_PSL9_FIR_CNTL, psl_fircntl); 514 cxl_p1_write(adapter, CXL_PSL9_FIR_CNTL, psl_fircntl);
515 515
516 /* Setup the PSL to transmit packets on the PCIe before the 516 /* Setup the PSL to transmit packets on the PCIe before the
517 * CAPP is enabled 517 * CAPP is enabled. Make sure that CAPP virtual machines are disabled
518 */ 518 */
519 cxl_p1_write(adapter, CXL_PSL9_DSNDCTL, 0x0001001000002A10ULL); 519 cxl_p1_write(adapter, CXL_PSL9_DSNDCTL, 0x0001001000012A10ULL);
520 520
521 /* 521 /*
522 * A response to an ASB_Notify request is returned by the 522 * A response to an ASB_Notify request is returned by the