Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp9962100rwl; Sun, 1 Jan 2023 14:19:21 -0800 (PST) X-Google-Smtp-Source: AMrXdXs+R0rfzTyWCAdabAePDnFTAEY4erbeZv7yi4lmEzYpoWOFAwVFRjBwL25mvlkMg9PrkHWm X-Received: by 2002:a17:902:bf45:b0:189:fa12:c98a with SMTP id u5-20020a170902bf4500b00189fa12c98amr35821589pls.66.1672611561703; Sun, 01 Jan 2023 14:19:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672611561; cv=none; d=google.com; s=arc-20160816; b=iJRkW3fJl0r759royOauticId0xckoPHdnww6oCA0TkDwBIpcuE2vqc5DzCjc8LdSW xrR/s+vC+aYIABebHD1bRi9FvWXo131B9ItWby5Fwn6LeLHoSuKe8N94NleMk5u5OPt9 zZQH4HTAzEB6ArMAnkB2Aj+pM+Yubys8K1OEToFprPfoVGV2I+LI1Rxpg1jF76eZsKlW bUsOM1hudIOGPTYOyFT7GUetIGCd4YS1WPmveT/ww3/3EDKVpoZs38Vsdjte0irkW0CW lJMCKkmdAcSbt6pobZ7kmnhJiVzDoWze6dJuApSof+TjkzQdtU0ObwNBZsBaOJvaBZb6 zNGw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=itENd4bv7sUz5J3kCLw+9gAbPG9mWjjKo0129xbt1AQ=; b=xhI5xCDGQr/5puYsOIGpzkN0mrtVDmR/gbILfp/RamgZ3IBH9ZCosD7kMCfrOC9UsE S3QkGfwZErtWbZ1rmsNljdt6vVDWdhsAwcio0SDlAd5TAXR4yJjt5NcP/jcXJxA75a39 E7QNDkQ4waaqgQNKtvJPZNQUZBm697clIpn42ySlMrJO49TPxbdJbN/OcSjatMRIOF+G T97AnBGiYfMZfIL9OFYKtPoes47nFxhXKnxupCFelXz1fvsMS0ZqkmV68HxNIlJozuId XWRYtYlgsdWXcPrs6BWgIpWSaF2tJWru75pKgMRzmE88MFQ7NpqF6G5A8CpqnPs7ljCe FG9Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b=fb3LXnCy; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p9-20020a170902e74900b001899b7a17b7si30988808plf.291.2023.01.01.14.19.14; Sun, 01 Jan 2023 14:19:21 -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=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b=fb3LXnCy; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230033AbjAAV6O (ORCPT + 59 others); Sun, 1 Jan 2023 16:58:14 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58560 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230072AbjAAV6M (ORCPT ); Sun, 1 Jan 2023 16:58:12 -0500 Received: from mail-ot1-x32d.google.com (mail-ot1-x32d.google.com [IPv6:2607:f8b0:4864:20::32d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6CD82272E for ; Sun, 1 Jan 2023 13:58:10 -0800 (PST) Received: by mail-ot1-x32d.google.com with SMTP id y18-20020a0568301d9200b0067082cd4679so16435110oti.4 for ; Sun, 01 Jan 2023 13:58:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=itENd4bv7sUz5J3kCLw+9gAbPG9mWjjKo0129xbt1AQ=; b=fb3LXnCyZ/kIWmb8tqNRWca8LIYBDCd5S3QU9qS017ZBuOHwJAjp+7E2RHKrwghQXA F89bQEWQvafxF0QTsYtfvmnT9B9ObbMuXSZLZ0Z4iu25Wi4QZ9pm31JRiQb1DGxqM8kg bKaa/o1DTP9MJKqpZI3nwwYjJLm3JLVzu1pgpf+AkBkWfuGJ2W6iKguyxa1s7VtCEuuX xrVeEaiCOnUiewnJ/MAySvKL/TNapMzc1RnofDNBVdu+OSqhQf5wHlzjOyNX+S1tMnnR GwHW7xQnDN6N6yg8yH6mUKhHkQDQyTf9KgtT9ISuGGkQ2ysnrKYx6sSPM2Ba/RG4ipgc l57A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=itENd4bv7sUz5J3kCLw+9gAbPG9mWjjKo0129xbt1AQ=; b=46g4l8pd0Wdzuvy1+cpmadOkL/CrugIu2ByM7uiAYa0/DjWaFtBgs0LGPCXrlFMUbK BfnOONh1Oc9F9fBJ9dszLxe7jBGdU4jDsjShIgnIEy83GOcWHPMF9/5ZCZsYwenbhpRu Aw2L0nubdHBjMEbmo4S5Uqc6DPz6Cb2eU8SesrqTSuxjoG63IH6zjXRzPqo8VGlX1Za0 ohmNlnpM2+N01rc8MbYURDD3nvUME2s9azsHRqrkFB87xMZhLXirzful2Jt5AF/VIRX5 xI1zggSYxbhVYVjrxX97SQPwW8j+I6WTsF6kZjmBv/NxdKX1ieORA79QV678vKs7Rpkz iwmQ== X-Gm-Message-State: AFqh2kp8L4ujx6gznSw5XZVBguXJ6dFBcpUnOM2RhdO19Da/CrSa4Uae o4AouESvh6/yRFUxFN4LidFdvAJ9/7Y7EO1fHU9yuQ== X-Received: by 2002:a05:6830:1dac:b0:670:99fe:2dc5 with SMTP id z12-20020a0568301dac00b0067099fe2dc5mr1566669oti.137.1672610289731; Sun, 01 Jan 2023 13:58:09 -0800 (PST) MIME-Version: 1.0 References: <20221230203541.146807-1-bero@baylibre.com> <20221230203541.146807-8-bero@baylibre.com> <87v8lsect3.wl-maz@kernel.org> In-Reply-To: <87v8lsect3.wl-maz@kernel.org> From: =?UTF-8?Q?Bernhard_Rosenkr=C3=A4nzer?= Date: Sun, 1 Jan 2023 22:57:58 +0100 Message-ID: Subject: Re: [PATCH v6 7/7] arm64: dts: mediatek: Initial mt8365-evk support To: Marc Zyngier 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 Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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, Dec 30, 2022 at 11:41 PM Marc Zyngier wrote: > > + gic: interrupt-controller@c000000 { > > + compatible = "arm,gic-v3"; > > + #interrupt-cells = <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? It's coming from the SoC vendor kernel (and went unnoticed because it happens to work). Will send an updated version that does the right thing instead. I've been running it most of the day, so far looking good. > > + interrupt-parent = <&gic>; > > + interrupt-controller; > > + reg = <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. This was also taken from the vendor kernel; unfortunately neiter the datasheet for the SoC not the vendor kernel specifies the addresses for GICC/GICH/GICV. I've "guessed" based on what's in similar SoCs (MT8183, MT7986a) in v7; this seems to work (boots, kvm initializes hyp mode properly). ttyl bero