Received: by 2002:ab2:69cc:0:b0:1fd:c486:4f03 with SMTP id n12csp546365lqp; Tue, 11 Jun 2024 11:50:23 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXGVe6/yRdv9vym6qaoJ4hnD5hv7E4PP6CJ7sI/AK2MWzzVegZ7wKdLlhcD99REh446o9Nhd+iRlO4hiE8q3+bN1Y+YDtOIG/6Ceu+lMA== X-Google-Smtp-Source: AGHT+IG1lfGoBCNfiVHY0Dx6NNb5q7bgNsBBmDyspceSnMx5BuQv/SgT9SuU7yX5hXUB6vMiZPDt X-Received: by 2002:ad4:5f45:0:b0:6b0:92ac:8196 with SMTP id 6a1803df08f44-6b092ac832dmr9783266d6.61.1718131823477; Tue, 11 Jun 2024 11:50:23 -0700 (PDT) Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id 6a1803df08f44-6b06e7e310esi83570676d6.383.2024.06.11.11.50.23 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Jun 2024 11:50:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-210465-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=yxpu79dC; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel+bounces-210465-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-210465-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 24DAB1C2149F for ; Tue, 11 Jun 2024 18:50:23 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A85B7770FF; Tue, 11 Jun 2024 18:50:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=amd.com header.i=@amd.com header.b="yxpu79dC" Received: from NAM04-DM6-obe.outbound.protection.outlook.com (mail-dm6nam04on2082.outbound.protection.outlook.com [40.107.102.82]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B149629429; Tue, 11 Jun 2024 18:50:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.102.82 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718131815; cv=fail; b=fTxrU+itIBXxcTUi2jpjGqsu8d/9gNVfy+Foo8CicMLPU9asFnrKnaCYuZpw2/HDZjwW2GFkcIYNsenOmKMkjYDBYzBcq4VfcdC2AC+SSSmjbEGSKIqRxrVcK1sm4tBWU1lzv8CuX+Ti1/Q2zR9MONa1A9ER50npopclhNGcxYE= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718131815; c=relaxed/simple; bh=uibNdJ89+jvEo59bkIbrJUdIL1oJRq9YXa3BevPeVRQ=; h=Message-ID:Date:Subject:To:Cc:References:From:In-Reply-To: Content-Type:MIME-Version; b=RxGgLojhxxlTDkyN6cVPlXsdhrEigUXmEzKntO15sh3bCQ2nm50D7zs9YKdzeGqgQ1aPfNWbur17KVkF6xL1iYx1VwtulhGpR+mRj/NhgSVy+gt2kqqRZZbAU1B38B+KLAVMjr1t1bmPOE2XzLuJ4i+8eFCnve6AKTpz2h0BUwU= ARC-Authentication-Results:i=2; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=amd.com; spf=fail smtp.mailfrom=amd.com; dkim=pass (1024-bit key) header.d=amd.com header.i=@amd.com header.b=yxpu79dC; arc=fail smtp.client-ip=40.107.102.82 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=amd.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=amd.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=X7wGkI1BwAuoWnMzEOZx5TiTMQgtdP1R8kJ1j15l7VsQ9RLUccebBV5e6bWV4UAvY1wVJuwUNJ92DMu/I87A8L9Sodv82xCEnq0pwdPfQu6TdaoN9B9toCroO0DrmTLybLhlG1ToOBst/D78toPi+JhVr17Z3rXRFqb6WrWoFqboXbSPgpzZ/LpBJTJ0657tySkaPHdw8R0aj3Oi6Yj8Mgu04IJNQR/7TR1Xik3dGGIUFpnbrrQUa5lFn+K1uh+98xxY5E/Yv7DiCoD2Y313t9MciFay5as/jC827R70APxRtmwLHkZXQWCA7rcAt2IRp182meRnwdPjN1HdIGt+oQ== 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=g9gJFHDjOqSxzAdACGtThs5tiVoIARL3x3gACY3bsZo=; b=bEPE/D2VO9qIPiIXl42dcjo8hUco9H0MMLXVCeiQD7Fl9uda/KEFC66CougVm1ybwCIURZgSxofP3HTeND5GT8HvaCTkbjeKjCByrr6RTW9GaUvNPa1IXt7o129M4o7H1i9Pu4Eb3V51GyqOVLj8BOI9/KMnyGOhipVIq7bjN3U4CNBfXM8QsNSovKR4pDYS1gVimPU1uINPRNdCeyb7017OA/PEsbY+Kj4rA7AVOZUOddKItoYzvJ5LthFSyjlwqDuZIH4Exa9kRbROn1ZQnk4R+Ug8g1vwuZOqUf/JVpWK48N1acmAjEfhC6obvfvWJ+1rCYHQt/g/Qar5teL1nQ== 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=g9gJFHDjOqSxzAdACGtThs5tiVoIARL3x3gACY3bsZo=; b=yxpu79dCc3pwADP8oX+aUNH0U7KtFQXou8XeG65yF76VipHSvDY4L82BQpR/muRru889qauS8/hmk9vcAGg9Sj1lbOflBzCokk1l/H5wlto+wRwpr0polndN9sTUhzc9QVaNJRVNyMLbV1gbTI9oLuoBSORx4gR+SCFCt71O8ls= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=amd.com; Received: from MN0PR12MB6101.namprd12.prod.outlook.com (2603:10b6:208:3cb::10) by MW6PR12MB8836.namprd12.prod.outlook.com (2603:10b6:303:241::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7633.36; Tue, 11 Jun 2024 18:50:07 +0000 Received: from MN0PR12MB6101.namprd12.prod.outlook.com ([fe80::37ee:a763:6d04:81ca]) by MN0PR12MB6101.namprd12.prod.outlook.com ([fe80::37ee:a763:6d04:81ca%4]) with mapi id 15.20.7633.036; Tue, 11 Jun 2024 18:50:07 +0000 Message-ID: <7e24a4f2-5f4a-4ed2-ac98-d60158e8e461@amd.com> Date: Tue, 11 Jun 2024 13:50:03 -0500 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v3 03/10] cpufreq: amd-pstate: show CPPC debug message if CPPC is not supported To: Perry Yuan , gautham.shenoy@amd.com Cc: rafael.j.wysocki@intel.com, viresh.kumar@linaro.org, Ray.Huang@amd.com, Borislav.Petkov@amd.com, Alexander.Deucher@amd.com, Xinmei.Huang@amd.com, Xiaojian.Du@amd.com, Li.Meng@amd.com, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org References: <41d5573ed19525f95d79d2af46bd1cce5779d6a1.1718095377.git.perry.yuan@amd.com> Content-Language: en-US From: Mario Limonciello In-Reply-To: <41d5573ed19525f95d79d2af46bd1cce5779d6a1.1718095377.git.perry.yuan@amd.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: DS7PR05CA0106.namprd05.prod.outlook.com (2603:10b6:8:56::24) To MN0PR12MB6101.namprd12.prod.outlook.com (2603:10b6:208:3cb::10) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: MN0PR12MB6101:EE_|MW6PR12MB8836:EE_ X-MS-Office365-Filtering-Correlation-Id: 0853f7be-8bfa-4e7d-8494-08dc8a474ff7 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230032|376006|366008|1800799016; X-Microsoft-Antispam-Message-Info: =?utf-8?B?dFZQc1dEaEtEMGIzWGY3bFNqQ3JpSkorTkRGd24zeG1CRUc4cFc5SzhteTYr?= =?utf-8?B?TCtGbkFnTW50Tm5XY21DaHZmTDdUMXMvWTBQSW51NlkzMjRTVmdobXlJb1g5?= =?utf-8?B?eDcwWnVGQWpLeVRhTzRnZUxRM2E4QlRhRWNxUVI4K1owQ1ZidG5pYmJURFFE?= =?utf-8?B?Y09qRmtJMjM2SkNjZU9JMVZsRTRDaXlkbSs1SWFYbFA1RVlSeURXK2NUTXp1?= =?utf-8?B?RGltaWdRSnNHTU9MOGJCSDEwQVdyTVR6Q2Y5MVp4OWQvcXJFdFBML2tNR1I2?= =?utf-8?B?OXVMMjN1eHkzbUpQNkZwcHM3RU0ySWpTYUY5M2pucEZRNitvV205bGtSUjEz?= =?utf-8?B?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i9qaGs5?= =?utf-8?B?M2J3UU4xYVhWRm56NENBUDYrY2R1RUFiTHdvWVZOZkFKNzYxUXhSZDR3dlBU?= =?utf-8?B?MVhHdjRZc1ZCV0dJSEEyUHBXZDRzV3lTQm05RzUyR0dZa3k3aHNFaE9SU0tx?= =?utf-8?B?MXZvT2toQnF3cForTXFRVU5WUmNqd1VjR0k5QVhpQlcrSm9RUXllVjUwTnFq?= =?utf-8?B?R2o0eE9JOVNydDRUNE5DREQxODVZN1gwRTBkOCtxMk05Wk4xSTg1OW1zdU9N?= =?utf-8?B?TnNrNjlnOFBBYU5pUEpEeDI0UHVsdG9tRFQ4d0FHLytGTDRZTzUvZEtRWUVm?= =?utf-8?B?Umg0Q2xoZHlvVzJGd3lJcUxQSXRzNGRwem4xTzcyVENTd29FZHJjVTd4VW5N?= =?utf-8?B?UHJpb0J6WmZhZkY0VXUySU1jTks3OHpqN0NtN0l0cGMrNStXbTkwUUJ2ZExQ?= =?utf-8?Q?Ywv3oUSfhg7kOJN2yAop?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:MN0PR12MB6101.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230032)(376006)(366008)(1800799016);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?TUpPVjRlZzBnUlMrMWRReXg0Zmd4WWhQam1uSmpzb1lFeCtWVk5yditSSFlu?= =?utf-8?B?UGhGLzBGZ0RYeEpXN2d6N3RqbVhUbGF6TEtYRVdiQS9WYW1obmpSczlMd1Jq?= =?utf-8?B?QnJJN0V0eDJYUDFqSkRidEZEQTdydmJwaS9MYTd3S2Q3YWl5aWpiNmJlb1FC?= =?utf-8?B?V2tYMjdpKzAyZ3ZlV0wvSSs0cEllNmpIUEdIb29MSHNTREttUWF6QzcrRURQ?= =?utf-8?B?R3hKVy96dUJ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LWVhwViszb2VzNGgwelpW?= =?utf-8?B?NEc3OWcvalBRNElLczVXT3hJdDZFWFBRUHc1RitoVkVqdTlESFU3Y3h0am1q?= =?utf-8?Q?PQzguZp2Uo9M8LLFlsDlaAalI?= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: 0853f7be-8bfa-4e7d-8494-08dc8a474ff7 X-MS-Exchange-CrossTenant-AuthSource: MN0PR12MB6101.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Jun 2024 18:50:07.0305 (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: /V3YWjKYWLNdmrJiKkyrElBabweqTvjmhxQwMfsLvn30ZoiyMkgs34XqzPcYvfbUfNccyVtftssiRSX69JVuFg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW6PR12MB8836 On 6/11/2024 03:52, Perry Yuan wrote: > Add CPU ID checking in case the driver attempt to load on systems where > CPPC functionality is unavailable. And the warning message will not > be shown if CPPC is not supported. > > It will also print debug message if the CPU has no CPPC support that > helps to debug the driver loading failure issue. > > Reported-by: Paul Menzel > Closes: https://lore.kernel.org/linux-pm/CYYPR12MB8655D32EA18574C9497E888A9C122@CYYPR12MB8655.namprd12.prod.outlook.com/T/#t > Signed-off-by: Perry Yuan > Reviewed-by: Gautham R. Shenoy Acked-by: Mario Limonciello > --- > drivers/cpufreq/amd-pstate.c | 19 +++++++++++++++++++ > 1 file changed, 19 insertions(+) > > diff --git a/drivers/cpufreq/amd-pstate.c b/drivers/cpufreq/amd-pstate.c > index 36b1964ca8d3..f166b3b94091 100644 > --- a/drivers/cpufreq/amd-pstate.c > +++ b/drivers/cpufreq/amd-pstate.c > @@ -1740,6 +1740,20 @@ static int __init amd_pstate_set_driver(int mode_idx) > return -EINVAL; > } > > +/** > + * CPPC function is not supported for family ID 17H with model_ID ranging from 0x10 to 0x2F. > + * show the debug message that helps to check if the CPU has CPPC support for loading issue. > + */ > +static bool amd_cppc_supported(void) > +{ > + if ((boot_cpu_data.x86 == 0x17) && (boot_cpu_data.x86_model < 0x30)) { > + pr_debug_once("CPPC feature is not supported by the processor\n"); > + return false; > + } > + > + return true; > +} > + > static int __init amd_pstate_init(void) > { > struct device *dev_root; > @@ -1748,6 +1762,11 @@ static int __init amd_pstate_init(void) > if (boot_cpu_data.x86_vendor != X86_VENDOR_AMD) > return -ENODEV; > > + /* show debug message only if CPPC is not supported */ > + if (!amd_cppc_supported()) > + return -EOPNOTSUPP; > + > + /* show warning message when BIOS broken or ACPI disabled */ > if (!acpi_cpc_valid()) { > pr_warn_once("the _CPC object is not present in SBIOS or ACPI disabled\n"); > return -ENODEV;