qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Mostafa Saleh <smostafa@google.com>
To: Peter Maydell <peter.maydell@linaro.org>
Cc: qemu-devel@nongnu.org, jean-philippe@linaro.org,
	eric.auger@redhat.com, qemu-arm@nongnu.org
Subject: Re: [PATCH v2] hw/arm/smmuv3: Add GBPA register
Date: Tue, 7 Feb 2023 18:07:44 +0000	[thread overview]
Message-ID: <Y+KTcKmTGXqKGID7@google.com> (raw)
In-Reply-To: <CAFEAcA_gdg_bUwasDs0O54qL5_2=DEMzAFu22x4d7mrx6W5vLA@mail.gmail.com>

Hi Peter,

On Tue, Feb 07, 2023 at 02:03:02PM +0000, Peter Maydell wrote:
> On Thu, 26 Jan 2023 at 14:12, Mostafa Saleh <smostafa@google.com> wrote:
> >
> > GBPA register can be used to globally abort all
> > transactions.
> >
> > It is described in the SMMU manual in "6.3.14 SMMU_GBPA".
> > ABORT reset value is IMPLEMENTATION DEFINED, it is chosen to
> > be zero(Do not abort incoming transactions).
> >
> > Other fields have default values of Use Incoming.
> >
> > If UPDATE is not set, the write is ignored. This is the only permitted
> > behavior in SMMUv3.2 and later.(6.3.14.1 Update procedure)
> >
> > As this patch adds a new state to the SMMU (GBPA), it is added
> > in a new subsection for forward migration compatibility.
> >
> > Property "migrate-gbpa" was added to support backward compatibility.
> > However, if the GBPA.ABORT is set from SW at time of migration, the
> > GBPA migration will be forced to avoid inconsistencies where a qemu
> > instance is aborting transactions and it is migrated to another
> > instance bypassing them.
> 
> Nothing ever sets the migrate-gpba property to anything
> except its default 'true' value, so this (a) means that
> it breaks migration compat and (b) seems a bit unneccessary.
> 
> Can we say "migrate the field only if it is something other
> than its reset value", not have the property, and get
> migration compatibility that way ?
> 
> Otherwise the patch looks OK.
> 
> thanks
> -- PMM

Thanks for reviewing the patch. I am not really familiar with migration,
My understanding that this would be set from cmdline(that is how I tested it).

But yes, you are right, this is actually unnecessary, we can just
migrate only if GBPA value is different from reset value.

I will send v3 with this change.

Thanks,
Mostafa


      reply	other threads:[~2023-02-07 18:08 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-01-26 14:11 [PATCH v2] hw/arm/smmuv3: Add GBPA register Mostafa Saleh
2023-02-07 14:03 ` Peter Maydell
2023-02-07 18:07   ` Mostafa Saleh [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=Y+KTcKmTGXqKGID7@google.com \
    --to=smostafa@google.com \
    --cc=eric.auger@redhat.com \
    --cc=jean-philippe@linaro.org \
    --cc=peter.maydell@linaro.org \
    --cc=qemu-arm@nongnu.org \
    --cc=qemu-devel@nongnu.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).