linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: Oliver Korpilla <okorpil@fh-landshut.de>
To: Tom Rini <trini@kernel.crashing.org>
Cc: linuxppc-embedded@lists.linuxppc.org
Subject: Re: Patch Preview for MVME2100
Date: Tue, 06 Apr 2004 19:29:40 +0200	[thread overview]
Message-ID: <4072E904.7010409@fh-landshut.de> (raw)
In-Reply-To: <20040405183052.GU31152@smtp.west.cox.net>


Tom Rini wrote:

Applied changes today, and the serial console is coming along nicely,
can log into my board, use ethernet, boot off NFS. :)

I'm very happy and very grateful. Thank you!

>>Maybe the CONFIG_EPIC_SERIAL_MODE should be set, shouldn't it? Will add
>>it tomorrow. Should I add that cascade hookup stuff even if there is no
>>cascaded 8259?
>>
>>
>
>You don't need to call openpic_hookup_cascade, if there is no cascade.
>You only want to set EPIC_SERIAL_MODE if the controller really is in
>serial mode.
>
>
>
As far as I can see from the (sometimes very unspecific) documentation
for the MVME2100 and from the probing in the Linux kernel there doesn't
seem to be an external interrupt (= no 8259) on-board. So I guess I
could drop CONFIG_EPIC_SERIAL_MODE, because I don't need to probe for
interrupts on that source, do I? (I'm a bit confused about that, because
I delved a bit in the MPC107, the LoPEC board, the MPC8240 and the
MVME2100 manuals without very clear info about that)

Can I drop

       /* Map serial interrupts 0-15 */
       openpic_set_sources(0, 16, OpenPIC_Addr + 0x10200);

too? No connected 8259 should mean no interrupt sources there, I guess.

>No.  The '0's are wrong.  You only need to describe, in terms of
>level/edge, documented interrupts.  You then make multiple calls to
>openpic_set_sources(), to skip over the non-existant interrupts.
>
>
>
For initial testing I have still 0s in there - for the unused interrupts
within the range after the external interrupts. I get a bad interrupt at
1 - this would be the first interrupt in the cascade I guess, but
interrupts of the ethernet and the UART serial (17  - 2nd internal
interrupt and 29 - 13th internal interrupt) work just fine - console is
responsive, ethernet is stable and fine.

A very big "Thank" You! indeed. Your advice was indispensable for my
work and it was to the point, too.

I will try to clean up that patch, with an eye to the Sandpoint and
LoPEC platforms for guidelines, and I hope I can find the time to port
it to 2.6.x, too. Unfortunately this is a very tightly scheduled project
with very ambitious goals (evaluating VME bus with realtime Linux at
minimum on the MVME2100, and possibly on the MVME5500 and VMIVME7050 as
well), so this could be some time in the future. But cleaning up my
current patch is certainly necessary and is already my task for the next
time, so that I'll do for sure.

With kind regards,
Oliver Korpilla


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

  reply	other threads:[~2004-04-06 17:29 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-04-04 11:27 Patch Preview for MVME2100 Oliver Korpilla
2004-04-05 17:23 ` Tom Rini
2004-04-05 18:06   ` Oliver Korpilla
2004-04-05 18:30     ` Tom Rini
2004-04-06 17:29       ` Oliver Korpilla [this message]
2004-04-06 18:47         ` Tom Rini

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=4072E904.7010409@fh-landshut.de \
    --to=okorpil@fh-landshut.de \
    --cc=linuxppc-embedded@lists.linuxppc.org \
    --cc=trini@kernel.crashing.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).