From: kanoj@google.engr.sgi.com (Kanoj Sarcar)
To: linux-mm@kvack.org, linux-kernel@vger.rutgers.edu
Subject: questions on ia32 smp_flush_tlb
Date: Fri, 16 Apr 1999 10:35:37 -0700 (PDT) [thread overview]
Message-ID: <199904161735.KAA37069@google.engr.sgi.com> (raw)
Hi,
I am curious about the smp_flush_tlb() ia32 code in arch/i386/kernel/smp.c.
Firstly, is it guaranteed that all callers of this routine hold the giant
kernel lock? Or could it be called without the lock?
Secondly, what is the reason of the __save_flags/__cli/__restore_flags in
the body of smp_flush_tlb? I noted there are some FORCE_APIC_SERIALIZATION/
CONFIG_X86_GOOD_APIC issues, but those are well contained in
send_IPI_allbutself, so smp_flush_tlb should not need to redo it, according
to my simple thinking.
Thirdly, depending on whether smp_flush_tlb is always called with the
kernel_lock (see first question), how is it possible to get "crossing"
invalidates?
Fourthly, wouldn't it be better if the caller were to do its local_flush_tlb
and then go into the while loop, waiting for other cpus to finish their
flushes? This way, it would probably spend lesser time spinning ... yes,
this is just microoptimization.
Please CC me (kanoj@engr.sgi.com) on your replies.
Thanks much.
Kanoj
(kanoj@engr.sgi.com)
--
To unsubscribe, send a message with 'unsubscribe linux-mm my@address'
in the body to majordomo@kvack.org. For more info on Linux MM,
see: http://humbolt.geo.uu.nl/Linux-MM/
reply other threads:[~1999-04-16 17:37 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=199904161735.KAA37069@google.engr.sgi.com \
--to=kanoj@google.engr.sgi.com \
--cc=linux-kernel@vger.rutgers.edu \
--cc=linux-mm@kvack.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