The PSL Timebase register is updated by the PSL to maintain the
timebase.
On P9, the Timebase value is only provided by the CAPP as received
the last time a timebase request was performed.
The timebase requests are initiated through the adapter configuration or
application registers.
The specific sysfs entry "/sys/class/cxl/cardxx/psl_timebase_synced" is
now dynamically updated according the content of the PSL Timebase
register.
Signed-off-by: Christophe Lombard <redacted>
Reviewed-by: Vaibhav Jain <redacted>
Acked-by: Andrew Donnellan <redacted>
---
This patch applies on top of this patch:
http://patchwork.ozlabs.org/patch/873663/
Changelog[v6]
- Rebased to latest upstream.
- Recompute the status only in native mode.
Changelog[v5]
- Rebased to latest upstream.
- Changed the type of 'delta'
Changelog[v4]
- Rebased to latest upstream.
- Added log message.
Changelog[v3]
- Rebased to latest upstream.
- Dynamic update is now applied to P8.
Changelog[v2]
- Missing Signed-off-by.
- Spaces required around the ':'.
---
drivers/misc/cxl/pci.c | 17 -----------------
drivers/misc/cxl/sysfs.c | 12 ++++++++++++
2 files changed, 12 insertions(+), 17 deletions(-)
From: Michael Ellerman <mpe@ellerman.id.au> Date: 2018-02-21 02:43:28
Christophe Lombard [off-list ref] writes:
The PSL Timebase register is updated by the PSL to maintain the
timebase.
On P9, the Timebase value is only provided by the CAPP as received
the last time a timebase request was performed.
The timebase requests are initiated through the adapter configuration or
application registers.
The specific sysfs entry "/sys/class/cxl/cardxx/psl_timebase_synced" is
now dynamically updated according the content of the PSL Timebase
register.
Signed-off-by: Christophe Lombard <redacted>
Reviewed-by: Vaibhav Jain <redacted>
Acked-by: Andrew Donnellan <redacted>
Can you give me a Fixes: tag for this?
Does it need to go to stable? I can't tell from the change log how bad
the bug this fixes is.
cheers
quoted hunk
---
This patch applies on top of this patch:
http://patchwork.ozlabs.org/patch/873663/
Changelog[v6]
- Rebased to latest upstream.
- Recompute the status only in native mode.
Changelog[v5]
- Rebased to latest upstream.
- Changed the type of 'delta'
Changelog[v4]
- Rebased to latest upstream.
- Added log message.
Changelog[v3]
- Rebased to latest upstream.
- Dynamic update is now applied to P8.
Changelog[v2]
- Missing Signed-off-by.
- Spaces required around the ':'.
---
drivers/misc/cxl/pci.c | 17 -----------------
drivers/misc/cxl/sysfs.c | 12 ++++++++++++
2 files changed, 12 insertions(+), 17 deletions(-)
Le 20/02/2018 à 14:48, Christophe Lombard a écrit :
The PSL Timebase register is updated by the PSL to maintain the
timebase.
On P9, the Timebase value is only provided by the CAPP as received
the last time a timebase request was performed.
The timebase requests are initiated through the adapter configuration or
application registers.
The specific sysfs entry "/sys/class/cxl/cardxx/psl_timebase_synced" is
now dynamically updated according the content of the PSL Timebase
register.
Signed-off-by: Christophe Lombard <redacted>
Reviewed-by: Vaibhav Jain <redacted>
Acked-by: Andrew Donnellan <redacted>
---
Thanks!
Acked-by: Frederic Barrat <redacted>
quoted hunk
This patch applies on top of this patch:
http://patchwork.ozlabs.org/patch/873663/
Changelog[v6]
- Rebased to latest upstream.
- Recompute the status only in native mode.
Changelog[v5]
- Rebased to latest upstream.
- Changed the type of 'delta'
Changelog[v4]
- Rebased to latest upstream.
- Added log message.
Changelog[v3]
- Rebased to latest upstream.
- Dynamic update is now applied to P8.
Changelog[v2]
- Missing Signed-off-by.
- Spaces required around the ':'.
---
drivers/misc/cxl/pci.c | 17 -----------------
drivers/misc/cxl/sysfs.c | 12 ++++++++++++
2 files changed, 12 insertions(+), 17 deletions(-)
The PSL Timebase register is updated by the PSL to maintain the
timebase.
On P9, the Timebase value is only provided by the CAPP as received
the last time a timebase request was performed.
The timebase requests are initiated through the adapter configuration or
application registers.
The specific sysfs entry "/sys/class/cxl/cardxx/psl_timebase_synced" is
now dynamically updated according the content of the PSL Timebase
register.
Signed-off-by: Christophe Lombard <redacted>
Reviewed-by: Vaibhav Jain <redacted>
Acked-by: Andrew Donnellan <redacted>
Can you give me a Fixes: tag for this?
Does it need to go to stable? I can't tell from the change log how bad
the bug this fixes is.
Sorry, I completely forgot to add it:
Fixes: f24be42aab37 ("cxl: Add psl9 specific code")
With the current code, the state of the PSL timebase, on P9, is not
displayed correctly because the feature works differently from
what was expected.
This patch fixes this behavior and introduces a new way to get
dynamically the state of the PSL timebase.
Thanks
cheers
quoted
---
This patch applies on top of this patch:
http://patchwork.ozlabs.org/patch/873663/
Changelog[v6]
- Rebased to latest upstream.
- Recompute the status only in native mode.
Changelog[v5]
- Rebased to latest upstream.
- Changed the type of 'delta'
Changelog[v4]
- Rebased to latest upstream.
- Added log message.
Changelog[v3]
- Rebased to latest upstream.
- Dynamic update is now applied to P8.
Changelog[v2]
- Missing Signed-off-by.
- Spaces required around the ':'.
---
drivers/misc/cxl/pci.c | 17 -----------------
drivers/misc/cxl/sysfs.c | 12 ++++++++++++
2 files changed, 12 insertions(+), 17 deletions(-)
From: Michael Ellerman <hidden> Date: 2018-03-19 22:22:55
On Tue, 2018-02-20 at 13:48:56 UTC, Christophe Lombard wrote:
The PSL Timebase register is updated by the PSL to maintain the
timebase.
On P9, the Timebase value is only provided by the CAPP as received
the last time a timebase request was performed.
The timebase requests are initiated through the adapter configuration or
application registers.
The specific sysfs entry "/sys/class/cxl/cardxx/psl_timebase_synced" is
now dynamically updated according the content of the PSL Timebase
register.
Signed-off-by: Christophe Lombard <redacted>
Reviewed-by: Vaibhav Jain <redacted>
Acked-by: Andrew Donnellan <redacted>
Acked-by: Frederic Barrat <redacted>