cxl: Set up and enable PSL Timebase
PATCH RESEND 1/1 cxl: Set up and enable PSL Timebase
This patch configures the PSL Timebase function and enables it, after the CAPP has been initialized by OPAL.
--- drivers/misc/cxl/cxl.h | 5 +++++ drivers/misc/cxl/pci.c | 57 +++++++++++++++++++++++++++++++++++++++++++++++++- 2 files changed, 61 insertions(+), 1 deletion(-)
drivers/misc/cxl/cxl.h +5 -0
@@ -83,8 +83,10 @@ static const cxl_p1_reg_t CXL_PSL_AFUSEL = {0x00B0};/* 0x00C0:7EFF Implementation dependent area */ static const cxl_p1_reg_t CXL_PSL_FIR1 = {0x0100 };static const cxl_p1_reg_t CXL_PSL_FIR2 = {0x0108 }; +static const cxl_p1_reg_t CXL_PSL_Timebase = {0x0110 };static const cxl_p1_reg_t CXL_PSL_VERSION = {0x0118 };static const cxl_p1_reg_t CXL_PSL_RESLCKTO = {0x0128 }; +static const cxl_p1_reg_t CXL_PSL_TB_CTLSTAT = {0x0140 };static const cxl_p1_reg_t CXL_PSL_FIR_CNTL = {0x0148 };static const cxl_p1_reg_t CXL_PSL_DSNDCTL = {0x0150 };static const cxl_p1_reg_t CXL_PSL_SNWRALLOC = {0x0158 };
@@ -152,6 +154,9 @@ static const cxl_p2n_reg_t CXL_PSL_WED_An = {0x0A0};#define CXL_PSL_SPAP_Size_Shift 4#define CXL_PSL_SPAP_V 0x0000000000000001ULL +/****** CXL_PSL_Control ****************************************************/ +#define CXL_PSL_Control_tb 0x0000000000000001ULL +/****** CXL_PSL_DLCNTL *****************************************************/ #define CXL_PSL_DLCNTL_D (0x1ull << (63-28))#define CXL_PSL_DLCNTL_C (0x1ull << (63-29))
drivers/misc/cxl/pci.c +56 -1
77 lines not on this page · raw message
Signature · 1 line
2.1.0
Quoted 15 lines · Philippe Bergheaud
This patch configures the PSL Timebase function and enables it, after the CAPP has been initialized by OPAL.
Acked-by Ian Munsie <[email protected]>Signed-off-by Philippe Bergheaud <[email protected]>--- drivers/misc/cxl/cxl.h | 5 +++++ drivers/misc/cxl/pci.c | 57 +++++++++++++++++++++++++++++++++++++++++++++++++- 2 files changed, 61 insertions(+), 1 deletion(-)drivers/misc/cxl/cxl.h +0
-0
drivers/misc/cxl/cxl.h static const cxl_p1_reg_t CXL_PSL_AFUSEL = {0x00B0}; · line 92
Quoted 10 lines
drivers/misc/cxl/cxl.h +2
-0@@ -83,8 +83,10 @@ static const cxl_p1_reg_t CXL_PSL_AFUSEL = {0x00B0};/* 0x00C0:7EFF Implementation dependent area */ static const cxl_p1_reg_t CXL_PSL_FIR1 = {0x0100 };static const cxl_p1_reg_t CXL_PSL_FIR2 = {0x0108 }; +static const cxl_p1_reg_t CXL_PSL_Timebase = {0x0110 };static const cxl_p1_reg_t CXL_PSL_VERSION = {0x0118 };static const cxl_p1_reg_t CXL_PSL_RESLCKTO = {0x0128 }; +static const cxl_p1_reg_t CXL_PSL_TB_CTLSTAT = {0x0140 };static const cxl_p1_reg_t CXL_PSL_FIR_CNTL = {0x0148 };static const cxl_p1_reg_t CXL_PSL_DSNDCTL = {0x0150 };static const cxl_p1_reg_t CXL_PSL_SNWRALLOC = {0x0158 };
The whitespace here is all fubar, see the double spaces on the context lines.
I've fixed it up this time, but please try and fix your mailer, I think you're using Thunderbird? :
cheers
Michael Ellerman
AppliedQuoted 5 lines · Philippe Bergheaud
This patch configures the PSL Timebase function and enables it, after the CAPP has been initialized by OPAL.
Acked-by Ian Munsie <[email protected]>Signed-off-by Philippe Bergheaud <[email protected]>
Applied to powerpc next, thanks.
https://git.kernel.org/powerpc/c/390fd5929f52bdfb9dfcc038
cheers