Skip to contentSkip to conversation

riscv: config: Set MEDIA_SUPPORT_FILTER

PATCH In review Joel Stanley 3 participants 4 messages Apr 4, 2025 – Apr 15, 2025 RISC-V

lore
Share & tools
lore
#0 lore raw

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
index 0f7dcbe3c45b..c34fcf2c6a2f 100644
@@ -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
Reviewed-by on v1 1/1
#1 lore raw
Quoted 33 lines · Joel Stanley

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 index renamed from arch/riscv/configs/defconfig +0 -0

0f7dcbe3c45b..c34fcf2c6a2f 100644

arch/riscv/configs/defconfig +0 -0
@@ -182,6 +182,8 @@ CONFIG_REGULATOR_FIXED_VOLTAGE=y

CONFIG_REGULATOR_AXP20X=y CONFIG_REGULATOR_GPIO=y CONFIG_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

#2 lore raw
In reply to Joel Stanley

Hi Joel,

Quoted 9 lines · Joel Stanley

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.

Quoted 8 lines

---
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?

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
---
  arch/riscv/configs/defconfig | 2 ++
  1 file changed, 2 insertions(+)
arch/riscv/configs/defconfig +0 -0
index 0f7dcbe3c45b..c34fcf2c6a2f 100644

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

#3 lore raw
Quoted 23 lines · Alexandre Ghiti

Hi Joel,

Quoted 9 lines · Joel Stanley

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.

Quoted 8 lines

---
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?

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