Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp2030127imm; Sat, 9 Jun 2018 06:34:12 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIdfgprdK3i+O+Mn2ikxy2SteIYSZSXstOIyA/cEft8J1+wTudkqx78H6MCvX1BSmGDQGNK X-Received: by 2002:a65:654a:: with SMTP id a10-v6mr8655699pgw.107.1528551252845; Sat, 09 Jun 2018 06:34:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528551252; cv=none; d=google.com; s=arc-20160816; b=bWTJhpFok6by4gO1Lc+dbeQ6yQcnpkLwG0x0dumrJR/xNi9kF3vVITISbZA8Gr80KA w6qbVAv7RzzUXnR/UllXwve8C6xp8ZY2vy1IIqGoVnRR9MPSln/BXdu/jxfAyb9vccqv kgwAO2hsxQ5DiudJ3isq8ZJ6QvNHZGIfdNVa8h6WGVtQg2Muo6JQMNL8jmMaFq4ChSNe JJzVptQzMqT+YQq/kpeJ+w0v1Ir3V+cF3MwZIEvECu2KJY5XPuF8YvIq0j6z2iBmiKlC r8sDTa5eZ+8+RxBLMEv2kzABahAPxHijzPYOg501ge2vm84tGOvzbF5b6rchd+Pd4e11 ygZQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=T84boSXDP7c1Lw0PC7ainRxXkaRxnJBNpNKYp5zzBRY=; b=0BEhesyOfiPgElIhPKPYHjsdrpT9OoXjeMH8IMNjbC855XklYd0wff9MQlazFOtiD9 PMlDbDPCRUyn7kdF1am05DE1J6ETEXfX+V6W4cyWHq2U90jPlAf8l2Jt3CUKyTM56rUv /VskfuEoL+wQFvh2l8Fwm4PvVeJWtCk7csggqX2ZBusVrI82T6lRSVythJTMBP/Sk+Lt J5S+aR037pCXM4Jwy6sc6uzU6+zirv6RpPP+B+BwXFf0jsK7H92OUHsuYSiAa5o2kudg iVsHrA+C8GTJWofrlqvQDWhCTx/4tFVf4QJxB+feWr6tOTwPpyPLQaT3eAMwCR8fLFud TUwg== 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 t82-v6si20197205pfi.221.2018.06.09.06.33.58; Sat, 09 Jun 2018 06:34:12 -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 S1753495AbeFINc0 (ORCPT + 99 others); Sat, 9 Jun 2018 09:32:26 -0400 Received: from smtp21.cstnet.cn ([159.226.251.21]:44190 "EHLO cstnet.cn" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753260AbeFINaW (ORCPT ); Sat, 9 Jun 2018 09:30:22 -0400 Received: from pw-vbox.higon.com (unknown [182.150.46.145]) by APP-01 (Coremail) with SMTP id qwCowACHjy_y1BtbC1REBA--.1344S2; Sat, 09 Jun 2018 21:24:08 +0800 (CST) From: Pu Wen To: rjw@rjwysocki.net, lenb@kernel.org, zhangpanyong@hygon.cn Cc: tglx@linutronix.de, mingo@redhat.com, hpa@zytor.com, x86@kernel.org, thomas.lendacky@amd.com, peterz@infradead.org, tony.luck@intel.com, bp@alien8.de, pbonzini@redhat.com, rkrcmar@redhat.com, boris.ostrovsky@oracle.com, jgross@suse.com, viresh.kumar@linaro.org, mchehab@kernel.org, trenn@suse.com, shuah@kernel.org, linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, linux-x86_64@vger.kernel.org, linux-pci@vger.kernel.org, linux-acpi@vger.kernel.org, linux-edac@vger.kernel.org, linux-pm@vger.kernel.org, kvm@vger.kernel.org, xen-devel@lists.xenproject.org, Pu Wen Subject: [PATCH 08/11] driver/acpi: Add support for Hygon's Dhyana Family 18h processor Date: Sat, 9 Jun 2018 21:23:53 +0800 Message-Id: <1528550633-28441-1-git-send-email-puwen@hygon.cn> X-Mailer: git-send-email 2.7.4 X-CM-TRANSID: qwCowACHjy_y1BtbC1REBA--.1344S2 X-Coremail-Antispam: 1UD129KBjvdXoW7Xry3uF1UCr1UKw13KF13CFg_yoWkKrc_uF 1vkFyxJa1qkF4kZF4xJrnxZryjy3Z7XF1kWrnFqa1fCF1xZry3Ja4jva45Wr1Yva97GFsa vw1qgr1q9ry3CjkaLaAFLSUrUUUUjb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUIcSsGvfJTRUUUbIkFF20E14v26rWj6s0DM7CY07I20VC2zVCF04k26cxKx2IYs7xG 6rWj6s0DM7CIcVAFz4kK6r1j6r18M28lY4IEw2IIxxk0rwA2F7IY1VAKz4vEj48ve4kI8w A2z4x0Y4vE2Ix0cI8IcVAFwI0_JFI_Gr1l84ACjcxK6xIIjxv20xvEc7CjxVAFwI0_Gr1j 6F4UJwA2z4x0Y4vEx4A2jsIE14v26r4j6F4UM28EF7xvwVC2z280aVCY1x0267AKxVW8Jr 0_Cr1UM2AIxVAIcxkEcVAq07x20xvEncxIr21l5I8CrVACY4xI64kE6c02F40Ex7xfMcIj 6xIIjxv20xvE14v26r1q6rW5McIj6I8E87Iv67AKxVWxJVW8Jr1lOx8S6xCaFVCjc4AY6r 1j6r4UM4x0Y48IcxkI7VAKI48JM4x0x7Aq67IIx4CEVc8vx2IErcIFxwACI402YVCY1x02 628vn2kIc2xKxwCF04k20xvY0x0EwIxGrwCFx2IqxVCFs4IE7xkEbVWUJVW8JwC20s026c 02F40E14v26r1j6r18MI8I3I0E7480Y4vE14v26r106r1rMI8E67AF67kF1VAFwI0_GFv_ WrylIxkGc2Ij64vIr41lIxAIcVC0I7IYx2IY67AKxVWUCVW8JwCI42IY6xIIjxv20xvEc7 CjxVAFwI0_Gr1j6F4UJwCI42IY6xAIw20EY4v20xvaj40_Gr0_Zr1lIxAIcVC2z280aVAF wI0_Gr0_Cr1lIxAIcVC2z280aVCY1x0267AKxVW8Jr0_Cr1UYxBIdaVFxhVjvjDU0xZFpf 9x0JUCksDUUUUU= X-Originating-IP: [182.150.46.145] X-CM-SenderInfo: psxzv046klw03qof0z/ Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch enables the ACPI driver support to Hygon Family 18h CPU: - Add Hygon support in power_saving_mwait_init(). - Add Hygon support in lapic_timer_state_broadcast(). Signed-off-by: Pu Wen --- drivers/acpi/acpi_pad.c | 1 + drivers/acpi/processor_idle.c | 1 + 2 files changed, 2 insertions(+) diff --git a/drivers/acpi/acpi_pad.c b/drivers/acpi/acpi_pad.c index 552c1f7..a47676a 100644 --- a/drivers/acpi/acpi_pad.c +++ b/drivers/acpi/acpi_pad.c @@ -70,6 +70,7 @@ static void power_saving_mwait_init(void) #if defined(CONFIG_X86) switch (boot_cpu_data.x86_vendor) { + case X86_VENDOR_HYGON: case X86_VENDOR_AMD: case X86_VENDOR_INTEL: /* diff --git a/drivers/acpi/processor_idle.c b/drivers/acpi/processor_idle.c index abb559c..b2131c4 100644 --- a/drivers/acpi/processor_idle.c +++ b/drivers/acpi/processor_idle.c @@ -205,6 +205,7 @@ static void lapic_timer_state_broadcast(struct acpi_processor *pr, static void tsc_check_state(int state) { switch (boot_cpu_data.x86_vendor) { + case X86_VENDOR_HYGON: case X86_VENDOR_AMD: case X86_VENDOR_INTEL: case X86_VENDOR_CENTAUR: -- 2.7.4