Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp5684556ybx; Sun, 10 Nov 2019 19:07:04 -0800 (PST) X-Google-Smtp-Source: APXvYqwj9vlvOUNy6aoQ90U1nWmp33q89D7zppfkecaKlxRmQYR/GTmB/chDw0eifsbvjUpgYd9o X-Received: by 2002:aa7:db52:: with SMTP id n18mr23207425edt.169.1573441624173; Sun, 10 Nov 2019 19:07:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573441624; cv=none; d=google.com; s=arc-20160816; b=0cSyoDSvlgy1mOydDqJBStIER/elnBPwW2hpaKULRbD/rNlVBBtM9JqE7en8jp1wVJ IX9gGfbM8eDEIjQkwKErz6Rkal+eYEyY6sQLHLhZoNEFkr70D6G5k0xeMfGxceNvfMGr BzUYjEanWA8PqZ9sYoZt78QXhD1IslpempPTmQJaqqENCpPQV7n2hW1bdViXA5WWcyo7 NZhj4pMfbyd61zOTJd0DvjKvdSThMIu9FfFZyyg2JZirayRe+WqRY5Jn41ynxYbaMfyz zbdOMFs22yvt0fOr+jTG1HuPYCLol/clb0leOLjNydxs/+ZZxiNtM03W364p/wH90zr0 iE6Q== 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=lTAc5uf3Kw4K025QZvoKHR2RLVaBYrZ67VB6eNbSZpc=; b=RRi5PHnplTOFFGstG1W2mmpUdFzVdtEdo1KgwuQIv/5gvnONFy76h/muOlvWtzoldm YOxxnMGF2OsNO+JrJvNegC6tzgcMu3jMgI+EMTrCGnbvl/8clvkfrehtn9nCEVC5cg6B lqkEpv21LEfrOmmbrZSAQcthScGCFRowMgI+OkjTqGs9RK5S+Af+M89k43X1DKl/z9qs nc8N8QZWh/sGbj9FnoNzk/g1ZMHozj1lnW6TcDrjpKg2sDlnYFJzd0iFdi0H5+5PdDnY ECANqO+Lt29+mnB3Q196fFU1sCesccsqIK+OhSwQJNBF7PxkOZFxDie2NyWIboWAY6t3 CHWw== 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 g11si8567814ejd.233.2019.11.10.19.06.41; Sun, 10 Nov 2019 19:07:04 -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 S1727041AbfKKDFO (ORCPT + 99 others); Sun, 10 Nov 2019 22:05:14 -0500 Received: from mx2.suse.de ([195.135.220.15]:54290 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726756AbfKKDEv (ORCPT ); Sun, 10 Nov 2019 22:04:51 -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 E0EC3AFF7; Mon, 11 Nov 2019 03:04:48 +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 1/7] arm64: dts: realtek: rtd129x: Fix GIC CPU masks for RTD1293 Date: Mon, 11 Nov 2019 04:04:28 +0100 Message-Id: <20191111030434.29977-2-afaerber@suse.de> X-Mailer: git-send-email 2.16.4 In-Reply-To: <20191111030434.29977-1-afaerber@suse.de> References: <20191111030434.29977-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 --- 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