Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp1126993rdd; Wed, 10 Jan 2024 09:20:05 -0800 (PST) X-Google-Smtp-Source: AGHT+IHEF5JLRProILsSLn1lJynw1sgligybu50s/6eio2+2k2sGkdVcpKiYUurGZu8k4EBHBs/y X-Received: by 2002:a17:906:d934:b0:a29:11dc:8181 with SMTP id rn20-20020a170906d93400b00a2911dc8181mr604448ejb.50.1704907205629; Wed, 10 Jan 2024 09:20:05 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1704907205; cv=pass; d=google.com; s=arc-20160816; b=w7hPy7yFhxdPNPhQebESvgD4IdDTXxZbh4YHCMyxrNhJzbT4Pktb8cPTYKuUOpqPg+ w0Sldryk68H1hv50IV2S2TzwrU1VUwghzpfXMqGXQMHIOXHlSxHZSGFHDZQl8DpFMjEZ q32d0b5TA7CocfC94HVmR6FLOG7H4uFsNYaF2YuJUKumFUJD9GCOCAjTPyX+2/uaxygq fgQEZpARBlC6M1FNudgJVseCqAh7C96RNdCH0Oi+0xqMQ8jM/kVApeom7uxYmNKp29Zt k1BYkLCn32EQu9BmF5EGrij/6/HeJagB1DlPm+mu63/bl2gGvZ5tGBUqQYEiFS+tV+lv +RJg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :in-reply-to:content-transfer-encoding:content-disposition :references:message-id:subject:cc:to:from:date:dkim-signature; bh=OMB0Qp+BXhNXehwVIdn7Dm8bnxsEXf1pmsJad5Mtv6Y=; fh=lVI3NdnhPkSo7/AGUt/wcKHBT9QV3Em9KEr37eQ0gCI=; b=hKhvomdSMyBs/u/z/tyaHP35ZRMGufXFFDFj26uu4JlitnHOVgr3AerqVjOMq2oIkp 1Tl+8svwFGOIippPM+WkbSzn/4mtfnwGCRBCoPUycMWdQQqA3XEXNf7+1E2bjVGv4SXd Zx1WJWp3gO8d3XKXZ9OZp0FTLSsh/XEvcGH9cH+rfVinB4Gh4Hg8wR0QCIPe2VSXLDIo qJMvVM/Kh8gIttdwuNq3R+IspjuhhRe2vFBjtN/y5Ek5//E2Se7gbuEpm3wg9kk9Gfa4 E0FtHexicVtqVkF5EDeObHePv6emQXrAQucEoeF2xvsjwrC0tORsVYsOaj6VEt9R6+s9 Q+mA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=5nMxCzdt; 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+bounces-22519-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-22519-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id h7-20020a1709062dc700b00a2c29ce2716si37224eji.315.2024.01.10.09.20.05 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Jan 2024 09:20:05 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-22519-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=5nMxCzdt; 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+bounces-22519-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-22519-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 397F51F21990 for ; Wed, 10 Jan 2024 17:20:05 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4ACE04CE1C; Wed, 10 Jan 2024 17:19:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=amd.com header.i=@amd.com header.b="5nMxCzdt" Received: from NAM11-BN8-obe.outbound.protection.outlook.com (mail-bn8nam11on2041.outbound.protection.outlook.com [40.107.236.41]) (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 8F3DE4CDFE; Wed, 10 Jan 2024 17:19:51 +0000 (UTC) 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=dKLt0cWI20zWMfU4+LlPJGFgQfbKDOf0Oyze9fMc0L3rnTRSilT9X3uLJsEpMrUnnyWnXaUMyJfb6yYQ2ZH6yIHSfd2zLjSQvVfJx176srR2GbybmiG8DsBWnDz9gYBP1hUNwgScNDdPGUCYnlGRAZe9f0TulWiAWIvzcLr1zKCF/XPHjijoZSqaf1F7t3kyJLl2VmUyNkV+mtnxVL3ehfjDD6O3l5TWT8q+iasrTlDkEJbR7UlcWpvkFbQsIVw5EtcmWj7dx44z74X6lnU2tKwvIHrPn5qniziyyOA5ITpQSVMUrEtuhFqBoc/7QkzoMqmuRgsWwlYxiBLf7nM6dw== 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=OMB0Qp+BXhNXehwVIdn7Dm8bnxsEXf1pmsJad5Mtv6Y=; b=MA3v1V/LmIGKI/OKMA32rJt4b8R86Fd4ZbNWiGbfORZ5CDQwVAqtxAIOwZp8eiEBQTrjNK1a17TXdsEm/PkZf9zCxH0Z/KlT/9vK7WH9UaQ+CrzZLZ+Ke7g/Dcz+eOhf3pz5gidseHDXHa10IsTEVNror1vGFLm74Z3KFAOLnKPAlknVCGo4wMIF9IjZT8hfpKMjVaM0a0RCsh0QeRhhKrT4Tz1lhmtjgEVyMC7MTxRyL3T+8tRNL+XLgSy1MhFQkER8igF9dZa1ERzbhRBgpN8/a/B6BwIHgt0LZ6JUuD51EDi8m3ugTO/elHJIc3SQO+mq8MICzdWXQSdIBfniDw== 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=OMB0Qp+BXhNXehwVIdn7Dm8bnxsEXf1pmsJad5Mtv6Y=; b=5nMxCzdtvb0g5kkVjkEGvt5cNTcfBwg57SOXdh/0U8H2N0MQRvgnrP/StXYBiSOGeTwgOU8FrSEdaBlAyiaMPt0QIz1moQE8rPWiwF3Sw320nClWriOfpAl5kIGRqy/RK5RVdLIn84/0RM18sfqfvsjhv+54XDnGcNOx+nHFDVc= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=amd.com; Received: from SJ2PR12MB8690.namprd12.prod.outlook.com (2603:10b6:a03:540::10) by PH7PR12MB7872.namprd12.prod.outlook.com (2603:10b6:510:27c::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7181.17; Wed, 10 Jan 2024 17:19:46 +0000 Received: from SJ2PR12MB8690.namprd12.prod.outlook.com ([fe80::9b8e:816d:20b9:9845]) by SJ2PR12MB8690.namprd12.prod.outlook.com ([fe80::9b8e:816d:20b9:9845%5]) with mapi id 15.20.7159.020; Wed, 10 Jan 2024 17:19:46 +0000 Date: Thu, 11 Jan 2024 01:19:25 +0800 From: Huang Rui To: "Rafael J. Wysocki" , Erwan Velu Cc: Erwan Velu , Viresh Kumar , "linux-pm@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH 2/2] cpufreq/amd-pstate: Adding Zen4 support in introduction Message-ID: References: <20240109175844.448006-1-e.velu@criteo.com> Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-ClientProxiedBy: SG2PR02CA0084.apcprd02.prod.outlook.com (2603:1096:4:90::24) To SJ2PR12MB8690.namprd12.prod.outlook.com (2603:10b6:a03:540::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: SJ2PR12MB8690:EE_|PH7PR12MB7872:EE_ X-MS-Office365-Filtering-Correlation-Id: 1db2b178-26ec-4e51-4bdf-08dc12005789 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: vvIxaRw8EvzuaL1Wf+tnpcRytLo8fd3KQOGyOEX/cDLrXwSs/m2U/2f84oRoHo6qlcAu94RBTSbquv5IRWZf2UVcLpk/yxz3HQsSYxSRImVZP/Px12FB9lMccVkDT2i5LCmKUWI5QxK1hjZYQ7h5xrgKbemSqBmtr+jpriEPNDI3bCzT0A87+/B8n2hMQydRD6NBILmnSL58MpD9yX9kQmUJzQ5Q1SfoRXV5lnNWAyscJZsAYxZoCatLU44LC+tSTeLnp+1nbzveNZnhsfh7tLyDJLErbwdUhetTctIOYIyM1w9ZzQ+/V5aj8OkauszNog8krL5RqLzA7MhZEFU+4lAuoEm035SBiJVX35q9OVlPo9GYZUoNODo+ybgIxJmT28ZgeJG3hngvc5s1N5jnVORvXJ0Te0MSHJThLGpdijevPz8GoynnISwupo01u2YhRbj12nlDyHgjWWIj+XyC4G+MTujEvKhrH0Hn36jfF02ce5x55kUtHoTOw/EFi2gqUtnD03hsB3QwBKmFYRDALGJhSgOTJSLuS0qs39HLWDn62agt4hSzUySUL7eDqVJb X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SJ2PR12MB8690.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(39860400002)(366004)(376002)(136003)(346002)(396003)(230922051799003)(186009)(64100799003)(451199024)(1800799012)(26005)(4326008)(478600001)(8676002)(6486002)(8936002)(66556008)(66946007)(316002)(110136005)(66476007)(54906003)(83380400001)(6512007)(6666004)(53546011)(2616005)(6506007)(5660300002)(2906002)(41300700001)(36756003)(38100700002)(86362001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?d3U2Y2xxOE9CNzVQbjVnWE9vc2Y5OVZUOVRCbzFuVTZaVzRKaG90QWtvMzQ5?= =?utf-8?B?QlVFZElUWFU2WXByakhEQk1paXFtTFhKK1hyc3N0NVFhcHBLYnV5TlRZckxV?= =?utf-8?B?cHZqMWVoWUFkYnRFOU0ybWZiYVB4SXZ4RUxuT1UwZ2s5S3dVNFJuUGtNWkpl?= =?utf-8?B?YkJmd0wwY3VRRWhYVkg5SkFJN2xDUFhZZFdhS3ExOHBjY3BNRWVsWjZ5aktm?= =?utf-8?B?ZWE3TUVaRzJhM2xsMHE4UUsvTThEWj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ZzVKZE12NkpNRXBpbjlxbDI1UEZ4TDVXVG01enltdXJOTzJKbTV1ZEJNZGU5?= =?utf-8?Q?3EKS6xgaxpgdxLCyFwjJBspMf?= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: 1db2b178-26ec-4e51-4bdf-08dc12005789 X-MS-Exchange-CrossTenant-AuthSource: SJ2PR12MB8690.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Jan 2024 17:19:45.9848 (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: DXHTvlZ2PS0X3ErgD4gJFKy0XFkYxQkd11zoCmgiBe2aTRrv/C9ynlSCOnOjTvOYj8u6NipNLoDsp0hP5T5QSg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH7PR12MB7872 On Wed, Jan 10, 2024 at 10:21:20PM +0800, Rafael J. Wysocki wrote: > On Tue, Jan 9, 2024 at 6:58 PM Erwan Velu wrote: > > > > amd-pstate is implemented on Zen4, adding this architecture in the > > introduction. > > > > Signed-off-by: Erwan Velu > > --- > > drivers/cpufreq/amd-pstate.c | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > diff --git a/drivers/cpufreq/amd-pstate.c b/drivers/cpufreq/amd-pstate.c > > index 1f6186475715..9a8d083f6ba5 100644 > > --- a/drivers/cpufreq/amd-pstate.c > > +++ b/drivers/cpufreq/amd-pstate.c > > @@ -14,7 +14,7 @@ > > * communicate the performance hints to hardware. > > * > > * AMD P-State is supported on recent AMD Zen base CPU series include some of > > - * Zen2 and Zen3 processors. _CPC needs to be present in the ACPI tables of AMD > > + * Zen2, Zen3 and Zen4 processors. _CPC needs to be present in the ACPI tables of AMD > > IMO, it would be really nice to avoid extending this line so much, but > this is up to the AMD people. Agree. Actually, we will use this driver for all future AMD CPU generations that starts from paritial Zen2. > > Also, while you are at it, "include" in the first sentence should be > "including" and a new paragraph after "processors." would make this > comment easier to follow from the logical standpoint, because the > first sentence is about the supported platforms and the second one is > about additional requirements (ie. something else). > How about modifying here as "partial Zen2, Zen3, and future processors"? Thanks, Ray > > * P-State supported system. And there are two types of hardware implementations > > * for AMD P-State: 1) Full MSR Solution and 2) Shared Memory Solution. > > * X86_FEATURE_CPPC CPU feature flag is used to distinguish the different types. > > --