linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ARM: OMAP2+: allow DEBUG_UNCOMPRESS for OMAP2+
@ 2015-12-29  4:09 Yong Li
  2016-02-19 18:02 ` Tony Lindgren
  0 siblings, 1 reply; 4+ messages in thread
From: Yong Li @ 2015-12-29  4:09 UTC (permalink / raw)
  To: sdliyong, linux; +Cc: linux-arm-kernel, linux-kernel, linux-omap

Based on the below
commit ae3c99a26c60 ("ARM: 7806/1: allow DEBUG_UNCOMPRESS for Tegra"),
change the .data section to .text section,
to enable DEBUG_UNCOMPRESS for OMAP2+ platforms
Tested okay using BeagleBone Black

Signed-off-by: Yong Li <sdliyong@gmail.com>
---
 arch/arm/Kconfig.debug             |  2 +-
 arch/arm/include/debug/omap2plus.S | 13 ++++++++++---
 2 files changed, 11 insertions(+), 4 deletions(-)

diff --git a/arch/arm/Kconfig.debug b/arch/arm/Kconfig.debug
index 259c0ca..e5ae36a 100644
--- a/arch/arm/Kconfig.debug
+++ b/arch/arm/Kconfig.debug
@@ -1596,7 +1596,7 @@ config DEBUG_UART_8250_FLOW_CONTROL
 config DEBUG_UNCOMPRESS
 	bool
 	depends on ARCH_MULTIPLATFORM || PLAT_SAMSUNG || ARM_SINGLE_ARMV7M
-	default y if DEBUG_LL && !DEBUG_OMAP2PLUS_UART && \
+	default y if DEBUG_LL && (!DEBUG_OMAP2PLUS_UART || !ZBOOT_ROM) && \
 		     (!DEBUG_TEGRA_UART || !ZBOOT_ROM)
 	help
 	  This option influences the normal decompressor output for
diff --git a/arch/arm/include/debug/omap2plus.S b/arch/arm/include/debug/omap2plus.S
index 6d867ae..12421f9 100644
--- a/arch/arm/include/debug/omap2plus.S
+++ b/arch/arm/include/debug/omap2plus.S
@@ -58,11 +58,18 @@
 
 #define UART_OFFSET(addr)	((addr) & 0x00ffffff)
 
+#if defined(ZIMAGE)
+	omap_uart_phys:	.word	0
+	omap_uart_virt:	.word	0
+	omap_uart_lsr:	.word	0
+#else
+
 		.pushsection .data
-omap_uart_phys:	.word	0
-omap_uart_virt:	.word	0
-omap_uart_lsr:	.word	0
+	omap_uart_phys:	.word	0
+	omap_uart_virt:	.word	0
+	omap_uart_lsr:	.word	0
 		.popsection
+#endif
 
 		.macro	addruart, rp, rv, tmp
 
-- 
2.1.4


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] ARM: OMAP2+: allow DEBUG_UNCOMPRESS for OMAP2+
  2015-12-29  4:09 [PATCH] ARM: OMAP2+: allow DEBUG_UNCOMPRESS for OMAP2+ Yong Li
@ 2016-02-19 18:02 ` Tony Lindgren
  2016-02-21 12:19   ` LIYONG
  0 siblings, 1 reply; 4+ messages in thread
From: Tony Lindgren @ 2016-02-19 18:02 UTC (permalink / raw)
  To: Yong Li; +Cc: linux, linux-arm-kernel, linux-kernel, linux-omap

Hi,

* Yong Li <sdliyong@gmail.com> [151228 20:12]:
> Based on the below
> commit ae3c99a26c60 ("ARM: 7806/1: allow DEBUG_UNCOMPRESS for Tegra"),
> change the .data section to .text section,
> to enable DEBUG_UNCOMPRESS for OMAP2+ platforms
> Tested okay using BeagleBone Black

Sorry for the delay, I just noticed this one while looking
through my inbox for pending patches.

I think we should first simplify things by moving things over
to use the generic DEBUG_UART_8250 code where the addresses
need to be specified in the .config. It's been on my list of
things to do for quite a while but I keep getting interrupted.

My guess is that if we do that, this patch is no longer
needed :) Yong, care to take a look at that?

Regards,

Tony

> Signed-off-by: Yong Li <sdliyong@gmail.com>
> ---
>  arch/arm/Kconfig.debug             |  2 +-
>  arch/arm/include/debug/omap2plus.S | 13 ++++++++++---
>  2 files changed, 11 insertions(+), 4 deletions(-)
> 
> diff --git a/arch/arm/Kconfig.debug b/arch/arm/Kconfig.debug
> index 259c0ca..e5ae36a 100644
> --- a/arch/arm/Kconfig.debug
> +++ b/arch/arm/Kconfig.debug
> @@ -1596,7 +1596,7 @@ config DEBUG_UART_8250_FLOW_CONTROL
>  config DEBUG_UNCOMPRESS
>  	bool
>  	depends on ARCH_MULTIPLATFORM || PLAT_SAMSUNG || ARM_SINGLE_ARMV7M
> -	default y if DEBUG_LL && !DEBUG_OMAP2PLUS_UART && \
> +	default y if DEBUG_LL && (!DEBUG_OMAP2PLUS_UART || !ZBOOT_ROM) && \
>  		     (!DEBUG_TEGRA_UART || !ZBOOT_ROM)
>  	help
>  	  This option influences the normal decompressor output for
> diff --git a/arch/arm/include/debug/omap2plus.S b/arch/arm/include/debug/omap2plus.S
> index 6d867ae..12421f9 100644
> --- a/arch/arm/include/debug/omap2plus.S
> +++ b/arch/arm/include/debug/omap2plus.S
> @@ -58,11 +58,18 @@
>  
>  #define UART_OFFSET(addr)	((addr) & 0x00ffffff)
>  
> +#if defined(ZIMAGE)
> +	omap_uart_phys:	.word	0
> +	omap_uart_virt:	.word	0
> +	omap_uart_lsr:	.word	0
> +#else
> +
>  		.pushsection .data
> -omap_uart_phys:	.word	0
> -omap_uart_virt:	.word	0
> -omap_uart_lsr:	.word	0
> +	omap_uart_phys:	.word	0
> +	omap_uart_virt:	.word	0
> +	omap_uart_lsr:	.word	0
>  		.popsection
> +#endif
>  
>  		.macro	addruart, rp, rv, tmp
>  
> -- 
> 2.1.4
> 
> --
> To unsubscribe from this list: send the line "unsubscribe linux-omap" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] ARM: OMAP2+: allow DEBUG_UNCOMPRESS for OMAP2+
  2016-02-19 18:02 ` Tony Lindgren
