Received: by 2002:a05:6602:2086:0:0:0:0 with SMTP id a6csp3380366ioa; Tue, 26 Apr 2022 02:24:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwie5WhI6jBXEzGdOKZ73yHLlVK7LJx3K5AMoB7+6roIt0W6udpuLPuVGxGRQXz7foxsKaW X-Received: by 2002:a05:6402:2363:b0:425:bc13:4c8b with SMTP id a3-20020a056402236300b00425bc134c8bmr22203109eda.140.1650965074568; Tue, 26 Apr 2022 02:24:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650965074; cv=none; d=google.com; s=arc-20160816; b=WgT/hjDV6Qd8cv/dDpd1muyxdp1S9mrrLkM1kcnJPY/uZqbcJH+3zrUCmgz1rGL3gd 0Kah7B5e3DOP1LjrN0vu+L02IQ/AYV04KDR4O/ezCRPKty+DISIsQJr3eu99SpEtqmgv Q9NHhSDh5BxEEqbYuu4U24w5x8KEc4f3/mP0iozsg8v8f2oj4H1xzbJ9LYKsodwkLrpn H9pxvsu5paxhkGnxA6eYPtIyZaDgcTPzmUnzSYpu/KRmo+62wbZcMGEYjG4U/NcdKHP1 ZFuznxgX5Og6osCVz2e77HiAzndYKzN/P0P5OpW1zPq75UYFOcfWQUL92BdFVmHQAxNB qpeA== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=E82kxfi6zweYK/ziv0E156jDVuqlEC7WrpsAOLg40oQ=; b=BR9YNp7D51ZqU05ncwpAs9QFpDIciXUpve5Fcq+p5NPzQgqa3MTYAM3yWl1XwtTuqB 8OerGq3XNmsz59OHAEf8dZ1cuGwQp5w+rsiwsjOylinqwtwpMhMpAkvYCY0vFKRko8pq MCOJTd25nzp7cGaiWmRBkzf/QpLdGueQ7zLXU0IPslf5SQgMRCebB3V5eCtO2GHkoDg0 Xh5a6ii7lyBeaWT4HTXHti41pzYzxzlNEsQIt9E9wPpICYCfboMSgDaOBdjaqmptVloR pZdB8cFnAumuyWgAj6NLR4IaYmer86j5+2f271Cvp1PzFK8Q2w9FkKMKlWJvr4XX8Z+x B36w== 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:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e22-20020a170906c01600b006e0660cefcbsi15747643ejz.356.2022.04.26.02.24.11; Tue, 26 Apr 2022 02:24:34 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245757AbiDZGoN (ORCPT + 99 others); Tue, 26 Apr 2022 02:44:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49828 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S245641AbiDZGoG (ORCPT ); Tue, 26 Apr 2022 02:44:06 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 097701B784 for ; Mon, 25 Apr 2022 23:40:59 -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 C686623A; Mon, 25 Apr 2022 23:40:58 -0700 (PDT) Received: from bogus (unknown [10.57.11.83]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 8CC343F5A1; Mon, 25 Apr 2022 23:40:57 -0700 (PDT) Date: Tue, 26 Apr 2022 07:40:53 +0100 From: Sudeep Holla To: =?utf-8?B?546L5pOO?= Cc: Catalin Marinas , Will Deacon , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" , "vincent.guittot@linaro.org" , "peterz@infradead.org" , "dietmar.eggemann@arm.com" Subject: Re: [PATCH V2] arm64: add SCHED_CLUSTER's dependency on ACPI Message-ID: <20220426064053.h4rwvcdvmwxj2hmt@bogus> References: <1650855303-91388-1-git-send-email-wangqing@vivo.com> <20220425100635.ig4dxvlflglfagpx@bogus> <20220425165946.qb6xilgmjahdh4pa@bogus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI, 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 Tue, Apr 26, 2022 at 02:23:25AM +0000, 王擎 wrote: > > >> > >> >> From: Wang Qing > >> >> > >> >> cluster sched_domain configured by cpu_topology[].cluster_sibling, > >> >> which is set by cluster_id, cluster_id can only get from ACPI. > >> >> > >> >> If the system does not enable ACPI, cluster_id is always -1, even enable > >> >> SCHED_CLUSTER is invalid, this is misleading. > >> >> > >> >> So we add SCHED_CLUSTER's dependency on ACPI here. > >> >> > >> > > >> >Any reason why this can't be extended to support DT based systems via > >> >cpu-map in the device tree. IMO we almost have everything w.r.t topology > >> >in DT and no reason to deviate this feature between ACPI and DT. > >> > > >> That's the problem, we parse out "cluster" info according to the > >> description in cpu-map, but do assign it to package_id, which used to > >> configure the MC sched domain, not cluster sched domain. > >> > > > >Right, we haven't updated the code after updating the bindings to match > >ACPI sockets which are the physical package boundaries. Clusters are not > >the physical boundaries and the current topology code is not 100% aligned > >with the bindings after Commit 849b384f92bc ("Documentation: DT: arm: add > >support for sockets defining package boundaries") > > I see, but this commit is a long time ago, why hasn't it been used widely. > Maybe I can help about it if you need. > I assume no one cared or had a requirement for the same. -- Regards, Sudeep