RFC um: drop broken features to fix allyesconfig
Get series with b4
b4 am [email protected]Versions newest first
- v1 RFC Latest2 patches 12 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | um: drivers: remove support for UML_NET_PCAParch/ arch/ arch/ +2 more | +2 | 9 replies | |
| 2/2 | uml: remove support for CONFIG_STATIC_LINKarch/ arch/ arch/ +2 more | +172 | 2 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [RFC v1 0/2] um: drop broken features to fix allyesconfig
# TL;DR
This patchset drops two broken features in an attempt to get allyesconfig closer to working for ARCH=um.
# What am I trying to do?
This patchset is part of my attempt to get make ARCH=um allyesconfig to produce a config that will build *and* boot to init, so that I can use it as a mechanism to run tests[1].
# How far away are we from an allyesconfig UML kernel?
I have identified 33 Kconfigs that are selected by allyesconfig, but will either not build on UML, or prevent it from booting. They are:
CONFIG_STATIC_LINK=yCONFIG_UML_NET_PCAP=yCONFIG_NET_PTP_CLASSIFY=yCONFIG_IP_VS=yCONFIG_BRIDGE_EBT_BROUTE=yCONFIG_BRIDGE_EBT_T_FILTER=yCONFIG_BRIDGE_EBT_T_NAT=yCONFIG_MTD_NAND_CADENCE=yCONFIG_MTD_NAND_NANDSIM=yCONFIG_BLK_DEV_NULL_BLK=yCONFIG_BLK_DEV_RAM=yCONFIG_SCSI_DEBUG=yCONFIG_NET_VENDOR_XILINX=yCONFIG_NULL_TTY=yCONFIG_PTP_1588_CLOCK=yCONFIG_PINCTRL_EQUILIBRIUM=yCONFIG_DMABUF_SELFTESTS=yCONFIG_COMEDI=yCONFIG_XIL_AXIS_FIFO=yCONFIG_EXFAT_FS=yCONFIG_STM_DUMMY=yCONFIG_FSI_MASTER_ASPEED=yCONFIG_JFS_FS=yCONFIG_UBIFS_FS=yCONFIG_CRAMFS=yCONFIG_CRYPTO_DEV_SAFEXCEL=yCONFIG_CRYPTO_DEV_AMLOGIC_GXL=yCONFIG_KCOV=yCONFIG_LKDTM=yCONFIG_REED_SOLOMON_TEST=yCONFIG_TEST_RHASHTABLE=yCONFIG_TEST_MEMINIT=yCONFIG_NETWORK_PHY_TIMESTAMPING=y
This patchset attempts to deal with CONFIG_STATIC_LINK=y and CONFIG_UML_NET_PCAP=y by just removing them since they are broken and appear to have been broken for some time. (I am aware of the taboo of dropping configs, but given the amount of time they have been broken, I figured that I might be able to get away with it in this case, which is easier than trying to actually fix them.)
I also have a patch out to fix CONFIG_EXFAT_FS=y[2].
After this I plan on going after
CONFIG_PINCTRL_EQUILIBRIUM=yCONFIG_MTD_NAND_CADENCE=yCONFIG_FSI_MASTER_ASPEED=yCONFIG_CRYPTO_DEV_SAFEXCEL=yCONFIG_XIL_AXIS_FIFO=yCONFIG_CRYPTO_DEV_AMLOGIC_GXL=yCONFIG_XILINX_AXI_EMAC=y
the problem with these is that they depend on devm_platform_ioremap_resource without explicitly depending on CONFIG_HAS_IOMEM=y.
Also note that I don't think that CONFIG_NULL_TTY=y is actually broken on UML; however, console seems to get assigned to the null TTY by default when it is enabled, so I added it to the list for the sake of completeness.
The other broken configs require more investigation (I would welcome help, if anyone is interested ;-) ).
# Why won't allyesconfig break again after this series of fixes?
As I mentioned above, I am using UML for testing the kernel, and I am currently working on getting my tests to run on KernelCI. As part of our testing procedure for KernelCI, we are planning on building a UML kernel using allyesconfig and running our tests on it. Thus, we will find out very quickly once someone breaks allyesconfig again once we get this all working.
Brendan Higgins (2):
um: drivers: remove support for UML_NET_PCAP
uml: remove support for CONFIG_STATIC_LINK
arch/um/Kconfig | 23 +---- arch/um/Makefile | 3 +- arch/um/drivers/Kconfig | 16 ---- arch/um/drivers/Makefile | 17 +--- arch/um/drivers/pcap_kern.c | 113 ---------------------- arch/um/drivers/pcap_user.c | 137 --------------------------- arch/um/drivers/pcap_user.h | 21 ----- arch/um/kernel/dyn.lds.S | 170 ---------------------------------- arch/um/kernel/uml.lds.S | 115 ----------------------- arch/um/kernel/vmlinux.lds.S | 175 ++++++++++++++++++++++++++++++++++- 10 files changed, 174 insertions(+), 616 deletions(-) delete mode 100644 arch/um/drivers/pcap_kern.c delete mode 100644 arch/um/drivers/pcap_user.c delete mode 100644 arch/um/drivers/pcap_user.h delete mode 100644 arch/um/kernel/dyn.lds.S delete mode 100644 arch/um/kernel/uml.lds.S
Looking forward to hearing people's thoughts!
[1] https://bugzilla.kernel.org/show_bug.cgi?id=205223
[2] https://patchwork.kernel.org/patch/11273771/
Signature · 7 lines
2.24.0.393.g34dc348eaf-goog _______________________________________________ linux-um mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-um