]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Verify (and fix) the context_id argument passed to the mpentry () by PSCI.
authormmel <mmel@FreeBSD.org>
Mon, 14 Dec 2020 11:57:43 +0000 (11:57 +0000)
committermmel <mmel@FreeBSD.org>
Mon, 14 Dec 2020 11:57:43 +0000 (11:57 +0000)
commitd8fdd47bbb305cfa6c7eff821ed989e380869aa7
treed330a339fc6f53a82e4b04a5b1ef47f5b82a47aa
parent432e398ecca9d91bc293909d2b12190f26077745
Verify (and fix) the context_id argument passed to the mpentry () by PSCI.

Some older PSCI implementations corrupt (or do not pass) the context_id
argument to newly started secondary cores. Although the ideal solution to this
problem is u-boot update, we can find the correct value for the argument (cpuid)
by comparing of real core mpidr register with the value stored in pcu->mpidr.

MFC after: 2 weeks
sys/arm64/arm64/mp_machdep.c