[PATCH] [Zesty] UBUNTU: SAUCE: powerpc/powernv: Tell OPAL about our MMU mode on POWER9

Stefan Bader stefan.bader at canonical.com
Tue Jul 18 07:11:23 UTC 2017


On 18.07.2017 03:05, Michael Ellerman wrote:
> Breno Leitao <leitao at debian.org> writes:
> 
>> diff --git a/arch/powerpc/platforms/powernv/opal.c b/arch/powerpc/platforms/powernv/opal.c
>> index e0f856bfbfe8..a3b6de84f49c 100644
>> --- a/arch/powerpc/platforms/powernv/opal.c
>> +++ b/arch/powerpc/platforms/powernv/opal.c
>> @@ -66,11 +68,24 @@ void opal_configure_cores(void)
>>  	 * but it might clobber a bunch.
>>  	 */
>>  #ifdef __BIG_ENDIAN__
>> -	opal_reinit_cpus(OPAL_REINIT_CPUS_HILE_BE);
>> +	reinit_flags |= OPAL_REINIT_CPUS_HILE_BE;
>>  #else
>> -	opal_reinit_cpus(OPAL_REINIT_CPUS_HILE_LE);
>> +	reinit_flags |= OPAL_REINIT_CPUS_HILE_LE;
>>  #endif
>>  
>> +	/*
>> +	 * POWER9 always support running hash:
>> +	 *  ie. Host hash  supports  hash guests
>> +	 *      Host radix supports  hash/radix guests
>> +	 */
>> +	if (cpu_has_feature(CPU_FTR_ARCH_300)) {
> 
> This is wrong. It can break booting on bare-metal Power8 machines with
> some versions of firmware.
> 
> Fix here:
> 
> https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git/commit/?h=fixes&id=a70b487b07cf4201bc6702e7f646fa593b23009f
> 
> http://patchwork.ozlabs.org/patch/789381/

Ok, that is in linux-next by now (see attached).

-Stefan
> 
> 
> cheers
> 

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-powerpc-powernv-Fix-boot-on-Power8-bare-metal-due-to.patch
Type: text/x-patch
Size: 2017 bytes
Desc: not available
URL: <https://lists.ubuntu.com/archives/kernel-team/attachments/20170718/82f008fb/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <https://lists.ubuntu.com/archives/kernel-team/attachments/20170718/82f008fb/attachment.sig>


More information about the kernel-team mailing list