From: Boris Brezillon <hidden> Date: 2015-01-13 10:39:27
The DEBUG_UART_PHYS/VIRT value can only be automatically set once
(automatically means set from the DEBUG_<SOC_ID>_<UART_ID> option), which
prevents re-configuring the earlyprintk output for another platform once
the DEBUG_LL output has been selected.
Add a new boolean option (DEBUG_CUSTOM_UART_ADDR) enabling custom phys and
virt address setting (configured through DEBUG_CUSTOM_UART_PHYS/VIRT
options), and make DEBUG_UART_PHYS/VIRT hidden so that they will always be
set from one of the 'default' definitions, and thus will be overwritten
each time you change the DEBUG_LL output.
Signed-off-by: Boris Brezillon <redacted>
---
Hello,
I know there is some WIP on DEBUG_LL and multi-platform [1], but from my
understanding (tell me if I'm wrong), it does not address this "select once
keep forever" issue.
Best Regards,
Boris
[1]https://lkml.org/lkml/2015/1/5/275
arch/arm/Kconfig.debug | 19 +++++++++++++++++--
1 file changed, 17 insertions(+), 2 deletions(-)
@@ -1227,8 +1227,22 @@ config DEBUG_UART_8250configDEBUG_UART_BCM63XXdef_boolARCH_BCM_63XX-configDEBUG_UART_PHYS+configDEBUG_CUSTOM_UART_ADDR+bool"Custom phys and virt address for debug uart"++configDEBUG_CUSTOM_UART_PHYShex"Physical base address of debug UART"+depends onDEBUG_CUSTOM_UART_ADDR+default0x0++configDEBUG_CUSTOM_UART_VIRT+hex"Virtual base address of debug UART"+depends onDEBUG_CUSTOM_UART_ADDR+default0x0++configDEBUG_UART_PHYS+hex+defaultDEBUG_CUSTOM_UART_PHYSifDEBUG_CUSTOM_UART_ADDRdefault0x01c20000ifDEBUG_DAVINCI_DMx_UART0default0x01c28000ifDEBUG_SUNXI_UART0default0x01c28400ifDEBUG_SUNXI_UART1
@@ -1323,7 +1337,8 @@ config DEBUG_UART_PHYSDEBUG_UART_BCM63XX||DEBUG_ASM9260_UARTconfigDEBUG_UART_VIRT-hex"Virtual base address of debug UART"+hex+defaultDEBUG_CUSTOM_UART_VIRTifMMU&&DEBUG_CUSTOM_UART_ADDRdefault0xe0010fe0ifARCH_RPCdefault0xe1000000ifDEBUG_MSM_UARTdefault0xf0000be0ifARCH_EBSA110
From: Thomas Petazzoni <hidden> Date: 2015-06-17 12:47:08
Hello,
On Tue, 13 Jan 2015 11:37:48 +0100, Boris Brezillon wrote:
The DEBUG_UART_PHYS/VIRT value can only be automatically set once
(automatically means set from the DEBUG_<SOC_ID>_<UART_ID> option), which
prevents re-configuring the earlyprintk output for another platform once
the DEBUG_LL output has been selected.
Add a new boolean option (DEBUG_CUSTOM_UART_ADDR) enabling custom phys and
virt address setting (configured through DEBUG_CUSTOM_UART_PHYS/VIRT
options), and make DEBUG_UART_PHYS/VIRT hidden so that they will always be
set from one of the 'default' definitions, and thus will be overwritten
each time you change the DEBUG_LL output.
Signed-off-by: Boris Brezillon <redacted>
What is the status of this patch? It would actually be quite useful
when switching back and forth between different DEBUG_LL configurations.
Russell, what do you think of the proposed approach?
Thanks,
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
From: Russell King - ARM Linux <hidden> Date: 2015-06-17 19:41:20
On Wed, Jun 17, 2015 at 02:46:56PM +0200, Thomas Petazzoni wrote:
What is the status of this patch? It would actually be quite useful
when switching back and forth between different DEBUG_LL configurations.
Russell, what do you think of the proposed approach?
I'd rather we killed all the defaults, rather than keep trying to fix
these subtle issues. That was always my goal of converting to this
model anyway.
However, I think it's important not to loose this information (how many
of us with lots of different platforms want to keep on digging through
PDFs to try and find this documentation?) I'd like to see a per-SoC
file somewhere in Documentation/arm/ giving these details so at least
they're relatively easy to find.
--
FTTC broadband for 0.8mile line: currently at 10.5Mbps down 400kbps up
according to speedtest.net.
From: Thomas Petazzoni <hidden> Date: 2015-06-17 20:10:15
Russell,
On Wed, 17 Jun 2015 20:40:58 +0100, Russell King - ARM Linux wrote:
quoted
Russell, what do you think of the proposed approach?
I'd rather we killed all the defaults, rather than keep trying to fix
these subtle issues. That was always my goal of converting to this
model anyway.
However, I think it's important not to loose this information (how many
of us with lots of different platforms want to keep on digging through
PDFs to try and find this documentation?) I'd like to see a per-SoC
file somewhere in Documentation/arm/ giving these details so at least
they're relatively easy to find.
I personally find having the defaults for various popular platforms
readily available in menuconfig to be a lot easier than having to dig
some documentation to find the appropriate addresses.
I.e, the current way is perfect. It's just that there is no need to
show the physical/virtual addresses if an existing well-known platform
is selected, especially as it causes weird behavior due to how kconfig
works. Which Boris patch is solving.
Best regards,
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com