Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp890176pxb; Fri, 22 Apr 2022 13:32:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz13i8fqEmT4Vop/0d8INtjhtJIRtBMMo1ZJcZDkr7HThAKU1VP5+JWR5bz0uR8SVYp9+zV X-Received: by 2002:a17:902:bd95:b0:14f:40ab:270e with SMTP id q21-20020a170902bd9500b0014f40ab270emr6256781pls.101.1650659569631; Fri, 22 Apr 2022 13:32:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650659569; cv=none; d=google.com; s=arc-20160816; b=vbCp7S8lIGvL+7fjTNyaqnTJIcnSXNX/DQLLCxfjisDBH3UPe8TYhvqesjOYZ6IWb8 EZAnGs25ZcJP967n+cIVkJG3ONaq6iz18L1JjTQkPhWRtUyccSUJJgpdXV3oCbNaWJhw LHN20kWVpBRpgHpuYlO5a981H+t7iEUblgcDS3LCF2X1DBP4OS0b8XcExN3JF3jX4pEL 0k2PDCK2+OFIo+//wrp+b0NqNJ2WgGUidfRi2fRv4zqOcG775G3n3/rgrD1nl7horxCH NJJCbNrvrXsbY9ke0mpOQSFZS69Q2eR8sY+IgK/pU4PuUuMyfieeIVybtEFmfPEtQynx zdbQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=WfjFQmjVVtHzce0FI+G2PGeK2N2q2ToMvbqjdrdmvSs=; b=lAki3Bu8Vl4O1otpxlFDjQPSAuSYJnz9JujTo1AtrGxIokJVSlsF07waL+ncJhfC1G 9L3n7nqFv4vgw/5EtwDRsH8RfafVUKy/hXi0MHYaMg/T+nIMBPmDv29e0GPnR2Te7p02 bEiGBG0ThEjxMQL8Ydyy1hgmTrXpDHaEAYDi9f4uoSQlalGf4tTPuLlKHqHjci/fCMia Fi4F7ks+714KCjRUxrX1nm4ESOh/xATA4HFId2rPTA0gaVqcHD20HiAjMJj+xDAgWkWo Cm+pAK0E3NiH7mr0ym0yzq6FMBnt1/y80vTr9gNuwOoAcCqV4FXmKQodJZBN1HcGUopD gVWA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id j5-20020a17090276c500b0015a4161f101si6291644plt.123.2022.04.22.13.32.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Apr 2022 13:32:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 9579D1BD582; Fri, 22 Apr 2022 12:19:13 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1445910AbiDVJZ1 (ORCPT + 99 others); Fri, 22 Apr 2022 05:25:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43424 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1377251AbiDVJZZ (ORCPT ); Fri, 22 Apr 2022 05:25:25 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 06EA533E23 for ; Fri, 22 Apr 2022 02:22:31 -0700 (PDT) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id A57881477; Fri, 22 Apr 2022 02:22:31 -0700 (PDT) Received: from bogus (unknown [10.57.11.83]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id AF2BA3F766; Fri, 22 Apr 2022 02:22:29 -0700 (PDT) Date: Fri, 22 Apr 2022 10:22:25 +0100 From: Sudeep Holla To: Qing Wang Cc: Catalin Marinas , Will Deacon , Sudeep Holla , Greg Kroah-Hartman , "Rafael J. Wysocki" , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/2] arch_topology: support for describing cache topology from DT Message-ID: <20220422092225.ezmaqxloujdw5bqg@bogus> References: <1650552960-60165-1-git-send-email-wangqing@vivo.com> <1650552960-60165-2-git-send-email-wangqing@vivo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1650552960-60165-2-git-send-email-wangqing@vivo.com> X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE autolearn=no 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, Apr 21, 2022 at 07:55:57AM -0700, Qing Wang wrote: > From: Wang Qing > > When ACPI is not enabled, we can get cache topolopy from DT like: > * cpu0: cpu@000 { > * next-level-cache = <&L2_1>; > * L2_1: l2-cache { > * compatible = "cache"; > * next-level-cache = <&L3_1>; > * }; > * L3_1: l3-cache { > * compatible = "cache"; > * }; > * }; > * > * cpu1: cpu@001 { > * next-level-cache = <&L2_1>; > * }; > * ... > * }; > cache_topology hold the pointer describing "next-level-cache", > it can describe the cache topology of every level. As I mentioned before, I would like to avoid any duplication and see what can be reused from drivers/base/cacheinfo.c We can discuss and see how to proceed on that once we settle/agree on 2/2. I don't want to waste your or my time if we don't end up using this. So let us look at this once we agree to push the sched related changes as we have used generic ones so far and you want to introduce arm64 specific levels. That requires some discussions and thoughts before we can finalise. Also I have mentioned you to keep Dietmar and Vincent in cc for all sched related changes which you failed to do again. I expect you fix that next time if you want them to help you in discussions and make any progress on this. Otherwise it may get ignored as you don't have all the right people in cc. -- Regards, Sudeep