From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C5DE9606A32C for ; Mon, 30 Nov 2026 08:09:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=X0sYewPB; dkim=pass (1024-bit key, unprotected) header.d=linux.dev header.i=@linux.dev header.a=rsa-sha256 header.s=key1 header.b=dSXwqpBc DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-Type: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Unsubscribe-Post:List-Owner; bh=i7+Hk/KK1xuFlDXukwZhW+cZiKqe4EetDuJJu5TMMBM=; b=X0sYewPBPlYGD1dqQ0rONqGyFO pK9ZHhjBBH5zJgPTUbVsvtHDP64rnFdrJE9q5V26/5fSqvFy8r/sdpTYl0D7omGvZUtI8NciMLnLy ge4/q10jtjuLTMXYrv1HfboZin+7zZTTwJfbLs0uqbxUsfbg9DbuEFNZLja/BggbwngzFkXTAsdhO nfvrpeQwzZnl47eu41agEPOuVubaNeL5qaRpR/mCOTRuJPPqK0PTO1k+Eadpekh9OXoS/8Tmnd8+v TL3P5KDVh9apTyUSDFfc739gbqGTZRqiPmKukHWViQoUf5aHbFPY2jqO61/pUVH33oNGIXqExrroA pab1ljRw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.100.1 #2 (Red Hat Linux)) id 1xXwRe-00000003hJ7-0Eif; Mon, 30 Nov 2026 08:09:06 +0000 Received: from out-235.mta0.migadu.com ([2001:41d0:1004:224b::eb] helo=mta0.migadu.com) by bombadil.infradead.org with esmtps (Exim 4.100.1 #2 (Red Hat Linux)) id 1xXwRb-00000003hHd-1ZH8 for linux-arm-kernel@lists.infradead.org; Mon, 30 Nov 2026 08:09:04 +0000 X-Envelope-To: linux-arm-kernel@lists.infradead.org DKIM-Signature: a=rsa-sha256; bh=cMad3UXYn6gFMSnHUWZajHe+IsElNJvQGzyP1RfzKgc=; c=simple/simple; d=linux.dev; h=from:to:subject:date:message-id:mime-version:content-type; s=key1; t=1796026141; v=1; x=1796630941; b=dSXwqpBcuGEtvMFay+zrOzRawcld9+AnV+JsHkuPQBIgTGUCrdcpJiyO3/7K81p/sOpKueI+ +iR2vZtmhi6kYPnVX8O+JEAkH2h2Y8zsTfGrxmtXHwa4/lwRB5GfdzMePndCzjvNtgF+FmfHf2i PG1HHrEcEefsBQjT7j9WGmU4= X-Envelope-To: linux-arm-kernel@lists.infradead.org Received: by smtp.migadu.com with ESMTPS id 15edaf06f96537a6; Mon, 30 Nov 2026 08:09:01 +0000 X-Mizu-Trace-ID: 15edaf06f96537a6 X-Migadu-Flow: FLOW_OUT From: Fuad Tabba To: Marc Zyngier , Thomas Gleixner Cc: Radu Rendec , Zenghui Yu , Lorenzo Pieralisi , Steven Price , Suzuki K Poulose , "Aneesh Kumar K . V" , Will Deacon , Fuad Tabba , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v4 0/5] irqchip/gic-v3-its: Fixes to table allocation and the ITT pool Date: Mon, 30 Nov 2026 08:08:51 +0000 Message-ID: <20261130080856.636755-1-fuad.tabba@linux.dev> X-Mailer: git-send-email 2.47.3 X-Archived-By: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20261130_000903_551130_193D0894 X-CRM114-Status: UNSURE ( 9.64 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -2.1 (--) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" X-Spam-Status: No, score=-13.9 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 Hi folks, Changes since v3 [1]: - Fixed patch 4's commit message. (Marc) - Collected Reviewed-by from Marc. (thanks!) A few fixes to how the ITS driver sets up the memory the GIC reads. The first adds the barrier that was missing between zeroing a table page and the write that makes the page visible to the GIC. The second cleans the GICv4.1 vPE table to PoC, as the driver already does for the pending table. Without the clean, only a redistributor that accesses the table as non-shareable can read stale contents from it. The other three fix the ITT pool. Its 1-byte granule keeps ITTs aligned only while every ITT's size is a multiple of 256, which holds for power-of-two ITE sizes but not for QEMU's 12-byte ones. The third gives the pool a 256-byte granule. The fourth zeroes an ITT reused from the pool, as MAPD requires. The fifth frees the page when gen_pool_add() fails. Based on Linux 7.4-rc3 (aebb727447640). Cheers, /fuad [1] https://lore.kernel.org/all/20261127120623.891129-1-fuad.tabba@linux.dev/ Fuad Tabba (5): irqchip/gic-v3-its: Order table zeroing before the GIC can see it irqchip/gic-v4.1: Clean the vPE table to PoC irqchip/gic-v3-its: Align sub-page ITTs to 256 bytes irqchip/gic-v3-its: Zero ITTs reused from the ITT pool irqchip/gic-v3-its: Free the page when gen_pool_add() fails drivers/irqchip/irq-gic-v3-its.c | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) base-commit: aebb7274476403040d582c61478df8f4a7bf9cd3 -- 2.47.3