]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
[PowerPC64LE] Fix AP spinup on powernv.
authorbdragon <bdragon@FreeBSD.org>
Wed, 23 Sep 2020 01:56:26 +0000 (01:56 +0000)
committerbdragon <bdragon@FreeBSD.org>
Wed, 23 Sep 2020 01:56:26 +0000 (01:56 +0000)
commit68d65343daf0bb94b04c99ff78bb8e55e02a228d
tree7863071f0169e7fb7b470398b45321c81e57c942
parentcb9daaf905b94d16eb5cc94bbc5198002447794b
[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