public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* arch/powerpc/kvm/e500mc.c:95:15: error: invalid instruction
@ 2023-07-21 11:34 kernel test robot
  2023-07-21 23:38 ` Sean Christopherson
  0 siblings, 1 reply; 3+ messages in thread
From: kernel test robot @ 2023-07-21 11:34 UTC (permalink / raw)
  To: Sean Christopherson; +Cc: llvm, oe-kbuild-all, linux-kernel, Michael Ellerman

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@intel.com/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@intel.com/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@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202307211945.TSPcyOhh-lkp@intel.com/

All errors (new ones prefixed by >>):

>> arch/powerpc/kvm/e500mc.c:95:15: error: invalid instruction
      95 |         asm volatile("tlbilxlpid");
         |                      ^
   <inline asm>:1:2: note: instantiated into assembly here
       1 |         tlbilxlpid
         |         ^~~~~~~~~~
>> arch/powerpc/kvm/e500mc.c:95:15: error: invalid instruction
      95 |         asm volatile("tlbilxlpid");
         |                      ^
   <inline asm>:1:2: note: instantiated into assembly here
       1 |         tlbilxlpid
         |         ^~~~~~~~~~
   2 errors generated.


vim +95 arch/powerpc/kvm/e500mc.c

73196cd364a2d9 Scott Wood    2011-12-20  88  
73196cd364a2d9 Scott Wood    2011-12-20  89  void kvmppc_e500_tlbil_all(struct kvmppc_vcpu_e500 *vcpu_e500)
73196cd364a2d9 Scott Wood    2011-12-20  90  {
73196cd364a2d9 Scott Wood    2011-12-20  91  	unsigned long flags;
73196cd364a2d9 Scott Wood    2011-12-20  92  
73196cd364a2d9 Scott Wood    2011-12-20  93  	local_irq_save(flags);
188e267ce249b4 Mihai Caraman 2014-09-01  94  	mtspr(SPRN_MAS5, MAS5_SGS | get_lpid(&vcpu_e500->vcpu));
73196cd364a2d9 Scott Wood    2011-12-20 @95  	asm volatile("tlbilxlpid");
73196cd364a2d9 Scott Wood    2011-12-20  96  	mtspr(SPRN_MAS5, 0);
73196cd364a2d9 Scott Wood    2011-12-20  97  	local_irq_restore(flags);
73196cd364a2d9 Scott Wood    2011-12-20  98  }
73196cd364a2d9 Scott Wood    2011-12-20  99  

:::::: The code at line 95 was first introduced by commit
:::::: 73196cd364a2d972d73fa08da9d81ca3215bed68 KVM: PPC: e500mc support

:::::: TO: Scott Wood <scottwood@freescale.com>
:::::: CC: Avi Kivity <avi@redhat.com>

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: arch/powerpc/kvm/e500mc.c:95:15: error: invalid instruction
  2023-07-21 11:34 arch/powerpc/kvm/e500mc.c:95:15: error: invalid instruction kernel test robot
@ 2023-07-21 23:38 ` Sean Christopherson
  2023-07-24 17:15   ` Nick Desaulniers
  0 siblings, 1 reply; 3+ messages in thread
From: Sean Christopherson @ 2023-07-21 23:38 UTC (permalink / raw)
  To: kernel test robot; +Cc: llvm, oe-kbuild-all, linux-kernel, Michael Ellerman

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@intel.com/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@intel.com/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@intel.com>
> | Closes: https://lore.kernel.org/oe-kbuild-all/202307211945.TSPcyOhh-lkp@intel.com/
> 
> 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.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: arch/powerpc/kvm/e500mc.c:95:15: error: invalid instruction
  2023-07-21 23:38 ` Sean Christopherson
@ 2023-07-24 17:15   ` Nick Desaulniers
  0 siblings, 0 replies; 3+ messages in thread
From: Nick Desaulniers @ 2023-07-24 17:15 UTC (permalink / raw)
  To: Sean Christopherson
  Cc: kernel test robot, llvm, oe-kbuild-all, linux-kernel,
	Michael Ellerman

On Fri, Jul 21, 2023 at 4:38 PM Sean Christopherson <seanjc@google.com> 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@intel.com/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@intel.com/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@intel.com>
> > | Closes: https://lore.kernel.org/oe-kbuild-all/202307211945.TSPcyOhh-lkp@intel.com/
> >
> > 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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-07-24 17:15 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-07-21 11:34 arch/powerpc/kvm/e500mc.c:95:15: error: invalid instruction kernel test robot
2023-07-21 23:38 ` Sean Christopherson
2023-07-24 17:15   ` Nick Desaulniers

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox