From patchwork Mon Feb 19 18:58:05 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Oliver Upton X-Patchwork-Id: 13562984 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id A37CCC48BC3 for ; Mon, 19 Feb 2024 18:58:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=ruwjS3aS1t4VOFGtUNTsN5DNWuaJQ/a1wQIZTCoiaB0=; b=wNsSAeL08+XuOI EnSmJBL+QRlr+cYYvUC2YHxslU7swyHSz4DENRLmEIW3JTE5FQPyPyZBOHYEGBlC1FrpJCK/n6ytA 1dk0uNWWlYikoXEWrs4m4gjMxMaQKOc40zY+HJVQ5l7rSE/uZvH0W0b7Mv8EkTO8BetwS77yz7BAQ ztdqDZuPUhtNVva6ehyf2PjPi6DNW+eHHVx/ugXp9DwB7v50mflZb3aWikNVVCtXgBHYW6/20MADq pBWdzN/K7/3pUGT1anSaBuZncx9su7pQRLJyglAaeuI02is8ZZx3jO+zruIzulOP+h7cnAnFDpuGX 3NMQLz1KPoOw7ESMINYQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rc8qS-0000000Bo8g-0IZ8; Mon, 19 Feb 2024 18:58:28 +0000 Received: from out-187.mta0.migadu.com ([2001:41d0:1004:224b::bb]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rc8qP-0000000Bo5u-2aps for linux-arm-kernel@lists.infradead.org; Mon, 19 Feb 2024 18:58:27 +0000 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1708369101; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=pW+8iNQbeLyIbXJPdyK8epJlh98fOASyjU7Mp6Za3ys=; b=EoGXnPCJuOK9jAEWm2hEqf+Nlz33xTl/DnShq8918M7ywhjJ4P8txTql9CiVAZXo0w19Ms n3wG07f6xe/IXqediWEBTfKzf4PSvw8E4vx4xlPFMTKB9WuEoJ8AxMwI9cok6qLJBoosFy 8t4HI2Dl21Qc3YEpGST/4tWy2GDLCBY= From: Oliver Upton To: Thomas Gleixner Cc: Marc Zyngier , Zenghui Yu , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, kvmarm@lists.linux.dev, Jing Zhang , Oliver Upton Subject: [PATCH 0/3] irqchip/gic-v3-its: Fix GICv4.1 initialization after kexec Date: Mon, 19 Feb 2024 18:58:05 +0000 Message-ID: <20240219185809.286724-1-oliver.upton@linux.dev> MIME-Version: 1.0 X-Migadu-Flow: FLOW_OUT X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240219_105825_821589_7462689D X-CRM114-Status: UNSURE ( 6.50 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Fix an issue with GICv4.1 redistributor initialization after kexec, ensuring the vPE table gets reinstalled even if the kernel is using preallocated LPI tables. First patch is worthy of a backport back to the introduction of GICv4.1, second two are intended to avoid these mess-ups in the future. Tested by kexec'ing into a new kernel on a GICv4.1 system. Oliver Upton (3): irqchip/gic-v3-its: Do not assume vPE tables are preallocated irqchip/gic-v3-its: Spin off GICv4 init into a separate function irqchip/gic-v3-its: Print the vPE table installed in redistributor drivers/irqchip/irq-gic-v3-its.c | 50 +++++++++++++++++++++----------- 1 file changed, 33 insertions(+), 17 deletions(-) base-commit: 6613476e225e090cc9aad49be7fa504e290dd33d