Re: arch/powerpc/kvm/e500mc.c:95:15: error: invalid instruction

From: Nick Desaulniers
Date: Mon Jul 24 2023 - 13:15:29 EST


On Fri, Jul 21, 2023 at 4:38 PM Sean Christopherson <seanjc@xxxxxxxxxx> wrote:
>
> On Fri, Jul 21, 2023, kernel test robot wrote:
> > Hi Sean,
> >
> > FYI, the error/warning was bisected to this commit, please ignore it if it's irrelevant.
> >
> > tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
> > head: f7e3a1bafdea735050dfde00523cf505dc7fd309
> > commit: e83ca8cfa286c9fc78b585b0e66df7f542bcbcf2 KVM: PPC: booke: Mark three local functions "static"
> > date: 4 months ago
> > config: powerpc-randconfig-r001-20230721 (https://download.01.org/0day-ci/archive/20230721/202307211945.TSPcyOhh-lkp@xxxxxxxxx/config)
> > compiler: clang version 17.0.0 (https://github.com/llvm/llvm-project.git 4a5ac14ee968ff0ad5d2cc1ffa0299048db4c88a)
> > reproduce: (https://download.01.org/0day-ci/archive/20230721/202307211945.TSPcyOhh-lkp@xxxxxxxxx/reproduce)
> >
> > If you fix the issue in a separate patch/commit (i.e. not just a new version of
> > the same patch/commit), kindly add following tags
> > | Reported-by: kernel test robot <lkp@xxxxxxxxx>
> > | Closes: https://lore.kernel.org/oe-kbuild-all/202307211945.TSPcyOhh-lkp@xxxxxxxxx/
> >
> > All errors (new ones prefixed by >>):
> >
> > >> arch/powerpc/kvm/e500mc.c:95:15: error: invalid instruction
> > 95 | asm volatile("tlbilxlpid");
>
> I assume this is a binutils bug? I ran into a similar problem on PPC a while
> back where I couldn't cross-compile even relatively basic PPC code.
>

No, I think that LLVM is perhaps missing support for this instruction
Filed https://github.com/ClangBuiltLinux/linux/issues/1891 to track this.

--
Thanks,
~Nick Desaulniers