Skip to contentSkip to conversation

cxl: Configure PSL to not use APC virtual machines

PATCH Applied Vaibhav Jain 5 participants 5 messages Apr 17, 2018 – Jun 1, 2018 Char and misc drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 drivers/misc/cxl/pci.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/misc/cxl/pci.c +2 -2
index c32432168e6b..af30ee848d35 100644
@@ -516,9 +516,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
Signature · 1 line
2.14.3
Acked-by on v1 1/1
#1 lore raw
Quoted 6 lines · Vaibhav Jain

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.

LGTM. Does this need to be sent to stable?

Signature · 2 lines
Andrew Donnellan              OzLabs, ADL Canberra
[email protected]  IBM Australia Limited
Reviewed-by on v1 1/1
#2 lore raw
In reply to Vaibhav Jain
Quoted 30 lines · Vaibhav Jain

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.

---
 drivers/misc/cxl/pci.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/misc/cxl/pci.c +1 -1
index c32432168e6b..af30ee848d35 100644
@@ -516,9 +516,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

drivers/misc/cxl/pci.c +0 -1
 	 */
-	cxl_p1_write(adapter, CXL_PSL9_DSNDCTL,

0x0001001000002A10ULL);

drivers/misc/cxl/pci.c +1 -0
+	cxl_p1_write(adapter, CXL_PSL9_DSNDCTL,

0x0001001000012A10ULL);

drivers/misc/cxl/pci.c static int init_implementation_adapter_regs_psl9(struct cxl *adapter, · line 524

Quoted 2 lines
drivers/misc/cxl/pci.c +0 -0
 	/*
 	 * A response to an ASB_Notify request is returned by the
Signature · 3 lines
Alastair D'Silva
Open Source Developer
Linux Technology Centre, IBM Australiamob: 0423 762 819
Reviewed-by on v1 1/1
#3 lore raw
In reply to Vaibhav Jain

Le 17/04/2018 à 07:11, Vaibhav Jain a écrit :

Quoted 17 lines

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.

---
  drivers/misc/cxl/pci.c | 4 ++--
  1 file changed, 2 insertions(+), 2 deletions(-)
drivers/misc/cxl/pci.c +0 -0
index c32432168e6b..af30ee848d35 100644
@@ -516,9 +516,9 @@ static int init_implementation_adapter_regs_psl9(struct cxl *adapter,
  	cxl_p1_write(adapter, CXL_PSL9_FIR_CNTL, psl_fircntl);

drivers/misc/cxl/pci.c static int init_implementation_adapter_regs_psl9(struct cxl *adapter, · line 524

Quoted 10 lines
drivers/misc/cxl/pci.c +2 -2
 
  	/* 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

Thanks

#4 lore raw
In reply to Vaibhav Jain
Quoted 9 lines · Vaibhav Jain

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.

Applied to powerpc next, thanks.

https://git.kernel.org/powerpc/c/9a6d2022bacd8fca0be6297459a02d

cheers