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 AEBD2A0C48; Tue, 20 Jul 2021 17:20:37 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 2C5EC40E03; Tue, 20 Jul 2021 17:20:37 +0200 (CEST) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mails.dpdk.org (Postfix) with ESMTP id CF8CB4068B for ; Tue, 20 Jul 2021 17:20:34 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1626794434; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=Hx/tF3Qdxr2Ta2V8Wyx0wnrhcsjiCr2qB2SFmEGjWJ8=; b=MlGm4tPzKTPA1F6G4qpPKo+tcjLFF+4u/5stYCL8rGRc0vw+DxAL+sZOwNLEln0kQjxgoD /o3QjRTzKGkF4qNpzSGosjBA0O51NFJ2vqGqHrkobY24ecqcFUBqquLDk+iL8d9Lpjsp8/ E7aQqz+6b4PTO3FudoP0d6aX4eAmWYo= Received: from mail-ua1-f69.google.com (mail-ua1-f69.google.com [209.85.222.69]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-22-El329qttMHCMdfl7Sc3XSg-1; Tue, 20 Jul 2021 11:20:30 -0400 X-MC-Unique: El329qttMHCMdfl7Sc3XSg-1 Received: by mail-ua1-f69.google.com with SMTP id x1-20020ab038010000b02902a206a03857so10813594uav.3 for ; Tue, 20 Jul 2021 08:20:30 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Hx/tF3Qdxr2Ta2V8Wyx0wnrhcsjiCr2qB2SFmEGjWJ8=; b=mD3St7K+kvO96HDJPY6yGmi3HLuCtXXD+5hXuXW+X6pYPQIo+Iurf4kSRaBy2IhEtD 2QHUTYBxRLRzQZsgT9jhuEh2lb/fEr2iMSJtawFK8wy4WnICuCZvok8ZY/2QW+RuAcJp WXEMN27Lfr2sEnAkmzO7P+GMIQ+1n7vpv8e8YRw1eObHT/zO6SwrT3+k9oGT5tCjYwa1 uCnqLJKbOBbR9Rcm9JguI7siDGVGS0vp2CdDIC9Bf9UDeuSRSYp+RAC5aIZhepyBlhxo sHWoIdMLM5Pl4TqXNwCcycXvc7Yq9fixIPuBtrNDA5Xz5LKZ9QZ4Ja2w+pyEI44JNht5 meeg== X-Gm-Message-State: AOAM533arT0Hycd5Ku1SvMDbOKYCMwRetU8GSNXM3qxSHLCk+7p4K5oG qs394v3F9DR1judaBeL9IZoHanbnM/SlLcQqTRfYwjRWBkj9uMzhJ4pZhmblG9AzCiSoRnJpvJf q1xWw0lklD9C+s/TGliU= X-Received: by 2002:ab0:7809:: with SMTP id x9mr31459808uaq.53.1626794430500; Tue, 20 Jul 2021 08:20:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy6VgEJrAsghMAPbhOwElp/PkgBgtjC0uutOV0roP8zWiUGu2wCoyGb4ni+k+IssokBQDUKo8kQ+m87Y7Y67kw= X-Received: by 2002:ab0:7809:: with SMTP id x9mr31459773uaq.53.1626794430267; Tue, 20 Jul 2021 08:20:30 -0700 (PDT) MIME-Version: 1.0 References: <20210714084407.51979-2-richael.zhuang@arm.com> <20210714104405.23917-1-richael.zhuang@arm.com> <20210714104405.23917-2-richael.zhuang@arm.com> <10a8b0c7-af1d-2dfa-6c8d-d4764966a035@intel.com> In-Reply-To: <10a8b0c7-af1d-2dfa-6c8d-d4764966a035@intel.com> From: David Marchand Date: Tue, 20 Jul 2021 17:20:18 +0200 Message-ID: To: Richael Zhuang Cc: David Hunt , dev , zhiminx.huang@intel.com, dpdk stable Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=dmarchan@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="UTF-8" Subject: Re: [dpdk-dev] [PATCH v2 1/1] test/power: fix CPU frequency check 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 Wed, Jul 14, 2021 at 2:23 PM David Hunt wrote: > On 14/7/2021 11:44 AM, Richael Zhuang wrote: > > For acpi_cpufreq and cppc_cpufreq, both cpuinfo_cur_freq and > > scaling_cur_freq exist. For pstate, only scaling_cur_freq exists. > > And value in scaling_cur_freq and cpuinfo_cur_freq may not be the > > same. For acpi_cpufreq and cppc_cpufreq, we should check > > cpuinfo_cur_freq but not scaling_cur_freq. So here change the > > check sequence to make sure it works for all cpufreq drivers. > > Besides, add rounding for pstate driver. > > > > Fixes: ff6dfb8e492f ("test/power: fix CPU frequency check") > > Cc: stable@dpdk.org > > > > Signed-off-by: Richael Zhuang > Acked-by: David Hunt Applied, thanks. -- David Marchand