Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp1516306rwp; Thu, 13 Jul 2023 12:03:48 -0700 (PDT) X-Google-Smtp-Source: APBJJlGxLenDlhcMm6Hjs/4lEv3Hu9x/XfbOA1vggQJBxiXnPce9ZY4pMLIy/x4kHjB28eDUPxP9 X-Received: by 2002:a05:6512:114b:b0:4f8:7734:8dd2 with SMTP id m11-20020a056512114b00b004f877348dd2mr2475848lfg.53.1689275028453; Thu, 13 Jul 2023 12:03:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689275028; cv=none; d=google.com; s=arc-20160816; b=SSeazmI2qtpWGiBRnB6M395pSbHSmmTq25PKB30WfYvDgEVdTHbFF+iksuzqk6MB7H D3CestKV18+gO2dMkmvtLr+9LFiAjIlbvyTIoZhFj7mJ7ExnM6L8z+r6/KV5+Jac3hIe Tj30iXRgzHnDAEmbrUPmwGBaIApFiI3bhDjEsmcdk5f0z21w1IM4l86YoeZJiXXQK3SU J5BqSm4uuL/5mmiu7YxWNphOLgCuSIhkyBWQxO+61Uvm0nvJjvko8kI2uyOMfy+UKZcn T9El7qY9GX3rtFFzkYtvOQXJHzzID5laGTC/kzuhWR/l5R8WBU2GV0wM4IPm/kCN5MYV nyJA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=49KqOhoWraqa4xPJvs9k+Ho8uF5dhQ4RQNO+03mu9eI=; fh=6NtLZ+jXgV2Js85ihi/yz93U1tQo/HcPDQd8J+Swn4E=; b=pe/j9CaHiYec42P8PuXoFBc+vGDhjAdhQG7OhjmLNps9Svw/CR7lWsXOWHMni5EB21 RDhMIpqRTwzzx7g7L+6FgcrRC/yuWZUalRwd3xRpdl2+Wwn1DoYcFY+p9TdiySqfEmjI Bk64G+taqrpHX1NxUdkXMf4niAdC+Aiog0dSH1PVVqx6V6fs7yMSlem9vOvvEy7w+B3I MBMyA7+eJZ76Qhud8ILcDKFgi8tXImg4Z7yJJd4HEfmzAQUFDTxMMUXfwcl/pwrUcY9e 7MMZCfDarcwgeSKtTMehUDBSpj+rN5o0/RmMZPmX0c0v5JWKaHIbwlaJ+50mP9vn7ZfV PT+Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b="tOGkFM/2"; 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=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m16-20020aa7c2d0000000b0051e0eba60bdsi1003591edp.456.2023.07.13.12.03.24; Thu, 13 Jul 2023 12:03:48 -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=@ti.com header.s=ti-com-17Q1 header.b="tOGkFM/2"; 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=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232197AbjGMSor (ORCPT + 99 others); Thu, 13 Jul 2023 14:44:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43278 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231626AbjGMSoq (ORCPT ); Thu, 13 Jul 2023 14:44:46 -0400 Received: from fllv0015.ext.ti.com (fllv0015.ext.ti.com [198.47.19.141]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2FC3426B2 for ; Thu, 13 Jul 2023 11:44:45 -0700 (PDT) Received: from lelv0265.itg.ti.com ([10.180.67.224]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 36DIiBgo087508; Thu, 13 Jul 2023 13:44:11 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1689273851; bh=49KqOhoWraqa4xPJvs9k+Ho8uF5dhQ4RQNO+03mu9eI=; h=Date:Subject:To:CC:References:From:In-Reply-To; b=tOGkFM/2lpI2kKJUQ6x38SM1ZsoFWHZgM3OKWoBY6GHGu0bWkULxbcjZocVJItUMT Ylw1f/EbXdTHmaGe3a6GPwIRGB9jzjX3ssKEWyAJQZm9MenwYywibysDgz5mLtXXfN 4PtuE/vMXXqndUEj8EKuoYfiGERcSgsMiH2JSYHc= Received: from DLEE105.ent.ti.com (dlee105.ent.ti.com [157.170.170.35]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 36DIiBnl025156 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 13 Jul 2023 13:44:11 -0500 Received: from DLEE101.ent.ti.com (157.170.170.31) by DLEE105.ent.ti.com (157.170.170.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Thu, 13 Jul 2023 13:44:11 -0500 Received: from fllv0040.itg.ti.com (10.64.41.20) by DLEE101.ent.ti.com (157.170.170.31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23 via Frontend Transport; Thu, 13 Jul 2023 13:44:11 -0500 Received: from [10.250.32.50] (ileaxei01-snat.itg.ti.com [10.180.69.5]) by fllv0040.itg.ti.com (8.15.2/8.15.2) with ESMTP id 36DIiAiE066405; Thu, 13 Jul 2023 13:44:10 -0500 Message-ID: <3611feaa-9c89-b580-6266-c12cf048f56a@ti.com> Date: Thu, 13 Jul 2023 13:44:10 -0500 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Subject: Re: [PATCH 06/10] ARM: mach-airoha: Rework support and directory structure Content-Language: en-US To: "Russell King (Oracle)" CC: Baruch Siach , Vladimir Zapolskiy , Kunihiko Hayashi , Masami Hiramatsu , Arnd Bergmann , Geert Uytterhoeven , Linus Walleij , , References: <20230515160234.289631-1-afd@ti.com> <20230515160234.289631-6-afd@ti.com> From: Andrew Davis In-Reply-To: Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-Spam-Status: No, score=-4.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_MED,SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 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.. > This has the effect of _not_ calling l2x0_of_init() - but you don't > mention this. You probably should, and you should probably state why > that is safe (assuming you've even realised you've made this change!) > Reverse question, did the folks adding this support know this had the effect of changing l2c_aux_mask from the default? For now I'll resend this series with only the first 5 patches which should be trivially safe. The later ones I can send after double checking on l2x0_of_init(). Andrew