From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.3 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,NICE_REPLY_A,SPF_HELO_NONE, SPF_PASS,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id AAA8BC433B4 for ; Fri, 16 Apr 2021 10:39:44 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 86BE3610CD for ; Fri, 16 Apr 2021 10:39:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241709AbhDPKkG (ORCPT ); Fri, 16 Apr 2021 06:40:06 -0400 Received: from foss.arm.com ([217.140.110.172]:38402 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235267AbhDPKj6 (ORCPT ); Fri, 16 Apr 2021 06:39:58 -0400 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 1A03D106F; Fri, 16 Apr 2021 03:39:34 -0700 (PDT) Received: from [192.168.178.6] (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id C72573FA35; Fri, 16 Apr 2021 03:39:31 -0700 (PDT) Subject: Re: [PATCH v2 0/1] arm: topology: parse the topology from the dt To: Valentin Schneider , Ruifeng Zhang Cc: linux@armlinux.org.uk, sudeep.holla@arm.com, Greg KH , "Rafael J. Wysocki" , a.p.zijlstra@chello.nl, mingo@kernel.org, ruifeng.zhang1@unisoc.com, nianfu.bai@unisoc.com, linux-arm-kernel@lists.infradead.org, Linux Kernel Mailing List References: <20210414122326.5255-1-ruifeng.zhang0110@gmail.com> <8735vrmnc7.mognet@arm.com> <87wnt2lglo.mognet@arm.com> From: Dietmar Eggemann Message-ID: <44ab835f-3456-6bd9-97e9-5936cf5372da@arm.com> Date: Fri, 16 Apr 2021 12:39:30 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.1 MIME-Version: 1.0 In-Reply-To: <87wnt2lglo.mognet@arm.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 16/04/2021 11:32, Valentin Schneider wrote: > On 16/04/21 15:47, Ruifeng Zhang wrote: >> For more requirements, if all cores in one physical cluster, the >> {aff2} of all cores are the same value. >> i.e. the sc9863a, >> core0: 0000000081000000 >> core1: 0000000081000100 >> core2: 0000000081000200 >> core3: 0000000081000300 >> core4: 0000000081000400 >> core5: 0000000081000500 >> core6: 0000000081000600 >> core7: 0000000081000700 >> >> According to MPIDR all cores will parse to the one cluster, but it's >> the big.LITTLE system, it's need two logic cluster for schedule or >> cpufreq. >> So I think it's better to add the logic of parse topology from DT. > > Ah, so it's a slightly different issue, but still one that requires a > different means of specifying topology. I'm confused. Do you have the MT bit set to 1 then? So the issue that the mpidr handling in arm32's store_cpu_topology() is not correct does not exist? With DynamIQ you have only *one* cluster, you should also be able to run your big.LITTLE system with only an MC sched domain. # cat /proc/schedstat cpu0 .... domain0 ff ... <- MC ... You can introduce a cpu-map to create what we called Phantom Domains in Android products. # cat /proc/schedstat cpu0 .... domain0 0f ... <- MC domain1 ff ... < DIE Is this what you need for your arm32 kernel system? Adding the possibility to parse cpu-map to create Phantom Domains? From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.3 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8D877C433ED for ; Fri, 16 Apr 2021 10:41:43 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 5236161103 for ; Fri, 16 Apr 2021 10:41:43 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 5236161103 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=arm.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:Date:Message-ID:From: References:Cc:To:Subject:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=BO4wmoViKYgp6pvPhh+flFCbd1by58+OQTZPAHtnbh4=; b=pEVv7I0TtlbsRmufFuSo3L7Zp 0NO+2dJvFTcgfNVHybz55FOWOZLWrzxLT81MXj3XHyqfnRxuVxb/0PeG355ENqrI863rgEDPl2pWy +5hhwqsZziB/lNFE212HFVjF/fzGhjXcY4Pz8gcpyRhY8Mfuy7GL82Fd9Z6b7DDmpYeWNI4sIYuI/ a7dNLYi5dftWaN6AcTjsKJo0q6BQdo1AbjjaIZX8zUgje7zOaFzmBI2FA2B+0ltcIe5AQvvcTNHWR 7mNehhjg0v7idAP52sEZRcRIL1FjMIbuSslJpUayJpGYcN4pBJAaZUUdlj6rOrxjgfGrNCE/4wV3h ofBYeO8Kw==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lXLtJ-001lWi-Rv; Fri, 16 Apr 2021 10:40:02 +0000 Received: from bombadil.infradead.org ([2607:7c80:54:e::133]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lXLt0-001lQz-5N for linux-arm-kernel@desiato.infradead.org; Fri, 16 Apr 2021 10:39:45 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: Content-Type:In-Reply-To:MIME-Version:Date:Message-ID:From:References:Cc:To: Subject:Sender:Reply-To:Content-ID:Content-Description; bh=92gdsEQq0/7juI72gA5LBizDk9VqzdJbqetGpnCAEdM=; b=cvkLhVtR6VHUXjArcI6vIEgJla ai/+CDJ5H+wXqwWaYcDtZXbO7pfjTpweq4BdeVFz46g7YS0vH+Ff+pcM1HU8rzVu2ZieqSrU/OAkF vruFvHJziDUpPSKbDRLu9gBs0Om4pTZMQNbcAfU/9osIbYv3+8CJZfcdmShz+Rpr7nic8pQSj7bKP d36oETNuuR2jkNE5d3mElUFeXMqPvf1jwAG5PLOH6rAPG+GLI2ujFzMNn/hqYoRN4MjOjjkHKKSYO xOi/SwQoiG6Am8P2jG5DtSssq1CaOPlcWHgoj1oSOxnqS6UG1HhzXTG96g7WrgcDWuAP0vWiMt3c/ vOCrrLEA==; Received: from foss.arm.com ([217.140.110.172]) by bombadil.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lXLsx-009HhC-HS for linux-arm-kernel@lists.infradead.org; Fri, 16 Apr 2021 10:39:40 +0000 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 1A03D106F; Fri, 16 Apr 2021 03:39:34 -0700 (PDT) Received: from [192.168.178.6] (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id C72573FA35; Fri, 16 Apr 2021 03:39:31 -0700 (PDT) Subject: Re: [PATCH v2 0/1] arm: topology: parse the topology from the dt To: Valentin Schneider , Ruifeng Zhang Cc: linux@armlinux.org.uk, sudeep.holla@arm.com, Greg KH , "Rafael J. Wysocki" , a.p.zijlstra@chello.nl, mingo@kernel.org, ruifeng.zhang1@unisoc.com, nianfu.bai@unisoc.com, linux-arm-kernel@lists.infradead.org, Linux Kernel Mailing List References: <20210414122326.5255-1-ruifeng.zhang0110@gmail.com> <8735vrmnc7.mognet@arm.com> <87wnt2lglo.mognet@arm.com> From: Dietmar Eggemann Message-ID: <44ab835f-3456-6bd9-97e9-5936cf5372da@arm.com> Date: Fri, 16 Apr 2021 12:39:30 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.1 MIME-Version: 1.0 In-Reply-To: <87wnt2lglo.mognet@arm.com> Content-Language: en-US X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210416_033939_664563_33D56A08 X-CRM114-Status: GOOD ( 13.89 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On 16/04/2021 11:32, Valentin Schneider wrote: > On 16/04/21 15:47, Ruifeng Zhang wrote: >> For more requirements, if all cores in one physical cluster, the >> {aff2} of all cores are the same value. >> i.e. the sc9863a, >> core0: 0000000081000000 >> core1: 0000000081000100 >> core2: 0000000081000200 >> core3: 0000000081000300 >> core4: 0000000081000400 >> core5: 0000000081000500 >> core6: 0000000081000600 >> core7: 0000000081000700 >> >> According to MPIDR all cores will parse to the one cluster, but it's >> the big.LITTLE system, it's need two logic cluster for schedule or >> cpufreq. >> So I think it's better to add the logic of parse topology from DT. > > Ah, so it's a slightly different issue, but still one that requires a > different means of specifying topology. I'm confused. Do you have the MT bit set to 1 then? So the issue that the mpidr handling in arm32's store_cpu_topology() is not correct does not exist? With DynamIQ you have only *one* cluster, you should also be able to run your big.LITTLE system with only an MC sched domain. # cat /proc/schedstat cpu0 .... domain0 ff ... <- MC ... You can introduce a cpu-map to create what we called Phantom Domains in Android products. # cat /proc/schedstat cpu0 .... domain0 0f ... <- MC domain1 ff ... < DIE Is this what you need for your arm32 kernel system? Adding the possibility to parse cpu-map to create Phantom Domains? _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel