]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
cxl: Fix timebase synchronization status on P9
authorChristophe Lombard <clombard@linux.vnet.ibm.com>
Tue, 20 Feb 2018 13:48:56 +0000 (14:48 +0100)
committerThadeu Lima de Souza Cascardo <cascardo@canonical.com>
Wed, 21 Mar 2018 16:39:01 +0000 (13:39 -0300)
commitf223cd0f336d5275341707c60062efce64261913
treedaf1a9188e5109362d295ea3fc08174865fb5267
parent86b59b6e44404326b37f2f20fca0437517267f78
cxl: Fix timebase synchronization status on P9

BugLink: https://bugs.launchpad.net/bugs/1757228
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.

Fixes: f24be42aab37 ("cxl: Add psl9 specific code")
Signed-off-by: Christophe Lombard <clombard@linux.vnet.ibm.com>
Reviewed-by: Vaibhav Jain <vaibhav@linux.vnet.ibm.com>
Acked-by: Andrew Donnellan <andrew.donnellan@au1.ibm.com>
Acked-by: Frederic Barrat <fbarrat@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
(cherry picked from commit c2be663d5307fb9751a562ac664fa78cd7a00e2b
 git://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git)
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
drivers/misc/cxl/pci.c
drivers/misc/cxl/sysfs.c