Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3181316imu; Fri, 18 Jan 2019 06:14:00 -0800 (PST) X-Google-Smtp-Source: ALg8bN4B3pt0pWGbWM/asJEaj5HWVT3p7C7CWaydbQAxcUsejL55R+1e1mjcRR+nbkGyf8McfAIr X-Received: by 2002:a62:1043:: with SMTP id y64mr19747122pfi.78.1547820840718; Fri, 18 Jan 2019 06:14:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547820840; cv=none; d=google.com; s=arc-20160816; b=SVHxODbaxrn00//taATdQOpGPK76WFjgvHjx1UnXrECuK56eb3MxXSW5a/1hOZAmAI HmNsvl97oZVhfITAgtLWDDyJm1LRH5Oyga5uvscbukeYIVzU7M51nNt+pQFQpMTW0dpx D4vwMX2LKZTSUiGK76Yakn2i521vHX8+3Q9O7xIa+/rj9+Mu9xZ4mK5ddym6Jo/tathK FizrMc3J9mb6QIbpNE/xmFOPbmttzqphLN2dYn20z+njoa9K3S2WXFnIGxquC+KWsQPr 4+kd28k+pXB0RRJ+OvoBF13kDuAlCuAwt4s39V5kInSwx7GjYRvZ6euxZTnkSyvcaTVb fA0g== 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:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id; bh=wfrKqEKEmEcgflXyHxmIqelQDznOcdZFtvdRI1OZu28=; b=o4Jhn3bx30oen6Ij8+Qn1F/wciWMmvd+IWtJXEnw6S25DTBgJfY7Mjd2LGkslpdsLy VQEybUx96tHbA0orqzAhqdaaZDl47R605eRtPANki4rLgT2240p6Z0Pd7+jUBv3+PIQ9 prD0kE4VCrOWmBWcKi7ESJ7xMNbvl0QjtHnuE8TgEUrwulNOPvgNwMpoLDbyxLUhW6VJ 6nfgBJkOqsrZK/1YeQWwRU6eFrg20qyheE0VHJkXBF7Pc3g35z5PlP/96MRGrZEMo4jl PYCCnoqTT/NEJS075IOr0ydHHnzWkvpT/edYCdAVMCAUYsB8WMV+x4NocrUPU23GsgSx +V/w== 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 j186si4932741pfb.174.2019.01.18.06.13.42; Fri, 18 Jan 2019 06:14:00 -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 S1727544AbfAROMX (ORCPT + 99 others); Fri, 18 Jan 2019 09:12:23 -0500 Received: from metis.ext.pengutronix.de ([85.220.165.71]:55255 "EHLO metis.ext.pengutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726881AbfAROMX (ORCPT ); Fri, 18 Jan 2019 09:12:23 -0500 Received: from kresse.hi.pengutronix.de ([2001:67c:670:100:1d::2a]) by metis.ext.pengutronix.de with esmtp (Exim 4.89) (envelope-from ) id 1gkUsY-0002Rx-E9; Fri, 18 Jan 2019 15:12:14 +0100 Message-ID: <1547820733.2626.11.camel@pengutronix.de> Subject: Re: [PATCH 1/2] ARM: dts: imx6q: add pmu interrupt-affinity From: Lucas Stach To: Stefan Agner , shawnguo@kernel.org, s.hauer@pengutronix.de Cc: max.krummenacher@toradex.com, marcel.ziswiler@toradex.com, linux-kernel@vger.kernel.org, linux-imx@nxp.com, kernel@pengutronix.de, fabio.estevam@nxp.com, dev@pschenker.ch, linux-arm-kernel@lists.infradead.org Date: Fri, 18 Jan 2019 15:12:13 +0100 In-Reply-To: <20190118135907.2336-1-stefan@agner.ch> References: <20190118135907.2336-1-stefan@agner.ch> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.22.6-1+deb9u1 Mime-Version: 1.0 Content-Transfer-Encoding: 8bit X-SA-Exim-Connect-IP: 2001:67c:670:100:1d::2a X-SA-Exim-Mail-From: l.stach@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Am Freitag, den 18.01.2019, 14:59 +0100 schrieb Stefan Agner: > Explicitly specify interrupt affinity to avoid HW perfevents > need to guess. This avoids the following error upon boot: >   hw perfevents: no interrupt-affinity property for /pmu, guessing. > But then it isn't correct either AFAICS. On i.MX6 all the PMU IRQs are ORed together into a single SPI, instead of each core dealing with its own PPI. So pretending that there are more IRQs with affinity to each core isn't the right thing to do, no? Regards, Lucas > Specifying all four CPUs shows no aversive effects on i.MX 6Dual > SoCs. > > > Signed-off-by: Stefan Agner > --- >  arch/arm/boot/dts/imx6q.dtsi | 7 +++++++ >  1 file changed, 7 insertions(+) > > diff --git a/arch/arm/boot/dts/imx6q.dtsi b/arch/arm/boot/dts/imx6q.dtsi > index 8381d24eff7d..d2c1977c8b16 100644 > --- a/arch/arm/boot/dts/imx6q.dtsi > +++ b/arch/arm/boot/dts/imx6q.dtsi > @@ -537,6 +537,13 @@ > >   <0x28 0x0000000c>; /* DCIC2_MUX_CTL */ >  }; >   > +&pmu { > > > + interrupt-affinity = <&{/cpus/cpu@0}>, > > > +      <&{/cpus/cpu@1}>, > > > +      <&{/cpus/cpu@2}>, > > > +      <&{/cpus/cpu@3}>; > +}; > + >  &vpu { > >   compatible = "fsl,imx6q-vpu", "cnm,coda960"; >  };