Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp2526526lqp; Mon, 25 Mar 2024 01:10:26 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWlnM5vWAe1Dp3jdRwJU0j+H8k1p6ESkus7+XrCf4j1hENVqgXHKcbPFnIRHcmBA7T37pHSoH5Cbo9j56QcIhj7VCvvkE0HQYfxIfVpLQ== X-Google-Smtp-Source: AGHT+IEJ2BMviK/UNU+FLTAdTE1ICr1jvgm+ojAOrvpt3pflhtAE7IxQnA1n5xgFlI1KGeEZ9oDA X-Received: by 2002:a05:6871:d190:b0:21e:e5db:7964 with SMTP id pj16-20020a056871d19000b0021ee5db7964mr6434988oac.23.1711354225750; Mon, 25 Mar 2024 01:10:25 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711354225; cv=pass; d=google.com; s=arc-20160816; b=LsG75b2tYmQLdiUgRx2m3ANvPdCJFqVC+tvQNpDiUUFHCZP3sJYBBGjZrrS5EhjA+Y MMxsFmUQMemBfikubmjMAJ/1pkecMgHxQg0KMjptNprtrBXSYTXpEekrzkLOAPf3fulm Y/YSRZPBUYz/qOzskUiQcwiu5a+VIgMbFGqrDS9QKRTguoFMcHdYscQ4D9HvOgMsq+ah l49GzKZ2ZUkzLtMMwMxLyHnY1X9jVbxWhlAOGEWphmC9C4uadfeByJwj5hbO3uiAjkzG 88kimJRl6KvYCHUNy+M5T2GRxtWGtM6Na2CoSM/yTgtEj4ygWJxc4EdQiNFXmIRZVsAl 1Cuw== 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=yiWPuYZWXk6aOWNHIanjPAJaNBv2tpXBjb1CFYn/itU517kg2/xgAucv6F4boPBiMr xePZRVgVzG1wAB3uFl4Hgbh8B1xMtipJWkpjho6rQYk4Ru99T46Sg0yG1mNh/uG4lUp8 0tyWfnY+vFYzXRndLaYZXOMUzTQWudUvy/wawSELUWCldZBlIEdTjlpm1JUJM+oXb/dU Ycvang9PBpqxPIdQnXq9ogd81mS1vD5oRwNlzPbXuh9NUCy5gtYWFjb2qxLqK+PVNPm9 VAo97dRYVj9CkroLp8BPQSTFGkrdxTS09UdI62emtW8qc1d5gmWbTGvbfyH5PlckPNCg gSrQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=FiqloPFl; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-115919-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-115919-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id i12-20020a63540c000000b005dc82a6d761si6951544pgb.123.2024.03.25.01.10.25 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Mar 2024 01:10:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-115919-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=FiqloPFl; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-115919-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-115919-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 6B977295EBA for ; Mon, 25 Mar 2024 08:10:25 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A690D1474CB; Mon, 25 Mar 2024 03:03:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="FiqloPFl" 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 4FCFD1487EF; Sun, 24 Mar 2024 23:15:13 +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=1711322114; cv=none; b=NU33hgBdbE+WTn/4MPwwbXpyRTwfAs9mRfGJyGQd2RjKuf2rOSQJAC59C350CD5CC5OS7RU8H/NAE9rJ3dorrWlf/mVA9vb9KjJKg0NVY5r5CO0F5QON2+mpjJWP+lzFXlo0F5AcNFpgW6hd3NjnEwEiO6IBIqCr5t54xDdQAEY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711322114; c=relaxed/simple; bh=yoUldDTV2NJujGlAxoNcWJ40t+aa06GDaoJ4gRjf/do=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=L20il62SPZSBhuYzSEiNp63900xqV3kZHVghAFH1T9rqxaPRB9UIvcU43JivLuXEWGo8/D1c+09akLWrCN4CxCgUxVtRcymOgo4vwGdwmq5Was+N/inkLyMXSyixb6Ld5qHtS26geoHdy+zG+4DKA2wO88Ll5BOGrIWUzh1Yphk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=FiqloPFl; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 45DBDC43399; Sun, 24 Mar 2024 23:15:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711322113; bh=yoUldDTV2NJujGlAxoNcWJ40t+aa06GDaoJ4gRjf/do=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=FiqloPFljlNqUd6Au4Tn5P/+vrWHtmPON867c+uTQTHyU5RuvPKdzF6QGO2X2bjh8 prctoDkrVjuIMLAtgIr7fhHf9b1vq7IrxB83b1hfXph5FufBrZ3q0evDijZJoTI12K 1q4HRJ9Ns4EfWS+5mNku7fazBz+sx6KGYjNV/NQCIlYmJbYP4YwRcgH8fhGF4GccmW vY1D3rM/DDjjv0+Y3zNlg/GoUQul/N+9Zdht9QOJ0r/z2qM5UP24jMhY6iqat5oDEa 47u/CuVV+shqG7/lUIGEloTzlY1Fgj1azsWng/KqIrxg4PrNvd+liyXtqvK1th5sta F6yu1QpWiDHhA== 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.1 188/451] ACPI: CPPC: enable AMD CPPC V2 support for family 17h processors Date: Sun, 24 Mar 2024 19:07:44 -0400 Message-ID: <20240324231207.1351418-189-sashal@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240324231207.1351418-1-sashal@kernel.org> References: <20240324231207.1351418-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