All of lore.kernel.org
 help / color / mirror / Atom feed
From: Zenghui Yu <yuzenghui@huawei.com>
To: Fuad Tabba <fuad.tabba@linux.dev>
Cc: Marc Zyngier <maz@kernel.org>, Thomas Gleixner <tglx@kernel.org>,
	Radu Rendec <radu@rendec.net>,
	Lorenzo Pieralisi <lpieralisi@kernel.org>,
	Steven Price <steven.price@arm.com>,
	Suzuki K Poulose <suzuki.poulose@arm.com>,
	"Aneesh Kumar K . V" <aneesh.kumar@kernel.org>,
	Will Deacon <will@kernel.org>, Fuad Tabba <tabba@google.com>,
	<linux-arm-kernel@lists.infradead.org>,
	<linux-kernel@vger.kernel.org>
Subject: Re: [PATCH v2 1/5] irqchip/gic-v3-its: Order table zeroing before the GIC can see it
Date: Mon, 23 Nov 2026 20:57:42 +0800	[thread overview]
Message-ID: <59e9fad1-1f11-afb9-e1dd-e68da335eca6@huawei.com> (raw)
In-Reply-To: <20261116192933.3266502-2-fuad.tabba@linux.dev>

On 2026/11/17 3:29, Fuad Tabba wrote:
> The ITS driver allocates the ITS tables and the vPE tables as zeroed
> pages. It exposes each table with a single store: a relaxed
> GICR_VPROPBASER write with Valid set, the relaxed GITS_CTLR write that
> enables the ITS, or a valid level-1 entry for a level-2 page.
> However, on a shareable table the zeroing isn't ordered before that
> store, so the GIC can read the page's previous contents as table
> entries, which the spec makes UNPREDICTABLE (IHI 0069H.b 5.2.1, and
> GICR_VPROPBASER.Z in 12.11.39). A level-2 page is exposed at runtime,
> when the GIC may already be walking the level-1 table for other IDs.
> 
> Add a dsb(ishst) at the end of its_alloc_pages_node(), as
> its_flush_cmd() does for a command. The allocator doesn't take a
> shareability argument, so the barrier is unconditional. On a
> non-shareable table it doesn't hurt.
> 
> Signed-off-by: Fuad Tabba <fuad.tabba@linux.dev>
> ---
>  drivers/irqchip/irq-gic-v3-its.c | 3 +++
>  1 file changed, 3 insertions(+)

Reviewed-by: Zenghui Yu <yuzenghui@huawei.com>

  reply	other threads:[~2026-11-23 12:57 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-16 19:29 [PATCH v2 0/5] irqchip/gic-v3-its: Fixes to table allocation and the ITT pool Fuad Tabba
2026-11-16 19:29 ` [PATCH v2 1/5] irqchip/gic-v3-its: Order table zeroing before the GIC can see it Fuad Tabba
2026-11-23 12:57   ` Zenghui Yu [this message]
2026-11-16 19:29 ` [PATCH v2 2/5] irqchip/gic-v3-its: Clean the GICv4.1 vPE table to PoC Fuad Tabba
2026-11-23  9:17   ` Zenghui Yu
2026-11-23 13:31     ` Fuad Tabba
2026-11-16 19:29 ` [PATCH v2 3/5] irqchip/gic-v3-its: Align sub-page ITTs to 256 bytes Fuad Tabba
2026-11-23 12:41   ` Zenghui Yu
2026-11-23 13:01   ` Marc Zyngier
2026-11-23 13:29     ` Fuad Tabba
2026-11-16 19:29 ` [PATCH v2 4/5] irqchip/gic-v3-its: Zero ITTs reused from the ITT pool Fuad Tabba
2026-11-23 12:41   ` Zenghui Yu
2026-11-23 13:01   ` Marc Zyngier
2026-11-23 13:28     ` Fuad Tabba
2026-11-16 19:29 ` [PATCH v2 5/5] irqchip/gic-v3-its: Free the page when gen_pool_add() fails Fuad Tabba
2026-11-23 12:41   ` Zenghui Yu

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=59e9fad1-1f11-afb9-e1dd-e68da335eca6@huawei.com \
    --to=yuzenghui@huawei.com \
    --cc=aneesh.kumar@kernel.org \
    --cc=fuad.tabba@linux.dev \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=lpieralisi@kernel.org \
    --cc=maz@kernel.org \
    --cc=radu@rendec.net \
    --cc=steven.price@arm.com \
    --cc=suzuki.poulose@arm.com \
    --cc=tabba@google.com \
    --cc=tglx@kernel.org \
    --cc=will@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 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.