Bharata B Rao <bhar...@linux.ibm.com> writes: > H_REGISTER_PROC_TBL asks for GTSE by default. GTSE flag bit should > be set only when GTSE is supported. > Reviewed-by: Aneesh Kumar K.V <aneesh.ku...@linux.ibm.com>
> Signed-off-by: Bharata B Rao <bhar...@linux.ibm.com> > --- > arch/powerpc/platforms/pseries/lpar.c | 8 +++++--- > 1 file changed, 5 insertions(+), 3 deletions(-) > > diff --git a/arch/powerpc/platforms/pseries/lpar.c > b/arch/powerpc/platforms/pseries/lpar.c > index fd26f3d21d7b..f82569a505f1 100644 > --- a/arch/powerpc/platforms/pseries/lpar.c > +++ b/arch/powerpc/platforms/pseries/lpar.c > @@ -1680,9 +1680,11 @@ static int > pseries_lpar_register_process_table(unsigned long base, > > if (table_size) > flags |= PROC_TABLE_NEW; > - if (radix_enabled()) > - flags |= PROC_TABLE_RADIX | PROC_TABLE_GTSE; > - else > + if (radix_enabled()) { > + flags |= PROC_TABLE_RADIX; > + if (mmu_has_feature(MMU_FTR_GTSE)) > + flags |= PROC_TABLE_GTSE; > + } else > flags |= PROC_TABLE_HPT_SLB; > for (;;) { > rc = plpar_hcall_norets(H_REGISTER_PROC_TBL, flags, base, > -- > 2.21.3