From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id A07A945B5E; Thu, 17 Oct 2024 14:10:40 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 33BD640279; Thu, 17 Oct 2024 14:10:40 +0200 (CEST) Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by mails.dpdk.org (Postfix) with ESMTP id E582B4021E for ; Thu, 17 Oct 2024 14:10:38 +0200 (CEST) Received: from mail.maildlp.com (unknown [172.19.163.48]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4XTmnx1g89zcpS7; Thu, 17 Oct 2024 20:08:37 +0800 (CST) Received: from kwepemm600004.china.huawei.com (unknown [7.193.23.242]) by mail.maildlp.com (Postfix) with ESMTPS id 63E6518009B; Thu, 17 Oct 2024 20:10:35 +0800 (CST) Received: from [10.67.121.59] (10.67.121.59) by kwepemm600004.china.huawei.com (7.193.23.242) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.39; Thu, 17 Oct 2024 20:10:34 +0800 Message-ID: Date: Thu, 17 Oct 2024 20:10:34 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.2.0 Subject: Re: [PATCH v1 2/2] test/power: fix power library with --lcores To: Sivaprasad Tummala , , , , , , , , CC: References: <20240724130336.1076462-1-sivaprasad.tummala@amd.com> <20241017110247.1051770-1-sivaprasad.tummala@amd.com> <20241017110247.1051770-2-sivaprasad.tummala@amd.com> From: "lihuisong (C)" In-Reply-To: <20241017110247.1051770-2-sivaprasad.tummala@amd.com> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8bit X-Originating-IP: [10.67.121.59] X-ClientProxiedBy: dggems703-chm.china.huawei.com (10.3.19.180) To kwepemm600004.china.huawei.com (7.193.23.242) X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org 在 2024/10/17 19:02, Sivaprasad Tummala 写道: > When user request to use lcores mapped to different physical > cores using --lcores eal option, power application accesses > incorrect cpu sysfs attribute for checking current frequency > > The patch fixes the cpu_id based on the lcore and cpu mappings. > > Signed-off-by: Sivaprasad Tummala > --- > app/test/test_power_cpufreq.c | 22 +++++++++++++++++++--- > 1 file changed, 19 insertions(+), 3 deletions(-) Acked-by: Huisong Li