Received: by 10.223.176.5 with SMTP id f5csp2726391wra; Thu, 1 Feb 2018 05:13:17 -0800 (PST) X-Google-Smtp-Source: AH8x225mcISU53nebvv5kiuBHEMOWmf4pIqIEZlBlrhaRbJYxbQkW71PezXNxkgfdo0KZUV5VGb3 X-Received: by 10.99.116.88 with SMTP id e24mr28350042pgn.279.1517490797500; Thu, 01 Feb 2018 05:13:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517490797; cv=none; d=google.com; s=arc-20160816; b=ACuN6Dl6Hi7XYef8uPeCTCT6yqhz6oZP7ooYbQ4nkTSpEW1GIHc1euDP2ElVyLcPSO z3gpDYFAlFRw2C2cUb1hVHzNOB9IWlLDRQCWeNTPsky+Z9rKD1rV9I2PyQNvRa44DGs8 Vojbg1eg5U9jMRWGcjCr1g5MxrToBV1C4Vi67vLFpWyzJkczM6FeoYV+H2dHtWxk+WAO A8siNAiu3HgOHKYnmlXVbcWcdiz79mysZTU18tcofrxjrKbNjAP2S6+FMfSC1AtzEx9G K/2/D61eqD/ZivxHhth9MobQju/xXOVG9oBcSOw6dCvQemR4eeyGfWMjznJBuz8yVsB9 SAhA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:organization:from:references:cc:to:subject :arc-authentication-results; bh=DN9+wk1jhoVz3H+w87A1CdXSoM9xz2+0qmNb5ZNj//k=; b=Fit/wVVkv8BlK8FNHeE+KqfTE1aJUnxL1LInhlPVSkx6SvLtSCBNDH/zYfeN++TDkx mFvRta28fq1q56WqQykosteSHo1lUCpvhZ+bpGSNmpBCvSenKBiwAQgPXwc1p9TMd3PX ziryYyWg3jhlUbgN/9H6nWgG50H5BH+9Wo5fv93jUu/fwhff1WgyO7VDcMTArKq+tb4W XnQBhu7/nZ4j0H8aMg0lw0pOhU/TvlSekzQi/2TeYTBAWfPFA6f81I+bylVuu2vmflwb zh8bwaEvJ1gNozTSQMde98s3JSQUY7KCxiyhHa0edZacbdTUYWmGnvPX9S2nsK7P/Tm7 AO2Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a1-v6si1316272plp.568.2018.02.01.05.13.02; Thu, 01 Feb 2018 05:13:17 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752539AbeBANKq (ORCPT + 99 others); Thu, 1 Feb 2018 08:10:46 -0500 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:50016 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752466AbeBANKn (ORCPT ); Thu, 1 Feb 2018 08:10:43 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 0550E80D; Thu, 1 Feb 2018 05:10:43 -0800 (PST) Received: from [10.1.207.62] (usa-sjc-imap-foss1.foss.arm.com [10.72.51.249]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 12CEC3F25C; Thu, 1 Feb 2018 05:10:40 -0800 (PST) Subject: Re: [PATCH] irqchip/gic-v3: Ignore disabled ITS nodes To: Stephen Boyd , Thomas Gleixner , Jason Cooper Cc: linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Rajendra Nayak References: <20180129164933.25479-1-sboyd@codeaurora.org> From: Marc Zyngier Organization: ARM Ltd Message-ID: <8e564636-aae3-4fee-a57c-6f1c01529b49@arm.com> Date: Thu, 1 Feb 2018 13:10:38 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 MIME-Version: 1.0 In-Reply-To: <20180129164933.25479-1-sboyd@codeaurora.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 29/01/18 16:49, Stephen Boyd wrote: > On some platforms there's an ITS available but it's not enabled > because reading or writing the registers is denied by the > firmware. In fact, reading or writing them will cause the system > to reset. Wow. Funky. > We could remove the node from DT in such a case, but > it's better to skip nodes that are marked as "disabled" in DT so > that we can describe the hardware that exists and use the status > property to indicate how the firmware has configured things. > > Cc: Marc Zyngier > Cc: Rajendra Nayak > Signed-off-by: Stephen Boyd > --- > drivers/irqchip/irq-gic-v3-its-pci-msi.c | 2 ++ > drivers/irqchip/irq-gic-v3-its-platform-msi.c | 2 ++ > drivers/irqchip/irq-gic-v3-its.c | 2 ++ > 3 files changed, 6 insertions(+) > > diff --git a/drivers/irqchip/irq-gic-v3-its-pci-msi.c b/drivers/irqchip/irq-gic-v3-its-pci-msi.c > index 77931214d954..6b5f50e1fc72 100644 > --- a/drivers/irqchip/irq-gic-v3-its-pci-msi.c > +++ b/drivers/irqchip/irq-gic-v3-its-pci-msi.c > @@ -132,6 +132,8 @@ static int __init its_pci_of_msi_init(void) > > for (np = of_find_matching_node(NULL, its_device_id); np; > np = of_find_matching_node(np, its_device_id)) { > + if (!of_device_is_available(np)) > + continue; > if (!of_property_read_bool(np, "msi-controller")) > continue; > > diff --git a/drivers/irqchip/irq-gic-v3-its-platform-msi.c b/drivers/irqchip/irq-gic-v3-its-platform-msi.c > index 833a90fe33ae..8881a053c173 100644 > --- a/drivers/irqchip/irq-gic-v3-its-platform-msi.c > +++ b/drivers/irqchip/irq-gic-v3-its-platform-msi.c > @@ -154,6 +154,8 @@ static void __init its_pmsi_of_init(void) > > for (np = of_find_matching_node(NULL, its_device_id); np; > np = of_find_matching_node(np, its_device_id)) { > + if (!of_device_is_available(np)) > + continue; > if (!of_property_read_bool(np, "msi-controller")) > continue; > > diff --git a/drivers/irqchip/irq-gic-v3-its.c b/drivers/irqchip/irq-gic-v3-its.c > index 284738add89b..a84ee6ce244d 100644 > --- a/drivers/irqchip/irq-gic-v3-its.c > +++ b/drivers/irqchip/irq-gic-v3-its.c > @@ -1815,6 +1815,8 @@ static int __init its_of_probe(struct device_node *node) > > for (np = of_find_matching_node(node, its_device_id); np; > np = of_find_matching_node(np, its_device_id)) { > + if (!of_device_is_available(np)) > + continue; > if (!of_property_read_bool(np, "msi-controller")) { > pr_warn("%s: no msi-controller property, ITS ignored\n", > np->full_name); > Can you also address the same thing in drivers/staging/fsl-mc/bus/irq-gic-v3-its-fsl-mc-msi.c? Do we need a cc to stable for this? Thanks, M. -- Jazz is not dead. It just smells funny...