Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp2142643rwp; Fri, 14 Jul 2023 01:09:05 -0700 (PDT) X-Google-Smtp-Source: APBJJlEdHdQKqVqkTiDeJyweW3v+F8VGC0BzNOq8/o5zUb3AORJKWjR8N2OtjpbqnWWA/WY9eHwc X-Received: by 2002:a05:6808:1829:b0:3a4:2c16:da70 with SMTP id bh41-20020a056808182900b003a42c16da70mr5481937oib.24.1689322144725; Fri, 14 Jul 2023 01:09:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689322144; cv=none; d=google.com; s=arc-20160816; b=nVg+qV12TGThOoWBBhSplzoWav/jbINDuauVLcQBur6b1y2VA4sO/xo/xZoXxF1m8D fvkFGPyf/X+eilU6C09r8dw6iK9oS2z+EoRbgNHQR+Yl3Nz61aOuC6JqNT6RUzeO1rop LUuSTvLdVY24sIRz6zYxNjcHMrJq/CkGUFdXadxTtrZR5pavIpxch35n5ky2B2qWea5N XHo9vjfSjydPsY9rYClKyioRMeHSVH+Ge9GgYQZVQfZfdsPNSwUp9a2r9S846gFzOi/a l3JPfjdGDM7+Li7bBzP5qQauWJy2sblC6gNPjbLzCSvpQMCqItL6sHhBizWM+LS1P7A9 Hx0Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:subject:cc:to:from:date:references:in-reply-to :message-id:mime-version:user-agent:feedback-id:dkim-signature :dkim-signature; bh=b/FpYE9gRyWan5Kijm5mW7aAsJqcrCjasznEjLUEM2Q=; fh=91XPViybf4w21di52Vi7LhvC31MeVW1Z88PZjKY7Mrs=; b=OD0kuWL6Antj2OPo/zv6AHKxuffnXJ+SmaqEcdM17H/ObHlZ+Q9uWC914ka4u2hbnO bbIo14nf0bTydhfLOa3frpCto2Ksn/I+3ldopeAatAGSuInoM/VUUJxphmTZnuGbtJGg VfXlxS2rXqbTcNtpMg/z/MMSuSxsjGhqH7SZWfMQMLeKKyU9gylsP+7gPzF/dgs7R+e/ wu1k/Ls6LyEDMiLpf8hBoRPceFOmf6WdVREmmKzvgmYLDdofizOajbecTRBtvHwezKcs 0/QVdnR1hMEmYBF3Rl6+J/4TuxH8Jm/24LjZTrl46kWDiZXu+fLwBH46E+AA56HoQHwe gDww== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@arndb.de header.s=fm2 header.b=OoX4gFKl; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=E0aajklK; 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 u5-20020a6540c5000000b005348b4f79f1si6605089pgp.345.2023.07.14.01.08.51; Fri, 14 Jul 2023 01:09:04 -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=@arndb.de header.s=fm2 header.b=OoX4gFKl; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=E0aajklK; 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 S235522AbjGNIDq (ORCPT + 99 others); Fri, 14 Jul 2023 04:03:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55578 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235552AbjGNIDR (ORCPT ); Fri, 14 Jul 2023 04:03:17 -0400 Received: from out4-smtp.messagingengine.com (out4-smtp.messagingengine.com [66.111.4.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9CB093C05 for ; Fri, 14 Jul 2023 01:00:53 -0700 (PDT) Received: from compute6.internal (compute6.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id 59EE75C0117; Fri, 14 Jul 2023 03:52:57 -0400 (EDT) Received: from imap51 ([10.202.2.101]) by compute6.internal (MEProxy); Fri, 14 Jul 2023 03:52:57 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arndb.de; h=cc :cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:sender :subject:subject:to:to; s=fm2; t=1689321177; x=1689407577; bh=b/ FpYE9gRyWan5Kijm5mW7aAsJqcrCjasznEjLUEM2Q=; b=OoX4gFKlLUvwJO0sN5 RzPPGXU9EVAX1DpUpgAdNgGH8Ug2jHoOdq3qooNN8Eqqq1Ut1qkZoZEVVnuRV7xc 9QXOhoWju3StOmr8T+bTEjpzoQknG51fpeTEGwg5psgn/t8cwS0x5aLIVChwJXbg xFl7tzio/iuCU2jyKBu/W9z5I/O05JqosKCWyTxC6CMYn/mWVi18r+quHMACXg3p MVoH33+2aeYpNBCOT10eZzmCApDqGdybSgwVj+19l5+nghJCxJL32pQMqSFwQBTY I/ooXWtwHETFQJaGH/yLqpxl2dNvpzVrOpiCAZiJM9O3PQovkg3cr9QrxGGBNZ0B 44OQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm3; t=1689321177; x=1689407577; bh=b/FpYE9gRyWan 5Kijm5mW7aAsJqcrCjasznEjLUEM2Q=; b=E0aajklKAHlN8obPHN5HLgv0QzBSr v9qmrsRqkEw3wVW5RPEXFqO1e++qIuf47F9X4v4TiJ/MeujMROohVfzoRkhpWlaz fOcD7Al5PsFh+L1F8IbfF3qtTaeK+Fqh6rr0ZY5xvP+GvsaOPGhkw2/hu+fF6Zgs wj8ufifDyXQ49s/2h2MUTDNCr17yG8sXKAYDeTnrrLMbmv4lJD56ezuoj8ZoAFjK atem52gHfi+55xmznEVhKtgrs9WmptPK49SCX+vWJQ/nnBuzhUp5Jf8tcZpQfPTW lqcEXUUn0O0mwiPyoTHv1zDqExkxUrw2tfEQ/UonuiEHUHjiZ19Pib7sA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedviedrfeehgdduvdegucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepofgfggfkjghffffhvfevufgtsehttdertderredtnecuhfhrohhmpedftehr nhguuceuvghrghhmrghnnhdfuceorghrnhgusegrrhhnuggsrdguvgeqnecuggftrfgrth htvghrnhepffehueegteeihfegtefhjefgtdeugfegjeelheejueethfefgeeghfektdek teffnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprg hrnhgusegrrhhnuggsrdguvg X-ME-Proxy: Feedback-ID: i56a14606:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id D3A72B60092; Fri, 14 Jul 2023 03:52:55 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.9.0-alpha0-531-gfdfa13a06d-fm-20230703.001-gfdfa13a0 Mime-Version: 1.0 Message-Id: In-Reply-To: <3611feaa-9c89-b580-6266-c12cf048f56a@ti.com> References: <20230515160234.289631-1-afd@ti.com> <20230515160234.289631-6-afd@ti.com> <3611feaa-9c89-b580-6266-c12cf048f56a@ti.com> Date: Fri, 14 Jul 2023 09:52:33 +0200 From: "Arnd Bergmann" To: "Andrew Davis" , "Russell King" Cc: "Baruch Siach" , "Vladimir Zapolskiy" , "Kunihiko Hayashi" , "Masami Hiramatsu" , "Geert Uytterhoeven" , "Linus Walleij" , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 06/10] ARM: mach-airoha: Rework support and directory structure Content-Type: text/plain X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 Thu, Jul 13, 2023, at 20:44, Andrew Davis wrote: > On 5/15/23 11:31 AM, Russell King (Oracle) wrote: >> On Mon, May 15, 2023 at 11:02:30AM -0500, Andrew Davis wrote: >>> Having a platform need a mach-* directory should be seen as a negative, >>> it means the platform needs special non-standard handling. ARM64 support >>> does not allow mach-* directories at all. While we may not get to that >>> given all the non-standard architectures we support, we should still try >>> to get as close as we can and reduce the number of mach directories. >>> >>> The mach-airoha/ directory, and files within, provide just one "feature": >>> having the kernel print the machine name if the DTB does not also contain >>> a "model" string (which they always do). To reduce the number of mach-* >>> directories let's do without that feature and remove this directory. >> >> I'm guessing this is copy-n-pasted description. However: >>> -static const char * const airoha_board_dt_compat[] = { >>> - "airoha,en7523", >>> - NULL, >>> -}; >>> - >>> -DT_MACHINE_START(MEDIATEK_DT, "Airoha Cortex-A53 (Device Tree)") >>> - .dt_compat = airoha_board_dt_compat, >>> -MACHINE_END >> >> If this is actually used, then it will have the effect of providing a >> "machine" that has both l2c_aux_mask and l2c_aux_val as zero, whereas >> the default one has l2c_aux_mask set to ~0. >> > > Given we set l2c_aux_mask to ~0 as a default for "Generic" DT system I > had assumed this was safe, but no I cannot prove it for this board as > I don't have one. > > I wonder if we should have some way to set this in DT, that would > let us drop some more MACHINE defines that exist only to set > the l2c_aux_val/mask.. Going from an empty machine description to the default one is generally safe as long as there is no actual l2x0 cache controller in the system that would incorrectly get enabled by this in case it is intentionally left disabled. I'm not aware of any such case, but it's possible. For the Airoha chip, we know this is safe because ARMv8 and later ARMv7 cores (A7, A15 and A17) never have this type of cache controller. So your patch is fine, just mention in the description that the change in the cache controller handling is correct. Arnd