Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1660671 > unrolled thread
| Started by | Hoeun Ryu <hoeun.ryu@gmail.com> |
|---|---|
| First post | 2017-06-08 04:30 +0200 |
| Last post | 2017-06-13 09:20 +0200 |
| Articles | 4 — 3 participants |
Back to article view | Back to linux.kernel
[PATCH 1/2] arm:omap2+: put omap_uart_phys/virt/lsr in .text section when ZIMAGE is true Hoeun Ryu <hoeun.ryu@gmail.com> - 2017-06-08 04:30 +0200
Re: [PATCH 1/2] arm:omap2+: put omap_uart_phys/virt/lsr in .text section when ZIMAGE is true Hoeun Ryu <hoeun.ryu@gmail.com> - 2017-06-10 06:50 +0200
Re: [PATCH 1/2] arm:omap2+: put omap_uart_phys/virt/lsr in .text section when ZIMAGE is true Russell King - ARM Linux <linux@armlinux.org.uk> - 2017-06-10 12:30 +0200
Re: [PATCH 1/2] arm:omap2+: put omap_uart_phys/virt/lsr in .text section when ZIMAGE is true Tony Lindgren <tony@atomide.com> - 2017-06-13 09:20 +0200
| From | Hoeun Ryu <hoeun.ryu@gmail.com> |
|---|---|
| Date | 2017-06-08 04:30 +0200 |
| Subject | [PATCH 1/2] arm:omap2+: put omap_uart_phys/virt/lsr in .text section when ZIMAGE is true |
| Message-ID | <tPVmW-6Cm-9@gated-at.bofh.it> |
omap_uart_phys, omap_uart_virt and omap_uart_lsr reside in .data section and it's right implementation. But because of this, we cannot enable CONFIG_DEBUG_UNCOMPRESS. LL_DEBUG and DEBUG_UNCOMPRESS are very useful tools for debugging early boot stage when something goes wrong if you don't have any hardware based debugging tools like a JTAG debugger. This patch is to put the variables into .text section instead only when the DEBUG_LL_INCLUDE file is included in the kernel decompressor, which is only when ZIMAGE is defined. This patch does not change anything when DEBUG_LL_INCLUDE is included in the other kernel parts like arch/arm/kernel/* Signed-off-by: Hoeun Ryu <hoeun.ryu@gmail.com> --- arch/arm/include/debug/omap2plus.S | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/arch/arm/include/debug/omap2plus.S b/arch/arm/include/debug/omap2plus.S index 6d867ae..6ce6ef9 100644 --- a/arch/arm/include/debug/omap2plus.S +++ b/arch/arm/include/debug/omap2plus.S @@ -58,11 +58,22 @@ #define UART_OFFSET(addr) ((addr) & 0x00ffffff) +/* + * Definition of ZIMAGE is in arch/arm/boot/compressed/Makefile. + * Place the following block in .text section only when this file is + * included by arch/arm/boot/compressed/* to make it possible to + * enable CONFIG_DEBUG_UNCOMPRESS and DEBUG in arch/arm/boot/compressed/head.S + * on OMAP2+ SoCs. + */ +#ifndef ZIMAGE .pushsection .data +#endif omap_uart_phys: .word 0 omap_uart_virt: .word 0 omap_uart_lsr: .word 0 +#ifndef ZIMAGE .popsection +#endif .macro addruart, rp, rv, tmp -- 2.7.4
[toc] | [next] | [standalone]
| From | Hoeun Ryu <hoeun.ryu@gmail.com> |
|---|---|
| Date | 2017-06-10 06:50 +0200 |
| Message-ID | <tQGvv-2v0-5@gated-at.bofh.it> |
| In reply to | #1660671 |
Hello, Russell. Would you please review this patch ? Than you > On Jun 8, 2017, at 11:16 AM, Hoeun Ryu <hoeun.ryu@gmail.com> wrote: > > omap_uart_phys, omap_uart_virt and omap_uart_lsr reside in .data section > and it's right implementation. But because of this, we cannot enable > CONFIG_DEBUG_UNCOMPRESS. LL_DEBUG and DEBUG_UNCOMPRESS are very useful tools > for debugging early boot stage when something goes wrong if you don't have > any hardware based debugging tools like a JTAG debugger. > This patch is to put the variables into .text section instead only when the > DEBUG_LL_INCLUDE file is included in the kernel decompressor, which is only > when ZIMAGE is defined. > This patch does not change anything when DEBUG_LL_INCLUDE is included in > the other kernel parts like arch/arm/kernel/* > > Signed-off-by: Hoeun Ryu <hoeun.ryu@gmail.com> > --- > arch/arm/include/debug/omap2plus.S | 11 +++++++++++ > 1 file changed, 11 insertions(+) > > diff --git a/arch/arm/include/debug/omap2plus.S b/arch/arm/include/debug/omap2plus.S > index 6d867ae..6ce6ef9 100644 > --- a/arch/arm/include/debug/omap2plus.S > +++ b/arch/arm/include/debug/omap2plus.S > @@ -58,11 +58,22 @@ > > #define UART_OFFSET(addr) ((addr) & 0x00ffffff) > > +/* > + * Definition of ZIMAGE is in arch/arm/boot/compressed/Makefile. > + * Place the following block in .text section only when this file is > + * included by arch/arm/boot/compressed/* to make it possible to > + * enable CONFIG_DEBUG_UNCOMPRESS and DEBUG in arch/arm/boot/compressed/head.S > + * on OMAP2+ SoCs. > + */ > +#ifndef ZIMAGE > .pushsection .data > +#endif > omap_uart_phys: .word 0 > omap_uart_virt: .word 0 > omap_uart_lsr: .word 0 > +#ifndef ZIMAGE > .popsection > +#endif > > .macro addruart, rp, rv, tmp > > -- > 2.7.4 >
[toc] | [prev] | [next] | [standalone]
| From | Russell King - ARM Linux <linux@armlinux.org.uk> |
|---|---|
| Date | 2017-06-10 12:30 +0200 |
| Subject | Re: [PATCH 1/2] arm:omap2+: put omap_uart_phys/virt/lsr in .text section when ZIMAGE is true |
| Message-ID | <tQLOx-5Oz-1@gated-at.bofh.it> |
| In reply to | #1662876 |
On Sat, Jun 10, 2017 at 01:44:00PM +0900, Hoeun Ryu wrote: > Hello, Russell. > > Would you please review this patch ? It's really up to Tony Lindgren, who is the OMAP maintainer. > > Than you > > > On Jun 8, 2017, at 11:16 AM, Hoeun Ryu <hoeun.ryu@gmail.com> wrote: > > > > omap_uart_phys, omap_uart_virt and omap_uart_lsr reside in .data section > > and it's right implementation. But because of this, we cannot enable > > CONFIG_DEBUG_UNCOMPRESS. LL_DEBUG and DEBUG_UNCOMPRESS are very useful tools > > for debugging early boot stage when something goes wrong if you don't have > > any hardware based debugging tools like a JTAG debugger. > > This patch is to put the variables into .text section instead only when the > > DEBUG_LL_INCLUDE file is included in the kernel decompressor, which is only > > when ZIMAGE is defined. > > This patch does not change anything when DEBUG_LL_INCLUDE is included in > > the other kernel parts like arch/arm/kernel/* > > > > Signed-off-by: Hoeun Ryu <hoeun.ryu@gmail.com> > > --- > > arch/arm/include/debug/omap2plus.S | 11 +++++++++++ > > 1 file changed, 11 insertions(+) > > > > diff --git a/arch/arm/include/debug/omap2plus.S b/arch/arm/include/debug/omap2plus.S > > index 6d867ae..6ce6ef9 100644 > > --- a/arch/arm/include/debug/omap2plus.S > > +++ b/arch/arm/include/debug/omap2plus.S > > @@ -58,11 +58,22 @@ > > > > #define UART_OFFSET(addr) ((addr) & 0x00ffffff) > > > > +/* > > + * Definition of ZIMAGE is in arch/arm/boot/compressed/Makefile. > > + * Place the following block in .text section only when this file is > > + * included by arch/arm/boot/compressed/* to make it possible to > > + * enable CONFIG_DEBUG_UNCOMPRESS and DEBUG in arch/arm/boot/compressed/head.S > > + * on OMAP2+ SoCs. > > + */ > > +#ifndef ZIMAGE > > .pushsection .data > > +#endif > > omap_uart_phys: .word 0 > > omap_uart_virt: .word 0 > > omap_uart_lsr: .word 0 > > +#ifndef ZIMAGE > > .popsection > > +#endif > > > > .macro addruart, rp, rv, tmp > > > > -- > > 2.7.4 > > -- RMK's Patch system: http://www.armlinux.org.uk/developer/patches/ FTTC broadband for 0.8mile line: currently at 9.6Mbps down 400kbps up according to speedtest.net.
[toc] | [prev] | [next] | [standalone]
| From | Tony Lindgren <tony@atomide.com> |
|---|---|
| Date | 2017-06-13 09:20 +0200 |
| Subject | Re: [PATCH 1/2] arm:omap2+: put omap_uart_phys/virt/lsr in .text section when ZIMAGE is true |
| Message-ID | <tROhk-4Yo-21@gated-at.bofh.it> |
| In reply to | #1662932 |
* Russell King - ARM Linux <linux@armlinux.org.uk> [170610 03:24]: > On Sat, Jun 10, 2017 at 01:44:00PM +0900, Hoeun Ryu wrote: > > Hello, Russell. > > > > Would you please review this patch ? > > It's really up to Tony Lindgren, who is the OMAP maintainer. I'll take a look today. I think we can simplify things quite a bit as we no longer use machine type for configuring the UART. Regards, Tony
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web