Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp5068347ybi; Tue, 28 May 2019 07:05:09 -0700 (PDT) X-Google-Smtp-Source: APXvYqxvo7Xe+dQkPkcTURf9Pgy8Yvxk0WU5HQag0tUcmv0SDp1pCAj6WdNzeBY6M9f6ocDmlEJz X-Received: by 2002:a63:ef56:: with SMTP id c22mr401621pgk.13.1559052309453; Tue, 28 May 2019 07:05:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559052309; cv=none; d=google.com; s=arc-20160816; b=QpUepMizAWsDF9WUIUnqzjJ4rNN5PvEeGo4ekjus8B9AMJvNcNz3VfEKBXiv5kCrV6 PnBOQ99aDQWvNEdJy3+SYUwkcrjVbH5aomWBA+IF1t1msGRV6fKWL4o1n7tJPuftJyx7 bLmnkJ9NfrB7wtPxPok7ge4f4SrfhWNzs7Pn4joqRnY+sObXJ0VsduTobZhv15Y5qC9Z POuxBD1qs4xl727YuEkM3CtmxkqmeDkCQK/bq1b6GB6Ceanq0pVI6fpYjLySGoiKovV8 o3J0DvCEusmANVYoeTHvLEltJJmNmMu08XtZZ1KnsbHO7MOQL7048yRBTuOEU3+QwVo1 jeSA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-language:accept-language:message-id:date:thread-index :thread-topic:subject:cc:to:from; bh=pHRe+r19xWpM+1SgQQnvGJEspHfPYpTxrFPdZbOYFms=; b=WJRdDSKfRyNNt3Dxk9qiPOwmrpGyZWTcjjYk6eut9SL6arG28OmIkd/pBeMvJ65eun SRjx78ZHQiadkm1QtfZAwAV6SY/BnTnuv7uw+P9UESi4nrG+WcQkWZhUW/uVkEdT++c8 1yQfMSfXxK7vMIerVp7lYv/4YgTpR32YAb8D/8DqGe2Ao8GevaK0AmOFqCgTXk0XMAGx 9IDnmN/pPlojK5M1L3kogdUvHPwvGFAcLw1yPU4El6wVhEh2ADfDV659PQX10UG42bjK ch9HnDKnlM7J/5np7fI7d5G6L+/mJH1QtlIIP2rFcPeppyFb3V8sdpShxKQZdnNIQjYE oqIA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l17si23643946pfd.202.2019.05.28.07.04.53; Tue, 28 May 2019 07:05:09 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726666AbfE1Lax convert rfc822-to-8bit (ORCPT + 99 others); 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