Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp6371810pxb; Mon, 8 Nov 2021 07:33:51 -0800 (PST) X-Google-Smtp-Source: ABdhPJxYnKk6aRUYcykTA9a52Td3LDnHcFqKMamhle4vzAm3LOeAhqRvAab5tyPfonfE67o2NTUr X-Received: by 2002:a05:6e02:1a69:: with SMTP id w9mr602486ilv.87.1636385631059; Mon, 08 Nov 2021 07:33:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1636385631; cv=none; d=google.com; s=arc-20160816; b=PJElDxTYmJuhy2ntPiIlnIOkKo6PbvAP9BUQN0AEFxHGBnsdVqSSyZ481v/wllQ92n D6kQzZf7j6EWkrZND2C4lgtWInhj2hRi7vjw2QVPAwWJTAQcjMbg7+lN9WPmmWcUVOhp 7b2y+wAZScmjUgzHkK7a4K2Q8lWmYu4eyJTc54tYkJ/A1VC393/6FKzaQpe5CmlUTUom cv0lukn1theMRCBahgNZDaFGIupOAV1e4o6li4GMjwZRJm+xca6xbKbXTjhNj1X66YPR bxWHaQweftNPrnRzkXWIy5uBU2QDVpK5Eh3+EJPgs8iepENY9LsJr2Ushsp730UPhjQB Y8JQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=Pf9WWv76hGL9Gmt/2P4dWOTWlcBXgp0dLaUHFfwUU4Q=; b=qPY+cfeATES+ZtKlAIWh0AHj1/KWdYF5KiMRX1uusn09ulYgqLq7BV0+j8nfn4Jyms qcLOmYnBNhW19IsFMCiAynvnSOw1jeLB/MxZHj+ih1Pm1VFQAarQsn0dKBxvZWuKPy/b FsWuot3JaRW7YAi+CBQLfR8P5X5neAxHTtt+Bxd2btph7IAQEP1+5JZnfT0FdpK7Hs8M CZ7gqGURSfY2Lr9G1kIb9pTkrugF8dJADhcv39i+MNCuaGP7DRVzRddn2+1kyTrTsaAo LhwTxCWTcztQZfDQ7aR7UnAUSppJw+h7ECSiXPSnktpLolkUhqIVSS4RenibOAq1d6cq +U/w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m20si32398978iow.110.2021.11.08.07.33.37; Mon, 08 Nov 2021 07:33:51 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237570AbhKHK3L (ORCPT + 99 others); Mon, 8 Nov 2021 05:29:11 -0500 Received: from foss.arm.com ([217.140.110.172]:48408 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237572AbhKHK2s (ORCPT ); Mon, 8 Nov 2021 05:28:48 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 257AB1FB; Mon, 8 Nov 2021 02:26:01 -0800 (PST) Received: from FVFF77S0Q05N (unknown [10.57.58.140]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id C89913F800; Mon, 8 Nov 2021 02:25:58 -0800 (PST) Date: Mon, 8 Nov 2021 10:25:52 +0000 From: Mark Rutland To: Brad Larson Cc: Linux ARM , Arnd Bergmann , Linus Walleij , Bartosz Golaszewski , Mark Brown , Serge Semin , Adrian Hunter , Ulf Hansson , Olof Johansson , "open list:GPIO SUBSYSTEM" , linux-spi , linux-mmc , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , Linux Kernel Mailing List Subject: Re: [PATCH v3 11/11] arm64: dts: Add Pensando Elba SoC support Message-ID: References: <20211025015156.33133-1-brad@pensando.io> <20211025015156.33133-12-brad@pensando.io> <20211025091731.GA2001@C02TD0UTHF1T.local> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Nov 04, 2021 at 03:53:13PM -0700, Brad Larson wrote: > On Mon, Oct 25, 2021 at 2:17 AM Mark Rutland wrote: > > On Sun, Oct 24, 2021 at 06:51:56PM -0700, Brad Larson wrote: > > > + timer { > > > + compatible = "arm,armv8-timer"; > > > + interrupts = > > + IRQ_TYPE_LEVEL_LOW)>, > > > + > > + IRQ_TYPE_LEVEL_LOW)>, > > > + > > + IRQ_TYPE_LEVEL_LOW)>, > > > + > > + IRQ_TYPE_LEVEL_LOW)>; > > > + }; > > > > The GIC_CPU_MASK_SIMPLE() stuff is meant for GICv2, but as below you > > have GICv3, where this is not valid, so this should go. > > > > Also, beware that GIC_CPU_MASK_SIMPLE(1) means a single CPU, which > > doesn't mak sense for the 16 CPUs you have. > > > > Thanks for pointing this out. Elba SoC is a GICv3 implementation and looking > at other device tree files we should be using this: > > timer { > compatible = "arm,armv8-timer"; > interrupts = IRQ_TYPE_LEVEL_LOW)>, > IRQ_TYPE_LEVEL_LOW)>, > IRQ_TYPE_LEVEL_LOW)>, > IRQ_TYPE_LEVEL_LOW)>; > }; No; as above, you should *not* use GIC_CPU_MASK_SIMPLE() at all for GICv3. i.e. > timer { > compatible = "arm,armv8-timer"; > interrupts = , > , > , > ; > }; Please see the GICv3 binding documentation: Documentation/devicetree/bindings/interrupt-controller/arm,gic-v3.yaml ... and note that it does not have the cpumask field as use by the binding for prior generations of GIC: Documentation/devicetree/bindings/interrupt-controller/arm,gic.yaml If you've seen other dts files using GIC_CPU_MASK_SIMPLE() with GICv3, those are incorrect, and need to be fixed. Thanks, Mark.