[PATCH v2 1/2] drivers/vfio_pci_core: Change PXD_ORDER check from switch case to if/else block

Madhavan Srinivasan maddy at linux.ibm.com
Wed Apr 8 14:29:06 AEST 2026


On Mon, 09 Mar 2026 18:08:37 +0530, Ritesh Harjani (IBM) wrote:
> Architectures like PowerPC uses runtime defined values for
> PMD_ORDER/PUD_ORDER. This is because it can use either RADIX or HASH MMU
> at runtime using kernel cmdline. So the pXd_index_size is not known at
> compile time. Without this fix, when we add huge pfn support on powerpc
> in the next patch, vfio_pci_core driver compilation can fail with the
> following errors.
> 
> [...]

Applied to powerpc/next.

[1/2] drivers/vfio_pci_core: Change PXD_ORDER check from switch case to if/else block
      https://git.kernel.org/powerpc/c/948b71aa81cd89b222942db6055e8d9c51c54e78
[2/2] powerpc/64s: Add support for huge pfnmaps
      https://git.kernel.org/powerpc/c/d1503aa9ab8057cb93367e0184528f61f7510845

cheers


More information about the Linuxppc-dev mailing list