[PATCH V2] cxl: Fix timebase synchronization status on P9

2018-02-15 Thread Christophe Lombard
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 s

Re: [PATCH V2] cxl: Fix timebase synchronization status on P9

2018-02-16 Thread Frederic Barrat
Le 15/02/2018 à 17:52, 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 adapte

Re: [PATCH V2] cxl: Fix timebase synchronization status on P9

2018-02-16 Thread Vaibhav Jain
Frederic Barrat writes: > I'm also wondering if it wouldn't be simpler to always update the > timebase_synced flag dynamically, even on p8. That way we wouldn't need > to have the p8 specific code to check for synchronization in > cxl_setup_psl_timebase(). p8 and p9 code would be the same. I

Re: [PATCH V2] cxl: Fix timebase synchronization status on P9

2018-02-16 Thread Vaibhav Jain
Frederic Barrat writes: > I'm also wondering if it wouldn't be simpler to always update the > timebase_synced flag dynamically, even on p8. That way we wouldn't need > to have the p8 specific code to check for synchronization in > cxl_setup_psl_timebase(). p8 and p9 code would be the same. I

Re: [PATCH V2] cxl: Fix timebase synchronization status on P9

2018-02-16 Thread Frederic Barrat
Le 16/02/2018 à 11:02, Vaibhav Jain a écrit : Frederic Barrat writes: I'm also wondering if it wouldn't be simpler to always update the timebase_synced flag dynamically, even on p8. That way we wouldn't need to have the p8 specific code to check for synchronization in cxl_setup_psl_timebase(