Received: by 2002:a05:7412:d1aa:b0:fc:a2b0:25d7 with SMTP id ba42csp255246rdb; Mon, 29 Jan 2024 00:46:05 -0800 (PST) X-Google-Smtp-Source: AGHT+IGKrAiyrJY4SM4OLG7P2RTQNkCI6YzVMSLe2SuJOlsLOZbBjeqYbTGjEQW6uoivnr8J1iv7 X-Received: by 2002:a05:6358:90c:b0:178:652e:5e32 with SMTP id r12-20020a056358090c00b00178652e5e32mr4655674rwi.62.1706517964800; Mon, 29 Jan 2024 00:46:04 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706517964; cv=pass; d=google.com; s=arc-20160816; b=odrhUbD3C4VDWL24JIP2Qhju81Qqc3L+8MO4OvUu5yNqOJb04Ar1cgEsYxSlO+v+Zz hbAefIqqpahOy24aL6t7xEAm4cN/yUq6vBS1nMw5Kq3ZNt8jMaFsuiOe87d3WwghBG0+ vWV0uyK6iSeIXhoQQ2qzl3QILb1McLMZazk4pn2Gge89KPrL75I8YbwyjyKpV7vYq7qZ 5ZckESDYsdzql0KizFf//rquNXxU0IOGkBTxrDLl1OswjtogFkQZSw7f+gCQr/0Tu025 M1i9ixo/XeGjPOnRrfjKRc0xft9L9wTzt4PJDoq+Jv96X5tG4t4k620UGiqAlIWBHYGA 5VgA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=564P/y0wL0U4BggVUWqEeZ/VJuqfi6Z9jAYGpBTsUBM=; fh=b/Xv+5vGsSys2CGNsIBGtR5PBsKX/sUbzl8G4gV2PIk=; b=YKXlt7yumfX8QqusnoxoGtDBTMnN9nc+e9Q8nBV1JeU8vMnETcfHB/GBVEnEVIMtD1 x5AeBpR1rmIIv+33YDJH6HZylfXxlG06+E9+eJwX76ecE4Oz5TJz1NWTACi8P6iCI4wF 00OIclYyGbQSMnCAIKSRnMjDqaVwaOdsWJ/yYKhuZgD7YC44DI3AOjRA1j0A8z3osCIT BJfENMrkpCdgs7Be4tNih3YO5PWmk3T6yZhQhUuWDw0GruxkLlMTe7P/7SCcJzsel5EA GsnGj+gF5wHNPexCBwMXOUKULTEsc3ldC3U6XmzN+zp73eVKOhMOHespHyZV8SVvY7/P WUow== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=JaW41u9q; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-42381-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-42381-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id g7-20020a63e607000000b005d8bb44b21asi3164986pgh.542.2024.01.29.00.46.04 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Jan 2024 00:46:04 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-42381-linux.lists.archive=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=@kernel.org header.s=k20201202 header.b=JaW41u9q; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-42381-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-42381-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 70DD0281730 for ; Mon, 29 Jan 2024 08:46:04 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E911154BDB; Mon, 29 Jan 2024 08:45:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="JaW41u9q" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 193DB524D5; Mon, 29 Jan 2024 08:45:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706517957; cv=none; b=kiJoudats0yP6NU6ElMDPVwLQzz60svKN1MMxfRhNvNOS1t4MN1JkFDquZNeqIoVPpZK5IBVEMQ8WrGStjS0OrxgKF97G/WtrJWK+p8RP5NGiwIs+KIZTJtDvf1pI4oHQftfpfp+PVruBJb5pRTVIwl5ExQqCWbPa54HFrosTew= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706517957; c=relaxed/simple; bh=h+w67Av4j/ZtT+FxipGw15DHMifwDMi67xcC7YTpOW4=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=A/tFhlMGkQ7bp+fZ/T3g7QswckeWIpCU3Zfg/yzD7Xxwyv+j059XWGlh28BmnKDwVM4LEuYuUEXnutc/DTq/ol2SpbXQnKbqZbFwMm3Ym8Ts9pShDxR0P3Ivk7xGshH+XW4bKPOct/ixoa01zGsuSMSciR6nIf1qbZMSRaCEZn0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=JaW41u9q; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id F08EBC433F1; Mon, 29 Jan 2024 08:45:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1706517956; bh=h+w67Av4j/ZtT+FxipGw15DHMifwDMi67xcC7YTpOW4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=JaW41u9q07rH9eLkLikVQ03Zi2vIlErkRPCy26x/LqPtHUw3clevjCrngCsngOnIa 5GA9xPvgWjjwP9g110+WAM6mGjJiY6rHTuAH/tBaf65VkKsR6P5FM4N9mohyvJs1EP Wu0jzL7St53u0V+mxvSwBvnMZVMb0pPKidIpwARr66BAoDilG+A2ogtZWjv1nhyoqD Vb8KE4l3o4BdzL5UaLKMJ1iDVUX0TBXbECCf6keFcP6eU0Xpj+3SJQYyUN5kFRv/AI fgBkOsUW8Vdp9ThjMc81YMKT2lX3hQ1YICJqFmwh1CVzvLBwbjA5cGO8OiYE8EhTyP 6I8opYtF3UM0g== Date: Mon, 29 Jan 2024 09:45:52 +0100 From: Lorenzo Pieralisi To: Marc Zyngier Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Thomas Gleixner , yuzenghui@huawei.com, stable@vger.kernel.org Subject: Re: [PATCH] irqchip/gic-v3-its: Restore quirk probing for ACPI-based systems Message-ID: References: <20240127110702.4068488-1-maz@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240127110702.4068488-1-maz@kernel.org> On Sat, Jan 27, 2024 at 11:07:02AM +0000, Marc Zyngier wrote: > 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 Just noticed: s/functionnality/functionality > 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 > Cc: stable@vger.kernel.org > --- > drivers/irqchip/irq-gic-v3-its.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) I obviously tested it with ACPI with platforms not neededing its quirks, apologies. Reviewed-by: Lorenzo Pieralisi > diff --git a/drivers/irqchip/irq-gic-v3-its.c b/drivers/irqchip/irq-gic-v3-its.c > index fec1b58470df..250b4562f308 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); > -- > 2.39.2 >