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 108ADA0C48 for ; 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 F0EDD4068B; Tue, 20 Jul 2021 17:20:36 +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 CF95240696 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-f72.google.com (mail-ua1-f72.google.com [209.85.222.72]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-350-jyjfWPEzPViORPjaotsDtg-1; Tue, 20 Jul 2021 11:20:30 -0400 X-MC-Unique: jyjfWPEzPViORPjaotsDtg-1 Received: by mail-ua1-f72.google.com with SMTP id c21-20020ab023d50000b029029fe93a4b32so10784765uan.21 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=lnSyFrMFu9+Rktf9Cyd0PjMaW2D9lVbcaFjE58e2+rEOGSqisBRI66ThTCmEC0yX1F 2tVvs/DokYhBFEfLpZgKKhQDsOGASgM0a1+C3yivGzLqutvnKbnEHPC1haWYc22JsRuB /fKdW8oD9ADWeEviNdiJxy0aKLbpeSetdsVSXmBTPKQAfUfqAO1eKlgHFlrDSAW6O7Kx OLnKZEyHW33ZUZcxMg6Tg2GfljpprCpMROve0obQg1MUxZGgrLARORrMkToS+PDmoMyv CpxYo3xiXLfdxKQ/liKJNn/hhEJMOQF9Oa2HitlIdGfhStHRHUGYT6fuRPh2n2GUrJf4 AwRA== X-Gm-Message-State: AOAM5313ng9C2/D/zNfwz0J1EyA86TuHQ0qhKtEbYP1o66BeXdw8VZzL zbkRPGMl6GKfGjau00A889D0qfF49vn03qXYbLLNDTXlEZ/YyL9UkZDSYU+Z5vfQ28cbSeuGtzj uLWONn4OHbQ1oUd77icfnAKc= X-Received: by 2002:ab0:7809:: with SMTP id x9mr31459810uaq.53.1626794430501; 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-stable] [dpdk-dev] [PATCH v2 1/1] test/power: fix CPU frequency check X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org Sender: "stable" 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