From: Dan Malek <dan@embeddededge.com>
To: Matt Porter <porter@cox.net>
Cc: Frank Rowand <frowand@mvista.com>, linuxppc-dev@lists.linuxppc.org
Subject: Re: Move kgdb init code?
Date: Tue, 25 Jun 2002 22:50:07 -0400 [thread overview]
Message-ID: <3D192BDF.4050206@embeddededge.com> (raw)
In-Reply-To: 20020625153900.B15298@home.com
Matt Porter wrote:
> The only thing I was talking about was moving it toward the end
> of setup_arch. All _driver_ init is after that.
Hmmm.....why doesn't kgdb_map_scc call early_serial_init() instead
of waiting for the 4xx platform setup to do that? The purpose of
kgdb_map_scc() is to do everything necessary to make the serial
port accessible. Is there something else done in platform specific
setup that is needed?
> I think we are talking two different things. Kgdb does not work on
> the vast number of 7xx/74xx designs with 16550's all at arbitrary
> locations. The ppc4xx_kgdb.c binding is non-functional is _devel
> (relying on the old COM_PORT structure that is gone).
>
> You've got me confused Dan, where did I suggest removing a useful
> feature?
Well, it used to be a useful feature :-) If people keep breaking
kgdb by making changes it relies upon for proper operation, that
should get fixed :-)
> I don't understand what you are suggesting. I don't poke a static
> serial port mapping in (to be used in STD_SERIAL_DEFS) because
> early_serial_init()/ioremap() can do it dynamically for me.
Well, that was one of the important changes (mapping the port
or using an existing mapping) to allow an early kgdb. I guess if
you don't want to map it, that's a reason why it won't work.
> Hrm, so are you suggesting a do an early mapping (I use one for
> early boot text support) init kgdb, and not use early_serial_setup()?
> I think kgdb should be able to work with early_serial_setup().
:-)
The kgdb doesn't care how the port was set up, just that is has a
way to use it. You could call early_serial_setup() several times,
depending upon how the mapping may change. This is basically how
the 8xx and 8260 work. I use an early trivial mapping that was set
up by the bootloader, then an intermediate mapping, then finally
something after rs_init() is called.
I guess if moving it to later in setup_arch() is enough.......
-- Dan
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
next prev parent reply other threads:[~2002-06-26 2:50 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-06-25 5:10 Move kgdb init code? Matt Porter
2002-06-25 16:19 ` Frank Rowand
2002-06-25 20:50 ` Matt Porter
2002-06-25 21:02 ` Frank Rowand
2002-06-25 22:05 ` Dan Malek
2002-06-25 22:39 ` Matt Porter
2002-06-26 2:50 ` Dan Malek [this message]
2002-06-26 8:25 ` Matt Porter
2002-06-26 14:47 ` Dan Malek
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=3D192BDF.4050206@embeddededge.com \
--to=dan@embeddededge.com \
--cc=frowand@mvista.com \
--cc=linuxppc-dev@lists.linuxppc.org \
--cc=porter@cox.net \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.