Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp7803196rwl; Fri, 30 Dec 2022 15:14:06 -0800 (PST) X-Google-Smtp-Source: AMrXdXvru+juEikichl4OGcgxVVs83RVLhj6VmH8B+clXHQgBqDnaG+QJp0fHZmEaut8rSEuVXix X-Received: by 2002:a17:903:134c:b0:189:e909:32e3 with SMTP id jl12-20020a170903134c00b00189e90932e3mr37682565plb.40.1672442046213; Fri, 30 Dec 2022 15:14:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672442046; cv=none; d=google.com; s=arc-20160816; b=CTny19D7afwNT6JBsHYtJvHiV4smAI6rVDybEfVyzKgH2Fm8WBTkrr7tH8EcvTF5vK 1Bja5ra5Ff7RLsIo7xMO0pXJz7N9kp9cbReg8WBozkecbrUPi0a87o1gYrwEHYW5FqPD MvGRw7HXHxCGqDsVGLeuTKj33J39gVY0mAiPRWMKEcsT0Ny5EnSuV9S9qx9Eh72ndbvp 44k9DwOookvt3//BBDHNx0+2ZGcs7anTkVCJRa1g+k+rmhX4w3HUDdG0S1EOu/p2XXV2 c55pWZJz9tjVKOMGAj7O1VCh1mw3wAwRx/uFPJMKtlazrdVpRhYEKn+K1efR/FovRjAH hWBQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:subject:cc:to:from:message-id :date:dkim-signature; bh=j+/tfzBOyZlyM2aCwLqPhsV7PbzqKJv0eDbJLIH7/sY=; b=U7QsEHUejOS2whQhyEtVXBTCxX4VYyXevtJ1cVkSi8AtltIGh8204Mr+9hJHFAIfX0 aKEHTUqSsDkWJid6OVlB6CqItwYHJyd04WUdy3sEaUYTmvOuOaLFuYu3yiaKKRtg7hbz XyLT3rtIlmeaTW/QHr1hkD1DLtqefkWFPD55D2RBSWNJOLbJ/T93AjodH4ASmjmeurjd MfS4yHbUTDL/BXr3JX7Zk+8pWhd6deHTV3nc0UkfpjRFCKNIrtUDRLH1gd81CdQVwpuI Qp6FUH5FmR6/S7g3RXOR44AqhiEOEgxBMtXH23/I1vh3qW9xSHlhOLsZ7FMSIxzk2Q+H spGQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=P9PsFTGC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a2-20020a634d02000000b00478368ceee9si22885411pgb.235.2022.12.30.15.13.55; Fri, 30 Dec 2022 15:14:06 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=P9PsFTGC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235592AbiL3WlJ (ORCPT + 62 others); Fri, 30 Dec 2022 17:41:09 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55054 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235541AbiL3WlD (ORCPT ); Fri, 30 Dec 2022 17:41:03 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B24B7F78; Fri, 30 Dec 2022 14:41:02 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 6ED3BB81C06; Fri, 30 Dec 2022 22:41:01 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 32887C433EF; Fri, 30 Dec 2022 22:41:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1672440060; bh=modTSy1vCT2gxH29EjhljDH3rQB/B9z2JuOf7c3W/Vs=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=P9PsFTGCH8xdqF06N8P2gxEMkzdfo/EXRCu7Yg6ul/QolpSWDtq0nxMgLzDEDR1E5 D6rIzfd31blvFPlHkMdN+aXVbqpAg+e9ZQLqSbb/AxLEpK7JMOAuleJ22B6RzgM/At nEItP74/XPAUXP887dP8FsW/fD/5/h50Ux/QjSutfOq+gS8utrEWVIHs1mNY/YI2tH e7XhH1MX9xLKdGwXlDHmm1WcWTo5XMQw/0yJASZQ2K69WYAy68TwtB92NbcMDJ5PFZ ux+uwNR+k8wNyFsgO4PR5HrVkO2HljdO1TvnAe5i++JtGOc2XqxnqGK69plZ0p/4kH 0Q2Nlwl1ARJ5Q== Received: from ip-185-104-136-29.ptr.icomera.net ([185.104.136.29] helo=wait-a-minute.misterjones.org) by disco-boy.misterjones.org with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1pBO3d-00FxL1-Ot; Fri, 30 Dec 2022 22:40:57 +0000 Date: Fri, 30 Dec 2022 22:39:36 +0000 Message-ID: <87v8lsect3.wl-maz@kernel.org> From: Marc Zyngier To: Bernhard =?UTF-8?B?Um9zZW5rcsOkbnplcg==?= Cc: linux-mediatek@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, matthias.bgg@gmail.com, krzysztof.kozlowski+dt@linaro.org, robh+dt@kernel.org, gregkh@linuxfoundation.org, chunfeng.yun@mediatek.com, linus.walleij@linaro.org, lee@kernel.org, tglx@linutronix.de, angelogioacchino.delregno@collabora.com Subject: Re: [PATCH v6 7/7] arm64: dts: mediatek: Initial mt8365-evk support In-Reply-To: <20221230203541.146807-8-bero@baylibre.com> References: <20221230203541.146807-1-bero@baylibre.com> <20221230203541.146807-8-bero@baylibre.com> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM-LB/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL-LB/10.8 EasyPG/1.0.0 Emacs/27.1 (x86_64-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-SA-Exim-Connect-IP: 185.104.136.29 X-SA-Exim-Rcpt-To: bero@baylibre.com, linux-mediatek@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, matthias.bgg@gmail.com, krzysztof.kozlowski+dt@linaro.org, robh+dt@kernel.org, gregkh@linuxfoundation.org, chunfeng.yun@mediatek.com, linus.walleij@linaro.org, lee@kernel.org, tglx@linutronix.de, angelogioacchino.delregno@collabora.com X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on disco-boy.misterjones.org); SAEximRunCond expanded to false X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 30 Dec 2022 20:35:41 +0000, Bernhard Rosenkr=C3=A4nzer wrote: >=20 > From: Fabien Parent >=20 > This adds minimal support for the Mediatek 8365 SOC and the EVK reference > board, allowing the board to boot to initramfs with serial port I/O. >=20 > Signed-off-by: Fabien Parent > [bero@baylibre.com: Removed parts depending on drivers that aren't upstre= am yet, cleanups, add CPU cache layout, add systimer] > Signed-off-by: Bernhard Rosenkr=C3=A4nzer > Tested-by: Kevin Hilman [...] > + soc { > + #address-cells =3D <2>; > + #size-cells =3D <2>; > + compatible =3D "simple-bus"; > + ranges; > + > + gic: interrupt-controller@c000000 { > + compatible =3D "arm,gic-v3"; > + #interrupt-cells =3D <4>; Why 4 cells? All the SPIs routed via sysirq are perfectly happy with 3 cells, and all the PPIs have 0 for the 4th cell (none of them use any form of partitioning that'd require 4 cells). So where is this coming from? > + interrupt-parent =3D <&gic>; > + interrupt-controller; > + reg =3D <0 0x0c000000 0 0x80000>, <0 0x0c080000 0 0x80000>; > + The first region is obviously wrong (512kB for the distributor? that's... most generous, but the architecture states that it is 64kB, and that's wasteful enough). This is also missing the GICC/GICH/GICV regions that Cortex-A53 implements, and that must be provided as per the binding. > + interrupts =3D ; > + }; Thanks, M. --=20 Without deviation from the norm, progress is not possible.