Received: by 2002:a05:6602:2086:0:0:0:0 with SMTP id a6csp3668405ioa; Tue, 26 Apr 2022 07:54:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwYuVEdVBrC5i4BwHcnJ4B6bgFd7afm78y30DdLVyAAJ/4LzfqVYvEfp27MSpvAb7kPHE8i X-Received: by 2002:a17:907:da7:b0:6df:9ff4:10c7 with SMTP id go39-20020a1709070da700b006df9ff410c7mr21150393ejc.106.1650984858939; Tue, 26 Apr 2022 07:54:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650984858; cv=none; d=google.com; s=arc-20160816; b=wHEx0tJBUBNdEzz2FpW+ZLYIRSJNW6Ek6HshN9G2YeE7pnbUGpu94QOKK498jDc6IM 4cxaeWqyS+fbVyAq54WOjv3bkoX2hKPpQyX0MEOm/oEHKPpnMmFTP8kz0/0QMqaQ068K /68mgJUG0Sf2H+3apyCZTAkjzcZKb81AS4j23DyXVgnxQaFpmHoQoT9yW1yOeT64+E5C qs9PhAdoW/lpjuvB31FTj38/45CgiZwQ6khtj4cjqJ6ul1IkvdgFDXK+J5l1B2GQih4+ Lr7bO0S3U7CZ/rpmWSWHjB41DWV0EybxlLvQH2YM28TUNQAANljISoIg91Iz/JX+7aQb R3gQ== 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=HWyVMF70GvvkSNy8Pc5YmZaul98aDOrcFChShPhaLRg=; b=vWjxsA+w8dBfWp8KRWBjLEoNz3RrWXnpU3tAqP8henZ88X0fxWB4PYGJP7Jivr+GMw d3SBNzy+O3e/s94m2wjuhFuHYbLnaogmRxwJP+DTI1OnsMCkjUMb+ot/VCyF0uSfafRZ hOWx0+6vKaTetqdyaaNGYdvGGwIqHW0iVXBVJT0vxY0QAccdtd7PfUuvALpnX+r7OASr GaiNsk9g4Ym7qMIUsWOleH6lvRiltxKQcGUYUfzLwcsKHf2lziV0mpjWy9g/HdIpTuAZ 5NlgM404/iGUYF968kUbmUZDW832GJDxxvybTBMvUi8z49YbqGNke16CsfzdCjaTwIuI RPgg== 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 e9-20020a170906314900b006f3a9502509si2774637eje.121.2022.04.26.07.53.52; Tue, 26 Apr 2022 07:54:18 -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 S1344445AbiDZN2Z (ORCPT + 99 others); Tue, 26 Apr 2022 09:28:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42388 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232849AbiDZN2X (ORCPT ); Tue, 26 Apr 2022 09:28:23 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 60B9F15837 for ; Tue, 26 Apr 2022 06:25:15 -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 DF237ED1; Tue, 26 Apr 2022 06:25:14 -0700 (PDT) Received: from bogus (e103737-lin.cambridge.arm.com [10.1.197.49]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id C5BBD3F774; Tue, 26 Apr 2022 06:25:13 -0700 (PDT) Date: Tue, 26 Apr 2022 14:25:11 +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: <20220426132511.7zo4w42kauvrq26n@bogus> References: <1650855303-91388-1-git-send-email-wangqing@vivo.com> <20220425100635.ig4dxvlflglfagpx@bogus> <20220425165946.qb6xilgmjahdh4pa@bogus> <20220426064053.h4rwvcdvmwxj2hmt@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 06:52:34AM +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. > > It took me a while to find the root cause why enabling SCHED_CLUSTER > didn't work. > > We should add SCHED_CLUSTER's dependency before implementation. > Otherwise, everyone who doesn't have ACPI but use SCHED_CLUSTER > will have this problem. > I am fine with that or mark it broken for DT, but ideally I wouldn't want to create unnecessary dependency on ACPI or DT when both supports the feature. -- Regards, Sudeep