linux-parisc.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: John David Anglin <dave.anglin@bell.net>
To: Helge Deller <deller@gmx.de>,
	linux-parisc@vger.kernel.org,
	James Bottomley <James.Bottomley@hansenpartnership.com>
Subject: Re: [PATCH][RFC] parisc: Use local tlb purges only on UP machines
Date: Sun, 25 Sep 2022 16:21:56 -0400	[thread overview]
Message-ID: <f80a157d-1a04-f7b2-8218-1052ecdef0b2@bell.net> (raw)
In-Reply-To: <4ab6bb84-f3ca-8900-237b-40c296d09b7b@gmx.de>

On 2022-09-25 4:00 p.m., Helge Deller wrote:
>> It only supports the PA 1.1 instruction set.  PA8x00 CPUs always
>> support the PA 2.0 instruction set even when running in 32-bit mode.
> The 32-bit kernel is built with the 32-bit compiler.
> As far as I understand arch/parisc/Makefile, choosing the CPU type
> just enables *tuning* for the selected CPU. See Makefile:
>
> # select which processor to optimise for
> cflags-$(CONFIG_PA7000)         += -march=1.1 -mschedule=7100
> cflags-$(CONFIG_PA7200)         += -march=1.1 -mschedule=7200
> cflags-$(CONFIG_PA7100LC)       += -march=1.1 -mschedule=7100LC
> cflags-$(CONFIG_PA7300LC)       += -march=1.1 -mschedule=7300
> cflags-$(CONFIG_PA8X00)         += -march=2.0 -mschedule=8000
>
> The only assembler instructions which break qemu are our manually
> added ones: "pdtlb,l" and "ldd" (for flushing - see my first patch).
> The two patches I sent today allows to boot such a kernel, and
> they still keep the PA2.0 support when run on PA2.0 machines.
I think that patch is fine.  Probably the same needs to be done the use of "pdtlb,l"
instruction in the tmpalias flushes.

We used to have locking to serialize the TLB purges in the tmpalias flushes when
we used the pdtlb flush.

It's true the 32-bit compiler doesn't generate much that's not PA 1.1 compatible when
-march=2.0 is specified.  At on time, there was some push to allow 64-bit register use
in the 32-bit runtime.  Some hpux systems preserve the full 64-bits in context switches, etc.
So, one can get away with using 64-bit operations as long as one doesn't try to perserve
values across calls.

I believe "ldd" for prefetch works both in 32 and 64-bit PA 2.0 environments.

Dave

-- 
John David Anglin  dave.anglin@bell.net


      reply	other threads:[~2022-09-25 20:22 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-09-25  6:56 [PATCH][RFC] parisc: Use local tlb purges only on UP machines Helge Deller
2022-09-25 14:33 ` John David Anglin
2022-09-25 17:51   ` Helge Deller
2022-09-25 18:19     ` John David Anglin
2022-09-25 18:44       ` John David Anglin
2022-09-25 18:58         ` Helge Deller
2022-09-25 19:27           ` John David Anglin
2022-09-25 20:00             ` Helge Deller
2022-09-25 20:21               ` John David Anglin [this message]

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=f80a157d-1a04-f7b2-8218-1052ecdef0b2@bell.net \
    --to=dave.anglin@bell.net \
    --cc=James.Bottomley@hansenpartnership.com \
    --cc=deller@gmx.de \
    --cc=linux-parisc@vger.kernel.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;
as well as URLs for NNTP newsgroup(s).