Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp16776842rwd; Mon, 26 Jun 2023 15:12:10 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7qer9A1o/q2dXXwsSP8yDq1edI6Mhxa+1rmTlgdK7cC/5+CojYcG60tWfrPCZf8sjBDZ/Z X-Received: by 2002:a17:90a:7541:b0:262:ce9e:8a25 with SMTP id q59-20020a17090a754100b00262ce9e8a25mr9308742pjk.22.1687817530436; Mon, 26 Jun 2023 15:12:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687817530; cv=none; d=google.com; s=arc-20160816; b=EfNV7LqGaKfBkYcBsN8nz5z/9bgyT1aM3UnGI60t/TNcVUXA2yAEqL92yTn7D4lA0E 4aF7kMYkWldhiSAZqx72QUfbh5vlvj9mNV36NwlxmHPG9oVQeLBaAXH4mqEtTFmqa7tR HMvPTsuiQp7FS5goO3As8J8RvQxgfWQ34zwFof/4ZcCp2Vnh/QXlwQzqWD5B20pqYzOu ++H901kg8vHR43yKkURQtPSDGKAWkSiDLmtHA3udK55VpEaX+kYdasW7lM81ntDBkFsT /SfQycx3GYucemDzU0MCqLT0oSYgFH9KQUQJwkmUE8QjduOYCj/9Z4IJqBHGaNQ0xvy4 xgLQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:cc:to:from :subject:message-id:dkim-signature; bh=8RtsC5aqoOc/5+12ERgHd9uyUBPoevg1ql0GxMC4sbk=; fh=1k3MxybK+cxlVjkHVH93CwxRag69GADL8eD+ft3ACQU=; b=SLSWQkzs6gWRaSjOTjMVXlpg7a0dacUAlY9PFtsNEACiwUV+OpBOkv35XtoOPpvBtA 2wYCmD3gp2R0GYoqQ9bx6xzHFAuVx1fhcXDI5Zjd+bX3nCLOR/JkZiGyLg4ax2Vum05X ind0pXlf8lqKQN8IJw/TlKTimQmvHRvlvr8TQSLatbjwiILEzVLdiNyo7IoDAOEVwk1A Y2+PjKEEuex66g0jskUKcfHfy2VKCGW6RtYFzl4sQoqIcT6fU18xzJu6HgqcVkyb6geq 1pgSfU96nbH2TrRAyykVH490qd+ZkzoAi5hSf+neNwFuVMQ9Tgl3T0hNxcfd44tf708W JE1g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=BP9MAkq8; 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=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t64-20020a638143000000b0053fee168aabsi5786823pgd.742.2023.06.26.15.11.58; Mon, 26 Jun 2023 15:12:10 -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; dkim=pass header.i=@intel.com header.s=Intel header.b=BP9MAkq8; 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=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230083AbjFZVBa (ORCPT + 99 others); Mon, 26 Jun 2023 17:01:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52772 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229901AbjFZVB2 (ORCPT ); Mon, 26 Jun 2023 17:01:28 -0400 Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 205CA125; Mon, 26 Jun 2023 14:01:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1687813287; x=1719349287; h=message-id:subject:from:to:cc:date:in-reply-to: references:content-transfer-encoding:mime-version; bh=LOc6tDobeRpUuyxloHqratDaLJtesBy6Kzgu4za2HvY=; b=BP9MAkq8hhXmztbOjxFIiumcGL/Auph0U8fqdjku7xIz9/H64eIzpJLm iP0YsAYxx49eRZ5VMcsj/AMmr2IUrAHUaT0jIP4VNxXr9TPOiagKyNzOp rKKIUnICyvNRd8Yimf7K4K2traNhzlTiBFm9Moj729ktLQo/jz63MgwXh pRZXnT1wpoV8RRVvED0MlWxkM3kz4wbTnLbcQzMQUrHVMroh8nzuNPR1q Vti6FOlSH1HfTbBfsCybCgkGntLj2Hv19hwjpAi1vKDadQFn5VZWHvcaq JpVQTg1Iv4TkuXNNbTrTwTEsUnqBwJ7apNQRroxT6Kb4Un/CAub44WznI Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10753"; a="364836490" X-IronPort-AV: E=Sophos;i="6.01,160,1684825200"; d="scan'208";a="364836490" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Jun 2023 14:01:26 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10753"; a="666435927" X-IronPort-AV: E=Sophos;i="6.01,160,1684825200"; d="scan'208";a="666435927" Received: from jingyan2-mobl.amr.corp.intel.com (HELO [10.209.115.106]) ([10.209.115.106]) by orsmga003-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Jun 2023 14:01:26 -0700 Message-ID: <7ca035b73ebcce9fde270227a5b630b169ebdeaf.camel@linux.intel.com> Subject: Re: [PATCH v4 07/24] sched/fair: Compute IPC class scores for load balancing From: Tim Chen To: Ricardo Neri , Ionela Voinescu Cc: "Peter Zijlstra (Intel)" , Juri Lelli , Vincent Guittot , Ricardo Neri , "Ravi V. Shankar" , Ben Segall , Daniel Bristot de Oliveira , Dietmar Eggemann , Len Brown , Mel Gorman , "Rafael J. Wysocki" , Srinivas Pandruvada , Steven Rostedt , Valentin Schneider , Lukasz Luba , Zhao Liu , "Yuan, Perry" , x86@kernel.org, "Joel Fernandes (Google)" , linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, "Tim C . Chen" , Zhao Liu Date: Mon, 26 Jun 2023 14:01:25 -0700 In-Reply-To: <20230625201155.GA3902@ranerica-svr.sc.intel.com> References: <20230613042422.5344-1-ricardo.neri-calderon@linux.intel.com> <20230613042422.5344-8-ricardo.neri-calderon@linux.intel.com> <20230625201155.GA3902@ranerica-svr.sc.intel.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.44.4 (3.44.4-2.fc36) MIME-Version: 1.0 X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE,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 Sun, 2023-06-25 at 13:11 -0700, Ricardo Neri wrote: >=20 > > > + > > > + score_on_dst_cpu =3D arch_get_ipcc_score(sgs->min_ipcc, env->dst_cp= u); > > > + > > > + /* > > > + * Do not use IPC scores. sgs::ipcc_score_{after, before} will be z= ero > > > + * and not used. > > > + */ The comment is not matching the check below. If zero is not used, the check should also reflect the case. > > > + if (IS_ERR_VALUE(score_on_dst_cpu)) > > > + return; > > > + > > > + before =3D sgs->sum_score; > > > + after =3D before - sgs->min_score; > >=20 >=20 Tim