cxl: Configure PSL to not use APC virtual machines
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
@@ -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
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.
Signed-off-by Vaibhav Jain <[email protected]>
LGTM. Does this need to be sent to stable?
Signature · 2 lines
Andrew Donnellan OzLabs, ADL Canberra [email protected] IBM Australia Limited
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.Signed-off-by Vaibhav Jain <[email protected]>--- drivers/misc/cxl/pci.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)drivers/misc/cxl/pci.c +1
-1@@ -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
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.
Signed-off-by Vaibhav Jain <[email protected]>--- drivers/misc/cxl/pci.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)drivers/misc/cxl/pci.c +0
-0@@ -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
Michael Ellerman
AppliedQuoted 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.
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]>
Applied to powerpc next, thanks.
https://git.kernel.org/powerpc/c/9a6d2022bacd8fca0be6297459a02d
cheers