Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp1376556ybl; Mon, 2 Dec 2019 02:32:36 -0800 (PST) X-Google-Smtp-Source: APXvYqzd0Ya390SIZfmp6BqRgLjB6IqE4ySAeh3/pRnSlk1iOyn3Qj0YD3l/GGlgLPHGASZ/Ktiy X-Received: by 2002:a17:906:4341:: with SMTP id z1mr18902729ejm.106.1575282755956; Mon, 02 Dec 2019 02:32:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575282755; cv=none; d=google.com; s=arc-20160816; b=s7jOzKFkIHsS9SbwYqmTA9yCB8WSipBWlGISxhOXfljfyexU8d3yigGBo4ySGcbE0x lB8EAHYcz6JrGna3lThIc4jRD/JmFKx4g6uPYi+kA6nzZbNP25dOV0Q8jsSIgFfBJjpL h/8KBqQOl+f6GR7h/I9WoC83wDgeQ5WERJHKS7PsEsjl5aP0qTRSVjxDvsigCV5tOstS 0CJhvgm2dY+rYCG24spKPBjFc6569TpwFwCay0XyWltlxyvztSG9UqpNGpt8M+cKFHN+ LsjtWhu/0VEEeFx6r8tkcnJvdglftGDl4sKMp2uCievU+ARe9LcwEJ9qutq8LYhaen08 RaYg== 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:message-id:date:subject:cc:to:from; bh=AS8DCYJJtvcNwN5um3nfXr6AdvFpDMDLb3Ox1ZQkkeA=; b=G3kXS4nPSVklpqvT+Kh10lByWJ3nHAaMXbbfiPbBvttJOLiWvWK+3mt2/1iBXQWeHu D+Ov1muPmh8vrassCAdtzvrxMS6PH2wXPr6FddX6udD9Lv5qevEF4ZHmRgvNnIrYOFWk u8m2DJCbh5KvE72M3sr6ptUI6B6/1hmMDNnHXIa8vz+Fz+bfOFfeMu/rRd0EAB1tFm8N V7lFMQBJu9Blba5rEEMgnRYinAW4Z85cg5fP14/I1YIV9JAlmWSZ++QRhePCgwOcHlPr 07FPMCguae7EL1vnocEgWsVslMCg590ges24La9H57Ghup2vv4LQXAAwbtLYrTK8ve6l fYBw== 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 d7si9443142ejr.341.2019.12.02.02.32.12; Mon, 02 Dec 2019 02:32:35 -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 S1727440AbfLBK3X (ORCPT + 99 others); Mon, 2 Dec 2019 05:29:23 -0500 Received: from mx2.suse.de ([195.135.220.15]:57480 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726557AbfLBK3V (ORCPT ); Mon, 2 Dec 2019 05:29:21 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 1A41AB259; Mon, 2 Dec 2019 10:29:19 +0000 (UTC) From: =?UTF-8?q?Andreas=20F=C3=A4rber?= To: linux-realtek-soc@lists.infradead.org Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, =?UTF-8?q?Andreas=20F=C3=A4rber?= , Rob Herring , Mark Rutland , devicetree@vger.kernel.org Subject: [PATCH v2 1/9] arm64: dts: realtek: rtd129x: Fix GIC CPU masks for RTD1293 Date: Mon, 2 Dec 2019 11:29:02 +0100 Message-Id: <20191202102910.26916-2-afaerber@suse.de> X-Mailer: git-send-email 2.16.4 In-Reply-To: <20191202102910.26916-1-afaerber@suse.de> References: <20191202102910.26916-1-afaerber@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Convert from GIC_CPU_MASK_RAW() to GIC_CPU_MASK_SIMPLE(). In case of RTD1293 adjust the arch timer and VGIC interrupts' CPU masks to its smaller number of CPUs. Fixes: cf976f660ee8 ("arm64: dts: realtek: Add RTD1293 and Synology DS418j") Signed-off-by: Andreas Färber --- v1 -> v2: Unchanged arch/arm64/boot/dts/realtek/rtd1293.dtsi | 12 ++++++++---- arch/arm64/boot/dts/realtek/rtd1295.dtsi | 8 ++++---- arch/arm64/boot/dts/realtek/rtd1296.dtsi | 8 ++++---- 3 files changed, 16 insertions(+), 12 deletions(-) diff --git a/arch/arm64/boot/dts/realtek/rtd1293.dtsi b/arch/arm64/boot/dts/realtek/rtd1293.dtsi index bd4e22723f7b..2d92b56ac94d 100644 --- a/arch/arm64/boot/dts/realtek/rtd1293.dtsi +++ b/arch/arm64/boot/dts/realtek/rtd1293.dtsi @@ -36,16 +36,20 @@ timer { compatible = "arm,armv8-timer"; interrupts = , + (GIC_CPU_MASK_SIMPLE(2) | IRQ_TYPE_LEVEL_LOW)>, , + (GIC_CPU_MASK_SIMPLE(2) | IRQ_TYPE_LEVEL_LOW)>, , + (GIC_CPU_MASK_SIMPLE(2) | IRQ_TYPE_LEVEL_LOW)>, ; + (GIC_CPU_MASK_SIMPLE(2) | IRQ_TYPE_LEVEL_LOW)>; }; }; &arm_pmu { interrupt-affinity = <&cpu0>, <&cpu1>; }; + +&gic { + interrupts = ; +}; diff --git a/arch/arm64/boot/dts/realtek/rtd1295.dtsi b/arch/arm64/boot/dts/realtek/rtd1295.dtsi index 93f0e1d97721..34f6cc6f16fe 100644 --- a/arch/arm64/boot/dts/realtek/rtd1295.dtsi +++ b/arch/arm64/boot/dts/realtek/rtd1295.dtsi @@ -61,13 +61,13 @@ timer { compatible = "arm,armv8-timer"; interrupts = , + (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>, , + (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>, , + (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>, ; + (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>; }; }; diff --git a/arch/arm64/boot/dts/realtek/rtd1296.dtsi b/arch/arm64/boot/dts/realtek/rtd1296.dtsi index 0f9e59cac086..fb864a139c97 100644 --- a/arch/arm64/boot/dts/realtek/rtd1296.dtsi +++ b/arch/arm64/boot/dts/realtek/rtd1296.dtsi @@ -50,13 +50,13 @@ timer { compatible = "arm,armv8-timer"; interrupts = , + (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>, , + (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>, , + (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>, ; + (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>; }; }; -- 2.16.4