Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp413959pxp; Wed, 9 Mar 2022 05:34:40 -0800 (PST) X-Google-Smtp-Source: ABdhPJwMn+6F3Q1pbQJbTGavCwimBBH2Cs8IKTsxBSeCiVUtDaPy6OEhF6AcPu6oj+xYR1RyZpiM X-Received: by 2002:a17:90b:1d0e:b0:1bf:2a24:2716 with SMTP id on14-20020a17090b1d0e00b001bf2a242716mr10344950pjb.60.1646832879791; Wed, 09 Mar 2022 05:34:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646832879; cv=none; d=google.com; s=arc-20160816; b=p0M7dYLBEROi9nO+52hlyUJNIm/L4D3uZioaBVP2agJIimbAOl7HV/DqDJ9Ejinlod l5kUWoPNki5/BuXgKwcnR13JqcHtQFevVte5ue2l7HL2BOkUsioUxVnpSrKTwaBap0KI rIYC7VEkTqoFlXft1KBLlAMd2KhCUPMuo6JGirsos/BM8QqyIzdf+LE5SrAT60+dJlkY NwRj+7XhdO2W5ymf9AQLsJc3iDLiLbpbtT0OntbHNidMlzmxc5Tg2IuNDrkJ8gI9W2qX aV+yLcuDQTUkLnK3bm1fw6/DYG8BjMO8a3vMH+kLA3/EyjLMi74GbvWjdDfcqoWnk48S et/w== 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; bh=jczhhzCubnDyU01FjXh2OuhDQxzrqLQVogQ39K5/Rds=; b=m/2oGXmBavi0DG0Y+W+pJxz9EI+oP5qms8G4mw/Fg1rt3ZY3Vw7RWN9rZDKPPYso2s s9BgchnAbq4Z5htbxt2l/TusgrPUrlU+Fy+ottSYrTgTFx3kH13znvGT0wfLnoU/RRf4 TLlfUvzvyjIgxAX5cehPEneEYN1F/Xc7FsDNFWqRDcv6l5ggWMqpLtO99zmQVUGVyMDN eGxqjLikCj/q1JGz0TCDiQ5U5FbiSrVdO+BVNR6cwxvJs2aA0tx6rAmAH4Hiew7qXNZh H8/GNOfHFIQswzTAJ4P3bgg3aU0PAtGCiRdz/d8tPDwUg6LFXT+R+f+VnCkDgGnG8RVf vQBA== 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 22-20020a630116000000b003806f93a2d9si1926047pgb.24.2022.03.09.05.34.23; Wed, 09 Mar 2022 05:34:39 -0800 (PST) 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 S232882AbiCIMvZ (ORCPT + 99 others); Wed, 9 Mar 2022 07:51:25 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52942 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230167AbiCIMvQ (ORCPT ); Wed, 9 Mar 2022 07:51:16 -0500 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 88910522F1; Wed, 9 Mar 2022 04:50:17 -0800 (PST) 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 4F0261FB; Wed, 9 Mar 2022 04:50:17 -0800 (PST) Received: from [192.168.1.10] (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 1BF143FA4D; Wed, 9 Mar 2022 04:50:14 -0800 (PST) Message-ID: <7ac47c67-0b5e-5caa-20bb-a0100a0cb78f@arm.com> Date: Wed, 9 Mar 2022 13:50:07 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 Subject: Re: [PATCH v3] topology: make core_mask include at least cluster_siblings Content-Language: en-US To: Darren Hart Cc: Vincent Guittot , Will Deacon , LKML , Linux Arm , Sudeep Holla , Greg Kroah-Hartman , "Rafael J. Wysocki" , Catalin Marinas , Peter Zijlstra , Barry Song , Valentin Schneider , "D . Scott Phillips" , Ilkka Koskinen , stable@vger.kernel.org References: <20220308103012.GA31267@willie-the-truck> From: Dietmar Eggemann In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_HI,SPF_HELO_NONE,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 08/03/2022 18:49, Darren Hart wrote: > On Tue, Mar 08, 2022 at 05:03:07PM +0100, Dietmar Eggemann wrote: >> On 08/03/2022 12:04, Vincent Guittot wrote: >>> On Tue, 8 Mar 2022 at 11:30, Will Deacon wrote: [...] >> IMHO, if core_mask weight is 1, MC will be removed/degenerated anyway. >> >> This is what I get on my Ampere Altra (I guess I don't have the ACPI >> changes which would let to a CLS sched domain): >> >> # cat /sys/kernel/debug/sched/domains/cpu0/domain*/name >> DIE >> NUMA >> root@oss-altra01:~# zcat /proc/config.gz | grep SCHED_CLUSTER >> CONFIG_SCHED_CLUSTER=y > > I'd like to follow up on this. Would you share your dmidecode BIOS > Information section? # dmidecode -t 0 # dmidecode 3.2 Getting SMBIOS data from sysfs. SMBIOS 3.2.0 present. Handle 0x0000, DMI type 0, 26 bytes BIOS Information Vendor: Ampere(TM) Version: 0.9.20200724 Release Date: 2020/07/24 ROM Size: 7680 kB Characteristics: PCI is supported BIOS is upgradeable Boot from CD is supported Selectable boot is supported ACPI is supported UEFI is supported BIOS Revision: 5.15 Firmware Revision: 0.6 > Which kernel version? v5.17-rc5 [...] >>> I would not say that I'm happy because this solution skews the core >>> cpu mask in order to abuse the scheduler so that it will remove a >>> wrong but useless level when it will build its domains. >>> But this works so as long as the maintainer are happy, I'm fine > > I did explore the other options and they added considerably more > complexity without much benefit in my view. I prefer this option which > maintains the cpu_topology as described by the platform, and maps it > into something that suits the current scheduler abstraction. I agree > there is more work to be done here and intend to continue with it. > >> I do not have any better idea than this tweak here either in case the >> platform can't provide a cleaner setup. > > I'd argue The platform is describing itself accurately in ACPI PPTT > terms. The topology doesn't fit nicely within the kernel abstractions > today. This is an area where I hope to continue to improve things going > forward. I see. And I assume lying about SCU/LLC boundaries in ACPI is not an option since it messes up /sys/devices/system/cpu/cpu0/cache/index*/. [...]