drm/tiny: pixpaper: add explicit dependency on MMU
Subsystems (2)
PATCH 1/1 drm/tiny: pixpaper: add explicit dependency on MMU
The DRM_GEM_SHMEM_HELPER helper requires MMU enabled because it uses vmf_insert_pfn() in its mmap implementation. On NOMMU configurations (e.g. some RISC-V randconfig builds), this symbol is unavailable and selecting DRM_GEM_SHMEM_HELPER causes a modpost undefined reference:
ERROR: modpost: "vmf_insert_pfn" [drivers/gpu/drm/drm_shmem_helper.ko] undefined!
Normally, Kconfig prevents this helper from being selected when CONFIG_MMU=n. However, in some randconfig builds (such as those used by 0day CI), select statements can override unmet dependencies, triggering the issue.
Add an explicit dependency on MMU to DRM_PIXPAPER to prevent this.
---
This patch fixes a build issue reported by the kernel test robot when building with CONFIG_MMU=n on RISC-V randconfig.
In such configurations, the DRM_GEM_SHMEM_HELPER helper uses vmf_insert_pfn(), which is unavailable without MMU support. Although normal Kconfig rules prevent DRM_GEM_SHMEM_HELPER from being selected in this case, randconfig builds may forcibly enable it via select, leading to the following modpost error:
ERROR: modpost: "vmf_insert_pfn" [drivers/gpu/drm/drm_shmem_helper.ko] undefined!
The fix is to add an explicit depends on MMU to the DRM_PIXPAPER driver, ensuring it cannot be built for NOMMU systems.
This issue cannot always be reproduced locally because typical builds do not violate Kconfig dependencies, but it was confirmed that the fix prevents the reported 0day failure.
---
LiangCheng Wang (1):
drm/tiny: pixpaper: add explicit dependency on MMU
drivers/gpu/drm/tiny/Kconfig
--- drivers/gpu/drm/tiny/Kconfig | 1 + 1 file changed, 1 insertion(+)
drivers/gpu/drm/tiny/Kconfig +1 -0
@@ -85,6 +85,7 @@ config DRM_PANEL_MIPI_DBI config DRM_PIXPAPER tristate "DRM support for PIXPAPER display panels" depends on DRM && SPI + depends on MMU select DRM_CLIENT_SELECTION select DRM_GEM_SHMEM_HELPER select DRM_KMS_HELPER
---
base-commit: fd57572253bc356330dbe5b233c2e1d8426c66fd
change-id: 20251028-bar-ae0d85b16f13
Best regards,
Signature · 1 line
LiangCheng Wang <[email protected]>
Thomas Zimmermann
maintainerHi
Am 28.10.25 um 03:55 schrieb LiangCheng Wang:
Quoted 28 lines
The
DRM_GEM_SHMEM_HELPERhelper requires MMU enabled because it usesvmf_insert_pfn()in its mmap implementation. On NOMMU configurations (e.g. some RISC-V randconfig builds), this symbol is unavailable and selectingDRM_GEM_SHMEM_HELPERcauses a modpost undefined reference:ERROR: modpost: "
vmf_insert_pfn" [drivers/gpu/drm/drm_shmem_helper.ko] undefined!Normally,
Kconfigprevents this helper from being selected whenCONFIG_MMU=n. However, in some randconfig builds (such as those used by 0day CI), select statements can override unmet dependencies, triggering the issue.Add an explicit dependency on MMU to
DRM_PIXPAPERto prevent this.Reported-by kernel test robot <[email protected]>Fixes 0c4932f6ddf8 ("drm/tiny: pixpaper: Fix missing dependency on DRM_GEM_SHMEM_HELPER")Signed-off-by LiangCheng Wang <[email protected]>---
This patch fixes a build issue reported by the kernel test robot when building withCONFIG_MMU=non RISC-V randconfig.In such configurations, the
DRM_GEM_SHMEM_HELPERhelper usesvmf_insert_pfn(), which is unavailable without MMU support. Although normalKconfigrules preventDRM_GEM_SHMEM_HELPERfrom being selected in this case, randconfig builds may forcibly enable it via select, leading to the following modpost error:
Quoted 8 lines
ERROR: modpost: "
vmf_insert_pfn" [drivers/gpu/drm/drm_shmem_helper.ko] undefined!The fix is to add an explicit
depends on MMUto theDRM_PIXPAPERdriver, ensuring it cannot be built for NOMMU systems.This issue cannot always be reproduced locally because typical builds do not violate
Kconfigdependencies, but it was confirmed that the fix prevents the reported 0day failure.
The problem most likely comes from [1]. Is it possible to fix this instead?
[1] https://elixir.bootlin.com/linux/v6.17.5/source/arch/riscv/Kconfig#L1345
Best regards
Thomas
Quoted 29 lines
---
LiangCheng Wang (1):
drm/tiny: pixpaper: add explicit dependency on MMU
drivers/gpu/drm/tiny/KconfigSigned-off-by LiangCheng Wang <[email protected]>--- drivers/gpu/drm/tiny/Kconfig | 1 + 1 file changed, 1 insertion(+)drivers/gpu/drm/tiny/Kconfig +1
-1@@ -85,6 +85,7 @@ config DRM_PANEL_MIPI_DBI config DRM_PIXPAPER tristate "DRM support for PIXPAPER display panels" depends on DRM && SPI + depends on MMU select DRM_CLIENT_SELECTION select DRM_GEM_SHMEM_HELPER select DRM_KMS_HELPER ---base-commit:
fd57572253bc356330dbe5b233c2e1d8426c66fd
change-id: 20251028-bar-ae0d85b16f13Best regards,
Signature · 7 lines
-- Thomas Zimmermann Graphics Driver Developer SUSE Software Solutions Germany GmbH Frankenstrasse 146, 90461 Nuernberg, Germany GF: Ivo Totev, Andrew Myers, Andrew McDonald, Boudien Moerman HRB 36809 (AG Nuernberg)
Hi Thomas,
Thanks for the clarification.
Just to confirm my understanding — are you suggesting that this issue should ideally be fixed in the RISC-V Kconfig (specifically the PORTABLE logic that ensures MMU is selected), rather than adding a local "depends on MMU" here in DRM_PIXPAPER?
If that’s the case and the root cause will be addressed in the RISC-V side, I’m happy to drop this patch to avoid redundant dependencies.
Best regards,
LiangCheng
Thomas Zimmermann
maintainerHi
Am 30.10.25 um 03:43 schrieb lcwang:
Quoted 11 lines
Hi Thomas,
Thanks for the clarification.
Just to confirm my understanding — are you suggesting that this issue should ideally be fixed in the RISC-V
Kconfig(specifically the PORTABLE logic that ensures MMU is selected), rather than adding a local "depends on MMU" here inDRM_PIXPAPER?If that’s the case and the root cause will be addressed in the RISC-V side, I’m happy to drop this patch to avoid redundant dependencies.
After reconsidering, we can merge your patch. Here's probably no easier solution to the problem.
Best regards
Thomas
Quoted 3 lines
Best regards,
LiangCheng
Signature · 7 lines
-- Thomas Zimmermann Graphics Driver Developer SUSE Software Solutions Germany GmbH Frankenstrasse 146, 90461 Nuernberg, Germany GF: Ivo Totev, Andrew Myers, Andrew McDonald, Boudien Moerman HRB 36809 (AG Nuernberg)
Am 28.10.25 um 03:55 schrieb LiangCheng Wang:
Quoted 12 lines
The
DRM_GEM_SHMEM_HELPERhelper requires MMU enabled because it usesvmf_insert_pfn()in its mmap implementation. On NOMMU configurations (e.g. some RISC-V randconfig builds), this symbol is unavailable and selectingDRM_GEM_SHMEM_HELPERcauses a modpost undefined reference:ERROR: modpost: "
vmf_insert_pfn" [drivers/gpu/drm/drm_shmem_helper.ko] undefined!Normally,
Kconfigprevents this helper from being selected whenCONFIG_MMU=n. However, in some randconfig builds (such as those used by 0day CI), select statements can override unmet dependencies, triggering the issue.
Quoted 6 lines
Add an explicit dependency on MMU to
DRM_PIXPAPERto prevent this.Reported-by kernel test robot <[email protected]>Fixes 0c4932f6ddf8 ("drm/tiny: pixpaper: Fix missing dependency on DRM_GEM_SHMEM_HELPER")Signed-off-by LiangCheng Wang <[email protected]>
Quoted 47 lines
---
This patch fixes a build issue reported by the kernel test robot when building withCONFIG_MMU=non RISC-V randconfig.In such configurations, the
DRM_GEM_SHMEM_HELPERhelper usesvmf_insert_pfn(), which is unavailable without MMU support. Although normalKconfigrules preventDRM_GEM_SHMEM_HELPERfrom being selected in this case, randconfig builds may forcibly enable it via select, leading to the following modpost error:ERROR: modpost: "
vmf_insert_pfn" [drivers/gpu/drm/drm_shmem_helper.ko] undefined!The fix is to add an explicit
depends on MMUto theDRM_PIXPAPERdriver, ensuring it cannot be built for NOMMU systems.This issue cannot always be reproduced locally because typical builds do not violate
Kconfigdependencies, but it was confirmed that the fix prevents the reported 0day failure.
---
LiangCheng Wang (1):
drm/tiny: pixpaper: add explicit dependency on MMU
drivers/gpu/drm/tiny/KconfigSigned-off-by LiangCheng Wang <[email protected]>--- drivers/gpu/drm/tiny/Kconfig | 1 + 1 file changed, 1 insertion(+)drivers/gpu/drm/tiny/Kconfig +1
-1@@ -85,6 +85,7 @@ config DRM_PANEL_MIPI_DBI config DRM_PIXPAPER tristate "DRM support for PIXPAPER display panels" depends on DRM && SPI + depends on MMU select DRM_CLIENT_SELECTION select DRM_GEM_SHMEM_HELPER select DRM_KMS_HELPER ---base-commit:
fd57572253bc356330dbe5b233c2e1d8426c66fd
change-id: 20251028-bar-ae0d85b16f13Best regards,
Signature · 7 lines
-- Thomas Zimmermann Graphics Driver Developer SUSE Software Solutions Germany GmbH Frankenstrasse 146, 90461 Nuernberg, Germany GF: Ivo Totev, Andrew Myers, Andrew McDonald, Boudien Moerman HRB 36809 (AG Nuernberg)