From: Grant Grundler <grundler@parisc-linux.org>
To: John David Anglin <dave@hiauly1.hia.nrc.ca>
Cc: parisc-linux@lists.parisc-linux.org
Subject: Re: [parisc-linux] ssm/rsm sequences
Date: Thu, 28 Apr 2005 14:20:58 -0600 [thread overview]
Message-ID: <20050428202058.GG10171@colo.lackof.org> (raw)
In-Reply-To: <200504281942.j3SJgQvL005780@hiauly1.hia.nrc.ca>
On Thu, Apr 28, 2005 at 03:42:26PM -0400, John David Anglin wrote:
> > Besides the basic issue, this also implies flush_tlb_all() is
> > called twice in the same code path. That might be ok if
> > flush_tlb_all() took parameters, but it does not.
>
> Twice?
Yes. Once from
exit_mmap() -> flush_tlb_mm() -> flush_tlb_all()
and again
unmap_vmas() -> unmap_page_range() -> tlb_end_vma() ->
flush_tlb_range() -> flush_tlb_all()
But flush_tlb_range() only calls flush_tlb_all() IFF:
...
if (npages >= 512) /* XXX arbitrary, should be tuned */
flush_tlb_all();
else {
...
That may be why I'm not seeing it more often.
jejb, any insight here?
> > Any clue what the basic issue is here?
>
> flush_tlb_all doesn't call anything.
Eh?! I'm looking at arch/parisc/mm/init.c and it is:
...
}
spin_unlock(&sid_lock);
on_each_cpu((void (*)(void *))flush_tlb_all_local, NULL, 1, 1);
if (do_recycle) {
...
> I'm guessing but I think this
> implies that smp_call_function is getting called because a TLB miss
> fault has occured. It appears from the backtrace that the fault
> has occurred in the part of flush_tlb_all with the REAL_MODE_PSW
> flags set (W and Q). Interrupts are off, so this causes the warning.
Wouldn't we see more gunk on the stack trace?
If I'm reading the PA 2.0 Arch correctly, PDTLB/PDTLBE insn can NOT cause
a TLB Miss. But I don't really know.
It also doesn't make sense for a TLB miss if we are in REAL_MODE.
thanks,
grant
_______________________________________________
parisc-linux mailing list
parisc-linux@lists.parisc-linux.org
http://lists.parisc-linux.org/mailman/listinfo/parisc-linux
next prev parent reply other threads:[~2005-04-28 20:20 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20050425165540.GD12325@colo.lackof.org>
[not found] ` <200504251744.j3PHixu9015886@hiauly1.hia.nrc.ca>
[not found] ` <20050427022925.GH2612@colo.lackof.org>
2005-04-27 5:20 ` [parisc-linux] ssm/rsm sequences Grant Grundler
2005-04-27 6:58 ` Grant Grundler
2005-04-27 7:18 ` Andy Walker
2005-04-27 15:01 ` Grant Grundler
2005-04-27 10:28 ` Joel Soete
2005-04-27 13:27 ` Joel Soete
2005-04-27 15:00 ` Grant Grundler
2005-04-28 14:58 ` Grant Grundler
2005-04-28 15:30 ` Joel Soete
2005-04-28 19:06 ` Grant Grundler
2005-04-28 19:42 ` John David Anglin
2005-04-28 20:20 ` Grant Grundler [this message]
2005-04-28 20:35 ` John David Anglin
2005-04-28 20:54 ` James Bottomley
2005-04-27 20:17 ` Grant Grundler
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=20050428202058.GG10171@colo.lackof.org \
--to=grundler@parisc-linux.org \
--cc=dave@hiauly1.hia.nrc.ca \
--cc=parisc-linux@lists.parisc-linux.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 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.