Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp3497829ybi; Tue, 18 Jun 2019 01:37:30 -0700 (PDT) X-Google-Smtp-Source: APXvYqxNIY3CEyX6CgJtYBZUMA9navZWF4oPKD1BVGOPgYxBJupEIPZp5iXqkNWzyQi0b0pWSdAh X-Received: by 2002:aa7:8a95:: with SMTP id a21mr119764220pfc.215.1560847050727; Tue, 18 Jun 2019 01:37:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560847050; cv=none; d=google.com; s=arc-20160816; b=srYkQZ6UlntjKP7VuDDHbTuRJ53K65eFBi7XFeYgOCZFH6wl/4g80DlhMWTbVNTipP oAZuOAZajnNEOE5h4RTvVKHRO2IW69HRwRexsT3CHx3cMzI2XDkbEmEZK7HrV1joanzC BUcLXGPi62fDmK8Pp6InenyNJ7CCOG44P1lOzfPMjXrmRNXMsOcHomqoRFVH/klJER26 9ojGOeeLdzxz6R9R4YLmyW2PnTdHLHzFFKbGhqzNoZfLROQjmsqvlGNnhAl3gCVLQaw/ elOvH9XBWxEpzxJOHitcoyRhPjwominIawXEiyYFZU5KlKPuc0N+RsykA0bkBkbJQzA1 vBbQ== 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=j5bl/AUg4LE1enMq0pTSXqE03sHs32cNwtVmOsOYlSs=; b=ovis9jBY+WL4doXGKy2ygiRRdgbe60kEMPO3bMCgoyAuXrLVJgQF3U2OiyzQ+wnBZf rlGnGxLLwUHGM5Yv6bh91ZuXjnnAyy5/vlt6Zn+BlvvQBOZjNWERS/VC4u0UyKhtG3Bj zGzoqLaXbjeKMCuiqIsw4KeGOURgQEvrqWG/lMk7K5argGS0RkKoanhHXEYYDhLcmPpb uT3GUUBAe6weU8XQAnKnvpNUOYUHOCzk/mbISVtuwdGitQb2GPqZB7GkiD1NJvFgdMDO +f79LcilSs4sTIWynNQc2OoN6ND2tmCkR5jfDISlon1P6QV/tsLQ3embLHIRPLlVyiyu 9ikQ== 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 61si12620668plr.368.2019.06.18.01.37.15; Tue, 18 Jun 2019 01:37:30 -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 S1729177AbfFRIgv convert rfc822-to-8bit (ORCPT + 99 others); Tue, 18 Jun 2019 04:36:51 -0400 Received: from ZXSHCAS1.zhaoxin.com ([203.148.12.81]:21744 "EHLO ZXSHCAS1.zhaoxin.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1725913AbfFRIgu (ORCPT ); Tue, 18 Jun 2019 04:36:50 -0400 Received: from zxbjmbx2.zhaoxin.com (10.29.252.164) 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, 18 Jun 2019 16:36:46 +0800 Received: from zxbjmbx1.zhaoxin.com (10.29.252.163) by zxbjmbx2.zhaoxin.com (10.29.252.164) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1261.35; Tue, 18 Jun 2019 16:36:45 +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, 18 Jun 2019 16:36:45 +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: AdUlrSR1T73mI8PvQHamV9Uc0ITcpQ== Date: Tue, 18 Jun 2019 08:36:45 +0000 Message-ID: Accept-Language: en-US, zh-CN Content-Language: zh-CN X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.32.64.75] 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-rc5 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