diff options
author | Cédric Le Goater <clg@kaod.org> | 2020-08-04 19:01:11 +0200 |
---|---|---|
committer | Oliver O'Halloran <oohall@gmail.com> | 2020-08-07 16:00:20 +1000 |
commit | 043725d49d3b2c0b6ea3c37395aa5d6e38d5e73a (patch) | |
tree | d0fcb8064a15fd76eeebc275796cdf045be5fbf8 /asm | |
parent | a8191a205ef5f51b72cb7624770bf7b0522b5deb (diff) | |
download | skiboot-043725d49d3b2c0b6ea3c37395aa5d6e38d5e73a.zip skiboot-043725d49d3b2c0b6ea3c37395aa5d6e38d5e73a.tar.gz skiboot-043725d49d3b2c0b6ea3c37395aa5d6e38d5e73a.tar.bz2 |
xive/p9: Enforce thread enablement before TIMA accesses
To activate the HW thread context ring, and its associated thread
interrupt registers, a thread needs to raise the VT bit in word2. This
requires access to the TIMA and this access is only granted if the
thread was first enabled at the XIVE IC level.
This is done in a sequence in xive_cpu_callin() but there is a chance
that the accesses done on the TIMA do not see the update of the enable
register.
To make sure that the enablement has completed, add an extra load on
the PC_THREAD_EN_REGx register. This guarantees that the TIMA accesses
will see the latest state of the enable register.
Signed-off-by: Cédric Le Goater <clg@kaod.org>
Signed-off-by: Oliver O'Halloran <oohall@gmail.com>
Diffstat (limited to 'asm')
0 files changed, 0 insertions, 0 deletions