Received: by 2002:a05:6a10:3150:0:0:0:0 with SMTP id m16csp1490726pxc; Thu, 14 Apr 2022 10:02:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwfFu+lmIbmt8bIEO9hJK1KBeWewFFTE4SLW3Y0nf0J2YIYWMNXGC/MXOrwRoxy1tq0lU86 X-Received: by 2002:a63:c00e:0:b0:398:a2b7:be6 with SMTP id h14-20020a63c00e000000b00398a2b70be6mr3114110pgg.214.1649955760131; Thu, 14 Apr 2022 10:02:40 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1649955760; cv=pass; d=google.com; s=arc-20160816; b=GuFAbxF5aeoiVceNn2kJWl8qNWnutjLGotWkAAMHFB+viGg0HkoYxVL2FMncIAmO4Z z6hgyMb/nGIDWM6LMxo5awTH+ggbwXAq6i0XlUuTkuTzg9uBq3PQlCxPBhekQIFINGb9 UITyqLesKBAj5Hxmco572yt8cvtVRdECcHQOx/lfv1Ax9WRhgx7CkEBaJTHfe+7PSzkX MAMXo0UfFb0P/pgBPfbH7NZHzTmX0XfX0Dq9qqUiy/yYFolsg5UuWDWYIzAHJTgrE+zt 4pwabdemy07ghuL3XtdqbRddp9P+M6qMm7CjTNZ1aJBq9TAq79ZvUI6eF3SFOSEShs8b I9zA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :in-reply-to:from:references:cc:to:content-language:subject :user-agent:date:message-id:dkim-signature; bh=hdQr/51zBf73qwOg2uMuusQrGyU6k5n47k8UnzePFHQ=; b=0mzBOj+2FLIJ+OQGAR9ZXvRc2SdxB9waLsgJYCyOE6vlRK86zn/+lwO1neFdWJ9PPU XVg7oD1xe1rsJM0YOLaDV0ETM/B8NWNVMkMEyjcaN7Gx/NAmOHTmfcMjozICTWxgZ0+m lRucLfsu1JGsNHOg7gX1jhHTxVnRh7RX9pm22sLvUBO38/75FJIA66c0Dn0J97ih1Vmb sYFYq/CtI1YdfqYm0mqNPy66GQy+zGeqS0Bbp2Gx8alAyTtevJPHw27yP+WNRTjgSFj4 sg9DrmAsHqDR+JQp+rhSFix7Fp0m23YtupcswhN78fn5z4bz9YBfDJOohp6Z5T3aiVvr d4MA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=TFvKYIwW; arc=pass (i=1 spf=pass spfdomain=amd.com dkim=pass dkdomain=amd.com dmarc=pass fromdomain=amd.com); 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k19-20020aa79733000000b004fa7bbf2aefsi381739pfg.304.2022.04.14.10.02.12; Thu, 14 Apr 2022 10:02:40 -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=@amd.com header.s=selector1 header.b=TFvKYIwW; arc=pass (i=1 spf=pass spfdomain=amd.com dkim=pass dkdomain=amd.com dmarc=pass fromdomain=amd.com); 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235318AbiDMT6d (ORCPT + 99 others); Wed, 13 Apr 2022 15:58:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35708 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232067AbiDMT6b (ORCPT ); Wed, 13 Apr 2022 15:58:31 -0400 Received: from NAM11-DM6-obe.outbound.protection.outlook.com (mail-dm6nam11on2046.outbound.protection.outlook.com [40.107.223.46]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F0C905D64D; Wed, 13 Apr 2022 12:56:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Msy4UDJe4DK+4mMHp7qo3tq+YKgyD1fQ7j6r8k/A0ReaCwUGiMaBH6KWTeBPjUklFoOZcIehYOQT2dmHBHhqMveXlZdswiynLWcCJ5axLBCdUsSpRObydyycmD2qztV89mtcBF1l1+nkD96qHODo5C0SG8BEzue9ahBAwndq8cbLNbLC3H3LOTIjpq1/yq0JBJOkWXNk1XvBCfWEmQBzkIz6wUGxYPY7MLOLgMM33CjEdZxCBq0p659ZRQ9F62jSN9c9pCk9pOQfK3Smyt1XriFKAB6jg1KmDiZqpSGRlWSxSOhD/tqDaE111zEuKEuqCKkLWLbGxc+7qPMYx6rHRQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=hdQr/51zBf73qwOg2uMuusQrGyU6k5n47k8UnzePFHQ=; b=MgQ7VHAFwuQTPa0rPR8R0+DDCsYoCE1sKcC3AIsqtsQQjNZVi4xN7WNvMM0jXspkrBDDE92NWGt+2nVzMdtcEvPt5cSTZDUctE3qaDZGBY2xZCWDV1lsiVzFx8/uOI+/rEoxu2ld+q3DFx5vmDkQdvqB/HgO5mg9JvJjqiBXodrr/2NxLfAbj8XIcoclUMnFke1ncoS6GyF93JpE8dzPKdMA30kBUS+fzfdSrmnXTjZcld81vzfPn7c1/6k4b5UEJD3lyftcWbK11PNd/LZITWJKoEwfzABWFQKTn8tIy28ZZehrQG4Mxn6OvphyPj4KLqNTZix69flpC+Uw1c2x2w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=amd.com; dmarc=pass action=none header.from=amd.com; dkim=pass header.d=amd.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=hdQr/51zBf73qwOg2uMuusQrGyU6k5n47k8UnzePFHQ=; b=TFvKYIwW4DIpUWQW0WssLCoVuNS1Ip7BH+WwzHV5A/zoMqhYoIX2UlrgInyuXCWnxGD+pWlPfZ44kOOZXrnfVQjlv5uhW16woplZtAiF1oeBUdaZqE3Rj5nuQ9IwI//eb/oo6bbJ+ixyvaEf3tBfnOkjg6eJRrDCmxKevUmLqqA= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=amd.com; Received: from SN6PR12MB4720.namprd12.prod.outlook.com (2603:10b6:805:e6::31) by BL0PR12MB4674.namprd12.prod.outlook.com (2603:10b6:207:38::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5144.29; Wed, 13 Apr 2022 19:56:04 +0000 Received: from SN6PR12MB4720.namprd12.prod.outlook.com ([fe80::c575:d06d:b1ba:c877]) by SN6PR12MB4720.namprd12.prod.outlook.com ([fe80::c575:d06d:b1ba:c877%7]) with mapi id 15.20.5144.030; Wed, 13 Apr 2022 19:56:04 +0000 Message-ID: <1814f58c-1d26-1aa6-25cf-eb51261f8b9f@amd.com> Date: Wed, 13 Apr 2022 14:55:59 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 Subject: Re: [PATCH 2/3] selftests: cpufreq: Add wapper script for test AMD P-State Content-Language: en-US To: Meng Li , Shuah Khan , "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 References: <20220413090510.4039589-1-li.meng@amd.com> <20220413090510.4039589-3-li.meng@amd.com> From: Nathan Fontenot In-Reply-To: <20220413090510.4039589-3-li.meng@amd.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-ClientProxiedBy: CH0PR03CA0421.namprd03.prod.outlook.com (2603:10b6:610:10e::26) To SN6PR12MB4720.namprd12.prod.outlook.com (2603:10b6:805:e6::31) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: ce581afa-0a69-45e0-714e-08da1d87a41f X-MS-TrafficTypeDiagnostic: BL0PR12MB4674:EE_ X-Microsoft-Antispam-PRVS: X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 4hdaa7jB+eSmSAQ3/wKpz2Lf1uV6SGAMUj3ONlmnBA+6unIhYd/QdCs53yDvdeTuZNFv6DaKyiyzE8aAKOtkRalkp/n/0Mum6idOizxyotdaTscNPs0+Gc49n53TTu93lY3Gms4RNbqpQP5HYbyEK0Iby1pCVRb5RlhiffOyeR+/GhTkl+qEyY+JbtlOFBIMcXwNNen886OckBofFb+En1aEtMGaF4geR0WtxC5uUN7D2NbGBwJnG6HIK92ZUgyJFZBd5JXxG5q6K7EncDU5eFT98F03iM/VyCKI2CrW5hC/t7oiQm8OneWQYftxOysE1i+vW6G5ffpPj6udruf/NqlcFz6CadCqERBJe0zL97cISJ3SRHsVk1pmMx1xQZAFNemy0W21YtbyBhIXFEj3E7GujsHOflTTdbDXHxND7j1NRHAsAjQdHdTnYgY7PGfvOYptflSbW599onnbrJCoTKZOR/baBqyL4Twdn3AyyYc+0Vta40llePCp7IEN8R3oCRPnMGaHUxPSBNwqm4RfG93piboH2+dnuEQr/tOtkHA9LKDqKyoWjmcTjATcATqVtJSII/5MHIqm8+DFfYSV8ykJC1HiCzUVZ4SKsMRZu8EfhQ3CUzD3jLK/yoaGD+affuDzoH06iUOgiOuhYtT6IqrUrYIBI1rw4s1Kq6xBYpj+Hbj0nfXNGd+WSTa0pki6f5HaKl90qkIph6owxLC5mBlMKvBFhuqqEUJx0rr2iT8= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SN6PR12MB4720.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230001)(4636009)(366004)(4326008)(31696002)(83380400001)(8676002)(66556008)(66476007)(36756003)(2906002)(186003)(26005)(110136005)(316002)(6486002)(2616005)(54906003)(508600001)(31686004)(38100700002)(66946007)(8936002)(6666004)(5660300002)(6512007)(53546011)(6506007)(45980500001)(43740500002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?cDdNOTcrQUtpcEQ5dzhSd2hDT0pVZEVKSEliNEgyWVl0RWlOekovY3VOZVB4?= =?utf-8?B?d1gwdnJqQWhtVWFLemdXRWhVYUZKeWFqS3RhVmpXdm1wREsvc0tLdllWNytx?= =?utf-8?B?VUxiK1hBQlNBcnhBdEFWYTI1WHJaNjhTU2hnVUZZWUlwdnBLbkVWMmpSdVR3?= =?utf-8?B?TW5JY0VKR2N3UDNraVN4eFoyVTk1eVZ6T3FUNi8zMFRoOElrK1ZiMVdjZUFW?= =?utf-8?B?cGNNY0xXc0xTU1AyZGJDY2xzNjVjUTMydWhqU1dBWk5mRW5aOUNPMmJPN3M2?= =?utf-8?B?WGxsTGt3RGEwVUdoR1RRMUxuczdGRWpEM3Z6OEx0ZE91aENCb1o3MEdWTEp2?= =?utf-8?B?dDNmajNNK3N6Zll5NmpPVE5hZHpzbDludGNSMHBTbURaMmwxTlFHdGY1ejNZ?= =?utf-8?B?RmY2VmpmWEIzQ1RVdFUvZThneWNjb1oyMVdWKzR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QVdhN2Z1SlFGa2hUbWpMYnl4Z0MwUmhlMjZmNmRwUGpncENnNkxa?= =?utf-8?B?Z004L0pEdXdBNEl6NXlTN2JzSlVZMUxHeFhRNmpOSnBGdm1uYzlxZz09?= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: ce581afa-0a69-45e0-714e-08da1d87a41f X-MS-Exchange-CrossTenant-AuthSource: SN6PR12MB4720.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Apr 2022 19:56:03.9223 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: sRVBE0F+jA9mzlfBcZk/qkZ3na48eq0L73T3Lp5TM+h/wJ4Z7ZM9g7AJ8DUL/0RlVb9eCThBPjRugJ043hwcBw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL0PR12MB4674 X-Spam-Status: No, score=-3.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,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 4/13/22 04:05, Meng Li wrote: > Adds a wrapper shell script for the amd_pstate_testmod module. > > Signed-off-by: Meng Li > --- > tools/testing/selftests/cpufreq/Makefile | 2 +- > tools/testing/selftests/cpufreq/amd_pstate_testmod.sh | 4 ++++ > tools/testing/selftests/cpufreq/config | 1 + > 3 files changed, 6 insertions(+), 1 deletion(-) > create mode 100755 tools/testing/selftests/cpufreq/amd_pstate_testmod.sh > > diff --git a/tools/testing/selftests/cpufreq/Makefile b/tools/testing/selftests/cpufreq/Makefile > index c86ca8342222..c32adc59a1f4 100644 > --- a/tools/testing/selftests/cpufreq/Makefile > +++ b/tools/testing/selftests/cpufreq/Makefile > @@ -1,7 +1,7 @@ > # SPDX-License-Identifier: GPL-2.0 > all: > > -TEST_PROGS := main.sh > +TEST_PROGS := main.sh amd_pstate_testmod.sh Instead of making the amd-pstate testing a separate test program, should this be part of the main.sh testing program? Perhaps adding a "driver" test function that can check for the amd-pstate driver being in use and run the test module. -Nathan > TEST_FILES := cpu.sh cpufreq.sh governor.sh module.sh special-tests.sh > > include ../lib.mk > diff --git a/tools/testing/selftests/cpufreq/amd_pstate_testmod.sh b/tools/testing/selftests/cpufreq/amd_pstate_testmod.sh > new file mode 100755 > index 000000000000..5398ad568885 > --- /dev/null > +++ b/tools/testing/selftests/cpufreq/amd_pstate_testmod.sh > @@ -0,0 +1,4 @@ > +#!/bin/sh > +# SPDX-License-Identifier: GPL-2.0 > +# Tests the AMD P-State unit test infrastructure using amd_pstate_testmod kernel module. > +$(dirname $0)/../kselftest/module.sh "amd_pstate_testmod" amd_pstate_testmod > diff --git a/tools/testing/selftests/cpufreq/config b/tools/testing/selftests/cpufreq/config > index 75e900793e8a..374a8adbb34c 100644 > --- a/tools/testing/selftests/cpufreq/config > +++ b/tools/testing/selftests/cpufreq/config > @@ -13,3 +13,4 @@ CONFIG_DEBUG_LOCK_ALLOC=y > CONFIG_PROVE_LOCKING=y > CONFIG_LOCKDEP=y > CONFIG_DEBUG_ATOMIC_SLEEP=y > +CONFIG_AMD_PSTATE_TESTMOD=m