From patchwork Fri Jan 12 09:25:25 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Meng Li X-Patchwork-Id: 187623 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:693c:2614:b0:101:6a76:bbe3 with SMTP id mm20csp58010dyc; Fri, 12 Jan 2024 01:29:45 -0800 (PST) X-Google-Smtp-Source: AGHT+IFjkfP7AG46RoUd2Op4jAeLmmIV94ud9OYGoJUmOJ+en5iaj0JvLhvc7deTyUnC2OqkGsOd X-Received: by 2002:a05:6a20:7484:b0:19a:392e:3626 with SMTP id p4-20020a056a20748400b0019a392e3626mr815212pzd.75.1705051785691; Fri, 12 Jan 2024 01:29:45 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705051785; cv=pass; d=google.com; s=arc-20160816; b=FKDUpmZefRkL7mDZ0fMKW9ThBRvcvwMOWGfoTsQ9D3nDPfHRc+bTH54mDLRStJHiEf YrqEwbJqAq6N5ypVAa/v5I08ipUqkMJW1irJYa8E6tht0Nd5Te7MAwGlnrFh0YWuENyM 3iQFKpXO9t874XXLLDtAwC8LXMPvwXxvfnVrNu4evNhdlhHLZx2CIzK/aSo6lMXAp+I6 ZkD2CMBOUTJ/fvsj+Nbh3+30y+fFjTt4MMwcils4fya6c1BrDfM6jXX88A2kSk5cqAth 7XzQ2pHyyj0LLv8miImjNJih4r5JwU9DJ39BRtg1O1kf6wsYP6EoSd+ufNOB6p2uBhJ4 ZQKw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=LlSxPWdyV/EtEqLn7HLp6u5EkidVnG0biRkzCBeMMkc=; fh=PfhR5ZB3IHZD1uvzuazx5UXTOhnwF6WV/gS/oOi5eYk=; b=jKVkFIgB81IvOpgUfsJBYsPkDYb3kw1CFouzx7aX7uT5uLhQza+aWbu7COac5RysaS gg0swlEn+bDfjjwolrhbj6H3p13fCgPruo4nkD6hrmM/2meT2R4WbNse/25QjDiqurLf ilt9t/rgACBK2cxyQSBLNqWvbpzBbHej/JTwe+7vAStUmDX1BieR0AR3CgPAjck9yMIF 2tLiGVHKdeoFw9PO/yrGZb+8lI9AX2MBT+8caFsct5lL74xFoRYJMRgVAanViJPFpseG gA/WgF1w/1Jl5XkY8vEH+t+spExlRWxsgpbo+DuTGTvhoCItVaNqZNn3DSIAOlF3SJyY LUXA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=Iaef2Im1; arc=pass (i=1 spf=pass spfdomain=amd.com dmarc=pass fromdomain=amd.com); spf=pass (google.com: domain of linux-kernel+bounces-24474-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-24474-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id em22-20020a17090b015600b0028d9b8af4d4si2845124pjb.29.2024.01.12.01.29.45 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Jan 2024 01:29:45 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-24474-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=Iaef2Im1; arc=pass (i=1 spf=pass spfdomain=amd.com dmarc=pass fromdomain=amd.com); spf=pass (google.com: domain of linux-kernel+bounces-24474-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-24474-ouuuleilei=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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 4B35FB26669 for ; Fri, 12 Jan 2024 09:27:08 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D6D8F5D8F7; Fri, 12 Jan 2024 09:26:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=amd.com header.i=@amd.com header.b="Iaef2Im1" Received: from NAM11-DM6-obe.outbound.protection.outlook.com (mail-dm6nam11on2084.outbound.protection.outlook.com [40.107.223.84]) (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 50B2356B9A; Fri, 12 Jan 2024 09:25:58 +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=WSr0qTE+mGD3l68XQPc/FdFFuao1qLNptcAibk5i0xHjd8BazIWLaHOekL8BkBdx/TnsCuHIzsgZXKXK5+iecciJ5/xgAMQa/Sc4Z7EjyJfNi51So+BLgFd3kIsE/HFULTUGaiHdRmN3OVJaUjpgpjdq3DhgIs2hUA/msd/WvkV73cbYvZbird9uXrPlVI12uU3226Od4E5YH0/WjGDiIRRkBTLOpw3tCaTKCOtQkyELkdXc1kgcQvQoz+gjMINF+uGCqjLwZGCfSLwXxW9yB3qR+o3haeEBUo8gQJXdRIUtQUpXEQKqF+jQRXiz33R7csSzFSsqNNDOG9K9oMcfjg== 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=LlSxPWdyV/EtEqLn7HLp6u5EkidVnG0biRkzCBeMMkc=; b=I3W6VZytydGQLT6QlIGoenPF55mGLiZEnWM6wsVzPmQwXaK0A/2u5BA7NiN1E+0h2juLTeYo8s/l25aIPWDNW+9Dws8y0xFJwMH78LpW1Zo855XNRfp1gECMCY9gA0hHYNf1aD2RwRqvkJnpxCc+v1GQyMaSGjof+8Eu9Jhw1iK0CdOduRITqwOgZ5TQY0M95XbUUdN+uvVgCQtT0JsuimEfyDrHKHBRpoSclV2bAFU/GvVpyCFm75is/ZAjTpWzKsI1Vi3MKQJngU82xRWibfoU+/Vrnv3+h2+44d+xLn6HENVVb8LPO0bGDps3FD2rttKITwm75UXTfowv5IbHRQ== 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=LlSxPWdyV/EtEqLn7HLp6u5EkidVnG0biRkzCBeMMkc=; b=Iaef2Im17u2sKqHKkUTXth6U6153w3kF4KDTeuUJwxAkzIjjq3woORAFBVhQBbLVMS0jLL9Oi9MbK/eGECTmpI+qbz6TL4sDoB7sGzCrcq2uxA08lijo0lWGhcN14Nw0TlPWf0mC7hSAofrSVv9iAPow2W+Q341dYDNTgf53gbk= Received: from DM6PR03CA0016.namprd03.prod.outlook.com (2603:10b6:5:40::29) by DM6PR12MB4203.namprd12.prod.outlook.com (2603:10b6:5:21f::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7181.21; Fri, 12 Jan 2024 09:25:56 +0000 Received: from DS1PEPF00017091.namprd03.prod.outlook.com (2603:10b6:5:40:cafe::33) by DM6PR03CA0016.outlook.office365.com (2603:10b6:5:40::29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7181.21 via Frontend Transport; Fri, 12 Jan 2024 09:25:56 +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 DS1PEPF00017091.mail.protection.outlook.com (10.167.17.133) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.7181.14 via Frontend Transport; Fri, 12 Jan 2024 09:25:56 +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; Fri, 12 Jan 2024 03:25:51 -0600 From: Meng Li To: "Rafael J . Wysocki" , Borislav Petkov , 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 , Perry Yuan Subject: [PATCH V13 1/7] x86: Drop CPU_SUP_INTEL from SCHED_MC_PRIO for the expansion. Date: Fri, 12 Jan 2024 17:25:25 +0800 Message-ID: <20240112092531.789841-2-li.meng@amd.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240112092531.789841-1-li.meng@amd.com> References: <20240112092531.789841-1-li.meng@amd.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-ClientProxiedBy: SATLEXMB03.amd.com (10.181.40.144) To SATLEXMB04.amd.com (10.181.40.145) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DS1PEPF00017091:EE_|DM6PR12MB4203:EE_ X-MS-Office365-Filtering-Correlation-Id: f75cd735-1aa6-43a2-c5b6-08dc13507b13 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: bDODV6dgr+tgI+rOXPYLix7b2ZWEVZ8PEXqb2/v3g2KHtYyNegiVaEcEJz6zdmi+m+Sjddq62L1JekE71zRBKdblVjABAmB5n0AyVKijjlIwj0T2KK5fAS033OBG17ihX400+H5V/AuexXEMqAfikSj8dylXC+a/+idDX1zIA/ecO/nBSOtDsOKAj3ctwFvvujSVfxPP/p28mUh+ksPYQmhhw/I9zXWfo18BwHLdFzhDBkUrx7KIS24v7iWX22zh+lK+lFHx8IA6JsFmLMnmsl4XV7zjwmGaeJM4EkTbQkcnzMIc2vc9sqZ6Ts/TWC70gZ9M4i+HegN1aV0ELLvb6XzHInQ42rgWEbNVdYT50k3xHb1sakHu5FhTQ6YgzKTSJiZfFTF3ZdZ5AWOOGq7UJ9o+dDVR2Z7YmtXbRLoUNw4WUdtZIqw3H+IZmxENZU3I9E8551qxdrC+4RSAXn8JaZOs8d9htr4SXWmEy4rnlk8OzCjfjhsVQtkAoxQ6BX34utXB9ID69wZiRHEohhRrZovkMj/Tdr/rzdoR5lFhcmrtVNqm/4fuM0jfIz/91O5DWIv5Kp1xeYbgg1zZnL3sSPIesn9gOwRnNBR+/d3KvuHyN4HezBmXUVGbW+OvmgT1//Za/roh+jIUPugzPc81fYJWiM2V2FHWJIptpO7L5X2LS/LhDOTk6WkcotrfUQjWb61H8IZPuOP+O6ZORpHYfk284CuvOYtbL3TOXkfmFpwSrKgvaskFVblofOaAELKAYFiz2wQBcAffmgz9/mCWIw== 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)(396003)(346002)(39860400002)(376002)(230922051799003)(1800799012)(451199024)(186009)(64100799003)(82310400011)(46966006)(36840700001)(40470700004)(426003)(16526019)(336012)(86362001)(83380400001)(41300700001)(6666004)(7696005)(478600001)(2616005)(1076003)(26005)(6636002)(47076005)(4326008)(40480700001)(82740400003)(36756003)(70586007)(70206006)(8936002)(8676002)(54906003)(110136005)(316002)(81166007)(40460700003)(7416002)(2906002)(4744005)(356005)(5660300002)(36860700001)(36900700001);DIR:OUT;SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Jan 2024 09:25:56.2191 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: f75cd735-1aa6-43a2-c5b6-08dc13507b13 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: DS1PEPF00017091.namprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR12MB4203 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1787876381202481520 X-GMAIL-MSGID: 1787876381202481520 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 Reviewed-by: Perry Yuan Signed-off-by: Meng Li Acked-by: Borislav Petkov (AMD) --- arch/x86/Kconfig | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig index 1566748f16c4..4fd69cd4241a 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