From: linux@armlinux.org.uk (Russell King - ARM Linux)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH] Kernel debugging: omap: print warning if CONFIG_DEBUG_LL is enabled
Date: Wed, 8 Nov 2017 22:36:04 +0000 [thread overview]
Message-ID: <20171108223604.GG28231@n2100.armlinux.org.uk> (raw)
In-Reply-To: <20171108222755.GW28152@atomide.com>
On Wed, Nov 08, 2017 at 02:27:55PM -0800, Tony Lindgren wrote:
> * H. Nikolaus Schaller <hns@goldelico.com> [171108 21:32]:
> > commit d2b310b0234c ("ARM: debug: Use generic 8250 debug_ll for omap2 and omap3/4/5 common uarts")
> > commit fc23beb8a577 ("ARM: debug: Use generic 8250 debug_ll for omap3/4/5")
> >
> > switched to generic 8250 debug_ll code which seems to be incompatible
> > with at least OMAP5 boards (OMAP5EVM, Pyra) if CONFIG_DEBUG_LL is
> > still enabled in some legacy defconfig. Since this is very hard to
> > relate to these patches and difficult to identify, let's have the
> > compiler emit a warning.
>
> Hmm the issue is the existing values in .config as Kconfig.debug
> does default XXX if DEBUG_XXX, right?
>
> I think we have this issue in general if you enable DEBUG_LL for
> a SoC, then enable it for another SoC using the same .config?
As I keep saying, DEBUG_LL is the low level debugging code, which is
there to support people trying to debug the early bringup. It can
only be configured for use with one particular port. If that doesn't
match the SoC, then, if you make use of the DEBUG_LL code, it will
fail to boot.
Unfortunately, if you use early_printk rather than earlycon, as
early_printk uses the DEBUG_LL bits, it means that your early_printk
kernel is tied to the selected platform.
All well known issues. early_printk should not be used in a multi-
platform kernel for this very reason.
We don't need a compiler warning there, we probably need better help
text against DEBUG_LL and against EARLY_PRINTK.
--
RMK's Patch system: http://www.armlinux.org.uk/developer/patches/
FTTC broadband for 0.8mile line in suburbia: sync at 8.8Mbps down 630kbps up
According to speedtest.net: 8.21Mbps down 510kbps up
next prev parent reply other threads:[~2017-11-08 22:36 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-11-08 21:29 [PATCH] Kernel debugging: omap: print warning if CONFIG_DEBUG_LL is enabled H. Nikolaus Schaller
2017-11-08 22:27 ` Tony Lindgren
2017-11-08 22:36 ` Russell King - ARM Linux [this message]
2017-11-08 22:38 ` Russell King - ARM Linux
2017-11-09 5:44 ` H. Nikolaus Schaller
2017-11-09 16:58 ` Russell King - ARM Linux
2017-11-09 17:16 ` H. Nikolaus Schaller
2017-11-09 17:35 ` Russell King - ARM Linux
2017-11-09 18:12 ` H. Nikolaus Schaller
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20171108223604.GG28231@n2100.armlinux.org.uk \
--to=linux@armlinux.org.uk \
--cc=linux-arm-kernel@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).