Received: by 2002:a05:7412:a9a2:b0:e2:908c:2ebd with SMTP id o34csp2548591rdh; Sun, 29 Oct 2023 23:35:43 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGUIbvu951N2MowLoGhjGOUXJzI9IAowLeKWJAwAOyqhgnJ8QCuq+lqHJhODW7gq2EaBAgX X-Received: by 2002:a05:6870:4f0e:b0:1b7:4521:14b6 with SMTP id xi14-20020a0568704f0e00b001b7452114b6mr11259579oab.5.1698647743276; Sun, 29 Oct 2023 23:35:43 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1698647743; cv=pass; d=google.com; s=arc-20160816; b=IrgrctOU079WsfjqxuTdT0IBaa6z/X3/NeD3VpliRvfhLEKyuDmT6plCkMgG161Zt3 wsO8iPnQyREC11xqQzOjxc/SmSgDcwdemHMHasYlcPNBwZQB7YjklO3tGc5id4FzWK7P lW0K200262Db116k5ttjfgTQ2zHn5UzWXi9qsFEQS8mdGqNwdraN1ByHwUyf8rK69jrZ 2fywmznran+RzQ/CJa3HNBGe11pGc3Dct43cqAqA6imiVMlCqGYisAl1/IX6eX+BVzPR GcERFmvZbLnrHDSn2LGbKxmNH19IUT5KBA+5l0yG6z3PJI3DQR9ArqsUhoOoiT7sZoIH kqdw== 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=nzEIHZpUA3AMJxzqDK5FWIBnTdRjO3KqmrHE7LsmiW0=; fh=hGvksXpWJomenCq+IRP0QZoot/B1Zo6LHbgOlSKBIRE=; b=mYWIbOGoBGkoc7sfF/wR0t5mQZX7hz4q7y9cYdrjRFbqp3Xslws8KwZ6NvLheKcrzo j9/5Ub+KWKk8lrjwCfZ7dZUUZnXT/Fw/q7Bz2EFCmYZoB+Q/ZsttFu/Vu9KU/75g1zI9 uJilbcXJrCQChkBGvby0xHr84970T1VfEP66w/wru+rtbbMv+f6WmekOFoABZgW8ZEbL mcoR2jN/6HuBthDhT2OvLtzBStL64+j3boxNpn1LLhYdgEDK2wtbxjpBaYvW4kEAD5Wc 8lK71g1WiS77PT5YJ8PULo1m6mGpNg4GJL0UqY1B7AgRZW+2PvKrL1mcFyFFfgJZ7T25 5gVQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=pdpHbGcO; 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 23.128.96.38 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 fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id m127-20020a632685000000b005aebc9096d4si4679219pgm.150.2023.10.29.23.35.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 29 Oct 2023 23:35:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=pdpHbGcO; 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 23.128.96.38 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 fry.vger.email (Postfix) with ESMTP id 7A91880859AF; Sun, 29 Oct 2023 23:35:17 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231623AbjJ3GfF (ORCPT + 99 others); Mon, 30 Oct 2023 02:35:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52030 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229514AbjJ3GfA (ORCPT ); Mon, 30 Oct 2023 02:35:00 -0400 Received: from NAM12-DM6-obe.outbound.protection.outlook.com (mail-dm6nam12on2059.outbound.protection.outlook.com [40.107.243.59]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F1CD2A7; Sun, 29 Oct 2023 23:34:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=h3TnNIzHJFpBFORc9ooG9GZxW4As8KLY1qMqMInVuj801DHFgfDFpBtVe7yBDuP/lMYTlo4VIeogtXXTMcuCcOaG3A8Y5xUZ0zsvwdKGkGcVemKGdIJaOIHFjZHqI70myfGBY4Ve4PmPHgYuvdBauzLUInxkoGs6IaS9dqt0jrvNuHxB1lDMlmZ2ZqRF98qtfwItqX6wDB9HZ04KoM+XICPVmrI2b3vkWqfPujn0fT80WKMHQ/aKCn0b3850yKfSxoBxN2swQ/GFulJX3bQD0w68gD1V3ddR5Srmu4ZJ4bGVHY1+4oOoW9sUBUDnVCFLqy/rExc437Rv2D02f2EbzQ== 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=nzEIHZpUA3AMJxzqDK5FWIBnTdRjO3KqmrHE7LsmiW0=; b=ZsRS6MrsT1Aov35BQTTAeo/CdsY/j2A5EreF+7SRvl0jEg/pXtIB4jgXXKC/f1COi3jWwpw+OOCFLcPH3JBE3Y7fsCeUbK94v2EQURg/jjz83hKYaD7PsUeeoo+0dWKHtNJIY5AQ8x/pixFzaiKxTG9bTN9/khPhNoZ+JUaXkacqUBfJpWxEWsMdGLl/cukyYakVypiTVsROfnhlIfn/q89LLpfg5GTSe/YmWadHu/VaGt/+d5cgwx0aq86PbAbOIeVzvILk10YKgQAwiGCE/5WwyjCmLsOHEqbxzF/3v8YzKBefILh1gWRz8SkQOUrcf2sjpCswdeRvhKX1zKWVeg== 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=nzEIHZpUA3AMJxzqDK5FWIBnTdRjO3KqmrHE7LsmiW0=; b=pdpHbGcOEQIqwGj3xtkd7q4sjTSDqM3jLE+NyOmFz4HEphmT2uTeL5JBpyJ3RsvIn4h8WgkAqC/rT+MdQ0hoa1IKTZZ+Z+nM9dh0B5pLvZXsZnMFylbvsyU1tt2Pz+H4qyVefWLdjNhRlWQeX1valoFPW0FN7Apox8OWeVo36Uk= Received: from BL0PR02CA0126.namprd02.prod.outlook.com (2603:10b6:208:35::31) by CYYPR12MB9015.namprd12.prod.outlook.com (2603:10b6:930:c8::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6933.27; Mon, 30 Oct 2023 06:34:55 +0000 Received: from BL6PEPF0001AB73.namprd02.prod.outlook.com (2603:10b6:208:35:cafe::6f) by BL0PR02CA0126.outlook.office365.com (2603:10b6:208:35::31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6933.27 via Frontend Transport; Mon, 30 Oct 2023 06:34:55 +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 BL6PEPF0001AB73.mail.protection.outlook.com (10.167.242.166) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.6933.22 via Frontend Transport; Mon, 30 Oct 2023 06:34:54 +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.32; Mon, 30 Oct 2023 01:34:49 -0500 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 V10 1/7] x86: Drop CPU_SUP_INTEL from SCHED_MC_PRIO for the expansion. Date: Mon, 30 Oct 2023 14:33:57 +0800 Message-ID: <20231030063403.3502816-2-li.meng@amd.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231030063403.3502816-1-li.meng@amd.com> References: <20231030063403.3502816-1-li.meng@amd.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.180.168.240] 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: BL6PEPF0001AB73:EE_|CYYPR12MB9015:EE_ X-MS-Office365-Filtering-Correlation-Id: a8448bc7-4d65-4927-9a65-08dbd9125431 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: kAlCGr2AV/ABos/mx0ShWk9gK37uAm96BjgS8cky+XuJ5HJ1PTThRJNXQ+rbe+JOHFQqO7/st1R59GZGi+llv4K6AnO3RCjaTIno9skt+RygSRceu+B4CeYJ2w1/ZaCmx62qFI8v5MxYmWHSRMGy99rtkYNkso7y/Euz7kTrLjYxhBfQRHrpl1cS7W2wQ2coJfpCfMDXzGZkPpHg90SKsz3XTjXvKSNRc9Ea8pY4bxjMfAB/aQ/OoI/JJDihKAcHjY3tESx4R1tTqRILGIj2DTgXfWdjCJtn2h380/ZuqIKn+MwyxkkmLaZvgvCpanZ2L2w1O3YLgsjWilJxmaGxLOkIzw4aVk0t9E+9BHUzN7RKRjswLQGpf+ZuFRPUqGxWnTbM4DSPnhMyOMz20ZaLbkxnHmX/me5IbPzNfDEjgNJK7vR0nBsYfUSF1z7nqQFbilsasexABD/oQCchB5EVF4fSiwGVYrsrV8LhZHmOjgmynUW/XUF3uK7SWhjohIFjhvq09TOTlKonfJbZEpiaGyPc7REVZZipimhhlXPq2TuI2TqpJRCP3au4LL/kuMpNV/ix2QIni01AU5CC566pAb9jl7YhB+iB/odza8ECUM5rv6kr0qODqraVXjrK7VC1yr3TnlgCRum4JOdsBPMFg1Et2/UO6rz0wld6RuzH86S7wvJjhE+CRclDgEBx0tg5GrbdQz999mj9EA9MFp0ZEFjbibDR40cgMZEcmC/UKpZefv2SDuzbYgd+QxLkmWpgX3zVffn7NwPotN/2plt6og== 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)(39860400002)(136003)(396003)(376002)(346002)(230922051799003)(64100799003)(1800799009)(82310400011)(186009)(451199024)(40470700004)(46966006)(36840700001)(478600001)(7696005)(6666004)(110136005)(70206006)(70586007)(426003)(16526019)(336012)(26005)(1076003)(2616005)(41300700001)(2906002)(54906003)(4744005)(316002)(8936002)(8676002)(6636002)(5660300002)(7416002)(4326008)(86362001)(36756003)(36860700001)(83380400001)(47076005)(81166007)(82740400003)(356005)(40480700001)(40460700003)(36900700001);DIR:OUT;SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Oct 2023 06:34:54.7920 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: a8448bc7-4d65-4927-9a65-08dbd9125431 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: BL6PEPF0001AB73.namprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CYYPR12MB9015 X-Spam-Status: No, score=-1.3 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 autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.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 (fry.vger.email [0.0.0.0]); Sun, 29 Oct 2023 23:35:17 -0700 (PDT) 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 --- arch/x86/Kconfig | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig index 66bfabae8814..a2e163acf623 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 -- 2.34.1