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=-1.0 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=ham 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 5D0CBC10F11 for ; Wed, 10 Apr 2019 16:33:35 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 2CCE5206DF for ; Wed, 10 Apr 2019 16:33:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729591AbfDJQde (ORCPT ); Wed, 10 Apr 2019 12:33:34 -0400 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:57716 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729089AbfDJQde (ORCPT ); Wed, 10 Apr 2019 12:33:34 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id B354A374; Wed, 10 Apr 2019 09:33:33 -0700 (PDT) Received: from [0.0.0.0] (e107985-lin.cambridge.arm.com [10.1.194.38]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 1B9CB3F59C; Wed, 10 Apr 2019 09:33:32 -0700 (PDT) Subject: Re: [RFC 1/6] Optimize wake-up task for Task Packing heuristic To: Parth Shah , linux-pm@vger.kernel.org References: <20190322060621.27021-1-parth015@linux.vnet.ibm.com> <20190322060621.27021-2-parth015@linux.vnet.ibm.com> <0b198386-ef0b-75e0-e53a-1160c77326b7@arm.com> <60e34244-1e40-e318-080e-e76607bb3d92@linux.vnet.ibm.com> From: Dietmar Eggemann Message-ID: Date: Wed, 10 Apr 2019 18:33:30 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.4.0 MIME-Version: 1.0 In-Reply-To: <60e34244-1e40-e318-080e-e76607bb3d92@linux.vnet.ibm.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-GB Content-Transfer-Encoding: 8bit Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org On 4/7/19 7:57 AM, Parth Shah wrote: > > > On 3/27/19 3:01 PM, Dietmar Eggemann wrote: >> Hi Parth, >> >> On 3/22/19 7:06 AM, Parth Shah wrote: [...] >>> +    for_each_cpu_wrap(core, cpus, prev_cpu) >>> +    { >>> +        long unsigned int core_util = 0; >>> +        long unsigned int core_cap = core_cap_mf*capacity_of(core)/10; >>> +        long unsigned int cache_cpu_util = (unsigned)-1; >>> +        long unsigned est_util = 0, est_util_enqueued = 0; >>> +        int cache_cpu = core; >>> +        struct cfs_rq *cfs_rq; >>> + >>> +        for_each_cpu(smt, cpu_smt_mask(core)) { >> >> This one doesn't build for me on arm64 (make defconfig) since it uses cpu_smt_mask() outside the CONFIG_SCHED_SMT guard. >> >> kernel/sched/fair.c: In function ‘select_non_idle_core’: >> kernel/sched/fair.c:6243:21: error: implicit declaration of function ‘cpu_smt_mask’; did you mean ‘cpu_cpu_mask’? [-Werror=implicit-function-declaration] >>    for_each_cpu(smt, cpu_smt_mask(core)) { >>                      ^ >> ./include/linux/cpumask.h:242:32: note: in definition of macro ‘for_each_cpu’ >> >> [...] >> > > Thanks for pointing out. It will not build for individual patches for the current version of RFC. > > Please try to build it with full patch set. I assure, the following iterations of RFC will resolve this issue. Ah, I see, you have this CONFIG_TURBO_SCHED patch at the end of the series. I think that you will have a hard time to get new CONFIG switches into the task scheduler code. Can you not bting in your feature w/o CONFIG_TURBO_SCHED? [...]