All of lore.kernel.org
 help / color / mirror / Atom feed
From: Liam Davies <ldavies@agile.tv>
To: Ralf Baechle <ralf@oss.sgi.com>
Cc: linux-mips@oss.sgi.com
Subject: Re: Troubles with TLB refills
Date: Tue, 06 Mar 2001 13:10:27 +1000	[thread overview]
Message-ID: <3AA45523.CDF351CB@agile.tv> (raw)
In-Reply-To: 20010305114926.A26862@bacchus.dhis.org

Ralf Baechle wrote:

> This exception handler has been modified since the version tested in the
> Cobalt Qube and I'm not sure if the bug workaround actually got tested
> since then.
>

It seems to work now.

> handle_page_fault got called and printed something; therefore the
> exception handler cannot possibly have been trashed.  do_page_fault gets
> called by via the generic exception handler.  The TLB vectors there are only
> taken if there is a TLB entry matching the address in the TLB.  Therefore
> your theory about no tlb refill exception cannot be right.

And this is the way I understood the workings as well.

> The TLB
> dump only displays entries where at least on of the entry0 / entry1
> entries is valid, therefore you get an empty dump; maybe that made you
> believe you didn't get a TLB reload exception.

No, this is what I expected in the TLB since this was the first kuseg access.

Not long after posting this message I found the problem.  The exception handler

had been trashed, *before* it was copied to 0x80000000. I'm not sure what
trashed it yet, that is a job for later. What made this whole thing more
puzzling
is the actual stuff that was in 0x80000000 was absolute trash, it made no sense

in terms of instruction encodings. I would have thought the cpu would have
crapped out when it hit bad instructions. So it would seem the
exceptions were occurring but the code that it was executing wasn't even code.
Hence my assumption that we never got a TLB refill., even though the fault
handler was being called.

Liam

  reply	other threads:[~2001-03-06  3:10 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-03-05  3:40 Troubles with TLB refills Liam Davies
2001-03-05 10:49 ` Ralf Baechle
2001-03-06  3:10   ` Liam Davies [this message]
2001-03-06 12:58     ` Ralf Baechle
2001-03-07  3:36       ` Problem makeing an O2 run bootp nick
2001-03-07  3:36         ` nick
2001-03-07 19:11         ` Rafal Boni
2001-03-07 19:14           ` nick
2001-03-08  7:57         ` Chris Ruvolo
2001-03-10 18:25           ` Ralf Baechle
2001-03-12  1:09             ` IP32 (O2) diff nick
2001-03-06  6:45   ` Troubles with TLB refills Liam Davies
2001-03-06  6:45     ` Liam Davies

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=3AA45523.CDF351CB@agile.tv \
    --to=ldavies@agile.tv \
    --cc=ldavies@oz.agile.tv \
    --cc=linux-mips@oss.sgi.com \
    --cc=ralf@oss.sgi.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.