From: Ladislav Michl <ladis@psi.cz>
To: "Maciej W. Rozycki" <macro@ds2.pg.gda.pl>
Cc: linux-mips <linux-mips@linux-mips.org>,
Ralf Baechle <ralf@linux-mips.org>,
Guido Guenther <agx@sigxcpu.org>
Subject: Re: Remove GIO interface
Date: Wed, 8 Jan 2003 14:08:19 +0100 [thread overview]
Message-ID: <20030108140818.C17162@erebor.psi.cz> (raw)
In-Reply-To: <Pine.GSO.3.96.1030108133732.1580C-100000@delta.ds2.pg.gda.pl>; from macro@ds2.pg.gda.pl on Wed, Jan 08, 2003 at 01:41:41PM +0100
On Wed, Jan 08, 2003 at 01:41:41PM +0100, Maciej W. Rozycki wrote:
> On Wed, 8 Jan 2003, Ladislav Michl wrote:
>
> > * Even in case everything work as stated in documentation, we are unable
> > to use this mechanism to detect Newport for console driver (the main
> > reason why I created this interface was to provide neccessary
> > informations to Xserver), because our DBE handling doesn't work until
> > modules are initialized (in case we are building kernel with modules
> > support).
>
> That is a bug and it should be fixed. What are the symptoms?
the most notable symptom is machine hang at boot time :-) it doesn't apply
to cvs kernel, just to my private one where I called get_dbe in console_init.
you cannot use get_dbe _before_ init_modules is called (ie. in board_irq_init).
reason is following (copy&paste from traps.c). read "READ HERE".
static inline unsigned long
search_dbe_table(unsigned long addr)
{
unsigned long ret = 0;
#ifndef CONFIG_MODULES
/* There is only the kernel to search. */
ret = search_one_table(__start___dbe_table, __stop___dbe_table-1, addr);
return ret;
#else
unsigned long flags;
/* The kernel is the last "module" -- no need to treat it special. */
struct module *mp;
struct archdata *ap;
spin_lock_irqsave(&modlist_lock, flags);
for (mp = module_list; mp != NULL; mp = mp->next) {
if (!mod_member_present(mp, archdata_end) ||
!mod_archdata_member_present(mp, struct archdata,
dbe_table_end))
continue;
ap = (struct archdata *)(mp->archdata_start);
if (ap->dbe_table_start == NULL ||
!(mp->flags & (MOD_RUNNING | MOD_INITIALIZING)))
continue;
/* READ HERE: we don't reach this point because kernel is the last module
* and it is not initialized yet, so it has no archdata */
ret = search_one_table(ap->dbe_table_start,
ap->dbe_table_end - 1, addr);
if (ret)
break;
}
spin_unlock_irqrestore(&modlist_lock, flags);
return ret;
#endif
}
so although traps are initialized one cannot use them and have to wait
until modules are initialized too.
anyway, even if you fix this issue it is not reason for keeping GIO
interface.
ladis
next prev parent reply other threads:[~2003-01-08 12:59 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-01-08 12:30 Remove GIO interface Ladislav Michl
2003-01-08 12:41 ` Maciej W. Rozycki
2003-01-08 13:08 ` Ladislav Michl [this message]
2003-01-08 13:13 ` Maciej W. Rozycki
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=20030108140818.C17162@erebor.psi.cz \
--to=ladis@psi.cz \
--cc=agx@sigxcpu.org \
--cc=linux-mips@linux-mips.org \
--cc=macro@ds2.pg.gda.pl \
--cc=ralf@linux-mips.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