From nobody Mon Apr 20 05:58:34 2026 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 77EAEC433EF for ; Wed, 22 Jun 2022 03:44:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232276AbiFVDoq (ORCPT ); Tue, 21 Jun 2022 23:44:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56060 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1356635AbiFVDoi (ORCPT ); Tue, 21 Jun 2022 23:44:38 -0400 Received: from ZXSHCAS1.zhaoxin.com (ZXSHCAS1.zhaoxin.com [210.0.225.54]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CA01F31239 for ; Tue, 21 Jun 2022 20:44:36 -0700 (PDT) Received: from zxbjmbx1.zhaoxin.com (10.29.252.163) by ZXSHCAS1.zhaoxin.com (10.28.252.161) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.27; Wed, 22 Jun 2022 11:29:32 +0800 Received: from [10.32.56.37] (10.32.56.37) by zxbjmbx1.zhaoxin.com (10.29.252.163) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.27; Wed, 22 Jun 2022 11:29:30 +0800 To: , , , , , , , From: Tony W Wang-oc Subject: [PATCH] ACPI: processor: Add Zhaoxin ACPI _PDC evaluate support CC: , , , Message-ID: <899dbac4-0fd5-fff9-912d-f801921c6f6a@zhaoxin.com> Date: Wed, 22 Jun 2022 11:29:29 +0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 Content-Language: en-US Content-Transfer-Encoding: quoted-printable X-Originating-IP: [10.32.56.37] X-ClientProxiedBy: ZXSHCAS1.zhaoxin.com (10.28.252.161) To zxbjmbx1.zhaoxin.com (10.29.252.163) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8"; format="flowed" Recent Zhaoxin platforms support ACPI _PDC object, so add Zhaoxin CPU vendor support in the function arch_has_acpi_pdc(). Signed-off-by: Tony W Wang-oc --- arch/x86/include/asm/acpi.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/x86/include/asm/acpi.h b/arch/x86/include/asm/acpi.h index 65064d9..b719745 100644 --- a/arch/x86/include/asm/acpi.h +++ b/arch/x86/include/asm/acpi.h @@ -89,7 +89,8 @@ static inline bool arch_has_acpi_pdc(void) { struct cpuinfo_x86 *c =3D &cpu_data(0); return (c->x86_vendor =3D=3D X86_VENDOR_INTEL || - c->x86_vendor =3D=3D X86_VENDOR_CENTAUR); + c->x86_vendor =3D=3D X86_VENDOR_CENTAUR || + c->x86_vendor =3D=3D X86_VENDOR_ZHAOXIN); } static inline void arch_acpi_set_pdc_bits(u32 *buf) --=20 2.7.4