Linux MIPS Architecture development
 help / color / mirror / Atom feed
From: Luke -Jr <luke@dashjr.org>
To: "Maciej W. Rozycki" <macro@linux-mips.org>
Cc: linux-kernel <linux-kernel@vger.kernel.org>, linux-mips@linux-mips.org
Subject: Re: bcm33xx port
Date: Sun, 8 Jun 2008 15:27:28 -0500	[thread overview]
Message-ID: <200806081527.31221.luke@dashjr.org> (raw)
In-Reply-To: <Pine.LNX.4.55.0806082041150.15673@cliff.in.clinika.pl>

On Sunday 08 June 2008, Maciej W. Rozycki wrote:
> On Sun, 8 Jun 2008, Luke -Jr wrote:
> > the bcm63xx patches OpenWrt has that I'm using as a base for this...
>
>  It would be best if the patches you are referring to got merged with the
> mainline.  Otherwise whoever uses them is essentially on their own --
> people lack the resources needed to chase random changes out there in
> general.

Is merging with mainline something I can help with, being a beginner in this 
area generally and not having any part in writing them?

> > >  That's grossly wrong.  If you need to preset it for the time being
> > > till you debug calibration, then for a MIPS processor assume one
> > > instruction per clock tick and two instructions per loop -- that may
> > > not be entirely correct, but is a good approximation.  Otherwise you
> > > risk peripheral devices are not driven correctly with all sorts of the
> > > nasty results.
> >
> > Meaning this?
> > 	preset_lpj = loops_per_jiffy = 2;
>
>  Not exactly.  Try harder -- this is simple arithmetic and you've got all
> the data given above already. :)

200 / 2? I'm not really sure what a 'jiffy' is..

> > > and (b) control being transferred to a block of memory that isn't
> > > actually code, as can happen if exception vectors or global
> > > pointers-to-functions aren't set up correctly, or if the kernel stack
> > > is being corrupted.   When you say "the instruction in question is a
> > > store word", how do you know that?
> >
> > The RI error spits out a bunch of info, including epc which presumably
> > points to the instruction causing the problem: ac85ffc0; this is 'sw
> > a1,-64(a0)'
>
>  I have seen that already and wrote these stores in __bzero are protected.
> Perhaps the fixup fails for some reason, but you need to investigate it
> and this is why I suggested to see how the RI handler is reached.  Since
> this is a known point the failure leads to, you should be able to work
> backwards from there quite easily.

Ah, so what you're saying is that perhaps the 'sw' is triggering a TLB 
exception, and the handler for *that* is causing the RI problem?

Thanks,

Luke

  reply	other threads:[~2008-06-08 20:27 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <200806072113.26433.luke@dashjr.org>
     [not found] ` <Pine.LNX.4.55.0806080342310.15673@cliff.in.clinika.pl>
2008-06-08  4:32   ` bcm33xx port Luke -Jr
2008-06-08 12:53     ` Maciej W. Rozycki
2008-06-08 18:56       ` Luke -Jr
2008-06-08 19:53         ` Kevin D. Kissell
2008-06-08 20:14           ` Maciej W. Rozycki
2008-06-08 20:20           ` Luke -Jr
2008-06-08 19:59         ` Maciej W. Rozycki
2008-06-08 20:27           ` Luke -Jr [this message]
2008-06-08 22:13             ` Maciej W. Rozycki
2008-06-08 23:36               ` Luke -Jr
2008-06-09  6:40                 ` Geert Uytterhoeven
2008-06-09  6:05               ` Luke -Jr

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=200806081527.31221.luke@dashjr.org \
    --to=luke@dashjr.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mips@linux-mips.org \
    --cc=macro@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