public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* ERROR: modpost: "__pt_no_sw_bit" [drivers/iommu/generic_pt/fmt/iommu_amdv1.ko] undefined!
@ 2025-12-22 23:25 kernel test robot
  2026-01-06  8:09 ` Tian, Kevin
  0 siblings, 1 reply; 4+ messages in thread
From: kernel test robot @ 2025-12-22 23:25 UTC (permalink / raw)
  To: Jason Gunthorpe; +Cc: oe-kbuild-all, linux-kernel, Joerg Roedel, Kevin Tian

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   b927546677c876e26eba308550207c2ddf812a43
commit: efa03dab7ce4ed786b131f412440e2fd45fba11f iommupt: Flush the CPU cache after any writes to the page table
date:   7 weeks ago
config: powerpc64-randconfig-r051-20251223 (https://download.01.org/0day-ci/archive/20251223/202512230720.9y9DtWIo-lkp@intel.com/config)
compiler: powerpc64-linux-gcc (GCC) 8.5.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251223/202512230720.9y9DtWIo-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/202512230720.9y9DtWIo-lkp@intel.com/

All errors (new ones prefixed by >>, old ones prefixed by <<):

>> ERROR: modpost: "__pt_no_sw_bit" [drivers/iommu/generic_pt/fmt/iommu_amdv1.ko] undefined!

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

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

* RE: ERROR: modpost: "__pt_no_sw_bit" [drivers/iommu/generic_pt/fmt/iommu_amdv1.ko] undefined!
  2025-12-22 23:25 ERROR: modpost: "__pt_no_sw_bit" [drivers/iommu/generic_pt/fmt/iommu_amdv1.ko] undefined! kernel test robot
@ 2026-01-06  8:09 ` Tian, Kevin
  2026-01-06 13:28   ` Jason Gunthorpe
  0 siblings, 1 reply; 4+ messages in thread
From: Tian, Kevin @ 2026-01-06  8:09 UTC (permalink / raw)
  To: lkp, Jason Gunthorpe
  Cc: oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org,
	Joerg Roedel

> From: lkp <lkp@intel.com>
> Sent: Tuesday, December 23, 2025 7:25 AM
> 
> tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
> master
> head:   b927546677c876e26eba308550207c2ddf812a43
> commit: efa03dab7ce4ed786b131f412440e2fd45fba11f iommupt: Flush the
> CPU cache after any writes to the page table
> date:   7 weeks ago
> config: powerpc64-randconfig-r051-20251223
> (https://download.01.org/0day-
> ci/archive/20251223/202512230720.9y9DtWIo-lkp@intel.com/config)
> compiler: powerpc64-linux-gcc (GCC) 8.5.0
> reproduce (this is a W=1 build): (https://download.01.org/0day-
> ci/archive/20251223/202512230720.9y9DtWIo-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/202512230720.9y9DtWIo-
> lkp@intel.com/
> 
> All errors (new ones prefixed by >>, old ones prefixed by <<):
> 
> >> ERROR: modpost: "__pt_no_sw_bit"
> [drivers/iommu/generic_pt/fmt/iommu_amdv1.ko] undefined!
> 

Jason, are you deliberately leaving it undefined to catch config which shouldn't
compile generic_pt in, or is it indeed a bug?

seems on x86 pt_feature() is inline built so all the reference to __pt_no_sw_bit
is removed statically due to:

        if (!PT_SUPPORTED_FEATURE(feature_nr))
                return false;

but ppc64 builds pt_feature() as an external symbol then hitting trouble on
undefined __pt_no_sw_bit...

Thanks
Kevin

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

* Re: ERROR: modpost: "__pt_no_sw_bit" [drivers/iommu/generic_pt/fmt/iommu_amdv1.ko] undefined!
  2026-01-06  8:09 ` Tian, Kevin
@ 2026-01-06 13:28   ` Jason Gunthorpe
  2026-01-08  2:31     ` Tian, Kevin
  0 siblings, 1 reply; 4+ messages in thread
From: Jason Gunthorpe @ 2026-01-06 13:28 UTC (permalink / raw)
  To: Tian, Kevin
  Cc: lkp, oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org,
	Joerg Roedel

