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 AF0A0A0C4B; Fri, 13 Aug 2021 19:41:53 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 648CE40DF4; Fri, 13 Aug 2021 19:41:53 +0200 (CEST) Received: from mail-wm1-f45.google.com (mail-wm1-f45.google.com [209.85.128.45]) by mails.dpdk.org (Postfix) with ESMTP id BC2354069C; Fri, 13 Aug 2021 19:41:51 +0200 (CEST) Received: by mail-wm1-f45.google.com with SMTP id l34-20020a05600c1d22b02902573c214807so10198799wms.2; Fri, 13 Aug 2021 10:41:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=message-id:subject:from:to:cc:in-reply-to:references:date :mime-version:user-agent:content-transfer-encoding; bh=EUnMONc4mClzN3DVu2WhgtsG+jVPvKk9Gos65svNAXU=; b=aD5bqtmM/y+0/+FePp0e3eCmoL23sp9GspQT6TQS8/VmnbzYmeJAvfL21SIBXPpaPF AT/ENujBooGGoU4zFOqeESX+VSZUPh+qxRDrOktejW1LYJyAeEnh/sOf7oGdiW0OPKcw YJmps3bIuB9pxmLsYZRakfNYUrkfO/HlP2JYxZoiELhyXPqg9ofiUb4i/VFK5qpkg3YV 0BvVq5P3FNA9Od3a1DmkDwqBz1burOFyAaQQ+lEjym+G6otJbGPUKIdHWnb65qPArBHl gXPAgiPnOG9wvUq7w1hxQ9PdoNwOL3DIjXp8XJG+eRJSChWYeuIjN7BCMVTsXa1CHO1T lG5g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:subject:from:to:cc:in-reply-to :references:date:mime-version:user-agent:content-transfer-encoding; bh=EUnMONc4mClzN3DVu2WhgtsG+jVPvKk9Gos65svNAXU=; b=Y623WmcIQA7fO0oNp9VTUxzt1FOrTq/J8Gw+LmEzuwgFuhws+U+ByL0yT/nXuG8isl 8YDkzypr4wSAGdFSXyH72+cKN+/pZBUZIWmgvNYsd51ORVlFmYP9QRZ3oLk0iWJkAXWh VzJEFEuFx2/KDSMbzFoSclOEPJeYmMsu7iaUyhBnhoI0hiEqJtITc9i6t8plUqtBX8j9 h/1kNeyBDt94X7vI2ZnXB9ikOILji4iMi31tT7xJGChTz7Fq9g99dT2/Ylcdh3fSJBIe ErcUQP8EhDxNzM3KVyp4grhbUUCorF/ksBR0g5GNwjBIF9CuOfBHXiHLV/97OIsmY/ZW mFzQ== X-Gm-Message-State: AOAM530M+m6gcRL4xMje8lCoFAsY/HjVbYQ2I3RFQU8Kb1boQbkFtN+V GvIfqRU/UpgdnijpAivybAA= X-Google-Smtp-Source: ABdhPJxmG8/w4QwG8VYPXZBMRAFnNuEGFrjBtconFwe1RDJ76xDps4UCLYaJVv3DBQ+/zQBkiatsPw== X-Received: by 2002:a1c:7c19:: with SMTP id x25mr3699057wmc.172.1628876511416; Fri, 13 Aug 2021 10:41:51 -0700 (PDT) Received: from bluca-lenovo ([137.220.125.106]) by smtp.gmail.com with ESMTPSA id u6sm2136446wrp.83.2021.08.13.10.41.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Aug 2021 10:41:50 -0700 (PDT) Message-ID: <753fdf5fba68d8faf90b53a6d4fd8699c4a80d88.camel@gmail.com> From: Luca Boccassi To: David Hunt , dev@dpdk.org Cc: richael.zhuang@arm.com, stable@dpdk.org In-Reply-To: <20210813141830.15397-1-david.hunt@intel.com> References: <20210813141830.15397-1-david.hunt@intel.com> Content-Type: text/plain; charset="UTF-8" Date: Fri, 13 Aug 2021 18:41:30 +0100 MIME-Version: 1.0 User-Agent: Evolution 3.30.5-1.2 Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-dev] [20.11.3] test/power: fix CPU frequency when turbo enabled 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 Sender: "dev" On Fri, 2021-08-13 at 15:18 +0100, David Hunt wrote: > On arm platform, the value in "/sys/.../cpuinfo_cur_freq" may not > be exactly the same as what was set when using CPPC cpufreq driver. > For other cpufreq driver, no need to round it currently, or else > this check will fail with turbo enabled. For example, with acpi_cpufreq, > cpuinfo_cur_freq can be 2401000 which is equal to freqs[0].It should > not be rounded to 2400000. > > This is a version of the patch for 20.11.3 that fixes this issue > withouth the dependency of having the CPPC support applied first > (modified version of 29343b9030e38e8c3519ba01cb66724d45b13dc8) > > Fixes: 606a234c6d360 ("test/power: round CPU frequency to check") > Cc: stable@dpdk.org > > Signed-off-by: David Hunt > --- > app/test/test_power_cpufreq.c | 25 ++++++++++++++++--------- > 1 file changed, 16 insertions(+), 9 deletions(-) Acked-by: Luca Boccassi Applied and pushed, thanks (next time, please don't include dev@dpdk.org but only stable, given it's a backport - otherwise it gets filtered). -- Kind regards, Luca Boccassi