From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=95.215.58.10 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796026143; b=DHwLq18DM8G/bQk4kbPy6QpUTU9tQIRgUo7EXel0Eq79OCdvSUTFojxyK8u3NDW/2DY3 AS0PkaP+iL01Bt4bszIrWa6i1aS7GK0qgtqnUGt3Nkf+nBuLNfO8NYxgwIiNZ+V/LkBNV pDQa8wP3PZjOLSEydJNGRmElr4ZJdlRi/UjCR6/w15Zq4EdhPgUzClHTWfYDQayl0C9G1 9aStsfc09yxhB34ganMr5oApHvzxP0i5dz3e2N/1U1IpyzTu14z921sP9ZT2cS53+qkps hR3yXwh7EYbzmbOdt8lW/yaPT2+ecrlCLUAvtmhrSzZE4msSs/jb3Cko1KH/4FFphFQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796026143; h=DMARC-Filter:X-Envelope-To:DKIM-Signature:X-Envelope-To:Received: X-Mizu-Trace-ID:X-Migadu-Flow:From:To:Cc:Subject:Date:Message-ID: X-Mailer:MIME-Version:Content-Transfer-Encoding; bh=i7+Hk/KK1xuFlDXukwZhW+cZiKqe4EetDuJJu5TMMBM=; b=r/oRsMaRm2FgIYajaM9yqPVayZM4trNlAxEjor+HPjYz/XQIbd8YBmsJXCtwsiTQtxQj 4nSMkPmNJfrxggGASw1ELkoWj0MsQkJoUHOl1ie2spjTMR+ULktvz/+i8fWlEeikevsm/ mJF59jPjqlOeuAmMhewVgDfD6knoyVbBYRE91zg6McOj1PlJTyrK5CuqBgynyU/4G5S4P kuKYkSdjOgWFKomJCw53OXHPIN42VkNDtZN4acqCzieRcaKWtHmLYFpwfA9M8YMjeBMTr tpmOuWGtONPtQX1wuQtIDMICNedAzL/ZOzAnZgXhNycuXHiar2gW6B1lz7QTG3WsjjQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass header.d=linux.dev header.i=@linux.dev header.a=rsa-sha256 header.s=key1 header.b=dSXwqpBc; arc=none smtp.remote-ip=95.215.58.10 Received: from mta1.migadu.com (out-10.mta1.migadu.com [95.215.58.10]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3E620606A31C for ; Mon, 30 Nov 2026 08:09:02 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 3E620606A31C Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key, unprotected) header.d=linux.dev header.i=@linux.dev header.a=rsa-sha256 header.s=key1 header.b=dSXwqpBc X-Envelope-To: linux-kernel@vger.kernel.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-kernel@vger.kernel.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-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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