riscv: config: Set MEDIA_SUPPORT_FILTER
PATCH 1/1 riscv: config: Set MEDIA_SUPPORT_FILTER
When Hal enabled MEIDA_SUPPORT in order to add the VIDEO_CADENCE_CSI2RX driver in commit d8a7d89abb09 ("riscv: defconfig: Enable StarFive JH7110 drivers"), it turned on a few hundred (254) other MEDIA drivers.
The subsystem has a option for this very case that keeps the other drivers disabled: MEDIA_SUPPORT_FILTER. Turn that on, and MEDIA_PLATFORM_SUPPORT, so the CSI2RX driver stays enabled.
---
The filter option only appears in a small handful of arm32 defconfigs (and I maintain a few of them). That's because MEDIA_SUPPORT_FILTER is normally enabled unless EXPERT is on.
The root of the issue is the riscv defconfig selects EXPERT. Most arch-wide defconfig don't have that on. Need to get to the bottom of that, and perhaps disable EXPERT?
--- arch/riscv/configs/defconfig | 2 ++ 1 file changed, 2 insertions(+)
arch/riscv/configs/defconfig +2 -0
@@ -182,6 +182,8 @@ CONFIG_REGULATOR_FIXED_VOLTAGE=y CONFIG_REGULATOR_AXP20X=y CONFIG_REGULATOR_GPIO=y CONFIG_MEDIA_SUPPORT=m +CONFIG_MEDIA_SUPPORT_FILTER=y +CONFIG_MEDIA_PLATFORM_SUPPORT=y CONFIG_VIDEO_CADENCE_CSI2RX=m CONFIG_DRM=m CONFIG_DRM_RADEON=m
Signature · 7 lines
2.47.2 _______________________________________________ linux-riscv mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-riscv
Quoted 33 lines · Joel Stanley
When Hal enabled
MEIDA_SUPPORTin order to add theVIDEO_CADENCE_CSI2RXdriver in commitd8a7d89abb09("riscv: defconfig:
Enable StarFive JH7110 drivers"), it turned on a few hundred (254) other MEDIA drivers.The subsystem has a option for this very case that keeps the other drivers
disabled:MEDIA_SUPPORT_FILTER. Turn that on, andMEDIA_PLATFORM_SUPPORT, so the CSI2RX driver stays enabled.Signed-off-by Joel Stanley <[email protected]>---
The filter option only appears in a small handful of arm32 defconfigs (and I maintain a few of them). That's becauseMEDIA_SUPPORT_FILTERis normally enabled unless EXPERT is on.The root of the issue is the riscv defconfig selects EXPERT. Most arch-wide defconfig don't have that on. Need to get to the bottom of that, and perhaps disable EXPERT?
Signed-off-by Joel Stanley <[email protected]>--- arch/riscv/configs/defconfig | 2 ++ 1 file changed, 2 insertions(+)arch/riscv/configs/defconfig index renamed from arch/riscv/configs/defconfig +0
-0
0f7dcbe3c45b..c34fcf2c6a2f100644arch/riscv/configs/defconfig +0
-0@@ -182,6 +182,8 @@ CONFIG_REGULATOR_FIXED_VOLTAGE=y
CONFIG_REGULATOR_AXP20X=yCONFIG_REGULATOR_GPIO=yCONFIG_MEDIA_SUPPORT=m
arch/riscv/configs/defconfig CONFIG_REGULATOR_FIXED_VOLTAGE=y · line 189
Quoted 5 lines
arch/riscv/configs/defconfig +2
-0+CONFIG_MEDIA_SUPPORT_FILTER=y +CONFIG_MEDIA_PLATFORM_SUPPORT=y CONFIG_VIDEO_CADENCE_CSI2RX=m CONFIG_DRM=m CONFIG_DRM_RADEON=m
Best regards,
Hal
_______________________________________________
linux-riscv mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-riscv
Alexandre Ghiti
reviewerHi Joel,
Quoted 9 lines · Joel Stanley
When Hal enabled
MEIDA_SUPPORTin order to add theVIDEO_CADENCE_CSI2RXdriver in commitd8a7d89abb09("riscv: defconfig: Enable StarFive JH7110 drivers"), it turned on a few hundred (254) other MEDIA drivers.The subsystem has a option for this very case that keeps the other drivers disabled:
MEDIA_SUPPORT_FILTER. Turn that on, andMEDIA_PLATFORM_SUPPORT, so the CSI2RX driver stays enabled.Signed-off-by Joel Stanley <[email protected]>
Quoted 8 lines
---
The filter option only appears in a small handful of arm32 defconfigs (and I maintain a few of them). That's becauseMEDIA_SUPPORT_FILTERis normally enabled unless EXPERT is on.The root of the issue is the riscv defconfig selects EXPERT. Most arch-wide defconfig don't have that on. Need to get to the bottom of that, and perhaps disable EXPERT?
I could not find the specific reason why we enabled EXPERT in defconfig. Given the description of this config (https://elixir.bootlin.com/linux/v6.14-rc6/source/init/Kconfig#L1545), I think it should be removed from defconfig instead, that will fix the "issue" your uncovered here and maybe others?
Let me know what you think,
Thanks,
Alex
Quoted 11 lines
Signed-off-by Joel Stanley <[email protected]>--- arch/riscv/configs/defconfig | 2 ++ 1 file changed, 2 insertions(+)arch/riscv/configs/defconfig +0
-0
arch/riscv/configs/defconfig CONFIG_REGULATOR_FIXED_VOLTAGE=y · line 189
Quoted 8 lines
arch/riscv/configs/defconfig +2
-0@@ -182,6 +182,8 @@ CONFIG_REGULATOR_FIXED_VOLTAGE=y CONFIG_REGULATOR_AXP20X=y CONFIG_REGULATOR_GPIO=y CONFIG_MEDIA_SUPPORT=m +CONFIG_MEDIA_SUPPORT_FILTER=y +CONFIG_MEDIA_PLATFORM_SUPPORT=y CONFIG_VIDEO_CADENCE_CSI2RX=m CONFIG_DRM=m CONFIG_DRM_RADEON=m
_______________________________________________
linux-riscv mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-riscv
Quoted 23 lines · Alexandre Ghiti
Hi Joel,
Quoted 9 lines · Joel Stanley
When Hal enabled
MEIDA_SUPPORTin order to add theVIDEO_CADENCE_CSI2RXdriver in commitd8a7d89abb09("riscv: defconfig: Enable StarFive JH7110 drivers"), it turned on a few hundred (254) other MEDIA drivers.The subsystem has a option for this very case that keeps the other drivers disabled:
MEDIA_SUPPORT_FILTER. Turn that on, andMEDIA_PLATFORM_SUPPORT, so the CSI2RX driver stays enabled.Signed-off-by Joel Stanley <[email protected]>Quoted 8 lines
---
The filter option only appears in a small handful of arm32 defconfigs (and I maintain a few of them). That's becauseMEDIA_SUPPORT_FILTERis normally enabled unless EXPERT is on.The root of the issue is the riscv defconfig selects EXPERT. Most arch-wide defconfig don't have that on. Need to get to the bottom of that, and perhaps disable EXPERT?
Quoted 5 lines
I could not find the specific reason why we enabled EXPERT in defconfig. Given the description of this config
(https://elixir.bootlin.com/linux/v6.14-rc6/source/init/Kconfig#L1545),
I think it should be removed from defconfig instead, that will fix the "issue" your uncovered here and maybe others?
Yeah, I agree. I've prepared a patch that removes EXPERT with some commentary on the fallout. I'll send that now as a replacement for this patch.
Cheers,
Joel
_______________________________________________
linux-riscv mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-riscv