Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp313143pxb; Wed, 23 Mar 2022 19:10:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwdLBY8+voF1J94KAns8RZa7lc4QO8GvsCoaLi9JmayWNZwXzEYVHAvTI8QVtQCqSl+tzrG X-Received: by 2002:a17:90b:1d82:b0:1c7:1d3:f4 with SMTP id pf2-20020a17090b1d8200b001c701d300f4mr15487478pjb.223.1648087807084; Wed, 23 Mar 2022 19:10:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648087807; cv=none; d=google.com; s=arc-20160816; b=1H+abr+ctsmaZXKCaLkE4zQ7xi/8Q3yuEeRx44qWlA2oRxfTMtTNT52+yMNz4RXYAD 33QGonfFpi3iR/xgcyITNI2BJWhgX6PtvDnj6TXYcgB9LIp0h2efQNSJzK7oWLAfx5b0 NYg/N6obX0VZykxYxDuur6icOiQO5IBHz9Flqc3hjBdcvVVeBRhofrt9pgiwE3yRqkmH IF2qEEyXBWfGAjnoVa5Z8lLUv4sb/o2YTzc2c6tfzLV7BQU4DAD7isSn27ncr9IHpcor dLt7zShtDG6JWamv52yn5oRVZQX5mL/ikozFVpAw2VozLWb0Eomna4VYBi1aiY3d/stu NDpg== 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=DFtEmgZVX6NiJWN1EIlkixm8UH2mcAaGVWOGdvWx5L0=; b=xAO/PLi7B0Mp9EjYSJB/6Om4NdIukb2vUenrXpm0w29JzW1POD4rwUBEsm2Mh29wHl /AaH+UYw6+6ajSFGLMaZyDrsdEOf8CZkAKM2ufxdAJeu2w+1CliK0p6tnWV6UNaBARxb ZRueWmKAcdlPmqnOZNcXiMhZ6e7lHrddBmN9Delfy01497i/qcc9bBNaWH6/MSKqqEow PdkwOJKjyPpQBI4LpITujknYrTKIDd0O1M7NNxqUgwMNXRtLQllNhcyYwNCMtFxSahWl oGk/H1PPH+YTKaYYbC4r84rDOyNRpItvNvACbKgknH6wdEt+eNzra6eWWN+HkFNjyU/c 19MA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=google header.b="iNO65oB/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e20-20020a056a00163400b004fa3a8e009dsi13914909pfc.340.2022.03.23.19.09.53; Wed, 23 Mar 2022 19:10:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=google header.b="iNO65oB/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244585AbiCWOQq (ORCPT + 99 others); Wed, 23 Mar 2022 10:16:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35774 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237118AbiCWOQo (ORCPT ); Wed, 23 Mar 2022 10:16:44 -0400 Received: from mail-oa1-x35.google.com (mail-oa1-x35.google.com [IPv6:2001:4860:4864:20::35]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8B7A978046 for ; Wed, 23 Mar 2022 07:15:14 -0700 (PDT) Received: by mail-oa1-x35.google.com with SMTP id 586e51a60fabf-de3eda6b5dso1850422fac.0 for ; Wed, 23 Mar 2022 07:15:14 -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=DFtEmgZVX6NiJWN1EIlkixm8UH2mcAaGVWOGdvWx5L0=; b=iNO65oB/mp5isctZY+S65CnNbLX41ffwYCjiATwqO+Gd9wrBD8tc6M3rRSqP37ym7h 2VdY5gkRH2zWLfOr00I8JLckRLHV1qdgQoxHgr8EQ5zVJs/1o8L8vzCWYGF+S2DEXN1+ VS32nVT3W4MElcYv7u+XznxYCVd5LH4m45R48= 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=DFtEmgZVX6NiJWN1EIlkixm8UH2mcAaGVWOGdvWx5L0=; b=WV4RApM7gL6siLGVvzm/k/88Cd7LtsutjAAwKzKAKujQS2uGv7N2Rutj0WJyUK4KHR VC9nwD1Z1Re6++BoOuMEa0cNNYQ3MXygjkASiwZy7zvhovUXrdUPJxwHP+aJWPYZslm1 8g9nkLVQMVEIgZl28zNFR7bc3YtoXp3MCCom4s/NoAf+Ps+7td9f9FGJQS7Vv/XK6lc/ drEesemOkg5aTyUcG02PMbEjmiOEidR3vyTh3x8lFiBW/IGQeRCjIf/tW3u9nKu6hVvO dJnGQGSFMG06JwMsWN0NlvsEUh/s7488Axk76tJVOLCDGOHkjRFye69cO/XIq1sLEhDv cukw== X-Gm-Message-State: AOAM532IcfoS3DOC0u1K+WZnsfVTiW/wYvsl6ufSh8UWKSGY7+jBOZ2p 1zyHGPTk+OMazySXVJiAOCqi5w== X-Received: by 2002:a05:6870:898b:b0:da:b3f:3246 with SMTP id f11-20020a056870898b00b000da0b3f3246mr12866oaq.246.1648044913585; Wed, 23 Mar 2022 07:15:13 -0700 (PDT) Received: from [192.168.1.128] ([71.205.29.0]) by smtp.gmail.com with ESMTPSA id gk6-20020a0568703c0600b000de4880b357sm2264202oab.50.2022.03.23.07.15.12 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 23 Mar 2022 07:15:12 -0700 (PDT) Subject: Re: [PATCH 2/3] cpupower: Introduce a new unit test module for AMD P-State driver To: Meng Li , "Rafael J . Wysocki" , Huang Rui , linux-pm@vger.kernel.org Cc: 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: <20220323071502.2674156-1-li.meng@amd.com> <20220323071502.2674156-3-li.meng@amd.com> From: Shuah Khan Message-ID: <4c13d97e-1471-5642-39dd-d381fa441753@linuxfoundation.org> Date: Wed, 23 Mar 2022 08:15:11 -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: <20220323071502.2674156-3-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=-3.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 3/23/22 1:15 AM, Meng Li wrote: > amd-pstate-ut is a kernel module for testing the functions of AMD P-State driver. > > It can verify the required conditions and basic functions of AMD P-State > driver before integration test. > Can you elaborate on the need for a kernel module? It would be helpful to know tne value the mdoule adds and why it is necessary. Include details on why it can't be done as part of the user-space program. I am not saying it isn't necssary, I would like to know the reasons before I review the patch. Also if this is a driver test, why not use other test frameworks such as kunit or kselftest. cpupower is user-space utility and driver debug code would not belong in here. thanks, -- Shuah