Message ID | 1496848786-105710-1-git-send-email-Yazen.Ghannam@amd.com (mailing list archive) |
---|---|
State | Mainlined |
Delegated to: | Rafael Wysocki |
Headers | show
Return-Path: <linux-pm-owner@kernel.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 6AF6060350 for <patchwork-linux-pm@patchwork.kernel.org>; Wed, 7 Jun 2017 15:20:07 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AA9E8284A8 for <patchwork-linux-pm@patchwork.kernel.org>; Wed, 7 Jun 2017 15:20:04 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9F1F9284C5; Wed, 7 Jun 2017 15:20:04 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8128D284A8 for <patchwork-linux-pm@patchwork.kernel.org>; Wed, 7 Jun 2017 15:20:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751321AbdFGPUC (ORCPT <rfc822;patchwork-linux-pm@patchwork.kernel.org>); Wed, 7 Jun 2017 11:20:02 -0400 Received: from mail-by2nam01on0053.outbound.protection.outlook.com ([104.47.34.53]:29049 "EHLO NAM01-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750940AbdFGPUA (ORCPT <rfc822;linux-pm@vger.kernel.org>); Wed, 7 Jun 2017 11:20:00 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amdcloud.onmicrosoft.com; s=selector1-amd-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=VbwlwMQa/thN4s1cOe4gQqdDpzdCncAJm5V4yXe/o1g=; b=czIyv0Di2vhjzbyU9Ew4DwjWwPADAt7WDK56C7xr5v0VJQ5LIufCfWzFeExvBnVtu8ey9hHSbYdovotlDG4Sm/Lp5OONepYOTW0MwLssUemWL5Dpp5QrCDVzHIOAON3zulAbxiynEVpaa7AMmudK6XzAj5h+/ozhApzCYlG7F4E= Authentication-Results: vger.kernel.org; dkim=none (message not signed) header.d=none; vger.kernel.org; dmarc=none action=none header.from=amd.com; Received: from yaz-diesel.amd.com (165.204.78.1) by BN6PR1201MB0131.namprd12.prod.outlook.com (10.174.114.144) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1157.12; Wed, 7 Jun 2017 15:19:56 +0000 From: Yazen Ghannam <Yazen.Ghannam@amd.com> To: linux-pm@vger.kernel.org Cc: x86@kernel.org, linux-kernel@vger.kernel.org, rjw@rjwysocki.net, len.brown@intel.com, pavel@ucw.cz, bp@suse.de, Yazen Ghannam <yazen.ghannam@amd.com> Subject: [PATCH v2] x86/ACPI/cstate: Allow ACPI C1 FFH MWAIT use on AMD systems Date: Wed, 7 Jun 2017 10:19:46 -0500 Message-Id: <1496848786-105710-1-git-send-email-Yazen.Ghannam@amd.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [165.204.78.1] X-ClientProxiedBy: DM5PR19CA0017.namprd19.prod.outlook.com (10.175.226.155) To BN6PR1201MB0131.namprd12.prod.outlook.com (10.174.114.144) X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BN6PR1201MB0131: X-MS-Office365-Filtering-Correlation-Id: d104b326-64be-46c4-3ddc-08d4adb8a7d9 X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(48565401081)(201703131423075)(201703031133081); SRVR:BN6PR1201MB0131; X-Microsoft-Exchange-Diagnostics: 1; BN6PR1201MB0131; 3:Vuy0yIElM/cI7N4ug8W1CyPoj1Hdtna/xutapoOf6hvGDXJFDNAxvST54Y11nQzr95+9eWx1H8kfBnSDvX2rzZD6qvz+puJdOLb8XWyoNYMYIJWwfS2q7d9WGKIwcb2L8E8xrwya44yeZisniOzY59vQ+K5yxJX11TmlXkLAmGjikmMTPIxtSgvt9Rm3Qrkjo0qmrd24RPfO6TP7c3D+MHrwlcrICeq8+05NJdd+bQgK5abYKShxVv1QJQao5H12mITYLU1i56cHTX78GowOECxTTwd0vH+0GBGfzzJu/GeMwtdHXbXrwqOnS5qOdDV8CiQGubkbRa5mHBUK0A066G8jAdv0CMlufa8vy1kxQbY=; 25:JMP2w1MgJXbdNy0Fnqx6n0C7eaHonHlOknbO7JLz47H2QDdUxV1DCzaDnQKhxlvzMFGwCySY80cfDDtw6Z7xe+HTMztz2gFfj4uerNXT4+94dbV9/v5pv0hhiVY9MijkviHwsNh8vw1rHTKHfRBMwidavHdkROQuqJb2mHks0nOpPjSRBpf8lK212Ox04m5cnHVzY8M4ZNzFZo0qUmGnRwDpZ9GdBe/aJHj1sLj2AxjQ3qI5nENUy+q/DWu5XbbGtzDOY0dzWdZG3wcUQwWnTJJS5hIb6X8hTmneDE08gHeH8xI0EoaPnspZH68Yjg/flrAl3FKIXuufjqweLYAQQwkuZZrfhp8I70ZQLslRHyweKgdxqcs0vRPS4TgDMT8DbsnnsyT1KrtmvH/iLtGZIgwyywy38C2cQLfaEgoAGZSmDd2oWj+8WmSVZesdZ7tdtO1WYCRgQP9URPvOfobBgZsQ1LMYS73npHBgufHSyq0= X-Microsoft-Exchange-Diagnostics: 1; BN6PR1201MB0131; 31:rUvEZp+mg87sjwRAB1SCvysuzlUByRxdsrsWP3EZZdKsuDzdfGAb8P4EX/uCyLQmEcBPl7b6YyeMU40oVYQG/EL5F/k9TmdL+CGHI6XL6C7lyzs6mN/4DAccTLQPbsZS3e9d2iyE9kzshvftFfxzr4I4N1RrWUORcz0CAjTxwMUZrmMJZkTCfVDPc+sKsSjruv3L9DfWmcALM1CFA/xWbPHCtshq2b57eNv93vpQIwA=; 20:nhJmNimHTkatO64mYrxvcJGTe8px39ODxktjkDFd1ulHpBXCEy8zVAeLFirMT15AR7ocIgRBSsDmooaDNOMiWUCrON/bxA9fsvKEn3qPQqj+7Z8PWJynxwIN7weTNpd7jDVPomPXDKKYu2VZtytsG3dF6IXAlFHFqsodqZNYPmwXL6wupgdYZ7ibeB9J0UN6sW9ZV4OS2vAAbEBhOAPfa98HgZEGQJoL3A9nyePaDpQ+MLoWmyq22SoPRikcuQXNsA7hcJJOY4H/7ssTGIt2dCCWYhuKGc3gvtj514gzRGIFQ9Qmv8nEVnY4b+xKYnCRl/RJNs7lw5I8SLkbz4lUB/t8NfWfnQJvLtzvOW1j3JRosw6UbpNmsPX48WEW/V9SFg+J7RZJ+X2S8gv9u/Pe4eshylAkdsF1Bj1Jp6vxs4xyruyb8m102dUOaNXAUMeSyfXuOCJ5PZlmZ7NF6qzUtiiONwLVb3rSSjTlbiC0KbE+Vgrp/yyFiYdvYi83SdUe X-Microsoft-Antispam-PRVS: <BN6PR1201MB01319BCDE2581360114483E5F8C80@BN6PR1201MB0131.namprd12.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:(767451399110)(42068640409301); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(8121501046)(5005006)(93006095)(93001095)(10201501046)(3002001)(100000703101)(100105400095)(6055026)(6041248)(20161123558100)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123562025)(20161123564025)(20161123560025)(20161123555025)(6072148)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:BN6PR1201MB0131; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:BN6PR1201MB0131; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BN6PR1201MB0131; 4:dQ4f5YhGkAfkWGYKHjRygu8oS2KQVehMbgn5Z4WQ?= =?us-ascii?Q?U3fXdrG4iOz3kGRnZ8i19sYeX9BNzNrA6v75WW/EEanzx5CFxt/Zzc1UJKb7?= =?us-ascii?Q?WAIjhoQIfst1XSpA7kVjP4j6kiDjzQWx66tdgo3PcYjubUBrZvprPjOy+p7Q?= =?us-ascii?Q?g5tLZn+MbFRNo648rfVYlNvGcTFZaJm/m6E8fOgG7p6dqqQ72kTF1mmk+wzz?= =?us-ascii?Q?DgWZEFri7S+m1c/i/aYiSUsIHzjQQy+ek6MqXZDIi1JKR6f2rnkzKyIzZKMo?= =?us-ascii?Q?aMSYq9CXZK29CbFVXkqQrgKkqb+drIAXuzN5nzCs3QZrbd85MSY8IsQFlCQX?= =?us-ascii?Q?stNXFowpLP6qmYMLsmzPCstpiNKULu7Tg/5zzbRNAjFc1GZUATArZ7njNHrW?= =?us-ascii?Q?d74ESMggp27jLdNpEeieTQnqhqzXQenAIM4Wsjd4d0lP2q0xd3bOOysLFHJU?= =?us-ascii?Q?hmfyUPedYPS0sCD3yV7xqfBop4GxuxoP+OGM5mpd+ni8/Tu6a4iJPJzxRkK2?= =?us-ascii?Q?3YxLXQ1mySKZTbXg4VR793JJ2DHBhYwgJuHkNyulTOj5DKzBtzm+Q0h610JK?= =?us-ascii?Q?F5mJTJ4L3AOMQhTpfHXjPIcXGW55m6lYB6ceM+FeiuvhYwqYYWm2fuC0qLhG?= =?us-ascii?Q?ISg0ofhWp32mJ/4gmlUu/SKJO23++p/GQxxHkCwVrPn9XBIpAJtJksUQK0gc?= =?us-ascii?Q?kZJ/S8RZlOqy9i0AO3QzOJw1sOlqTDWktdJtdp9P1mO+suPF1qUFEEe1XjzI?= =?us-ascii?Q?MM+Ch+h0iuJBwEPsoNdc+cl76KpxR0jL2kEXh/YyUT5QORCniT4AwkfRDURq?= =?us-ascii?Q?MxaXO3VIKF2DV4UljrzJVVdGnUlSkT3r3PIQymcTwTRS1XQKpoInO59I8yO6?= =?us-ascii?Q?6aSg3rAlI3LrK2upYYWX81lgyUOJUJwBVJAnD04+zmMauqDa5PKDMmQ17FQ9?= =?us-ascii?Q?95CVl6TJM3tgziOEJ9mnZqk14up0IxADMlsqXNd6YRu8hYCW2YnKqO4mZ9Yo?= =?us-ascii?Q?64Q86UhzfszURRS0t0gWYX92xTKi4iquccgZ+gaRDH6vboX2uRnQ719K+e6/?= =?us-ascii?Q?DQchoWfrshzPEwX7SR8Ns+sMh6AoaxteukTnUtty+rUCTTVuIOV3XvXMK06z?= =?us-ascii?Q?tCnizrwBw6+OxEpbbPAybs5EJBr7fB2g7Au63b/UlLyqJ6ylQbPoPLIzAl+2?= =?us-ascii?Q?BbLmF1OM07BzYNIo+n6URRQmyyEXkYrflv6eCVREajEshyWc+DL31gP74KPj?= =?us-ascii?Q?LB/D16+b5Pu7x9X77ig=3D?= X-Forefront-PRVS: 03319F6FEF X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6009001)(39450400003)(39410400002)(39850400002)(39860400002)(39400400002)(3846002)(25786009)(6306002)(36756003)(72206003)(6486002)(478600001)(966005)(47776003)(86362001)(53416004)(42186005)(305945005)(7736002)(5003940100001)(4326008)(66066001)(6116002)(50226002)(48376002)(110136004)(189998001)(50986999)(2906002)(5660300001)(2351001)(38730400002)(81166006)(53936002)(2361001)(6916009)(50466002)(6666003)(217873001); DIR:OUT; SFP:1101; SCL:1; SRVR:BN6PR1201MB0131; H:yaz-diesel.amd.com; FPR:; SPF:None; MLV:sfv; LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BN6PR1201MB0131; 23:SaOO4Igdz0NNtm/bMa3EBNLgJl/eBvfRozVEo5g?= =?us-ascii?Q?R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8cAdaToCP3U0XTyoX7EfqUB4qcvZAoKXxshU5MV9SDlxXDtoUjgGxJ4/iR0qIFvt0qRAHjWIz1Te8YU+7T4uOelAU7DfmZV2/Q+EcffKaILdSJvWAB6NvPoqrifAyMDIHywlfINs2+4tQtzT5dHzzmqED2EQDt2aA6CpBwc+0gfQA6gHUSF8pCIOpr6VlO9M7aGU2FODiIGbHBPLe3ok2g/dC; 24:RkVXESHx9GnDemfTMuvfn7PdbKyYL4EvNG+/xjOuG+VOfNG7qg0rIPorg/YP0KFmudbxP2eIr7610ipsPcUVLhNzzEucHHybP1iVH8pYJBE= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BN6PR1201MB0131; 7:OIOPXKyNziW/XitIJQBQlvz898CnaFUCyKCMk72xASZVZdgItn0csq9Ql/XtvYeyxqf2jb0EFxUfbFo1Yga0tqyCbuWQw0yriqFQ3nVQD6KAI0arOyL2zj+oLey8IS6plJR9PO+l/ci23wIS1FIqldRR+ChQ3OrAg7UnVF6atAf2BNbCChya2In+X9XJcCne+4I6TtGcCgnZDbQIGOjPiKa52hNnvyNhhJePolguk7t1c49H01iXw/xqfj79Bj25855KDmMCzMKLIVu+cbg0C25QaToogZpeDYw4BAkp722kgqtQAOPCmso7OrzllK8gyXh4gkhkeEz2lIXfXk8xOg==; 20:mjhzedvsWgM3MRt9V433nk5cr2Mtq0mcYuFZsDGxB0dXSmc0rMZrk2hty5ZSP9kf7VlKmE6MehtpOD+6aIKofD8qoshWhhyRPTlmKz2cypHsjO+FtW/41Q8CUlhtzTLd74N2jerfHkB3pmHjqamXv584kRozeY54AWW1T7SrpFA7JlHMEbVtqkCnKvgvH52KwK9kcyXo7PSSg+62/V4IV+9Gl40S2amJQP2Eh1KJqQq6eDmBt6a4UJATdq8IchbP X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Jun 2017 15:19:56.0796 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN6PR1201MB0131 Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: <linux-pm.vger.kernel.org> X-Mailing-List: linux-pm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/arch/x86/kernel/acpi/cstate.c b/arch/x86/kernel/acpi/cstate.c index 8233a63..dde437f 100644 --- a/arch/x86/kernel/acpi/cstate.c +++ b/arch/x86/kernel/acpi/cstate.c @@ -167,7 +167,8 @@ static int __init ffh_cstate_init(void) { struct cpuinfo_x86 *c = &boot_cpu_data; - if (c->x86_vendor != X86_VENDOR_INTEL) + if (c->x86_vendor != X86_VENDOR_INTEL && + c->x86_vendor != X86_VENDOR_AMD) return -1; cpu_cstate_entry = alloc_percpu(struct cstate_entry);