Received: by 2002:ac2:464d:0:0:0:0:0 with SMTP id s13csp2001656lfo; Sat, 28 May 2022 13:24:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzOHkWP8by4jCCF2DhjvRHi/ZRj9d5sCbWh1NWXzuXX3ewPiz1Cq/rcYQ982NaFPPRd0tSy X-Received: by 2002:a17:90b:2bcc:b0:1e2:73e1:302f with SMTP id ru12-20020a17090b2bcc00b001e273e1302fmr11210314pjb.175.1653769476578; Sat, 28 May 2022 13:24:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653769476; cv=none; d=google.com; s=arc-20160816; b=nfApa4kkUe4K/lf20/NmkaIu53ZFr5OeqQ2REA/YIeVTAwPkmcUaYbIPHEQ+CyN4ih S/md7bBK1DLDO8aF+JmIJ50nBVCz9ZPEUwWIGoh2CESomGv+BrRU6UmA0phA+Tg+aPuY lsMeRA5P7WiSdii4/UzAoaNpsgsOE4bokObKdFXFFR8F6Q7JOdk+hYNiVrdoAyiPPliO VIT0MghWrB+TRdwqXgBHNyQzuME/D8Iffx/7IRsuxLhLKgBptmdT2BRCQiD+iEXrAfLl XWwvsV6M1vmhgGmBjuPptwnoi3iC6Qlizf+uXfaIkgBIcOKMmfvNSO0dIeBiT23Gq/t2 uuCw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=t9FuzQy1mkS/UW8FaDARdLXkyAZZV1awtms5PAsyAmE=; b=v4WsCWcPXo8PeOTqTyZmYehb9M8SX88ckFVFZGSyPE+APn0D0OPCsXNCRIW7aZWpGK JF1zbuABEILDSqPJyG+EbQMqVuZIuKAr3LcMOSnAgt5IWGR6lCMfT7FHf1Cj3TlCnEtc uKWsyrfWkfaANLWCWQ9a4hyrrsmlOu50jvZXd5yTwdF06QjStYitZHZyt5G/RZI0A1zm o3FJ5du15aVCJNF0wu94xG3UEdeHzzfrusdIUfFSBrWwUQhqD5Y6xAw9ZwXnNnkBK+eu xxAya19LLtnmJ3PSIf1IEV8tbX5gNdQZWovz7p4XBBlntw12sJZ9C+IISpuC6hlfsMI9 xfJw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=google header.b=MPuKvg9l; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id b10-20020a65578a000000b003f9f28dd8e9si10531193pgr.794.2022.05.28.13.24.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 28 May 2022 13:24:36 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=google header.b=MPuKvg9l; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id B507916F93F; Sat, 28 May 2022 12:31:49 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244273AbiEZPoV (ORCPT + 99 others); Thu, 26 May 2022 11:44:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48594 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232621AbiEZPoR (ORCPT ); Thu, 26 May 2022 11:44:17 -0400 Received: from mail-il1-x130.google.com (mail-il1-x130.google.com [IPv6:2607:f8b0:4864:20::130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 470BBD80BF for ; Thu, 26 May 2022 08:44:15 -0700 (PDT) Received: by mail-il1-x130.google.com with SMTP id j6so1293150ilk.11 for ; Thu, 26 May 2022 08:44:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=t9FuzQy1mkS/UW8FaDARdLXkyAZZV1awtms5PAsyAmE=; b=MPuKvg9lbAGBLPLIhjIPsMx11w2QC+cO7KKzw+FGkCAUc6gPmdiIIxkz+mh/j1HjfX F6jnxZ67hhtSdYsNqG6apPHjy78akKz/WPb6TpYlCPdSZnxgVr2XWZcVrEz+OXk9vn+Y TKe/BUB9JIIuz3Jg7OYi8StCpDU/C7kE8cbOE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=t9FuzQy1mkS/UW8FaDARdLXkyAZZV1awtms5PAsyAmE=; b=zOnbbnOO4If4wI+stRlKA2w5fHBfatEqgYSIiWkczZEfrpMBumFyFwLFxwBt452Zfr d+hsZvV3nf5D7tp757Hq6tXS+6tveigOFdSMZVF7ekrtu70PRGg4/oEaMSsV4E/3lKMj yp+hf/osyUyUixUQOPglJAfs5fDokrzhsCtJrLSiYgDKuBJ9oSuEzOWXA9qe2zZmwdOu MuUYEd4zIs9xeqkX5RpkZgzQWy2WlKau/VJncPbTMgNQ9fdH1LZPNLnd5cwwRIum2nd1 pC3hLOVIvNLP2MT9+DsMI1jW2cRCPvEjXbPgVK1UICiPGzmv4hpmLZJwfOciAACPnzPx gu6Q== X-Gm-Message-State: AOAM533d1O3CeDBIuUPbLcTlMLpDy5vnVX1GFy9AIY/6jUu9KeEhWzqR PKPo0jUaKsPN1Lwl9qYoIpqHCA== X-Received: by 2002:a05:6e02:1b86:b0:2d1:ad50:53f1 with SMTP id h6-20020a056e021b8600b002d1ad5053f1mr10236181ili.191.1653579854622; Thu, 26 May 2022 08:44:14 -0700 (PDT) Received: from [192.168.1.128] ([38.15.45.1]) by smtp.gmail.com with ESMTPSA id b7-20020a023807000000b0032ec819a560sm471302jaa.169.2022.05.26.08.44.14 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 26 May 2022 08:44:14 -0700 (PDT) Subject: Re: [PATCH V8 0/4] Add unit test module for AMD P-State driver To: Meng Li , Huang Rui , linux-pm@vger.kernel.org Cc: "Rafael J . Wysocki" , Nathan Fontenot , Deepak Sharma , Alex Deucher , Mario Limonciello , Jinzhou Su , Perry Yuan , Xiaojian Du , Viresh Kumar , Borislav Petkov , linux-kernel@vger.kernel.org, Shuah Khan References: <20220526034725.1708916-1-li.meng@amd.com> From: Shuah Khan Message-ID: Date: Thu, 26 May 2022 09:44:13 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.1 MIME-Version: 1.0 In-Reply-To: <20220526034725.1708916-1-li.meng@amd.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-5.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,NICE_REPLY_A,RDNS_NONE,SPF_HELO_NONE, T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 5/25/22 9:47 PM, Meng Li wrote: > Hi all: > > AMD P-State unit test(amd-pstate-ut) is a kernel module for testing > the functions of amd-pstate driver. > It could import as a module to launch some test tasks. > 1) It can help all users to verify their processor support (SBIOS/ > Firmware or Hardware). > 2) Kernel can have a basic function test to avoid the kernel regression > during the update. > 3) We can introduce more functional or performance tests to align the > together, it will benefit power and performance scale optimization. > > We upstream out AMD P-state driver into Linux kernel and use this unit > test module to verify the required conditions and basic functions of > amd-pstate before integration test. > > We use test module in the kselftest frameworks to implement it. > We create amd-pstate-ut module and tie it into kselftest. > > For example: The test case aput_acpi_cpc is used to check whether the > _CPC object is exist in SBIOS. > The amd-pstate initialization will fail if the _CPC in ACPI SBIOS is not > existed at the detected processor, so it is a necessary condition. > > At present, it only implements the basic framework and some simple test > cases. > > TODO : 1) we will add more test cases to improve the depth and coverage of > the test. E.X. use the script to trigger the tbench, gitsource, kernbench, > netperf, speedometer, and etc. testing and monitor the cpu frequency and > performance goals change, power consumption at runtime. > > Please check the documentation amd-pstate.rst for details of the test steps. > > See patch series in below git repo: > V1: https://lore.kernel.org/linux-pm/20220323071502.2674156-1-li.meng@amd.com/ > V2: https://lore.kernel.org/lkml/20220413090510.4039589-1-li.meng@amd.com/ > V3: https://lore.kernel.org/lkml/20220421074152.599419-1-li.meng@amd.com/ > V4: https://lore.kernel.org/lkml/20220427135315.3447550-1-li.meng@amd.com/ > V5: https://lore.kernel.org/lkml/20220505022913.329259-1-li.meng@amd.com/ > V6: https://lore.kernel.org/lkml/20220519134737.359290-1-li.meng@amd.com/ > V7: https://lore.kernel.org/lkml/20220522115423.1147282-1-li.meng@amd.com/ > > > Changes from V7 -> V8: > - cpufreq: amd-pstate: > - - amend commit message. > - - amend module description. > - Documentation: amd-pstate: > - - amend commit message. > - - Remove the personal data. > Looks good to me. Thank you. Rafael, Viresh, How do you want to handle this patch series? We are in merge window and this would be for Linux 5.20 based on the changes and content. Would you like to take the entire patch series through your tree, you have my Ack(s) and Reviewed-by(s) thanks, -- Shuah