On Tue, Jan 06, 2026 at 08:09:27AM +0000, Tian, Kevin wrote:
> > From: lkp <lkp@intel.com>
> > Sent: Tuesday, December 23, 2025 7:25 AM
> > 
> > tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
> > master
> > head:   b927546677c876e26eba308550207c2ddf812a43
> > commit: efa03dab7ce4ed786b131f412440e2fd45fba11f iommupt: Flush the
> > CPU cache after any writes to the page table
> > date:   7 weeks ago
> > config: powerpc64-randconfig-r051-20251223
> > (https://download.01.org/0day-
> > ci/archive/20251223/202512230720.9y9DtWIo-lkp@intel.com/config)
> > compiler: powerpc64-linux-gcc (GCC) 8.5.0
> > reproduce (this is a W=1 build): (https://download.01.org/0day-
> > ci/archive/20251223/202512230720.9y9DtWIo-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/202512230720.9y9DtWIo-
> > lkp@intel.com/
> > 
> > All errors (new ones prefixed by >>, old ones prefixed by <<):
> > 
> > >> ERROR: modpost: "__pt_no_sw_bit"
> > [drivers/iommu/generic_pt/fmt/iommu_amdv1.ko] undefined!
> > 
> 
> Jason, are you deliberately leaving it undefined to catch config which shouldn't
> compile generic_pt in, or is it indeed a bug?

I think this was already fixed:

https://lore.kernel.org/all/0-v1-63a2cffb09da+4486-iommufd_gcc_bounds_jgg@nvidia.com/

commit efa03dab7ce4ed786b131f412440e2fd45fba11f does not have that
change.

Jason

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

* RE: ERROR: modpost: "__pt_no_sw_bit" [drivers/iommu/generic_pt/fmt/iommu_amdv1.ko] undefined!
  2026-01-06 13:28   ` Jason Gunthorpe
@ 2026-01-08  2:31     ` Tian, Kevin
  0 siblings, 0 replies; 4+ messages in thread
From: Tian, Kevin @ 2026-01-08  2:31 UTC (permalink / raw)
  To: Jason Gunthorpe
  Cc: lkp, oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org,
	Joerg Roedel

> From: Jason Gunthorpe <jgg@nvidia.com>
> Sent: Tuesday, January 6, 2026 9:28 PM
> 
> On Tue, Jan 06, 2026 at 08:09:27AM +0000, Tian, Kevin wrote:
> > > From: lkp <lkp@intel.com>
> > > Sent: Tuesday, December 23, 2025 7:25 AM
> > >
> > > tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
> > > master
> > > head:   b927546677c876e26eba308550207c2ddf812a43
> > > commit: efa03dab7ce4ed786b131f412440e2fd45fba11f iommupt: Flush
> the
> > > CPU cache after any writes to the page table
> > > date:   7 weeks ago
> > > config: powerpc64-randconfig-r051-20251223
> > > (https://download.01.org/0day-
> > > ci/archive/20251223/202512230720.9y9DtWIo-lkp@intel.com/config)
> > > compiler: powerpc64-linux-gcc (GCC) 8.5.0
> > > reproduce (this is a W=1 build): (https://download.01.org/0day-
> > > ci/archive/20251223/202512230720.9y9DtWIo-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/202512230720.9y9DtWIo-
> > > lkp@intel.com/
> > >
> > > All errors (new ones prefixed by >>, old ones prefixed by <<):
> > >
> > > >> ERROR: modpost: "__pt_no_sw_bit"
> > > [drivers/iommu/generic_pt/fmt/iommu_amdv1.ko] undefined!
> > >
> >
> > Jason, are you deliberately leaving it undefined to catch config which
> shouldn't
> > compile generic_pt in, or is it indeed a bug?
> 
> I think this was already fixed:

I pulled rc4. still can observe the error.

> 
> https://lore.kernel.org/all/0-v1-63a2cffb09da+4486-
> iommufd_gcc_bounds_jgg@nvidia.com/
> 

that seems to fix an out-of-bound selftest error. Not about this one?

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

end of thread, other threads:[~2026-01-08  2:31 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-12-22 23:25 ERROR: modpost: "__pt_no_sw_bit" [drivers/iommu/generic_pt/fmt/iommu_amdv1.ko] undefined! kernel test robot
2026-01-06  8:09 ` Tian, Kevin
2026-01-06 13:28   ` Jason Gunthorpe
2026-01-08  2:31     ` Tian, Kevin

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