Skip to contentSkip to conversation

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

DISCUSSION kernel test robot 3 participants 4 messages Dec 22, 2025 – Jan 8

lore
Share & tools
lore

kernel test robot

author build bot
#0 lore raw
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/[email protected]/config)
compiler: powerpc64-linux-gcc (GCC) 8.5.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251223/[email protected]/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 <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/

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!
Signature · 2 lines
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
#1 lore raw
Quoted 22 lines

From: lkp <[email protected]>
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/[email protected]/config)
compiler: powerpc64-linux-gcc (GCC) 8.5.0
reproduce (this is a W=1 build): (https://download.01.org/0day-
ci/archive/20251223/[email protected]/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 <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/202512230720.9y9DtWIo-
[email protected]/

Quoted 5 lines

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

Quoted 1 line
Quoted 1 line

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

#2 lore raw
Quoted 22 lines · Kevin
Quoted 22 lines

From: lkp <[email protected]>
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/[email protected]/config)
compiler: powerpc64-linux-gcc (GCC) 8.5.0
reproduce (this is a W=1 build): (https://download.01.org/0day-
ci/archive/20251223/[email protected]/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 <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/202512230720.9y9DtWIo-
[email protected]/

Quoted 8 lines
Quoted 5 lines

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

Quoted 1 line
Quoted 1 line

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/[email protected]/

commit efa03dab7ce4ed786b131f412440e2fd45fba11f does not have that change.

Jason

#3 lore raw
Quoted 31 lines

From: Jason Gunthorpe <[email protected]>
Sent: Tuesday, January 6, 2026 9:28 PM

Quoted 7 lines · Kevin
Quoted 7 lines

From: lkp <[email protected]>
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

Quoted 10 lines
Quoted 10 lines

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/[email protected]/config)
compiler: powerpc64-linux-gcc (GCC) 8.5.0
reproduce (this is a W=1 build): (https://download.01.org/0day-
ci/archive/20251223/[email protected]/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version

of

Quoted 8 lines
Quoted 8 lines

the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/202512230720.9y9DtWIo-
[email protected]/

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

Quoted 1 line
Quoted 1 line

ERROR: modpost: "__pt_no_sw_bit"

Quoted 8 lines
Quoted 4 lines
Quoted 2 lines

[drivers/iommu/generic_pt/fmt/iommu_amdv1.ko] undefined!

Jason, are you deliberately leaving it undefined to catch config which

shouldn't

Quoted 1 line

compile generic_pt in, or is it indeed a bug?

I think this was already fixed:

I pulled rc4. still can observe the error.

Quoted 4 lines

https://lore.kernel.org/all/0-v1-63a2cffb09da+4486-
[email protected]/

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