Linux MIPS Architecture development
 help / color / mirror / Atom feed
From: Ralf Baechle <ralf@oss.sgi.com>
To: "Maciej W. Rozycki" <macro@ds2.pg.gda.pl>
Cc: Florian Lohoff <flo@rfc822.org>, linux-mips@oss.sgi.com
Subject: Re: Decstation broken Was: CVS Update@oss.sgi.com: linux
Date: Tue, 3 Oct 2000 01:44:51 +0200	[thread overview]
Message-ID: <20001003014451.B614@bacchus.dhis.org> (raw)
In-Reply-To: <Pine.GSO.3.96.1001002134626.6563H-100000@delta.ds2.pg.gda.pl>; from macro@ds2.pg.gda.pl on Mon, Oct 02, 2000 at 01:59:03PM +0200

On Mon, Oct 02, 2000 at 01:59:03PM +0200, Maciej W. Rozycki wrote:

> > >  Well, I asked for testing before the commit, but nobody bothered to write
> > > anything, so I assumed everything is correct, sigh...
> > 
> > Not sigh ...  The lesson that not speaking up is a also wrong!
> 
>  Well, if nobody reports a problem with a patch, it means it's either fine
> or nobody bothered to test it.  For me both cases mean it's OK to apply
> it. 

Sure.

> > The ddiv usage outside of do_div / do_div64_32 is actually ok because
> 
>  But can't we receive an exception for some reason???

No, the only exceptions we still may have to deal with are asynchronous
ones, that is cache error and bus error.  Oh yes, trace exception on
certain special CPUs that have support for tracing in hw.

> > interrupts are always disabled.  We don't have the same guarantee for
> > do_div / do_div64_32 calls.
> 
>  Yep -- it's used for printk.

>  I'd see two approaches: either wipe 64-bit code out completely (clean and
> elegant -- I'd vote for it, even though there is performance penalty) or
> disable interrupts around the 64-bit division (the window would be small
> and it would still be a performance win, but it's ugly as hell).  What do
> you think? 

I have a nice little solution, we can wrap the divide with ll / sc.  If
the sc ever fails we took an exception and retry ...

(I think I just felt like comming up with a coding stunt ;-)

  Ralf

  reply	other threads:[~2000-10-02 23:46 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20000825213106Z42310-31375+267@oss.sgi.com>
2000-09-28 19:40 ` Decstation broken Was: CVS Update@oss.sgi.com: linux Florian Lohoff
2000-09-28 20:00   ` Klaus Naumann
2000-09-28 23:39     ` Ralf Baechle
2000-09-29  5:50       ` Klaus Naumann
2000-09-29  9:46         ` Maciej W. Rozycki
2000-09-29  9:36   ` Maciej W. Rozycki
2000-09-29 20:01     ` Florian Lohoff
2000-10-01  9:40       ` Geert Uytterhoeven
2000-10-01 10:27         ` Ralf Baechle
2000-10-03 10:34         ` Maciej W. Rozycki
2000-10-02 11:39       ` Maciej W. Rozycki
2000-09-29 20:22     ` Florian Lohoff
2000-10-02 11:46       ` Maciej W. Rozycki
2000-09-30 10:18     ` Ralf Baechle
2000-10-01 16:46       ` Florian Lohoff
2000-10-02 11:59       ` Maciej W. Rozycki
2000-10-02 23:44         ` Ralf Baechle [this message]
2000-10-03 10:08           ` Maciej W. Rozycki
2000-10-03  9:41   ` Harald Koerfgen
2000-10-03 10:31     ` Maciej W. Rozycki
2000-10-03 18:21       ` Harald Koerfgen

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=20001003014451.B614@bacchus.dhis.org \
    --to=ralf@oss.sgi.com \
    --cc=flo@rfc822.org \
    --cc=linux-mips@oss.sgi.com \
    --cc=macro@ds2.pg.gda.pl \
    /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