peci: PECI should depend on ARCH_ASPEED
PATCH 1/1 peci: PECI should depend on ARCH_ASPEED
The Platform Environment Control Interface (PECI) is only available on Baseboard Management Controllers (BMC) for Intel processors. Currently the only supported BMCs are ASpeed BMC SoCs. Hence add a dependency on ARCH_ASPEED, to prevent asking the user about the PECI subsystem when configuring a kernel without ASpeed SoC support.
--- drivers/peci/Kconfig | 1 + 1 file changed, 1 insertion(+)
drivers/peci/Kconfig +1 -0
@@ -2,6 +2,7 @@ menuconfig PECI tristate "PECI support" + depends on ARCH_ASPEED || COMPILE_TEST help The Platform Environment Control Interface (PECI) is an interface that provides a communication channel to Intel processors and
Signature · 1 line
2.25.1
Quoted 17 lines · Geert Uytterhoeven
The Platform Environment Control Interface (PECI) is only available on Baseboard Management Controllers (BMC) for Intel processors. Currently the only supported BMCs are ASpeed BMC SoCs. Hence add a dependency on
ARCH_ASPEED, to prevent asking the user about the PECI subsystem when configuring a kernel without ASpeed SoC support.Fixes 6523d3b2ffa238ac ("peci: Add core infrastructure")Signed-off-by Geert Uytterhoeven <[email protected]>--- drivers/peci/Kconfig | 1 + 1 file changed, 1 insertion(+)drivers/peci/Kconfig +0
-0
drivers/peci/Kconfig line 5
Quoted 4 lines
drivers/peci/Kconfig +1
-0@@ -2,6 +2,7 @@ menuconfig PECI tristate "PECI support" + depends on ARCH_ASPEED || COMPILE_TEST
I hate ARCH_ dependencies as there is nothing specific with that one platform that means that this driver subsystem will only work on that one.
I'm all for fixing build dependancies, but it should be fine to build all drivers for all arches.
So sorry, I don't like this change.
greg k-h
Quoted 19 lines · Greg Kroah-Hartman
Quoted 18 lines · Geert Uytterhoeven
The Platform Environment Control Interface (PECI) is only available on Baseboard Management Controllers (BMC) for Intel processors. Currently the only supported BMCs are ASpeed BMC SoCs. Hence add a dependency on
ARCH_ASPEED, to prevent asking the user about the PECI subsystem when configuring a kernel without ASpeed SoC support.Fixes 6523d3b2ffa238ac ("peci: Add core infrastructure")Signed-off-by Geert Uytterhoeven <[email protected]>--- drivers/peci/Kconfig | 1 + 1 file changed, 1 insertion(+)drivers/peci/Kconfig +0
-0@@ -2,6 +2,7 @@
Quoted 7 lines
drivers/peci/Kconfig line 5
Quoted 3 lines
drivers/peci/Kconfig +1
-0menuconfig PECI tristate "PECI support" + depends on ARCH_ASPEED || COMPILE_TESTI hate
ARCH_dependencies as there is nothing specific with that one platform that means that this driver subsystem will only work on that one.
The motivation in the commit message isn't even accurate because the chips under ARCH_NPCM are usually used as a BMC as well and PECI is just as important for them. HPE also has a custom chip they use as BMC and they've started the process for upstreaming that support.
Quoted 2 lines
I'm all for fixing build dependancies, but it should be fine to build all drivers for all arches.
There are a few drivers, like PECI and FSI, that are likely only useful when being used in the BMC space. Is it worth having a "config BMC" for drivers which are likely only useful in a BMC environment and that we can "if BMC" around these drivers so they get hidden from the menuconfig for typical use cases?
Signature · 1 line
Patrick Williams
Winiarska, Iwona
maintainerQuoted 28 lines · Patrick Williams
Quoted 13 lines · Greg Kroah-Hartman
Quoted 12 lines · Geert Uytterhoeven
The Platform Environment Control Interface (PECI) is only available on Baseboard Management Controllers (BMC) for Intel processors. Currently the only supported BMCs are ASpeed BMC SoCs. Hence add a dependency on
ARCH_ASPEED, to prevent asking the user about the PECI subsystem when configuring a kernel without ASpeed SoC support.Fixes 6523d3b2ffa238ac ("peci: Add core infrastructure")Signed-off-by Geert Uytterhoeven <[email protected]>---
drivers/peci/Kconfig | 1 +1 file changed, 1 insertion(+)Quoted 13 lines
Quoted 9 lines
drivers/peci/Kconfig +0
-0@@ -2,6 +2,7 @@
menuconfig PECI
tristate "PECI support"
+ depends onARCH_ASPEED||COMPILE_TESTI hate
ARCH_dependencies as there is nothing specific with that one platform that means that this driver subsystem will only work on that one.
Quoted 4 lines
The motivation in the commit message isn't even accurate because the chips under
ARCH_NPCMare usually used as a BMC as well and PECI is just as important for them. HPE also has a custom chip they use as BMC and they've started the process for upstreaming that support.
"Currently the only supported BMCs are ASpeed BMC SoCs."
From PECI subsystem perspective (not BMC support in general), it is technically true for now - but I agree with Greg and Patrick, this is just artificially introducing build-time dependencies where in fact there are none. And yes - we would then have to add the "depends on ARCH_YET_ANOTHER_ARCH" to generic subsystem anytime we add a new PECI controller. This belongs in the controller (and the ASPEED one depends on ARCH_ASPEED).
Quoted 9 lines
Quoted 3 lines
I'm all for fixing build dependancies, but it should be fine to build all drivers for all arches.
There are a few drivers, like PECI and FSI, that are likely only useful when being used in the BMC space. Is it worth having a "config BMC" for drivers which are likely only useful in a BMC environment and that we can "if BMC" around these drivers so they get hidden from the menuconfig for typical use cases?
We don't have "config SERVER/config DESKTOP/config IOT".
I don't think there's anything special about BMCs to benefit from introducing that (ultimately, this would be yet another "artificial build-time dependency").
Thanks
-Iwona
Quoted 1 line
Hi Iwona,
Quoted 34 lines · Iwona
Quoted 28 lines · Patrick Williams
Quoted 19 lines · Greg Kroah-Hartman
Quoted 18 lines · Geert Uytterhoeven
The Platform Environment Control Interface (PECI) is only available on Baseboard Management Controllers (BMC) for Intel processors. Currently the only supported BMCs are ASpeed BMC SoCs. Hence add a dependency on
ARCH_ASPEED, to prevent asking the user about the PECI subsystem when configuring a kernel without ASpeed SoC support.Fixes 6523d3b2ffa238ac ("peci: Add core infrastructure")Signed-off-by Geert Uytterhoeven <[email protected]>--- drivers/peci/Kconfig | 1 + 1 file changed, 1 insertion(+)drivers/peci/Kconfig +0
-0@@ -2,6 +2,7 @@Quoted 7 lines
drivers/peci/Kconfig line 5
Quoted 3 lines
drivers/peci/Kconfig +1
-0menuconfig PECI tristate "PECI support" + depends on ARCH_ASPEED || COMPILE_TESTI hate
ARCH_dependencies as there is nothing specific with that one platform that means that this driver subsystem will only work on that one.Quoted 4 lines
The motivation in the commit message isn't even accurate because the chips under
ARCH_NPCMare usually used as a BMC as well and PECI is just as important for them. HPE also has a custom chip they use as BMC and they've started the process for upstreaming that support.
Quoted 7 lines
"Currently the only supported BMCs are ASpeed BMC SoCs."
From PECI subsystem perspective (not BMC support in general), it is technically true for now - but I agree with Greg and Patrick, this is just artificially introducing build-time dependencies where in fact there are none. And yes - we would then have to add the "depends onARCH_YET_ANOTHER_ARCH" to generic subsystem anytime we add a new PECI controller. This belongs in the controller (and the ASPEED one depends onARCH_ASPEED).
OK, let's keep it as-is.
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]
In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds