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: 20613 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:693c:2685:b0:108:e6aa:91d0 with SMTP id mn5csp1475084dyc; Mon, 19 Feb 2024 10:58:59 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWjlyCusl1WAhLAg2L6aCXB+gTFlyqkX64azUwLpgB66Ftp1jSV1QohYLsPkPpgRg2Zz47zZGQSsSahXYjjxvbo102Hhw== X-Google-Smtp-Source: AGHT+IEZmdZSzcHKO2rNT6joTvnVfLGQOX3euTOw9vCxUbNU/phoXGFFDdLXp4201nsLMwtc9YRj X-Received: by 2002:a5b:750:0:b0:dc6:e4f8:7e22 with SMTP id s16-20020a5b0750000000b00dc6e4f87e22mr10411391ybq.62.1708369139318; Mon, 19 Feb 2024 10:58:59 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708369139; cv=pass; d=google.com; s=arc-20160816; b=Wtwdrf6wVfL+Ta1apdx1riWPOzPLW1xXBJZXFW2mfu1zFzPrQF7wTADCXIFeCSrau3 1kXeOCOK5WM6UHuxMbhWv/dXhg3dvL4cg9La1vLkf0zToLauLx5ci0eUVX89E/IWZ21C SVF6vf8BjsLa4MHEHa0Pk6SV2xYuQfaRwMj2NM64k3+EjBQ46aR1tsXcalDR9zjZwCNJ eRdViap7ni4LANWKU2Jnsp9txu8URaLgGOj0sCUplyE6BgRlAWuxmOjgs3eExCJqEIzC +j83E4qBRv9woLrjNZjnFoBtMVZEz2mQeFXNea/nGH/kXnVPB50YdygnmnO3eIiMKfS8 Fv+A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=pW+8iNQbeLyIbXJPdyK8epJlh98fOASyjU7Mp6Za3ys=; fh=fgV4Kp0ZgGkINw9PbGnSyYl5n9Uaijr/GJFF1V5tx/4=; b=JRvTzLd7sEqpKVb9cchhBFQIg4Wk4NVxPuiARxJjYPxOqAKHmn9h6NxZbtjpfR5olG G00knhFM6yLg0gfFd5oZz8b75palZM8JMp78KY60bBA4SPAQXz+mxxUzhESz4kv/yOND CWfk3dQDdUlY/UNyMZDNiMFOvsowUE4s69A1Kz4YU9ghWrlMYBVBSdtXvwf4wS9QX9C3 iUlE/6eQVn5c1sX4t16kVN6hZsnhYM+DVsxMxYccRE4M+lqt8mrcmD0n8aj2LuP50Rn4 3008WdFVrRtQ8rX0nwLk8canZYrpednDbjZgLjnnyov8J+Ctu5pI62WW5EZlP75j1bPz 2DaA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=EoGXnPCJ; arc=pass (i=1 spf=pass spfdomain=linux.dev dkim=pass dkdomain=linux.dev dmarc=pass fromdomain=linux.dev); spf=pass (google.com: domain of linux-kernel+bounces-71846-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-71846-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id f19-20020ac87f13000000b0042dfcfb0c89si5351510qtk.624.2024.02.19.10.58.59 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Feb 2024 10:58:59 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-71846-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=EoGXnPCJ; arc=pass (i=1 spf=pass spfdomain=linux.dev dkim=pass dkdomain=linux.dev dmarc=pass fromdomain=linux.dev); spf=pass (google.com: domain of linux-kernel+bounces-71846-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-71846-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 14F621C22249 for ; Mon, 19 Feb 2024 18:58:59 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E331448CD5; Mon, 19 Feb 2024 18:58:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="EoGXnPCJ" Received: from out-181.mta0.migadu.com (out-181.mta0.migadu.com [91.218.175.181]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7375447A4D for ; Mon, 19 Feb 2024 18:58:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.181 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708369105; cv=none; b=IY0UJvfsrxFV8DYMqS1ougOfZbWxLDL8+8ebDgBiWKNawyQJbIsOtU63pXcnNyW44aAHKBa0DYfs++UBxeRlz69/FlLMKrIR71tRYWL2zs5h7EggZfqTQu71dVMrFAuNo1cWe8IAVz0b47bvQkadZsCjPpmrIsMzKEucYDV6qk8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708369105; c=relaxed/simple; bh=5OU0GHTdrAKrf4dsHeadS9f7uXCHbQibWUgINaNMk/w=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=j4s9WZHBJiFeSjKLaedx9fcVgNtppcRuLc2n6qha/WaGive5S+b6E9Sj1nXBm+kEjyc4xHAwfePwFv8J6LUpWdnoihRo7bdn3wCBvcwju3SX19AVBsgQan6PXoz5+y3EPnAGk/0A6+zUHwgwW+u7buAyPWJQ5jQxiTM7fMtSFok= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=EoGXnPCJ; arc=none smtp.client-ip=91.218.175.181 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 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> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Migadu-Flow: FLOW_OUT X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1791354878696360413 X-GMAIL-MSGID: 1791354878696360413 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