Received: by 2002:a05:6a10:5594:0:0:0:0 with SMTP id ee20csp377425pxb; Mon, 25 Apr 2022 11:46:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzq1gdNrjFM+b+ZVLgYc+Cd1LpvyErDEncwUhcB3LmrSWn5Xm/CIw133sIvKydUsA9BLx3p X-Received: by 2002:a17:90b:1b03:b0:1d2:a577:d52 with SMTP id nu3-20020a17090b1b0300b001d2a5770d52mr22026381pjb.58.1650912396647; Mon, 25 Apr 2022 11:46:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650912396; cv=none; d=google.com; s=arc-20160816; b=HGwmRzZUh4T/441r0BK3VBMez2VFQxTyBn1vshPkVNm8zClXAGtOYr9JAsvub9OKUn a1TiC6d+FmZW3WmxpjmbBSeHjeLbwCVgirWyJZ/5rTK2GUuHD/sQFS7eI5vSJyARB9Xt KxpYhanR+I55UeChqLPrM+ccv7KMAH1bKaRdkaU2cPeD7dRrpfQhCp5eSjH/LjBb91C0 eDqh44Pma1FOub0EV9Ku9i75fytcKC7yksxqj2/YIz3Pe0a22y/+aWtMJqwy4pYKs+Jm THNXU2z7Zkre/assMgWrVphDuyY+kA72u87gt9gEmrCeNgRlTdnvHKjmW1YQ8pVEQHb8 q8qQ== 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=u7niMkJVBYhHB5qdfLb+cAuJHvbc3vVZ920pvBZZlYw=; b=Z9nBj95bIvTzyYaVTc84xnLAa9hMu6kuCvsVPIHL5HeGt8sGKrr/xrCTqOozzbU1TW stCCKlBUB19Onq1pZXbcRKg6qbNtfeUcUX6NCI8oE3TxNRG9VxE8x6SFVGOtsfTKqrQT sIcKqeWvS8iW9xfk6K38hw0n38dF37a3CcRgf8Z+0kPJPqrYhKxz25FLbYw1k2unbiT0 /UCJSjGjmyOSaasppKqxHS3f8VV16ef3gL2PaFXrsCYxKdMOX8+YftUejRSOCumJ+4uD zEXenBuqhVORiTRduBxLoUPSFJwwH25zb/9bNgjdQMAkQxoOSouHWkLq/AGcn2MxL7Xt akTA== 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 i7-20020a654847000000b0039cf4948dabsi17212794pgs.314.2022.04.25.11.46.20; Mon, 25 Apr 2022 11:46:36 -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 S240413AbiDYRDC (ORCPT + 99 others); Mon, 25 Apr 2022 13:03:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60430 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232710AbiDYRC6 (ORCPT ); Mon, 25 Apr 2022 13:02:58 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id E28CF1132C3 for ; Mon, 25 Apr 2022 09:59:53 -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 A571C1FB; Mon, 25 Apr 2022 09:59:53 -0700 (PDT) Received: from bogus (unknown [10.57.11.83]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id F210B3F5A1; Mon, 25 Apr 2022 09:59:51 -0700 (PDT) Date: Mon, 25 Apr 2022 17:59:46 +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: <20220425165946.qb6xilgmjahdh4pa@bogus> References: <1650855303-91388-1-git-send-email-wangqing@vivo.com> <20220425100635.ig4dxvlflglfagpx@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 Mon, Apr 25, 2022 at 11:18:21AM +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") > That is to say, "cluster" in cpu-map is used to describe the package_id. > We can't get cluster_id from DT. > That is wrong, we have "socket" to describe the package_id now. -- Regards, Sudeep