From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.0 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 357DEC04AB6 for ; Tue, 28 May 2019 11:30:54 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 137D42133F for ; Tue, 28 May 2019 11:30:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726676AbfE1Lax convert rfc822-to-8bit (ORCPT ); Tue, 28 May 2019 07:30:53 -0400 Received: from ZXSHCAS1.zhaoxin.com ([203.148.12.81]:47286 "EHLO ZXSHCAS1.zhaoxin.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726234AbfE1Law (ORCPT ); Tue, 28 May 2019 07:30:52 -0400 Received: from zxbjmbx3.zhaoxin.com (10.29.252.165) 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.1261.35; Tue, 28 May 2019 19:30:47 +0800 Received: from zxbjmbx1.zhaoxin.com (10.29.252.163) by zxbjmbx3.zhaoxin.com (10.29.252.165) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1261.35; Tue, 28 May 2019 19:30:46 +0800 Received: from zxbjmbx1.zhaoxin.com ([fe80::b41a:737:a784:b70d]) by zxbjmbx1.zhaoxin.com ([fe80::b41a:737:a784:b70d%16]) with mapi id 15.01.1261.035; Tue, 28 May 2019 19:30:46 +0800 From: Tony W Wang-oc To: "tglx@linutronix.de" , "mingo@redhat.com" , "hpa@zytor.com" , "x86@kernel.org" , "gregkh@linuxfoundation.org" , "linux-kernel@vger.kernel.org" , "rjw@rjwysocki.net" , "lenb@kernel.org" CC: David Wang , "Cooper Yan(BJ-RD)" , "Qiyuan Wang(BJ-RD)" , "Herry Yang(BJ-RD)" Subject: [PATCH v2 0/3] Add support for Zhaoxin Processors Thread-Topic: [PATCH v2 0/3] Add support for Zhaoxin Processors Thread-Index: AdUVSJ74cjD3cwnYRa6mUTFrj8fbbw== Date: Tue, 28 May 2019 11:30:46 +0000 Message-ID: <54fb8565afbe4351adc0e4541463776c@zhaoxin.com> Accept-Language: en-US, zh-CN Content-Language: zh-CN X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.32.64.23] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org As a new x86 CPU Vendor, Shanghai Zhaoxin Semiconductor Co., Ltd. ("Zhaoxin") provide high performance general-purpose x86 processors. CPU Vendor ID "Shanghai" belongs to Zhaoxin. To enable the supports of Linux kernel to Zhaoxin's CPUs, add a new vendor type (X86_VENDOR_ZHAOXIN, with value of 10) in arch/x86/include/asm/processor.h. To enable the support of Linux kernel's specific configuration to Zhaoxin's CPUs, add a new file arch/x86/kernel/cpu/zhaoxin.c. This patch series have been applied and tested successfully on Zhaoxin's Soc silicon. Also tested on other processors, it works fine and makes no harm to the existing codes. v1->v2: - Rebased on 5.2.0-rc2 and tested against it. - remove GPL "boilerplate" text in the patch. - adjust signed-off-by: line match From: line. - run patch series through checkpatch.pl. v1: - Rebased on 5.2.0-rc1 and tested against it. - Split the patch set to small series of patches. - Rework patch descriptions. TonyWWang (3): x86/cpu: Create Zhaoxin processors architecture support file ACPI, x86: add Zhaoxin processors support for NONSTOP TSC x86/acpi/cstate: add Zhaoxin processors support for cache flush policy in C3 MAINTAINERS | 6 ++ arch/x86/Kconfig.cpu | 13 ++++ arch/x86/include/asm/processor.h | 3 +- arch/x86/kernel/acpi/cstate.c | 15 ++++ arch/x86/kernel/cpu/Makefile | 1 + arch/x86/kernel/cpu/zhaoxin.c | 164 +++++++++++++++++++++++++++++++++++++++ drivers/acpi/acpi_pad.c | 1 + drivers/acpi/processor_idle.c | 1 + 8 files changed, 203 insertions(+), 1 deletion(-) create mode 100644 arch/x86/kernel/cpu/zhaoxin.c -- 2.7.4