Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp2376474lqp; Sun, 24 Mar 2024 16:37:09 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVZMdOWxfT8nqTljPFbjtQZ0QJJmKYK3/CDXZvZbjxoun6Kf28k3N6cKviBm4mrU7ONOOWl4F133yHzwa9FvkNzbjks6+PW6XQXud2f+Q== X-Google-Smtp-Source: AGHT+IHMgDGhQqvPNlGLsZoiWZcHYa0UzjM9my4GYFSWkcuDxMDmIobM2zVUZ+f7fe+mzXA9N2+x X-Received: by 2002:ae9:e008:0:b0:78a:56c:e288 with SMTP id m8-20020ae9e008000000b0078a056ce288mr5627705qkk.31.1711323429325; Sun, 24 Mar 2024 16:37:09 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711323429; cv=pass; d=google.com; s=arc-20160816; b=0T7pp4JXoM+mdVI2cCQpOHXPoZIlHAM0k2Fy9Mpr0BF0v70aNDFYrBNQ+79l9/gWCE cgBqc4gYAKN0K9gvyu6bC+bS4nex3CsVub3ayasDLrQrW/UBDNXdEEEZ2MARa4Goy0uo jH2ArWeRSbsUpNdPJqqQlNBH4CaE13rothNqxZQrtHhnNafl9ZvHSMZvRLGwLzoVKZdA 0IaDbPCNXFaCM/1IMfQKanxWjMRcTgyWKdmTz0Dxzxo4AQ4rCVPb0DrPRt0S6rguQR9G tmbR/rLwU0ZhsIOQqtPCUcCeBi8hep4CqdTnyfhPwU7d1O/zpiuDS27sif5+25F3HDl/ na+w== 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=bXzKM8I6AUzJudNUjrqhn4btEnTFQy1DWSkh/PaHIlU=; fh=qpff4Vp2FKDCnNhBSTG5BV1bsRCEkxrYHNznMWCLFzY=; b=LznP4OgJP3y9p4FErSlyfy80ZFQSlkk5ozVLZni3pqKHNOM5YHog9oQgpTRWXJ9lXR nCQvBWsrJLr9t1ueKj5LJaTs+zarIymBAjizmII+1U7o5g4oesUKV5ZeMSY2PTLFnHAX pelqJ/VNhEqsLoiyLFVl7uY4R6DvLhv7BYMJaaiGrQpxn+GtPi3cNyo8GUaOls2qEt2R lN1/GJvQ8WPB2c6ld01tk1tmD8Kfcn5aLRPmdsYbQ/TkMT5HVzJQqCKBawXMjoFpRAhE sWY2ji/7+2b8voOYO/qwdDYZWhmEbHIOSXiOUNg8MX8B5lxZDkLA07UiMHamDOKN7BZf LzCA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=gOyzzzjT; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-113176-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-113176-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id xy13-20020a05620a5dcd00b0078a34f33f29si4253989qkn.407.2024.03.24.16.37.09 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 24 Mar 2024 16:37:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-113176-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=@kernel.org header.s=k20201202 header.b=gOyzzzjT; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-113176-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-113176-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 05D911C22383 for ; Sun, 24 Mar 2024 23:37:09 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 88968130A6C; Sun, 24 Mar 2024 22:39:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="gOyzzzjT" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 9EE93130A4D; Sun, 24 Mar 2024 22:39:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711319978; cv=none; b=pcdGlJW0ZXo54l5tuWCojNy8vX2A78BnkT1IzzbaAVHOAAyW7Pzy8HWhz5fbl87mX7yI5pOvSxgp5DQBvIhagqpDE/FoS6pIWYC6ulYwiX8vjKUx1ZEHycyLpX3ScJOSRti6PC2xKiHm889PeFkB010G15LQrYPHoNn6R2J8V44= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711319978; c=relaxed/simple; bh=yoUldDTV2NJujGlAxoNcWJ40t+aa06GDaoJ4gRjf/do=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=dn2yFHywUrPWE8zOWxSDkaay3BrNKUD+yqREuRiOTGbez0lHG20qKE7rkNJNaScqeBqfI7G40jRM9hLmswr/UP5kYK/YlQ6R/XX1mIMMACml7gyCXJUSBsCpSVBgBp15O8Vm8CjORvkcB9AcT074p3au50ve6BdWJitgD1xhdTU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=gOyzzzjT; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 99BD4C43601; Sun, 24 Mar 2024 22:39:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711319978; bh=yoUldDTV2NJujGlAxoNcWJ40t+aa06GDaoJ4gRjf/do=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=gOyzzzjTfRlOT/Mfb3OlEfbJcRpv1IdiXE3oA9tJih63muFH2RVgqZGvoab5gAEBr ym7zNi798T9m3hLpyE+zyuycrp+SkWYJFJWxJrgHc5UlIVJrQDVsjA2QEdFLkVm28G K6afLnAFhzclCc0tQZSQs91/9xbWXs4a6YRTR0iT9bWV4U8A39x6AMn///BdfcgBYE YV1COK0iUJLfLxGkY7bIUIlWsUTwekzrIX+jbWnK+HtW5ifiA4cF1oNyV3HFsze5cf +hnJEuhfQZjkFuAFqefZjohmaCSL8fXUCY1fmkiiEF/ndK+GoSIKsyNEitaC1NXX9+ pNNxj7jEb4GJA== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Perry Yuan , Mario Limonciello , Gino Badouri , "Gautham R . Shenoy" , "Rafael J . Wysocki" , Sasha Levin Subject: [PATCH 6.8 285/715] ACPI: CPPC: enable AMD CPPC V2 support for family 17h processors Date: Sun, 24 Mar 2024 18:27:44 -0400 Message-ID: <20240324223455.1342824-286-sashal@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240324223455.1342824-1-sashal@kernel.org> References: <20240324223455.1342824-1-sashal@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit From: Perry Yuan [ Upstream commit a51ab63b297ce9e26e3ffb9be896018a42d5f32f ] As there are some AMD processors which only support CPPC V2 firmware and BIOS implementation, the amd_pstate driver will be failed to load when system booting with below kernel warning message: [ 0.477523] amd_pstate: the _CPC object is not present in SBIOS or ACPI disabled To make the amd_pstate driver can be loaded on those TR40 processors, it needs to match x86_model from 0x30 to 0x7F for family 17H. With the change, the system can load amd_pstate driver as expected. Reviewed-by: Mario Limonciello Reported-by: Gino Badouri Closes: https://bugzilla.kernel.org/show_bug.cgi?id=218171 Fixes: fbd74d1689 ("ACPI: CPPC: Fix enabling CPPC on AMD systems with shared memory") Signed-off-by: Perry Yuan Reviewed-by: Gautham R. Shenoy Signed-off-by: Rafael J. Wysocki Signed-off-by: Sasha Levin --- arch/x86/kernel/acpi/cppc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/kernel/acpi/cppc.c b/arch/x86/kernel/acpi/cppc.c index 8d8752b44f113..ff8f25faca3dd 100644 --- a/arch/x86/kernel/acpi/cppc.c +++ b/arch/x86/kernel/acpi/cppc.c @@ -20,7 +20,7 @@ bool cpc_supported_by_cpu(void) (boot_cpu_data.x86_model >= 0x20 && boot_cpu_data.x86_model <= 0x2f))) return true; else if (boot_cpu_data.x86 == 0x17 && - boot_cpu_data.x86_model >= 0x70 && boot_cpu_data.x86_model <= 0x7f) + boot_cpu_data.x86_model >= 0x30 && boot_cpu_data.x86_model <= 0x7f) return true; return boot_cpu_has(X86_FEATURE_CPPC); } -- 2.43.0