Received: by 2002:a05:6602:2086:0:0:0:0 with SMTP id a6csp3180275ioa; Mon, 25 Apr 2022 20:30:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJynM38zjNgxkV01RsuzzXmHzscDJgUzjNPD0xCkGNuow3jOx26O88hG4GsqJPNzUJZvU7ad X-Received: by 2002:a63:82c1:0:b0:3ab:1add:62ea with SMTP id w184-20020a6382c1000000b003ab1add62eamr9785900pgd.535.1650943853399; Mon, 25 Apr 2022 20:30:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650943853; cv=none; d=google.com; s=arc-20160816; b=I1Fk9YZPmFzlsfcz6Hz+/8CWrerr1TC3jGj/PrFnJKMeJcf1YjzdHorofqrgjUKOpn qieEnFmsSFumSM49ZalzPtZQxIwADeyYaYe6c9DTXiyEJZ9xePPDLfZjwtVuhjmWwDdE 7dp2xXPR1HM7XV+S7fKvKsbPeF/rkkxqFiFx2mcNrHm94taKyK/X2hvuw6x8OFGWKGSg 7NfibyDjMDO+eRucAqAXOW7KwkZi98ZVuEMWzTIoauOyyoIUnjjec8JJY4BN2kG5FaW6 mvspAdMEVI0NXDzVQ3xishc7L7vGlzlOKXg5aXCPHQtEq5kRW+1S7U9ss1/zUBe/xD3U z2Wg== 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=Sv8hAStxtYZLA7ttjMHDmBWNkg9R0he6yilL9E/on7U=; b=zrudvc166zUYkfHoIszYCIsQ+BJ0sVgJHHHziFyAfgbEEwqu/58TYLXJvDGqRCxA8P aAAj6QIrYq7LSzDeJF46PuNyYjypnVAC1mGp6DWWkFjJXZaWBekPyVCvY6GyHMkCRO2N +JgGRyOEQ805Gi0c0YCQ5dGR3UrOPqZhKCMsyCc3W9+ew6SYsNacn8K08eLDg9bHpn/I p+STI281XsKLVbkredNzi7ET+PJ9CmKc7dgQsABHzoCxtcaW4vhgagjwGUhEkqCTc2VC ArnncgbKZph840LJHLNG2hbBQQaZqt8iaSzCMsX1VHVBQKOAqNDZvE/vhTJsyuEUcP7O vmiA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=Rm3XivQg; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d11-20020a056a0024cb00b004fb806fbeb4si19599816pfv.300.2022.04.25.20.30.36; Mon, 25 Apr 2022 20:30:53 -0700 (PDT) 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=@gmail.com header.s=20210112 header.b=Rm3XivQg; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244994AbiDYTlD (ORCPT + 99 others); Mon, 25 Apr 2022 15:41:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49594 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244983AbiDYTk7 (ORCPT ); Mon, 25 Apr 2022 15:40:59 -0400 Received: from mail-yb1-xb31.google.com (mail-yb1-xb31.google.com [IPv6:2607:f8b0:4864:20::b31]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1891D112447; Mon, 25 Apr 2022 12:37:53 -0700 (PDT) Received: by mail-yb1-xb31.google.com with SMTP id i38so9954765ybj.13; Mon, 25 Apr 2022 12:37:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Sv8hAStxtYZLA7ttjMHDmBWNkg9R0he6yilL9E/on7U=; b=Rm3XivQgs/+qfHTgBRxz6EnqsR5YnGqXNq6SpUmHifFzrPauwn6vlgLyAEZRxGkVne NUaFb6Sw7lnrNY59Nk0EjE1hAHqwuQPTmDo19XR5IhO9RnkLG4gEUzH50njFyZm9sc/f jvwRM/jT2L4tq7uFD9+qrAOKMFp1CSeZaenkXELOGulEVO6y8F3JIEPpR/CxTkQAkYQC Bn8QW/c2vyY6sgOjIsJil8UIhvRGlwr0XIW0Eh+tA2qHxqrdyFdT0uTnK1X2ShxEq2zh le/736GlWszQIlmHgbntrvfmZVq9ZvbRkwcHcQlj4cvpTv5jCIiCYxxyl4ELBG6OhXzW jxdA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Sv8hAStxtYZLA7ttjMHDmBWNkg9R0he6yilL9E/on7U=; b=r8CdvhKtDiIBp0d9co1ctSN25OpHKc4SdS4bV21llex/ZuNq/A9X93WEg8iNztEDvB OeO8x+lSlv3WpFNMbGKtj/ZpaSztkb+4IiEQAI01k9iug5af8oh+FbQCG+8bib61L48S Rywa+LyaY3gGPxXg5uY52XicztoDsDHHYjZlxPTKEBrGzWbSKoO/neJZ+9xy4/ynDXCT /1+xNAD1DJ6pPWkT5l7CFHSowj4SVCB5qi9Df1LAuEY65b8YKFSjtb6GmZGamXJQUyxE TTzOmLcF1lb4qSKOs+ywM37xRd55DmB8MFnq5d2w4/y1VFGum5dghC18Fvuhc2b3zcp/ 4IKw== X-Gm-Message-State: AOAM532MJBO4w7SvUnOfjLHPZ3KKtJPiYqfBGTs+YO74aJHYbAWV8aQh iga5EXQ8+JKnMjiPFVRqVB67gKmL0J3eErSQN70= X-Received: by 2002:a25:af14:0:b0:645:36f1:c584 with SMTP id a20-20020a25af14000000b0064536f1c584mr17794206ybh.366.1650915472252; Mon, 25 Apr 2022 12:37:52 -0700 (PDT) MIME-Version: 1.0 References: <20220422170920.401914-1-sebastian.reichel@collabora.com> <20220422170920.401914-19-sebastian.reichel@collabora.com> <36551341-60f5-8b61-59d1-176ece8204d6@arm.com> <20220425181407.lknemxqooz7yidcz@mercury.elektranox.org> In-Reply-To: <20220425181407.lknemxqooz7yidcz@mercury.elektranox.org> From: Peter Geis Date: Mon, 25 Apr 2022 15:37:41 -0400 Message-ID: Subject: Re: [PATCHv1 18/19] arm64: dts: rockchip: Add base DT for rk3588 SoC To: Sebastian Reichel Cc: Robin Murphy , Heiko Stuebner , Rob Herring , Krzysztof Kozlowski , Linus Walleij , Bartosz Golaszewski , Adrian Hunter , Ulf Hansson , Philipp Zabel , Michael Turquette , Stephen Boyd , linux-clk@vger.kernel.org, linux-mmc@vger.kernel.org, "open list:GPIO SUBSYSTEM" , arm-mail-list , "open list:ARM/Rockchip SoC..." , devicetree , Linux Kernel Mailing List , kernel@lists.collabora.co.uk, Kever Yang , kernel@collabora.com, Yifeng Zhao , Elaine Zhang , Sugar Zhang Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,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 Mon, Apr 25, 2022 at 2:14 PM Sebastian Reichel wrote: > > Hi, > > Thanks for having a look. > > On Fri, Apr 22, 2022 at 07:16:13PM +0100, Robin Murphy wrote: > > On 2022-04-22 18:09, Sebastian Reichel wrote: > > > ... > > > + cpu_l0: cpu@0 { > > > + device_type = "cpu"; > > > + compatible = "arm,cortex-a55"; > > > + reg = <0x0>; > > > + enable-method = "psci"; > > > + capacity-dmips-mhz = <530>; > > > + clocks = <&scmi_clk SCMI_CLK_CPUL>; > > > + i-cache-size = <32768>; > > > + i-cache-line-size = <64>; > > > + i-cache-sets = <128>; > > > + d-cache-size = <32768>; > > > + d-cache-line-size = <64>; > > > + d-cache-sets = <128>; > > > + next-level-cache = <&l2_cache_l0>; > > > + #cooling-cells = <2>; > > > + dynamic-power-coefficient = <228>; > > > + }; > > > > Is there any particular reason for not including more of the CPUs? > > Yes, see below. > > > > + its: interrupt-controller@fe640000 { > > > + compatible = "arm,gic-v3-its"; > > > + msi-controller; > > > + #msi-cells = <1>; > > > + reg = <0x0 0xfe640000 0x0 0x20000>; > > > + }; > > > + }; > > > > Does the ITS (and other bits related to GIC memory accesses) actually work, > > or will we have more of the same issues as RK356x? > > The GIC in RK3588 is has the same shareability limitation as the RK356x, > but fixed the 32bit limitation. That's why I just added the boot cpu core > for now; adding any other cpu core breaks the boot without the downstream > shareability patch and I'm still investigating. There's no way to avoid this issue unfortunately. See my awful hacked together patch: https://gitlab.com/pine64-org/quartz-bsp/linux-next/-/commit/8b34fd2a74321f8f5d7731b63eee0f9e03d1393b Considering the ITS exists pretty much just for MSIs, and my PCIe series introduces support for legacy interrupts, you may get away with doing the mbi-alias currently implemented in rk356x. Note, there are *some* compatibility issues with mbi-alias MSIs, particularly with high IRQ cards like the Intel x520. > > -- Sebastian > _______________________________________________ > Linux-rockchip mailing list > Linux-rockchip@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/linux-rockchip