@ 2016-02-21 12:19   ` LIYONG
  2016-02-21 15:34     ` Tony Lindgren
  0 siblings, 1 reply; 4+ messages in thread
From: LIYONG @ 2016-02-21 12:19 UTC (permalink / raw)
  To: Tony Lindgren; +Cc: linux, linux-arm-kernel, linux-kernel, linux-omap

no problem, let me submit another patch

> 在 2016年2月20日,02:02,Tony Lindgren <tony@atomide.com> 写道:
> 
> Hi,
> 
> * Yong Li <sdliyong@gmail.com> [151228 20:12]:
>> Based on the below
>> commit ae3c99a26c60 ("ARM: 7806/1: allow DEBUG_UNCOMPRESS for Tegra"),
>> change the .data section to .text section,
>> to enable DEBUG_UNCOMPRESS for OMAP2+ platforms
>> Tested okay using BeagleBone Black
> 
> Sorry for the delay, I just noticed this one while looking
> through my inbox for pending patches.
> 
> I think we should first simplify things by moving things over
> to use the generic DEBUG_UART_8250 code where the addresses
> need to be specified in the .config. It's been on my list of
> things to do for quite a while but I keep getting interrupted.
> 
> My guess is that if we do that, this patch is no longer
> needed :) Yong, care to take a look at that?
> 
> Regards,
> 
> Tony
> 
>> Signed-off-by: Yong Li <sdliyong@gmail.com>
>> ---
>> arch/arm/Kconfig.debug             |  2 +-
>> arch/arm/include/debug/omap2plus.S | 13 ++++++++++---
>> 2 files changed, 11 insertions(+), 4 deletions(-)
>> 
>> diff --git a/arch/arm/Kconfig.debug b/arch/arm/Kconfig.debug
>> index 259c0ca..e5ae36a 100644
>> --- a/arch/arm/Kconfig.debug
>> +++ b/arch/arm/Kconfig.debug
>> @@ -1596,7 +1596,7 @@ config DEBUG_UART_8250_FLOW_CONTROL
>> config DEBUG_UNCOMPRESS
>>    bool
>>    depends on ARCH_MULTIPLATFORM || PLAT_SAMSUNG || ARM_SINGLE_ARMV7M
>> -    default y if DEBUG_LL && !DEBUG_OMAP2PLUS_UART && \
>> +    default y if DEBUG_LL && (!DEBUG_OMAP2PLUS_UART || !ZBOOT_ROM) && \
>>             (!DEBUG_TEGRA_UART || !ZBOOT_ROM)
>>    help
>>      This option influences the normal decompressor output for
>> diff --git a/arch/arm/include/debug/omap2plus.S b/arch/arm/include/debug/omap2plus.S
>> index 6d867ae..12421f9 100644
>> --- a/arch/arm/include/debug/omap2plus.S
>> +++ b/arch/arm/include/debug/omap2plus.S
>> @@ -58,11 +58,18 @@
>> 
>> #define UART_OFFSET(addr)    ((addr) & 0x00ffffff)
>> 
>> +#if defined(ZIMAGE)
>> +    omap_uart_phys:    .word    0
>> +    omap_uart_virt:    .word    0
>> +    omap_uart_lsr:    .word    0
>> +#else
>> +
>>        .pushsection .data
>> -omap_uart_phys:    .word    0
>> -omap_uart_virt:    .word    0
>> -omap_uart_lsr:    .word    0
>> +    omap_uart_phys:    .word    0
>> +    omap_uart_virt:    .word    0
>> +    omap_uart_lsr:    .word    0
>>        .popsection
>> +#endif
>> 
>>        .macro    addruart, rp, rv, tmp
>> 
>> -- 
>> 2.1.4
>> 
>> --
>> To unsubscribe from this list: send the line "unsubscribe linux-omap" in
>> the body of a message to majordomo@vger.kernel.org
>> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>> 

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] ARM: OMAP2+: allow DEBUG_UNCOMPRESS for OMAP2+
  2016-02-21 12:19   ` LIYONG
@ 2016-02-21 15:34     ` Tony Lindgren
  0 siblings, 0 replies; 4+ messages in thread
From: Tony Lindgren @ 2016-02-21 15:34 UTC (permalink / raw)
  To: LIYONG; +Cc: linux, linux-arm-kernel, linux-kernel, linux-omap

* LIYONG <sdliyong@gmail.com> [160221 04:20]:
> no problem, let me submit another patch

OK thanks!

Tony

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2016-02-21 18:04 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-12-29  4:09 [PATCH] ARM: OMAP2+: allow DEBUG_UNCOMPRESS for OMAP2+ Yong Li
2016-02-19 18:02 ` Tony Lindgren
2016-02-21 12:19   ` LIYONG
2016-02-21 15:34     ` Tony Lindgren

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).