arm64: defconfig: Increase SERIAL_8250_NR_UARTS to 10
Heiko Stuebner
maintainerPATCH 1/1 arm64: defconfig: Increase SERIAL_8250_NR_UARTS to 10
From: Heiko Stuebner <[email protected]>
Boards using socs like the rk3588 can use up to 10 uarts, so the default of 4 is way too low. Therefore increase the maximum number to 10.
SERIAL_8250_RUNTIME_UARTS on the other hand describes the number of uart
data structures to prepare before registering them. This option can stay
at its default value of 4 since for one it can be changed via a boot
parameter 8250.nr_uarts but also since
commit 9d86719f8769 ("serial: 8250: Allow using ports higher than SERIAL_8250_RUNTIME_UARTS")
the kernel can register uarts dynamically that are above the SERIAL_8250_RUNTIME_UARTS threshold.
--- arch/arm64/configs/defconfig | 1 + 1 file changed, 1 insertion(+)
arch/arm64/configs/defconfig +1 -0
@@ -448,6 +448,7 @@ CONFIG_SERIO_AMBAKMI=y CONFIG_LEGACY_PTY_COUNT=16 CONFIG_SERIAL_8250=y CONFIG_SERIAL_8250_CONSOLE=y +CONFIG_SERIAL_8250_NR_UARTS=10 CONFIG_SERIAL_8250_EXTENDED=y CONFIG_SERIAL_8250_SHARE_IRQ=y CONFIG_SERIAL_8250_BCM2835AUX=y
Signature · 7 lines
2.39.2 _______________________________________________ Linux-rockchip mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-rockchip
+Francesco,
Quoted 11 lines · Heiko Stuebner
From: Heiko Stuebner <[email protected]>
Boards using socs like the rk3588 can use up to 10 uarts, so the default of 4 is way too low. Therefore increase the maximum number to 10.
SERIAL_8250_RUNTIME_UARTSon the other hand describes the number of uart
data structures to prepare before registering them. This option can stay
at its default value of 4 since for one it can be changed via a boot
parameter 8250.nr_uarts but also since
commit9d86719f8769("serial: 8250: Allow using ports higher thanSERIAL_8250_RUNTIME_UARTS")
Quoted 4 lines
the kernel can register uarts dynamically that are above the
SERIAL_8250_RUNTIME_UARTSthreshold.Signed-off-by Heiko Stuebner <[email protected]>
There is a competing patch set from Francesco being submitted as well:
https://lore.kernel.org/all/[email protected]/
looks like some coordination is necessary.
Signature · 7 lines
Florian _______________________________________________ Linux-rockchip mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-rockchip
Quoted 7 lines · Florian Fainelli
+Francesco,
Quoted 4 lines · Heiko Stuebner
From: Heiko Stuebner <[email protected]>
Boards using socs like the rk3588 can use up to 10 uarts, so the default of 4 is way too low. Therefore increase the maximum number to 10.
Do you have an actual need of 10, e.g. an existing board with 10 uarts enabled supported by the mainline kernel? Just thinking at the last arm64 SoC I am working with it should be 12 if we use this as a metric.
Quoted 9 lines
Quoted 9 lines
SERIAL_8250_RUNTIME_UARTSon the other hand describes the number of uart
data structures to prepare before registering them. This option can stay
at its default value of 4 since for one it can be changed via a boot
parameter 8250.nr_uarts but also since
commit9d86719f8769("serial: 8250: Allow using ports higher thanSERIAL_8250_RUNTIME_UARTS")the kernel can register uarts dynamically that are above the
SERIAL_8250_RUNTIME_UARTSthreshold.
Quoted 6 lines
Quoted 1 line
Signed-off-by Heiko Stuebner <[email protected]>There is a competing patch set from Francesco being submitted as well:
https://lore.kernel.org/all/[email protected]/looks like some coordination is necessary.
Yep, thanks Florian.
Heiko: should I include your needs in my patch? It looks like these are the days of the 8250 uart, I sent my patch just one day before yours.
Francesco
_______________________________________________
Linux-rockchip mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-rockchip
Heiko Stübner
maintainerHi,
Am Freitag, 1. Dezember 2023, 21:09:29 CET schrieb Francesco Dolcini:
Quoted 11 lines · Florian Fainelli
Quoted 7 lines
+Francesco,
Quoted 4 lines · Heiko Stuebner
From: Heiko Stuebner <[email protected]>
Boards using socs like the rk3588 can use up to 10 uarts, so the default of 4 is way too low. Therefore increase the maximum number to 10.
Do you have an actual need of 10, e.g. an existing board with 10 uarts enabled supported by the mainline kernel? Just thinking at the last arm64 SoC I am working with it should be 12 if we use this as a metric.
The rk3588 can do 10 (0-9), the board I'm working on is using up to uart7 (aka 8 uarts). Reasoning below in the 3rd paragraph.
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
SERIAL_8250_RUNTIME_UARTSon the other hand describes the number of uart
data structures to prepare before registering them. This option can stay
at its default value of 4 since for one it can be changed via a boot
parameter 8250.nr_uarts but also since
commit9d86719f8769("serial: 8250: Allow using ports higher thanSERIAL_8250_RUNTIME_UARTS")the kernel can register uarts dynamically that are above the
SERIAL_8250_RUNTIME_UARTSthreshold.
Quoted 6 lines
Quoted 6 lines
Quoted 1 line
Signed-off-by Heiko Stuebner <[email protected]>There is a competing patch set from Francesco being submitted as well:
https://lore.kernel.org/all/[email protected]/looks like some coordination is necessary.
Thanks Florian for catching this coincidence.
Quoted 4 lines
Yep, thanks Florian.
Heiko: should I include your needs in my patch? It looks like these are the days of the 8250 uart, I sent my patch just one day before yours.
yeah, I was surprised by the time overlap as well.
After reading up on NR_UARTS and NR_RUNTIME_UARTS I opted for going with the maximum possible.
From what I understood, increasing the runtime-uart-number would incur overhead in terms of prepared data structures. But the core NR_UARTS only seems to limit the actual maximum number of uarts in the system.
With the somewhat recent patch named above, even those can still be registered without bad effects, so I opted with increasing the NR_UARTS to the maximum to expect at some point, least the next board then needs yet another patch.
But left the runtime number alone to not create overhead.
So TL;DR:
I could live with the 8 from your original patch, but I guess would prefer going with a safer value, so the 10 or your 12 from above.
Because I guess if a controller is present, someone will use it eventually ;-).
Heiko
_______________________________________________
Linux-rockchip mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-rockchip
Heiko Stübner
maintainerAm Freitag, 1. Dezember 2023, 21:56:27 CET schrieb Heiko Stübner:
Quoted 59 lines
Hi,
Am Freitag, 1. Dezember 2023, 21:09:29 CET schrieb Francesco Dolcini:
Quoted 11 lines · Florian Fainelli
Quoted 7 lines
+Francesco,
Quoted 4 lines · Heiko Stuebner
From: Heiko Stuebner <[email protected]>
Boards using socs like the rk3588 can use up to 10 uarts, so the default of 4 is way too low. Therefore increase the maximum number to 10.
Do you have an actual need of 10, e.g. an existing board with 10 uarts enabled supported by the mainline kernel? Just thinking at the last arm64 SoC I am working with it should be 12 if we use this as a metric.
The rk3588 can do 10 (0-9), the board I'm working on is using up to uart7 (aka 8 uarts). Reasoning below in the 3rd paragraph.
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
SERIAL_8250_RUNTIME_UARTSon the other hand describes the number of uart
data structures to prepare before registering them. This option can stay
at its default value of 4 since for one it can be changed via a boot
parameter 8250.nr_uarts but also since
commit9d86719f8769("serial: 8250: Allow using ports higher thanSERIAL_8250_RUNTIME_UARTS")the kernel can register uarts dynamically that are above the
SERIAL_8250_RUNTIME_UARTSthreshold.Quoted 6 lines
Quoted 6 lines
Quoted 1 line
Signed-off-by Heiko Stuebner <[email protected]>There is a competing patch set from Francesco being submitted as well:
https://lore.kernel.org/all/[email protected]/looks like some coordination is necessary.
Thanks Florian for catching this coincidence.
Quoted 4 lines
Yep, thanks Florian.
Heiko: should I include your needs in my patch? It looks like these are the days of the 8250 uart, I sent my patch just one day before yours.
yeah, I was surprised by the time overlap as well.
After reading up on
NR_UARTSandNR_RUNTIME_UARTSI opted for going with the maximum possible.From what I understood, increasing the runtime-uart-number would incur overhead in terms of prepared data structures. But the core
NR_UARTSonly seems to limit the actual maximum number of uarts in the system.With the somewhat recent patch named above, even those can still be registered without bad effects, so I opted with increasing the
NR_UARTSto the maximum to expect at some point, least the next board then needs yet another patch.
But left the runtime number alone to not create overhead.
Quoted 6 lines
So TL;DR:
I could live with the 8 from your original patch, but I guess would prefer going with a safer value, so the 10 or your 12 from above.Because I guess if a controller is present, someone will use it eventually ;-).
and looking at other rk3588 boards the indiedroid-nova actually uses the uart9 (aka the 10th uart) ;-)
Also the turing-rk1 and orangepi-5-plus as well.
_______________________________________________
Linux-rockchip mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-rockchip
Quoted 64 lines · Heiko Stübner
Am Freitag, 1. Dezember 2023, 21:56:27 CET schrieb Heiko Stübner:
Quoted 63 lines
Hi,
Am Freitag, 1. Dezember 2023, 21:09:29 CET schrieb Francesco Dolcini:
Quoted 11 lines · Florian Fainelli
Quoted 7 lines
+Francesco,
Quoted 4 lines · Heiko Stuebner
From: Heiko Stuebner <[email protected]>
Boards using socs like the rk3588 can use up to 10 uarts, so the default of 4 is way too low. Therefore increase the maximum number to 10.
Do you have an actual need of 10, e.g. an existing board with 10 uarts enabled supported by the mainline kernel? Just thinking at the last arm64 SoC I am working with it should be 12 if we use this as a metric.
The rk3588 can do 10 (0-9), the board I'm working on is using up to uart7 (aka 8 uarts). Reasoning below in the 3rd paragraph.
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
SERIAL_8250_RUNTIME_UARTSon the other hand describes the number of uart
data structures to prepare before registering them. This option can stay
at its default value of 4 since for one it can be changed via a boot
parameter 8250.nr_uarts but also since
commit9d86719f8769("serial: 8250: Allow using ports higher thanSERIAL_8250_RUNTIME_UARTS")the kernel can register uarts dynamically that are above the
SERIAL_8250_RUNTIME_UARTSthreshold.Quoted 6 lines
Quoted 6 lines
Quoted 1 line
Signed-off-by Heiko Stuebner <[email protected]>There is a competing patch set from Francesco being submitted as well:
https://lore.kernel.org/all/[email protected]/looks like some coordination is necessary.
Thanks Florian for catching this coincidence.
Quoted 4 lines
Yep, thanks Florian.
Heiko: should I include your needs in my patch? It looks like these are the days of the 8250 uart, I sent my patch just one day before yours.
yeah, I was surprised by the time overlap as well.
After reading up on
NR_UARTSandNR_RUNTIME_UARTSI opted for going with the maximum possible.From what I understood, increasing the runtime-uart-number would incur overhead in terms of prepared data structures. But the core
NR_UARTSonly seems to limit the actual maximum number of uarts in the system.With the somewhat recent patch named above, even those can still be registered without bad effects, so I opted with increasing the
NR_UARTSto the maximum to expect at some point, least the next board then needs yet another patch.
But left the runtime number alone to not create overhead.So TL;DR:
I could live with the 8 from your original patch, but I guess would prefer going with a safer value, so the 10 or your 12 from above.
Quoted 5 lines
Quoted 2 lines
Because I guess if a controller is present, someone will use it eventually ;-).
and looking at other rk3588 boards the indiedroid-nova actually uses the uart9 (aka the 10th uart) ;-)
I think this is not relevant. It uses only 2 uart in total, it should just works with the actual config.
Francesco
_______________________________________________
Linux-rockchip mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-rockchip
Quoted 36 lines · Heiko Stübner
Hi,
Am Freitag, 1. Dezember 2023, 21:09:29 CET schrieb Francesco Dolcini:
Quoted 11 lines · Florian Fainelli
Quoted 7 lines
+Francesco,
Quoted 4 lines · Heiko Stuebner
From: Heiko Stuebner <[email protected]>
Boards using socs like the rk3588 can use up to 10 uarts, so the default of 4 is way too low. Therefore increase the maximum number to 10.
Do you have an actual need of 10, e.g. an existing board with 10 uarts enabled supported by the mainline kernel? Just thinking at the last arm64 SoC I am working with it should be 12 if we use this as a metric.
The rk3588 can do 10 (0-9), the board I'm working on is using up to uart7 (aka 8 uarts). Reasoning below in the 3rd paragraph.
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
SERIAL_8250_RUNTIME_UARTSon the other hand describes the number of uart
data structures to prepare before registering them. This option can stay
at its default value of 4 since for one it can be changed via a boot
parameter 8250.nr_uarts but also since
commit9d86719f8769("serial: 8250: Allow using ports higher thanSERIAL_8250_RUNTIME_UARTS")the kernel can register uarts dynamically that are above the
SERIAL_8250_RUNTIME_UARTSthreshold.Quoted 6 lines
Quoted 6 lines
Quoted 1 line
Signed-off-by Heiko Stuebner <[email protected]>There is a competing patch set from Francesco being submitted as well:
https://lore.kernel.org/all/[email protected]/looks like some coordination is necessary.
Quoted 6 lines
So TL;DR:
I could live with the 8 from your original patch, but I guess would prefer going with a safer value, so the 10 or your 12 from above.Because I guess if a controller is present, someone will use it eventually ;-).
There was an explicit push back on this approach from Arnd, see
https://lore.kernel.org/all/CAK8P3a2VSBvOn1o+q1PYZaQ6LS9U4cz+DZGuDbisHkwNs2dAAw@mail.gmail.com/
I would propose that we stay with my current proposal of 8.
Francesco
_______________________________________________
Linux-rockchip mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-rockchip
Heiko Stübner
maintainerAm Samstag, 2. Dezember 2023, 12:51:03 CET schrieb Francesco Dolcini:
Quoted 41 lines · Heiko Stübner
Quoted 40 lines
Hi,
Am Freitag, 1. Dezember 2023, 21:09:29 CET schrieb Francesco Dolcini:
Quoted 11 lines · Florian Fainelli
Quoted 7 lines
+Francesco,
Quoted 4 lines · Heiko Stuebner
From: Heiko Stuebner <[email protected]>
Boards using socs like the rk3588 can use up to 10 uarts, so the default of 4 is way too low. Therefore increase the maximum number to 10.
Do you have an actual need of 10, e.g. an existing board with 10 uarts enabled supported by the mainline kernel? Just thinking at the last arm64 SoC I am working with it should be 12 if we use this as a metric.
The rk3588 can do 10 (0-9), the board I'm working on is using up to uart7 (aka 8 uarts). Reasoning below in the 3rd paragraph.
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
SERIAL_8250_RUNTIME_UARTSon the other hand describes the number of uart
data structures to prepare before registering them. This option can stay
at its default value of 4 since for one it can be changed via a boot
parameter 8250.nr_uarts but also since
commit9d86719f8769("serial: 8250: Allow using ports higher thanSERIAL_8250_RUNTIME_UARTS")the kernel can register uarts dynamically that are above the
SERIAL_8250_RUNTIME_UARTSthreshold.Quoted 6 lines
Quoted 6 lines
Quoted 1 line
Signed-off-by Heiko Stuebner <[email protected]>There is a competing patch set from Francesco being submitted as well:
https://lore.kernel.org/all/[email protected]/looks like some coordination is necessary.
So TL;DR:
I could live with the 8 from your original patch, but I guess would prefer going with a safer value, so the 10 or your 12 from above.
Quoted 5 lines
Quoted 2 lines
Because I guess if a controller is present, someone will use it eventually ;-).
There was an explicit push back on this approach from Arnd, see
https://lore.kernel.org/all/CAK8P3a2VSBvOn1o+q1PYZaQ6LS9U4cz+DZGuDbisHkwNs2dAAw@mail.gmail.com/
aliases really are a matter of difficult discussions ;-) I.e. Krzysztof's argument some days ago was
"No, this should be per-board to match board labeling/schematics."
https://lore.kernel.org/all/[email protected]/
And on Rockchip socs everyting from soc manual, board schematics down to the description of pin headers use the uart controller number so people will expect uart9 to be ttyS9 on the system as well.
Quoted 1 line
I would propose that we stay with my current proposal of 8.
But ok we can go this route, simply as the current board I'm working on only use 8, so I can leave that "fight" to someone else ;-)
Heiko
_______________________________________________
Linux-rockchip mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-rockchip
Hi all,
Quoted 60 lines · Heiko Stübner
Am Samstag, 2. Dezember 2023, 12:51:03 CET schrieb Francesco Dolcini:
Quoted 41 lines · Heiko Stübner
Quoted 40 lines
Hi,
Am Freitag, 1. Dezember 2023, 21:09:29 CET schrieb Francesco Dolcini:
Quoted 11 lines · Florian Fainelli
Quoted 7 lines
+Francesco,
Quoted 4 lines · Heiko Stuebner
From: Heiko Stuebner <[email protected]>
Boards using socs like the rk3588 can use up to 10 uarts, so the default of 4 is way too low. Therefore increase the maximum number to 10.
Do you have an actual need of 10, e.g. an existing board with 10 uarts enabled supported by the mainline kernel? Just thinking at the last arm64 SoC I am working with it should be 12 if we use this as a metric.
The rk3588 can do 10 (0-9), the board I'm working on is using up to uart7 (aka 8 uarts). Reasoning below in the 3rd paragraph.
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
SERIAL_8250_RUNTIME_UARTSon the other hand describes the number of uart
data structures to prepare before registering them. This option can stay
at its default value of 4 since for one it can be changed via a boot
parameter 8250.nr_uarts but also since
commit9d86719f8769("serial: 8250: Allow using ports higher thanSERIAL_8250_RUNTIME_UARTS")the kernel can register uarts dynamically that are above the
SERIAL_8250_RUNTIME_UARTSthreshold.Quoted 6 lines
Quoted 6 lines
Quoted 1 line
Signed-off-by Heiko Stuebner <[email protected]>There is a competing patch set from Francesco being submitted as well:
https://lore.kernel.org/all/[email protected]/looks like some coordination is necessary.
So TL;DR:
I could live with the 8 from your original patch, but I guess would prefer going with a safer value, so the 10 or your 12 from above.Quoted 5 lines
Quoted 2 lines
Because I guess if a controller is present, someone will use it eventually ;-).
There was an explicit push back on this approach from Arnd, see
https://lore.kernel.org/all/CAK8P3a2VSBvOn1o+q1PYZaQ6LS9U4cz+DZGuDbisHkwNs2dAAw@mail.gmail.com/aliases really are a matter of difficult discussions ;-) I.e. Krzysztof's argument some days ago was
"No, this should be per-board to match board labeling/schematics."
https://lore.kernel.org/all/[email protected]/
And on Rockchip socs everyting from soc manual, board schematics down to the description of pin headers use the uart controller number so people will expect uart9 to be ttyS9 on the system as well.
Quoted 5 lines
Quoted 1 line
I would propose that we stay with my current proposal of 8.
But ok we can go this route, simply as the current board I'm working on only use 8, so I can leave that "fight" to someone else ;-)
Actually, UART8 and UART9 (so the 9th and 10th controllers) are exposed on the Mezzanine connector and we have a HW design for a daughterboard using that already. So we'll eventually support it upstream as well.
So at least 10 is necessary if I understood correctly.
And yes, those are really named after their controller indices on the schematics. So we need the value of the symbol to be that high.
Cheers,
Quentin
_______________________________________________
Linux-rockchip mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-rockchip