Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp242885rdd; Tue, 9 Jan 2024 02:45:51 -0800 (PST) X-Google-Smtp-Source: AGHT+IFjNSFy8uviby1RsslHa0ioN+zNJ2fVi2vWyJo66IBxflOMG/TL4Unc/GszS4PcKnG47buK X-Received: by 2002:a05:620a:2808:b0:77f:3b4b:be55 with SMTP id f8-20020a05620a280800b0077f3b4bbe55mr6090541qkp.127.1704797151442; Tue, 09 Jan 2024 02:45:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704797151; cv=none; d=google.com; s=arc-20160816; b=d/Jblnm8+wnAqOuX2o3wv6/0ozIm4zvMQHpPaQhHEjbQbYHksfSfqfi23/drIHhasp +gLPHOSQ8SaYnvtyi6FN4RYrmO9utANRnBp4F8KwYI/M63myXk6gvSSzcJ9YOuo7B57V QuhYcld5rmjLhcBfkMlaqexSOAykMarRr3tORvw54iX7SdNFLcE9juY9vrCceVEt70JO LglEExHVIapptkxz37Hvp14K33YxIo7LpqezimJxSXT1T9vmPYMPGbcKjeEXEi8T9dbD itxGizoc4PVJRVTM4X5bhWBkx0VPy+7RzGtNA74y1sbPsLOn1idOiU9KK6uIQNMkpBZp FIbg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=ypRr+iAfvDjfeKwlwq/k5cw5LfYK0leTEqBNJmrJKi8=; fh=Fe280Q4VQXCBH0GLYIV+k8cr/Qy2f9lpqOGbnb34h6Q=; b=qojhB8PDLd1/NCelzTX8qBRWK9R4ss5FPiJuVKQrIWoc13OoJ6Ddn/T1FeeMifFmYj N+ihqkz5DX5KH3VtCwkcLWu0pmIyytsFdf582LfQCQXMHJm9Uyoy9AlTMdH6+ORKpxdj +Dnw7arM9gnjTnhHE5oP0kpfbn2hHc3agGc/nEWXqnje6dfr9Hy83ee4x7oYj//kdQN/ +9gfcB6izafl6lLeuDO4+347aMhVd5U1F4rQd026jPNE8t9f7bjiadRDdDaQOMDZEF4I kaOwc3m4qw9umN4PXpLVBVX77hkwgca5DP9ogxRSIlEdUOxbWmCLK3RwOuxWbmeEx6UF l29A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=alien8 header.b=EallK46W; spf=pass (google.com: domain of linux-kernel+bounces-20722-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-20722-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id u5-20020a05620a0c4500b007830d5da0d0si1900845qki.608.2024.01.09.02.45.51 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Jan 2024 02:45:51 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-20722-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@alien8.de header.s=alien8 header.b=EallK46W; spf=pass (google.com: domain of linux-kernel+bounces-20722-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-20722-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de 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 2EAF21C23CF8 for ; Tue, 9 Jan 2024 10:45:51 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7D5EF36AE5; Tue, 9 Jan 2024 10:45:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (4096-bit key) header.d=alien8.de header.i=@alien8.de header.b="EallK46W" Received: from mail.alien8.de (mail.alien8.de [65.109.113.108]) (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 CC35A364B9; Tue, 9 Jan 2024 10:45:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=alien8.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=alien8.de Received: from localhost (localhost.localdomain [127.0.0.1]) by mail.alien8.de (SuperMail on ZX Spectrum 128k) with ESMTP id 94F6040E01B2; Tue, 9 Jan 2024 10:45:37 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at mail.alien8.de Authentication-Results: mail.alien8.de (amavisd-new); dkim=pass (4096-bit key) header.d=alien8.de Received: from mail.alien8.de ([127.0.0.1]) by localhost (mail.alien8.de [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id bTZI_qzADFUM; Tue, 9 Jan 2024 10:45:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=alien8; t=1704797134; bh=ypRr+iAfvDjfeKwlwq/k5cw5LfYK0leTEqBNJmrJKi8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=EallK46WDGLi11Jtx7MUajDnzNbDJ8ilnoCJY+03U0LHDS7Mawrg6jY8JEcHNdc+N AOTyK5ddG8fyHDaf63A5Ca6nQ679uXKJDUyOV7tx4RMI8CoUxmdxroSTmtWMnMgBsl q8NcVecvD5ySwYGkttWvEMMrtobS4y7JNL4yZefXEgVOnUhZDQyabtq0QtS9qwY7sa KaOgHQ35HGTZIRmN2XNbGtuPBoTHL9a+yrzuKcKfWKnCPy4vv4AXQEUYKkTxEGqAL6 EGVOYZEyX9Pc/6jmP8RYpLSBQ2eoKpBPHDKtuubyjWZ4iIEE7T1cfpJz54zZMMs3r0 erLj35VetdhW1k7YWn9fPdOmwYmMge0xKWqflMoSWuSW3ALlxJo7MH8lr7WPjqpOhH uw2KyL0VYUSksJHhP0MHBXsLysc8YjaMG8Gv0l7YZxmzykiJbbNGKX39cIKU0fwLhh SKUvtUN2m3p2xKkC9/jLBUum7y5SzCe7M+RxyrHym6do5x5WZ1nf2KmdKTyNg+cx5j fKl0TTCaRKS+EUTqBg3hs+J3mSUHy7YDz+7TKY1BRkfGc61vGX0gjzC/B/lWWw9Qu1 PfmoIbt/J1nbKrsoCyUu/nS2G22fAfmjK98hT7BfSpGwmDku1GB2B1h7TPe1wmInAl FeeNKVliD799m9dEJ4nysViY= Received: from zn.tnic (pd9530f8c.dip0.t-ipconnect.de [217.83.15.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature ECDSA (P-256) server-digest SHA256) (No client certificate requested) by mail.alien8.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id D1BCC40E016C; Tue, 9 Jan 2024 10:45:15 +0000 (UTC) Date: Tue, 9 Jan 2024 11:45:12 +0100 From: Borislav Petkov To: Meng Li Cc: "Rafael J . Wysocki" , Huang Rui , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, x86@kernel.org, linux-acpi@vger.kernel.org, Shuah Khan , linux-kselftest@vger.kernel.org, Nathan Fontenot , Deepak Sharma , Alex Deucher , Mario Limonciello , Shimmer Huang , Perry Yuan , Xiaojian Du , Viresh Kumar , Oleksandr Natalenko Subject: Re: [PATCH V12 1/7] x86: Drop CPU_SUP_INTEL from SCHED_MC_PRIO for the expansion. Message-ID: <20240109104504.GAZZ0jsFrrncZ8Vx8y@fat_crate.local> References: <20231205063537.872834-1-li.meng@amd.com> <20231205063537.872834-2-li.meng@amd.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20231205063537.872834-2-li.meng@amd.com> On Tue, Dec 05, 2023 at 02:35:31PM +0800, Meng Li wrote: > 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 > --- > arch/x86/Kconfig | 5 +++-- > 1 file changed, 3 insertions(+), 2 deletions(-) > > diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig > index 3762f41bb092..3e57773f946a 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 > -- I was gonna ask why the selects but apparently mingo wants SCHED_MC_PRIO to be selectable easier: 0a21fc1214a2 ("sched/x86: Make CONFIG_SCHED_MC_PRIO=y easier to enable") So, Acked-by: Borislav Petkov (AMD) Thx. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette