Skip to contentSkip to conversation

cxl: Set up and enable PSL Timebase

PATCH RESEND Applied Philippe Bergheaud 2 participants 3 messages Aug 28, 2015 – Aug 30, 2015 Char and misc drivers

v1 of 2 Applied Latest is v2 →

lore
Share & tools
lore
#0 lore raw

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
index e7af256..19489c6 100644
@@ -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
#1 lore raw
Quoted 15 lines · Philippe Bergheaud

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 +0 -0
index e7af256..19489c6 100644

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? :

https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/Documentation/email-clients.txt#n209

cheers