From: Timur Tabi <timur@freescale.com>
To: Milton Miller <miltonm@bga.com>
Cc: linux-ppc <linuxppc-dev@ozlabs.org>,
David Gibson <david@gibson.dropbear.id.au>
Subject: Re: powerpc: udbg based backend for hvc_console
Date: Thu, 20 Nov 2008 13:16:27 -0600 [thread overview]
Message-ID: <4925B78B.2040709@freescale.com> (raw)
In-Reply-To: <4569571e317d43f1b26b087fcdebcba3@bga.com>
Milton Miller wrote:
> Stated differently, if your routine (1) fundamently works one character
> at a time and (2) is not interrupt driven, and (3) only supports one
> channel, what avantage is there to an explicit hvc driver?
I think it's because HVC has the ability to use HVC client drivers for console
and TTY, but udbg does not. So if you have a udbg-only driver, it will cease to
function when the kernel switches to the normal console.
Perhaps it would make more sense to have the kernel continue to use udbg if
there is no normal console driver, instead of relying on David's driver.
> I too challanged the necessity of that change. I carefully designed
> the hvc_console layer to find the selected console weither it was
> registered before or after the console_initcall of hvc_console.
I'm just pointing out the patch that was committed in 2006 to address this
issue. I discovered the same bug that the patch mentioned, and only after a
long time searching did I find this patch. And sure enough, re-arranging the
Makefile made the problem I was seeing go away.
Now, it's possible that this bug in hvc_console no longer exists. However, I
have seen nothing to indicate it. Unfortunately, I don't remember enough of the
details to reproduce the problem, so I can't verify it.
> However, I think the bottom line was that add_preferred_console is
> suppsoed to be called by architecture setup code. Doing it the
> console_initcall is almost abuse. But if the console_initcall is going
> to call add_preferred_console, then it must link before the hvc_console
> driver. I would have to go back and find the discussion to remember
> the exact details. (maybe it only needed to call
> add_preferreed_console before registering itself if its the only hvc
> backend).
Well, I can't comment on your theory, but I do know that the
add_preferred_console() call should be made from the HVC client driver, or at
least HVC itself. It should not be in the platform code, because then we have a
dependency between the driver and the platform code. I prefer my drivers to
initialize everything on their own, without the help of the platform code.
--
Timur Tabi
Linux kernel developer at Freescale
next prev parent reply other threads:[~2008-11-20 19:16 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-10-24 3:54 powerpc: udbg based backend for hvc_console David Gibson
2008-11-05 4:53 ` Paul Mackerras
2008-11-06 0:20 ` David Gibson
2008-11-17 19:41 ` Timur Tabi
2008-11-18 0:28 ` David Gibson
2008-11-17 20:04 ` Timur Tabi
2008-11-18 0:40 ` David Gibson
2008-11-18 4:42 ` Timur Tabi
2008-11-18 5:14 ` David Gibson
2008-11-18 15:06 ` Timur Tabi
2008-11-19 0:42 ` David Gibson
2008-11-19 15:20 ` Timur Tabi
2008-11-20 19:07 ` Milton Miller
2008-11-20 19:16 ` Timur Tabi [this message]
2008-11-21 0:23 ` David Gibson
2008-11-21 15:57 ` Milton Miller
2008-11-21 16:13 ` Timur Tabi
2008-11-21 19:09 ` Milton Miller
2008-11-21 0:35 ` David Gibson
2008-11-21 19:29 ` Milton Miller
2008-11-17 20:18 ` Timur Tabi
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=4925B78B.2040709@freescale.com \
--to=timur@freescale.com \
--cc=david@gibson.dropbear.id.au \
--cc=linuxppc-dev@ozlabs.org \
--cc=miltonm@bga.com \
/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).