Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp4437557iog; Tue, 21 Jun 2022 21:02:23 -0700 (PDT) X-Google-Smtp-Source: AGRyM1t9Kxm18FSmS6+ci+g3vL4sza8HEqffrp43JEDeA0KalomVIJR13kgoGZIfw0Tsqxg+IdOH X-Received: by 2002:a17:902:edd1:b0:158:8318:b51e with SMTP id q17-20020a170902edd100b001588318b51emr32674427plk.89.1655870542917; Tue, 21 Jun 2022 21:02:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655870542; cv=none; d=google.com; s=arc-20160816; b=u+n0Y3e4rAWQm2gJ251nDksdE+yQ9FmYdXiNrEVonyo2bevOLBSGOQSGHHRidG9XWc W05H0k+dujzeA/QbWEOVncIccYZ6GZeluvjJDnSAr5IzqkgxI3KB6AsJjjZsakX0UypE Vv8bPlsMcGDigCE37ySQSoqtdYIwFtav7P44nk4pWPVz29DV7J/pdRawwtOlizntySuK fAopd05SXEeoySwc65ODy8nfYxKGPuKEns9Ib/P1t6kniEsWJJBz/IOxNXYgSlYAfMRw 8ZSpjmdz5jV2cNyU9p1fMZaZsekVl25GXHdZ75pWwqoyLPVSxu0K/OQWEvmQDjtDS8VC l6Lg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :mime-version:user-agent:date:message-id:cc:subject:from:to; bh=TZZSN2S6imsfGsKoxrUYDOB+yzLgyNbasnTaiMIpDTk=; b=l84qogRvs4u0et7EzF+HyC2eenEx23LkmlJhUm2miF6MZbeiyxDITWBXuuNkTFrrZ2 uWWTtHTH8GD1S5vIpWpc7PWphXkS7qPvb2IN1Xkn0TB7pmLWrMJ3RberEkuLjhDolGO0 gAXO/hoOXl16TRZrGkYmCuPPDJ2LEi0bqs9XSCoJCCkxmFqXjUd2ndCYsmB71xnG/T1J acf+en1yP4KgUmtaPchdyx+PsDn5VeVhFfZuMmtHsGgXh/3V2UFy8g7Wb/g3P0t7kMVK l+ez1HxtTD2ofM2IbY5wTY8d0RCH8o3AhX4m076/G9B5esKJf5d8C8VtWdM5bm+C5m9h yxug== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i3-20020aa796e3000000b0052542ce5e03si2118050pfq.37.2022.06.21.21.01.57; Tue, 21 Jun 2022 21:02:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1356636AbiFVDoo (ORCPT + 99 others); Tue, 21 Jun 2022 23:44:44 -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-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.32.56.37] X-ClientProxiedBy: ZXSHCAS1.zhaoxin.com (10.28.252.161) To zxbjmbx1.zhaoxin.com (10.29.252.163) X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 = &cpu_data(0); return (c->x86_vendor == X86_VENDOR_INTEL || - c->x86_vendor == X86_VENDOR_CENTAUR); + c->x86_vendor == X86_VENDOR_CENTAUR || + c->x86_vendor == X86_VENDOR_ZHAOXIN); } static inline void arch_acpi_set_pdc_bits(u32 *buf) -- 2.7.4