]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
[PowerPC64LE] Fix AP spinup on powernv.
authorBrandon Bergren <bdragon@FreeBSD.org>
Wed, 23 Sep 2020 01:56:26 +0000 (01:56 +0000)
committerBrandon Bergren <bdragon@FreeBSD.org>
Wed, 23 Sep 2020 01:56:26 +0000 (01:56 +0000)
commit0d356a5349afc0d67bdbb20097f912c69213e187
tree7863071f0169e7fb7b470398b45321c81e57c942
parent05c3051f860f66d5997278b175634f07fe10a644
[PowerPC64LE] Fix AP spinup on powernv.

OPAL unconditionally enters secondary CPUs with only HV and SF set.

I tried writing a secondary entry point instead, but OPAL rejected it
and I am unsure why, so I resorted to making the system reset interrupt
endian-flexible.

This means we take a slight performance hit on wakeup on LE, but it is
a good stopgap until we can figure out a reliable way to make OPAL enter
where we want it to.

It probably makes sense to have it around anyway, because I can imagine
scenarios where the cpu resets itself to BE and does a software reset.

Sponsored by: Tag1 Consulting, Inc.
sys/powerpc/aim/trap_subr64.S
sys/powerpc/include/asm.h