From patchwork Wed Nov 29 06:54:31 2023
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
X-Patchwork-Submitter: Meng Li
X-Patchwork-Id: 171112
Return-Path:
Delivered-To: ouuuleilei@gmail.com
Received: by 2002:a59:a5a7:0:b0:403:3b70:6f57 with SMTP id d7csp161396vqn;
Tue, 28 Nov 2023 22:55:43 -0800 (PST)
X-Google-Smtp-Source:
AGHT+IFDiJhwvfYcjNsbqOUlQsVEqPBEFNI9bQHlPB+EZjtcHMQIBwYQdEPuXEVeYxQeqpXLhyx/
X-Received: by 2002:a17:90b:1b44:b0:285:b0fa:f7c6 with SMTP id
nv4-20020a17090b1b4400b00285b0faf7c6mr14037380pjb.10.1701240943596;
Tue, 28 Nov 2023 22:55:43 -0800 (PST)
ARC-Seal: i=2; a=rsa-sha256; t=1701240943; cv=pass;
d=google.com; s=arc-20160816;
b=Uo9K3l54mBFZTzCQ4f3WPimwOPr2NEHRza7gA9PCmn1C5twz7hPNUU/60SRj0cOPHc
gwA+TelLd+gdIWbnEXELlkOhHBDRq9QjayZvA+WnmjTIMZvsBreUfUIAG3fKrxD+ec/1
ebAVPMje1gGBCzJgPne8Akp14AUm6kuDf5w9pEm97qZz+wMov5+7DWz3Q3+iCd1sjBGI
eHhWJRA4L/66IRhgiLkJ7MwVY5mb/fnG4+xtPXjZbEYmqqRLwujvF3htEEwXeUYJnE6b
45I3DJiTNMmMv4cnBG47bz/nvPbUdtII0NY1cOvf0adtcQmquI6NqXvhgBE+lE3NH6rK
O1tg==
ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com;
s=arc-20160816;
h=list-id:precedence:content-transfer-encoding:mime-version
:references:in-reply-to:message-id:date:subject:cc:to:from
:dkim-signature;
bh=Vm9yAnna9PbPXFuDczUjxmJIYrtHj0wuHxiF61/ySC8=;
fh=hGvksXpWJomenCq+IRP0QZoot/B1Zo6LHbgOlSKBIRE=;
b=a5yjNVgkUPjfsYOjT4j8yzuat1auqU6AuPjVkdS/FZeqzdjS6FCmLHpeIHGZceZg+H
L3UvUsTElR9KLGAZe2Wib5b/tJAMhXK273SzoC0jibQ6QG5acaNPqEZe3/ySCHm29YHm
yz8XvWO6QoLgM0kc2Cs5HhOiTihdvi5RHsHqpr52Y5WHt1Bje8ck5MKdvltfVyuYVNsk
plbdmhQL5AS9lWnx4oYF3iHk0Kix9YJUOkovOAgMnitF6wg8XCZ9Yht1YVaNS27aUpk5
jLstOpfqdam3CQEGA3Z+n06L5JuxGgXegCVVrfjnUOtCGhzdS3vyKDGJsAnHjSBivJ97
+jvw==
ARC-Authentication-Results: i=2; mx.google.com;
dkim=pass header.i=@amd.com header.s=selector1 header.b="GezVJ/Gp";
arc=pass (i=1 spf=pass spfdomain=amd.com dmarc=pass
fromdomain=amd.com);
spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org
designates 2620:137:e000::3:6 as permitted sender)
smtp.mailfrom=linux-kernel-owner@vger.kernel.org;
dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com
Received: from pete.vger.email (pete.vger.email. [2620:137:e000::3:6])
by mx.google.com with ESMTPS id
s20-20020a17090ad49400b00283a1ef6feasi720405pju.147.2023.11.28.22.55.43
(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
Tue, 28 Nov 2023 22:55:43 -0800 (PST)
Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org
designates 2620:137:e000::3:6 as permitted sender)
client-ip=2620:137:e000::3:6;
Authentication-Results: mx.google.com;
dkim=pass header.i=@amd.com header.s=selector1 header.b="GezVJ/Gp";
arc=pass (i=1 spf=pass spfdomain=amd.com dmarc=pass
fromdomain=amd.com);
spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org
designates 2620:137:e000::3:6 as permitted sender)
smtp.mailfrom=linux-kernel-owner@vger.kernel.org;
dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com
Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0])
by pete.vger.email (Postfix) with ESMTP id 8D18981CCDA7;
Tue, 28 Nov 2023 22:55:38 -0800 (PST)
X-Virus-Status: Clean
X-Virus-Scanned: clamav-milter 0.103.11 at pete.vger.email
Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand
id S230009AbjK2GzL (ORCPT
+ 99 others); Wed, 29 Nov 2023 01:55:11 -0500
Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60450 "EHLO
lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org
with ESMTP id S231393AbjK2GzJ (ORCPT
);
Wed, 29 Nov 2023 01:55:09 -0500
Received: from NAM12-DM6-obe.outbound.protection.outlook.com
(mail-dm6nam12on2067.outbound.protection.outlook.com [40.107.243.67])
by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2A59819A6;
Tue, 28 Nov 2023 22:55:15 -0800 (PST)
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none;
b=HFRUALwiKwsQjXnkIA1bJ+7CfXKO36yyZikhTIGf1cxnxs7csiqmgmxcHSLfBJwOrR97jTW11CnClMKyDBe/4e+Fi3xROIcMXzHS5JN+kpU+B+xInrrf0CAe5hmT3LP5fhZQwLf6EHa09LslDPbxNL9Ngc7tzuL/FeRjgiiR1PNj6ewwM7JlC6F7m9cWIF+VPaa8lm0O7SJWtSerD8Gs+axuLZtTR+i59t+hNixSOdNESulJVa7Z69QX/FpGjALQFsI5qfYcLpFs502UzASRSQQ+NQRL6cUcKKZWS9UmE4h0cwkcE/h3whyvk2hzlGjz8vS0lwjW1GIwD6YAjPEJ+A==
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=Vm9yAnna9PbPXFuDczUjxmJIYrtHj0wuHxiF61/ySC8=;
b=lgaxxDATQm+iGZAxN8PtVK6Mqdk/ZqBDSwXgWVrYyt8/XwA3fT677DVYrCLP5+Oul3I4++cWGzEa48NQh/Bdz3lS6VdtiYjMiCfe+RwzOGmLfq8Bg74KSc2r+Hfvx+SAIM7nAnCMlHxnigY/FdXEO/SfskCDIjbe0cUXbP078BGk2qMykll/CWaWjpo2V/yDWWcFiie/YiqRjMK4twMze19165vq2eM/jD4jw2n/AL4947yv5b3/Jy5S8uyyQVDuweSJaI0ZFnb4yFsv5h4jDdJPKgZJKNZ9+bWGNPr1BlSlkr6UVGs3AfPWbId98Eu93qZ88o/wU/mJ6+twaRwvkg==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is
165.204.84.17) smtp.rcpttodomain=intel.com smtp.mailfrom=amd.com; dmarc=pass
(p=quarantine sp=quarantine pct=100) action=none header.from=amd.com;
dkim=none (message not signed); arc=none (0)
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=Vm9yAnna9PbPXFuDczUjxmJIYrtHj0wuHxiF61/ySC8=;
b=GezVJ/GpoaZ0NqaXuoFYec6nWXct2Taq4kIZ/YTVAtNv8qZlXZoCYIPplruv0Lyo+dlRfgCBWSlFdyuU929iDnYHsHRJJ/W0ygaJqE7SJm6LtrOxmbt8fI6zaN+6dpwSEQhsXQTGxRB4vCT2LIqXipcR0KLJAkPJWXvFVBrEUSw=
Received: from PR3P192CA0001.EURP192.PROD.OUTLOOK.COM (2603:10a6:102:56::6) by
BN9PR12MB5179.namprd12.prod.outlook.com (2603:10b6:408:11c::18) with
Microsoft SMTP Server (version=TLS1_2,
cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7025.29; Wed, 29 Nov
2023 06:55:12 +0000
Received: from SN1PEPF0002BA51.namprd03.prod.outlook.com
(2603:10a6:102:56:cafe::55) by PR3P192CA0001.outlook.office365.com
(2603:10a6:102:56::6) with Microsoft SMTP Server (version=TLS1_2,
cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7025.27 via Frontend
Transport; Wed, 29 Nov 2023 06:55:11 +0000
X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 165.204.84.17)
smtp.mailfrom=amd.com; dkim=none (message not signed)
header.d=none;dmarc=pass action=none header.from=amd.com;
Received-SPF: Pass (protection.outlook.com: domain of amd.com designates
165.204.84.17 as permitted sender) receiver=protection.outlook.com;
client-ip=165.204.84.17; helo=SATLEXMB04.amd.com; pr=C
Received: from SATLEXMB04.amd.com (165.204.84.17) by
SN1PEPF0002BA51.mail.protection.outlook.com (10.167.242.74) with Microsoft
SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id
15.20.7046.17 via Frontend Transport; Wed, 29 Nov 2023 06:55:11 +0000
Received: from jasmine-meng.amd.com (10.180.168.240) by SATLEXMB04.amd.com
(10.181.40.145) with Microsoft SMTP Server (version=TLS1_2,
cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.34; Wed, 29 Nov
2023 00:55:00 -0600
From: Meng Li
To: "Rafael J . Wysocki" ,
Huang Rui
CC: , ,
, ,
Shuah Khan ,
,
"Nathan Fontenot" ,
Deepak Sharma ,
Alex Deucher ,
Mario Limonciello ,
Shimmer Huang ,
"Perry Yuan" ,
Xiaojian Du ,
Viresh Kumar ,
Borislav Petkov ,
"Oleksandr Natalenko" ,
Meng Li
Subject: [PATCH V11 1/7] x86: Drop CPU_SUP_INTEL from SCHED_MC_PRIO for the
expansion.
Date: Wed, 29 Nov 2023 14:54:31 +0800
Message-ID: <20231129065437.290183-2-li.meng@amd.com>
X-Mailer: git-send-email 2.34.1
In-Reply-To: <20231129065437.290183-1-li.meng@amd.com>
References: <20231129065437.290183-1-li.meng@amd.com>
MIME-Version: 1.0
X-Originating-IP: [10.180.168.240]
X-ClientProxiedBy: SATLEXMB04.amd.com (10.181.40.145) To SATLEXMB04.amd.com
(10.181.40.145)
X-EOPAttributedMessage: 0
X-MS-PublicTrafficType: Email
X-MS-TrafficTypeDiagnostic: SN1PEPF0002BA51:EE_|BN9PR12MB5179:EE_
X-MS-Office365-Filtering-Correlation-Id: a814af3d-e684-4175-6eac-08dbf0a821b5
X-MS-Exchange-SenderADCheck: 1
X-MS-Exchange-AntiSpam-Relay: 0
X-Microsoft-Antispam: BCL:0;
X-Microsoft-Antispam-Message-Info:
0Ez1XdVJnJBY0/eqf258nMB7qvjDo7N/jPdCsn5tMsI6QLeGz0nA4bfuTKH3WS8/GYJjzFKwFAtNp1tMmWrTBvOdAhCUsRtrv3VZISCa14ZRaEnnGQuPquF5NvDl9iyKlD0T0WL0kyvxnDfjP2rAJYEUSzf/6X2V4nqqw4Ynr/h4+Gh2pU9ssgQxSQuC44OmcEIN3YdxoG+sar7to/BN3BZNFvahRgOsN2BZ8Emx4WWz1b2KoXYIPJB6maFS7ZMVivLeEHDl2DdZ/lwa8loJec/R7U50/ceTX4o2GnY3tyjZFA9nInnQlqUF3zFsPuVoR2NX1aHdddyiom2KJOY/UceaNzXRxxU+r2yxtzc0FZgkxSiRgj62XqCfVTTanMe0GzyLdnzIT1Mu4sPACpuedygZqOeeTQQz2TgYFGevSMnUTp9zyf/0EbyUNT1eVFX+Z5wR7+slFiVX7w1ABDrnD4VJu36PMCjebOmLiIS9eeeUUUls2mJfYFPlBRk9Cq02Gz68kBCFvQgO6Ns9GXDN2azH+Kt/n1bRbnDC7e1oI3yfFN/gk1yzQQNWKsFqYPtpO32Tfy6x6VNr2qZaHx4c1E4ICa/wUngh783AAPgONE8BrUTpDPHLnUVCAQKV9k/6k3rKJ/Wd9XVagEl4kIw93YMymjkOmjQJKKmeBZR8idZCia61GQnVn4mVKoWonRZU6UdsOXv5qyyvQh9ohIB8qCM2ROVwiQiugPsicr5tSyF5h96Jt25u1eaGFvGLC/tqJ9YPeIXRMqCQg8Xl3ieuCA==
X-Forefront-Antispam-Report:
CIP:165.204.84.17;CTRY:US;LANG:en;SCL:1;SRV:;IPV:CAL;SFV:NSPM;H:SATLEXMB04.amd.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230031)(4636009)(136003)(346002)(39860400002)(376002)(396003)(230922051799003)(64100799003)(451199024)(186009)(1800799012)(82310400011)(36840700001)(46966006)(40470700004)(6666004)(8676002)(8936002)(4326008)(7696005)(316002)(54906003)(110136005)(70586007)(70206006)(6636002)(478600001)(40460700003)(81166007)(47076005)(356005)(4744005)(36756003)(41300700001)(1076003)(86362001)(26005)(36860700001)(16526019)(2906002)(2616005)(40480700001)(5660300002)(83380400001)(426003)(7416002)(82740400003)(336012)(36900700001);DIR:OUT;SFP:1101;
X-OriginatorOrg: amd.com
X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Nov 2023 06:55:11.3142
(UTC)
X-MS-Exchange-CrossTenant-Network-Message-Id:
a814af3d-e684-4175-6eac-08dbf0a821b5
X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d
X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp:
TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d;Ip=[165.204.84.17];Helo=[SATLEXMB04.amd.com]
X-MS-Exchange-CrossTenant-AuthSource:
SN1PEPF0002BA51.namprd03.prod.outlook.com
X-MS-Exchange-CrossTenant-AuthAs: Anonymous
X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem
X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN9PR12MB5179
X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED,
DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,
MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,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 pete.vger.email
Precedence: bulk
List-ID:
X-Mailing-List: linux-kernel@vger.kernel.org
X-Greylist: Sender passed SPF test,
not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]);
Tue, 28 Nov 2023 22:55:38 -0800 (PST)
X-getmail-retrieved-from-mailbox: INBOX
X-GMAIL-THRID: 1783880423581168173
X-GMAIL-MSGID: 1783880423581168173
amd-pstate driver also uses SCHED_MC_PRIO, so decouple the requirement
of CPU_SUP_INTEL from the dependencies to allow compilation in kernels
without Intel CPU support.
Tested-by: Oleksandr Natalenko
Reviewed-by: Mario Limonciello
Reviewed-by: Huang Rui
Signed-off-by: Meng Li
Reviewed-by: Perry Yuan
---
arch/x86/Kconfig | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig
index ad478a2b49e2..77b1af90f7a2 100644
--- a/arch/x86/Kconfig
+++ b/arch/x86/Kconfig
@@ -1054,8 +1054,9 @@ config SCHED_MC
config SCHED_MC_PRIO
bool "CPU core priorities scheduler support"
- depends on SCHED_MC && CPU_SUP_INTEL
- select X86_INTEL_PSTATE
+ depends on SCHED_MC
+ select X86_INTEL_PSTATE if CPU_SUP_INTEL
+ select X86_AMD_PSTATE if CPU_SUP_AMD && ACPI
select CPU_FREQ
default y
help