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 1F643606A325 for ; Wed, 18 Nov 2026 17:20:18 +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=U3PzSBkx; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=HW87yscd 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-Type:MIME-Version: References:In-Reply-To:Subject:Cc:To:From:Message-ID:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Unsubscribe-Post:List-Owner; bh=C/3wjl6fCG2L5aBuDBQtitmDyI0wLilqwEumq3Ter0c=; b=U3PzSBkxp8Ma5jHzLSt4mIK7Lr WLGnrb6kGcm5H+3JjGAwaenaWiDk477XbZCECNkgBKyJfV5SMQE+6+zM5oFZKnNEWIlOTd5txx62O EkU+67PtZ9J5oE7boC9xfTyAVRMG3NV9EfMDSEJMTl6cCiPMQdodsbRtHsWXlBDCxHnJtoksGdfEb 03cvSIYsiKepEEaeyww7we7AIQjDVRwVFIvGqlGnVfmJf8pHIXqdS1MIinGdqWjwgXtkR769McWVd zS3ZevnkVyoZ3JjimYJgNMHX35XjsdXezOMCUI450+VJQ/UHBm1oa7tW0O8xY+h83F6J3lv+lP7lk chHxXVUg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.100.1 #2 (Red Hat Linux)) id 1xTjKM-00000009krc-03d4; Wed, 18 Nov 2026 17:20:10 +0000 Received: from tor.source.kernel.org ([2600:3c04:e001:324:0:1991:8:25]) by bombadil.infradead.org with esmtps (Exim 4.100.1 #2 (Red Hat Linux)) id 1xTjKK-00000009krM-32dM for linux-arm-kernel@lists.infradead.org; Wed, 18 Nov 2026 17:20:08 +0000 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) by tor.source.kernel.org (Postfix) with ESMTP id 0F4D063230; Wed, 18 Nov 2026 17:20:07 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id BC3B11F000C4; Wed, 18 Nov 2026 17:20:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1795022406; bh=C/3wjl6fCG2L5aBuDBQtitmDyI0wLilqwEumq3Ter0c=; h=Date:From:To:Cc:Subject:In-Reply-To:References; b=HW87yscdcuN4vnAlyxlzUKgtD2YYe+cwtk2Lo84P1XZ0/JkyMbT+BboAqgDtZNaI6 mJRTfdJVd7vDF83DNgoX/tNpnTvosuqWQON5Z2PdmRNqGN9B4DYutFLkIw69I39xGi t8WODwJWBpgI8hupY27/Vn68MOLKGOh8GK+iz9e+YbnlYSfWK3QPx2GS5Shh9Bvl0y Rg+/9lqXDsegi47vvUCyAxeayH698guLu2hwVPQOBASrXJ55rG2V0TQGxz+5aA4h12 8Lf0Y0jicqhQhNB7945LSKRzOV8S4ZqaI+y02VUXlVaEXMxIMpwHIhsnnAJch7tgYO BcIxas1TC6rCQ== Received: from sofa.misterjones.org ([185.219.108.64] helo=goblin-girl.misterjones.org) by disco-boy.misterjones.org with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1xTjKG-000000003n8-2pNs; Wed, 18 Nov 2026 17:20:04 +0000 Date: Wed, 18 Nov 2026 17:20:04 +0000 Message-ID: <861p8i12gr.wl-maz@kernel.org> From: Marc Zyngier To: Zenghui Yu Cc: Jinjie Ruan , tglx@kernel.org, radu@rendec.net, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3] irqchip/gic-v3-its: Size the collection table for all possible CPUs In-Reply-To: <9751bd2c-897c-433c-a4da-5ec420ced322@linux.dev> References: <20261118025106.623070-1-ruanjinjie@huawei.com> <9751bd2c-897c-433c-a4da-5ec420ced322@linux.dev> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM-LB/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL-LB/10.8 EasyPG/1.0.0 Emacs/30.1 (aarch64-unknown-linux-gnu) MULE/6.0 (HANACHIRUSATO) X-Archived-By: MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII X-SA-Exim-Connect-IP: 185.219.108.64 X-SA-Exim-Rcpt-To: zenghui.yu@linux.dev, ruanjinjie@huawei.com, tglx@kernel.org, radu@rendec.net, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on disco-boy.misterjones.org); SAEximRunCond expanded to false 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=-5.9 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=no 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 On Wed, 18 Nov 2026 16:44:11 +0000, Zenghui Yu wrote: > > On 11/18/26 10:51 AM, Jinjie Ruan wrote: > > The collection table is currently sized at a single ITS page size, > > and the driver's allocation policy is to allocate a single collection > > per CPU. On systems with more CPUs that the ITS can fit in a single > > page, no LPI can be routed to the CPUs that don't have an allocated > > collection, and the system grinds to a halt. > > The issue on the reported hardware ("384-CPU HiSilicon HIP12 system", as > described in v1) is fixed by allocating 2 pages for the flat collection > table. That is fine. > > > > > Change the allocation policy to allow two-level tables, similarly to > > the other tables. > > But I'm afraid that the two-level CT is still not supported: nothing in the > driver allocates the level-2 CTs. Hmmm. You're are absolutely right. It should only be a matter of plugging its_alloc_table_entry() in its_alloc_collections() and getting the error handling right (which is, I reckon, the hardest part). Thanks, M. -- Without deviation from the norm, progress is not possible.