From patchwork Tue Feb 13 10:38:43 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: tip-bot2 for Thomas Gleixner X-Patchwork-Id: 200358 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:bc8a:b0:106:860b:bbdd with SMTP id dn10csp449419dyb; Tue, 13 Feb 2024 02:39:23 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCW6pLqmjW0CG/aqqOTGMvEHgL8KFQQd3x2wB1zEgo8KbGy3+uCMhYOFLas8qENlWz4vMXugQSnD9brq5VG/bYn/IQknGA== X-Google-Smtp-Source: AGHT+IGTg+h8lz9520xgkZp9gfOnyQnp2b4shJNIyvdUa6jtLW5FRjShdYg6oq24F+Ox14RM7ZiD X-Received: by 2002:a05:6358:579c:b0:176:d552:c681 with SMTP id m28-20020a056358579c00b00176d552c681mr11246656rwf.21.1707820762773; Tue, 13 Feb 2024 02:39:22 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707820762; cv=pass; d=google.com; s=arc-20160816; b=XOPu2na2yibYjLCESKBpywybYP9ZTrrmwAtGsJfltbzJm3MXcgFwYesCuZFFO2AbUV DVJoARAcCDwDwZWg75+qzXGIuI6hMa5boS2CYbWvdvJvd03/RrLpW7LvNE0m1w9yv4pl n+3DlVKwk9knbq0IW4ECG9nKjMCR4S7Zb/4NV/CejlTFWa6mOxjDEEoy5c+eK4yh3G2s XpUsZ0Bhp7FjrZsv2Dk+ResPXyh+UsunIRGdQ91iqFvxKqGqGa+rGs3TMkavbVC87nYR LCHB39xRPE8tzksy5kwM48ds6KwXQ2wVXpoO/aSSTQC2T+37ynqHcS7/XkOQS89kHMXe xfSw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:precedence:robot-unsubscribe:robot-id :message-id:mime-version:list-unsubscribe:list-subscribe:list-id :precedence:references:in-reply-to:cc:subject:to:reply-to:sender :from:dkim-signature:dkim-signature:date; bh=/3QWOyLixGt1iJ/I+f3IkJUKSIdZzuFVyhqA5gxCtk0=; fh=mN1+FCGpRyyyD/KZQkk3EWuPEjBF0JbzgIPFLrYhwE4=; b=v8pyOYb664k23xJllXg6EfAYoBfFYiupVvr8eIF38SfZ5MikzkGc+Z8SEg6KBmH2Sb axr8GD1DP+uB9cVg/0S/DLuAPNX7EADp+H39dpvO2b0K64/7vO7MTaumvmba9t0kWDFC /hKnI5CMOHDvmoPrTEJb/qwbQiDulnthSLr18JpqHANJVyz3Gb54mHE1+hl07g0RLssl OaC8uCFMbqoGoXUvUFhX1iwK9z3FErZ0Z1OplbqPaeje8V14qKeQARA7DUGeMf/EmbHv s4koP2kLb2w4GlBElIV+6Er1Z5ansPpAW3jL1lr7cujIklA+V+zTFWk+n9p2/mTS9V28 9Ltw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=1zcUeppW; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; arc=pass (i=1 spf=pass spfdomain=linutronix.de dkim=pass dkdomain=linutronix.de dmarc=pass fromdomain=linutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-63358-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-63358-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de X-Forwarded-Encrypted: i=2; AJvYcCXVdppfnCJers3Gac6WIolCFmj+e+M58I98OzHzqSgOpLiRbGhaiqb4UFSICcFlI0JcTltcxS6YX8qC9WLXcp8vjB9WHw== Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id s23-20020a656917000000b0059b64b153f6si1719230pgq.845.2024.02.13.02.39.22 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 Feb 2024 02:39:22 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-63358-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=1zcUeppW; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; arc=pass (i=1 spf=pass spfdomain=linutronix.de dkim=pass dkdomain=linutronix.de dmarc=pass fromdomain=linutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-63358-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-63358-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 857BC28301B for ; Tue, 13 Feb 2024 10:39:22 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1B8C032C84; Tue, 13 Feb 2024 10:38:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="1zcUeppW"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="QMbHKsru" Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (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 E4AE4249EA; Tue, 13 Feb 2024 10:38:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707820727; cv=none; b=W9fMi4JtJ3lOIwJ+b6zp1rFFRU3J/Aucoq+U1PzG7LraJ1Ckuwh6+Dj1XxJrpb/Y1poDTuVKhdbmrGFUN9qAZ0iDcE9jztN1xuj7IAB5w+yxeQGkO4nJG1AjEyqAIVodaZAiQWUAww/B3OJtuH3ePnEETyx5UtxwZPAcK1XXdWc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707820727; c=relaxed/simple; bh=Uy1WRLvsRPh+dMpNYNJnzvWJK9kiQUrzvYENMWgy88Y=; h=Date:From:To:Subject:Cc:In-Reply-To:References:MIME-Version: Message-ID:Content-Type; b=bVZ8l4MwxLSUVZY8R3nf44J2uGbgIKMXcEyC+k8m0AitfbxgOCo/BVmpGvG7ZarlIRmanIFAEZVQ4RdXR+8TvmaybnXUa4Ifhs7UHSLZ06f9WIusrBFhCfy7vMWGhawCCNSZDISnCJUvTRhPY8ncaqoW3VzvKtskDsuD3MC0pbo= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=1zcUeppW; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=QMbHKsru; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de Date: Tue, 13 Feb 2024 10:38:43 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1707820724; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=/3QWOyLixGt1iJ/I+f3IkJUKSIdZzuFVyhqA5gxCtk0=; b=1zcUeppW3kbdnbhIfa2NMM3y4GQpjMFZfnrQSlCPWdLJRaHVY50eEzmsZwu8/AOen6D5wP +J4IerZZVhjCtaO8x+KeU0HJx5Ky9wXhYSg4WgRHotDBbfzjyBpMXaqvAPXg9mu3RYyIEi 8jIC3+dZvOeySlbEYY9TbBts2Zv3qzGnfHa69nTY8UG9MiyBonSJhOxDrCe8NUWJ1CdfuE aoBUWK64STXewwKWjv67czapwiyxqpIYToPmbKeiPbfmM33flGw/oVIKVtk0GDTxilLJ2L anYdagit/SIJgPU5J2NeXphyPAreaaA0yVcFyZdWui5AXKJezRezeKFEZ3T+iw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1707820724; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=/3QWOyLixGt1iJ/I+f3IkJUKSIdZzuFVyhqA5gxCtk0=; b=QMbHKsrupmFLaukr6i6TYcqvun3kvbPA8LX6HMjpeE6Mzt12yAmedwESqXoOTlfsQrcGFJ 9cMyNI1plbTCLIAw== From: "tip-bot2 for Marc Zyngier" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: irq/urgent] irqchip/gic-v3-its: Restore quirk probing for ACPI-based systems Cc: Marc Zyngier , Thomas Gleixner , Lorenzo Pieralisi , Zenghui Yu , stable@vger.kernel.org, x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20240213101206.2137483-3-maz@kernel.org> References: <20240213101206.2137483-3-maz@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-ID: <170782072338.398.14487986832885043977.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Precedence: bulk X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1790778210754021551 X-GMAIL-MSGID: 1790779864066928645 The following commit has been merged into the irq/urgent branch of tip: Commit-ID: 8b02da04ad978827e5ccd675acf170198f747a7a Gitweb: https://git.kernel.org/tip/8b02da04ad978827e5ccd675acf170198f747a7a Author: Marc Zyngier AuthorDate: Tue, 13 Feb 2024 10:12:05 Committer: Thomas Gleixner CommitterDate: Tue, 13 Feb 2024 11:29:52 +01:00 irqchip/gic-v3-its: Restore quirk probing for ACPI-based systems While refactoring the way the ITSs are probed, the handling of quirks applicable to ACPI-based platforms was lost. As a result, systems such as HIP07 lose their GICv4 functionnality, and some other may even fail to boot, unless they are configured to boot with DT. Move the enabling of quirks into its_probe_one(), making it common to all firmware implementations. Fixes: 9585a495ac93 ("irqchip/gic-v3-its: Split allocation from initialisation of its_node") Signed-off-by: Marc Zyngier Signed-off-by: Thomas Gleixner Reviewed-by: Lorenzo Pieralisi Reviewed-by: Zenghui Yu Cc: stable@vger.kernel.org Link: https://lore.kernel.org/r/20240213101206.2137483-3-maz@kernel.org --- drivers/irqchip/irq-gic-v3-its.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/irqchip/irq-gic-v3-its.c b/drivers/irqchip/irq-gic-v3-its.c index fec1b58..250b456 100644 --- a/drivers/irqchip/irq-gic-v3-its.c +++ b/drivers/irqchip/irq-gic-v3-its.c @@ -5091,6 +5091,8 @@ static int __init its_probe_one(struct its_node *its) u32 ctlr; int err; + its_enable_quirks(its); + if (is_v4(its)) { if (!(its->typer & GITS_TYPER_VMOVP)) { err = its_compute_its_list_map(its); @@ -5442,7 +5444,6 @@ static int __init its_of_probe(struct device_node *node) if (!its) return -ENOMEM; - its_enable_quirks(its); err = its_probe_one(its); if (err) { its_node_destroy(its);