* [meta-rockchip][PATCH v2] kernel: restore options the 32-bit arch removal drops
@ 2026-11-04 13:02 Andrea Ricchi
2026-11-04 22:24 ` Trevor Woerner
2026-11-18 12:11 ` Trevor Woerner
0 siblings, 2 replies; 3+ messages in thread
From: Andrea Ricchi @ 2026-11-04 13:02 UTC (permalink / raw)
To: yocto-patches; +Cc: twoerner, Andrea Ricchi
multi_v7_defconfig does not list several options the Rockchip boards
rely on; it gets them through "select" from platforms that
remove-non-rockchip-arch-arm.cfg switches off (ARCH_OMAP2PLUS,
ARCH_VEXPRESS, ARCH_VIRT, ARCH_U8500, ...). Removing those platforms
therefore also removes:
REGULATOR_FIXED_VOLTAGE parent supply of the PMIC regulators
VFP, VFPv3, NEON, KERNEL_MODE_NEON
ARM_PSCI HAVE_ARM_SMCCC_DISCOVERY, which
ROCKCHIP_PM_DOMAINS depends on
ROCKCHIP_PM_DOMAINS
HIGHMEM
REALTEK_PHY
USB_EHCI_HCD_PLATFORM, USB_OHCI_HCD_PLATFORM
On tinker-board-s with linux-yocto 6.18 the kernel stops at "Waiting
for root device": the RK808 regulators have no parent supply, so the
SD host never gets vmmc. With the root mounted, every hard-float
binary would fail and the VOPs would never probe for lack of power
domains.
Add the options back in a fragment pulled in by the same scc, so the
removal no longer takes them along. Found by diffing the expanded
multi_v7_defconfig against the built .config.
Signed-off-by: Andrea Ricchi <andrea.ricchi@amarulasolutions.com>
---
v2: add the layer tag to the subject, the patch itself is unchanged.
.../rockchip/remove-non-rockchip-arch-arm.scc | 1 +
.../rockchip/restore-arm-selected-options.cfg | 26 +++++++++++++++++++
2 files changed, 27 insertions(+)
create mode 100644 recipes-kernel/linux/linux-rockchip/rockchip-kmeta/bsp/rockchip/restore-arm-selected-options.cfg
diff --git a/recipes-kernel/linux/linux-rockchip/rockchip-kmeta/bsp/rockchip/remove-non-rockchip-arch-arm.scc b/recipes-kernel/linux/linux-rockchip/rockchip-kmeta/bsp/rockchip/remove-non-rockchip-arch-arm.scc
index ce77704..da5c12e 100644
--- a/recipes-kernel/linux/linux-rockchip/rockchip-kmeta/bsp/rockchip/remove-non-rockchip-arch-arm.scc
+++ b/recipes-kernel/linux/linux-rockchip/rockchip-kmeta/bsp/rockchip/remove-non-rockchip-arch-arm.scc
@@ -1 +1,2 @@
kconf hardware remove-non-rockchip-arch-arm.cfg
+kconf hardware restore-arm-selected-options.cfg
diff --git a/recipes-kernel/linux/linux-rockchip/rockchip-kmeta/bsp/rockchip/restore-arm-selected-options.cfg b/recipes-kernel/linux/linux-rockchip/rockchip-kmeta/bsp/rockchip/restore-arm-selected-options.cfg
new file mode 100644
index 0000000..ababaf6
--- /dev/null
+++ b/recipes-kernel/linux/linux-rockchip/rockchip-kmeta/bsp/rockchip/restore-arm-selected-options.cfg
@@ -0,0 +1,26 @@
+# multi_v7_defconfig does not list these options; it gets them through
+# "select" from platforms that remove-non-rockchip-arch-arm.cfg switches
+# off (ARCH_OMAP2PLUS, ARCH_VEXPRESS, ARCH_VIRT, ARCH_U8500, ...). Set them
+# explicitly so removing those platforms does not remove them too.
+
+# regulator-fixed: parent supply of the PMIC regulators on most boards
+CONFIG_REGULATOR_FIXED_VOLTAGE=y
+
+# hard-float userspace
+CONFIG_VFP=y
+CONFIG_VFPv3=y
+CONFIG_NEON=y
+CONFIG_KERNEL_MODE_NEON=y
+
+# ROCKCHIP_PM_DOMAINS depends on HAVE_ARM_SMCCC_DISCOVERY, provided by
+# ARM_PSCI; without the power domains the VOPs, HDMI and IOMMUs never probe
+CONFIG_ARM_PSCI=y
+CONFIG_ROCKCHIP_PM_DOMAINS=y
+
+# boards with more than 768 MB
+CONFIG_HIGHMEM=y
+
+# Realtek PHYs on most boards, generic-ehci/generic-ohci in rk3288.dtsi
+CONFIG_REALTEK_PHY=y
+CONFIG_USB_EHCI_HCD_PLATFORM=y
+CONFIG_USB_OHCI_HCD_PLATFORM=y
--
2.53.0
^ permalink raw reply related [flat|nested] 3+ messages in thread* Re: [meta-rockchip][PATCH v2] kernel: restore options the 32-bit arch removal drops
2026-11-04 13:02 [meta-rockchip][PATCH v2] kernel: restore options the 32-bit arch removal drops Andrea Ricchi
@ 2026-11-04 22:24 ` Trevor Woerner
2026-11-18 12:11 ` Trevor Woerner
1 sibling, 0 replies; 3+ messages in thread
From: Trevor Woerner @ 2026-11-04 22:24 UTC (permalink / raw)
To: Andrea Ricchi; +Cc: yocto-patches
Hi Andrea,
On Wed 2026-11-04 @ 02:02:29 PM, Andrea Ricchi wrote:
> multi_v7_defconfig does not list several options the Rockchip boards
> rely on; it gets them through "select" from platforms that
> remove-non-rockchip-arch-arm.cfg switches off (ARCH_OMAP2PLUS,
> ARCH_VEXPRESS, ARCH_VIRT, ARCH_U8500, ...). Removing those platforms
> therefore also removes:
>
> REGULATOR_FIXED_VOLTAGE parent supply of the PMIC regulators
> VFP, VFPv3, NEON, KERNEL_MODE_NEON
> ARM_PSCI HAVE_ARM_SMCCC_DISCOVERY, which
> ROCKCHIP_PM_DOMAINS depends on
> ROCKCHIP_PM_DOMAINS
> HIGHMEM
> REALTEK_PHY
> USB_EHCI_HCD_PLATFORM, USB_OHCI_HCD_PLATFORM
>
> On tinker-board-s with linux-yocto 6.18 the kernel stops at "Waiting
> for root device": the RK808 regulators have no parent supply, so the
> SD host never gets vmmc. With the root mounted, every hard-float
> binary would fail and the VOPs would never probe for lack of power
> domains.
>
> Add the options back in a fragment pulled in by the same scc, so the
> removal no longer takes them along. Found by diffing the expanded
> multi_v7_defconfig against the built .config.
Out of curiosity, is this happening with or without the patch I recently
sent for review?
https://lists.yoctoproject.org/g/yocto-patches/topic/meta_rockchip_patch_v1/122073724
I don't expect the above patch to fix this if it was happening before,
but I'm curious if it only started after trying the above patch (if you
have tried both with and without it).
> Signed-off-by: Andrea Ricchi <andrea.ricchi@amarulasolutions.com>
> ---
> v2: add the layer tag to the subject, the patch itself is unchanged.
Thanks for adding the "meta-rockchip", that's how I filter (and notice)
them.
>
> .../rockchip/remove-non-rockchip-arch-arm.scc | 1 +
> .../rockchip/restore-arm-selected-options.cfg | 26 +++++++++++++++++++
> 2 files changed, 27 insertions(+)
> create mode 100644 recipes-kernel/linux/linux-rockchip/rockchip-kmeta/bsp/rockchip/restore-arm-selected-options.cfg
>
> diff --git a/recipes-kernel/linux/linux-rockchip/rockchip-kmeta/bsp/rockchip/remove-non-rockchip-arch-arm.scc b/recipes-kernel/linux/linux-rockchip/rockchip-kmeta/bsp/rockchip/remove-non-rockchip-arch-arm.scc
> index ce77704..da5c12e 100644
> --- a/recipes-kernel/linux/linux-rockchip/rockchip-kmeta/bsp/rockchip/remove-non-rockchip-arch-arm.scc
> +++ b/recipes-kernel/linux/linux-rockchip/rockchip-kmeta/bsp/rockchip/remove-non-rockchip-arch-arm.scc
> @@ -1 +1,2 @@
> kconf hardware remove-non-rockchip-arch-arm.cfg
> +kconf hardware restore-arm-selected-options.cfg
> diff --git a/recipes-kernel/linux/linux-rockchip/rockchip-kmeta/bsp/rockchip/restore-arm-selected-options.cfg b/recipes-kernel/linux/linux-rockchip/rockchip-kmeta/bsp/rockchip/restore-arm-selected-options.cfg
> new file mode 100644
> index 0000000..ababaf6
> --- /dev/null
> +++ b/recipes-kernel/linux/linux-rockchip/rockchip-kmeta/bsp/rockchip/restore-arm-selected-options.cfg
> @@ -0,0 +1,26 @@
> +# multi_v7_defconfig does not list these options; it gets them through
> +# "select" from platforms that remove-non-rockchip-arch-arm.cfg switches
> +# off (ARCH_OMAP2PLUS, ARCH_VEXPRESS, ARCH_VIRT, ARCH_U8500, ...). Set them
> +# explicitly so removing those platforms does not remove them too.
> +
> +# regulator-fixed: parent supply of the PMIC regulators on most boards
> +CONFIG_REGULATOR_FIXED_VOLTAGE=y
> +
> +# hard-float userspace
> +CONFIG_VFP=y
> +CONFIG_VFPv3=y
> +CONFIG_NEON=y
> +CONFIG_KERNEL_MODE_NEON=y
> +
> +# ROCKCHIP_PM_DOMAINS depends on HAVE_ARM_SMCCC_DISCOVERY, provided by
> +# ARM_PSCI; without the power domains the VOPs, HDMI and IOMMUs never probe
> +CONFIG_ARM_PSCI=y
> +CONFIG_ROCKCHIP_PM_DOMAINS=y
> +
> +# boards with more than 768 MB
> +CONFIG_HIGHMEM=y
> +
> +# Realtek PHYs on most boards, generic-ehci/generic-ohci in rk3288.dtsi
> +CONFIG_REALTEK_PHY=y
> +CONFIG_USB_EHCI_HCD_PLATFORM=y
> +CONFIG_USB_OHCI_HCD_PLATFORM=y
> --
> 2.53.0
>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [meta-rockchip][PATCH v2] kernel: restore options the 32-bit arch removal drops
2026-11-04 13:02 [meta-rockchip][PATCH v2] kernel: restore options the 32-bit arch removal drops Andrea Ricchi
2026-11-04 22:24 ` Trevor Woerner
@ 2026-11-18 12:11 ` Trevor Woerner
1 sibling, 0 replies; 3+ messages in thread
From: Trevor Woerner @ 2026-11-18 12:11 UTC (permalink / raw)
To: Andrea Ricchi; +Cc: yocto-patches
On Wed 2026-11-04 @ 02:02:29 PM, Andrea Ricchi wrote:
> multi_v7_defconfig does not list several options the Rockchip boards
> rely on; it gets them through "select" from platforms that
> remove-non-rockchip-arch-arm.cfg switches off (ARCH_OMAP2PLUS,
> ARCH_VEXPRESS, ARCH_VIRT, ARCH_U8500, ...). Removing those platforms
> therefore also removes:
>
> REGULATOR_FIXED_VOLTAGE parent supply of the PMIC regulators
> VFP, VFPv3, NEON, KERNEL_MODE_NEON
> ARM_PSCI HAVE_ARM_SMCCC_DISCOVERY, which
> ROCKCHIP_PM_DOMAINS depends on
> ROCKCHIP_PM_DOMAINS
> HIGHMEM
> REALTEK_PHY
> USB_EHCI_HCD_PLATFORM, USB_OHCI_HCD_PLATFORM
>
> On tinker-board-s with linux-yocto 6.18 the kernel stops at "Waiting
> for root device": the RK808 regulators have no parent supply, so the
> SD host never gets vmmc. With the root mounted, every hard-float
> binary would fail and the VOPs would never probe for lack of power
> domains.
>
> Add the options back in a fragment pulled in by the same scc, so the
> removal no longer takes them along. Found by diffing the expanded
> multi_v7_defconfig against the built .config.
>
> Signed-off-by: Andrea Ricchi <andrea.ricchi@amarulasolutions.com>
> ---
> v2: add the layer tag to the subject, the patch itself is unchanged.
>
> .../rockchip/remove-non-rockchip-arch-arm.scc | 1 +
> .../rockchip/restore-arm-selected-options.cfg | 26 +++++++++++++++++++
> 2 files changed, 27 insertions(+)
> create mode 100644 recipes-kernel/linux/linux-rockchip/rockchip-kmeta/bsp/rockchip/restore-arm-selected-options.cfg
Added to meta-rockchip, master branch. Thanks!
The kernel config mechanism has a funny way of working.
ARCH_ROCKCHIP, and several others, do not select VFP, NEON, and
REGULATOR_FIXED_VOLTAGE, even though they rely on these settings.
ARCH_OMAP2PLUS_TYPICAL does, and turning off ARCH_OMAP2PLUS takes it,
and those settings, with it.
But there are more. The same removal also drops eight CPU errata
workarounds, six of which apply to cores this layer ships: five
Cortex-A9 ones for rk3066 and rk3188, and ARM_ERRATA_814220 for the
Cortex-A7 parts. I recently sent this second patch to the list for
review. Both are needed; the errata patch applies on top of this one,
and will be applied at the same time.
> diff --git a/recipes-kernel/linux/linux-rockchip/rockchip-kmeta/bsp/rockchip/remove-non-rockchip-arch-arm.scc b/recipes-kernel/linux/linux-rockchip/rockchip-kmeta/bsp/rockchip/remove-non-rockchip-arch-arm.scc
> index ce77704..da5c12e 100644
> --- a/recipes-kernel/linux/linux-rockchip/rockchip-kmeta/bsp/rockchip/remove-non-rockchip-arch-arm.scc
> +++ b/recipes-kernel/linux/linux-rockchip/rockchip-kmeta/bsp/rockchip/remove-non-rockchip-arch-arm.scc
> @@ -1 +1,2 @@
> kconf hardware remove-non-rockchip-arch-arm.cfg
> +kconf hardware restore-arm-selected-options.cfg
> diff --git a/recipes-kernel/linux/linux-rockchip/rockchip-kmeta/bsp/rockchip/restore-arm-selected-options.cfg b/recipes-kernel/linux/linux-rockchip/rockchip-kmeta/bsp/rockchip/restore-arm-selected-options.cfg
> new file mode 100644
> index 0000000..ababaf6
> --- /dev/null
> +++ b/recipes-kernel/linux/linux-rockchip/rockchip-kmeta/bsp/rockchip/restore-arm-selected-options.cfg
> @@ -0,0 +1,26 @@
> +# multi_v7_defconfig does not list these options; it gets them through
> +# "select" from platforms that remove-non-rockchip-arch-arm.cfg switches
> +# off (ARCH_OMAP2PLUS, ARCH_VEXPRESS, ARCH_VIRT, ARCH_U8500, ...). Set them
> +# explicitly so removing those platforms does not remove them too.
> +
> +# regulator-fixed: parent supply of the PMIC regulators on most boards
> +CONFIG_REGULATOR_FIXED_VOLTAGE=y
> +
> +# hard-float userspace
> +CONFIG_VFP=y
> +CONFIG_VFPv3=y
> +CONFIG_NEON=y
> +CONFIG_KERNEL_MODE_NEON=y
> +
> +# ROCKCHIP_PM_DOMAINS depends on HAVE_ARM_SMCCC_DISCOVERY, provided by
> +# ARM_PSCI; without the power domains the VOPs, HDMI and IOMMUs never probe
> +CONFIG_ARM_PSCI=y
> +CONFIG_ROCKCHIP_PM_DOMAINS=y
> +
> +# boards with more than 768 MB
> +CONFIG_HIGHMEM=y
> +
> +# Realtek PHYs on most boards, generic-ehci/generic-ohci in rk3288.dtsi
> +CONFIG_REALTEK_PHY=y
> +CONFIG_USB_EHCI_HCD_PLATFORM=y
> +CONFIG_USB_OHCI_HCD_PLATFORM=y
> --
> 2.53.0
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2026-11-18 12:11 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-04 13:02 [meta-rockchip][PATCH v2] kernel: restore options the 32-bit arch removal drops Andrea Ricchi
2026-11-04 22:24 ` Trevor Woerner
2026-11-18 12:11 ` Trevor Woerner
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.