From patchwork Thu Mar 28 15:04:32 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Woods, Brian" X-Patchwork-Id: 10875093 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 0DB8B186E for ; Thu, 28 Mar 2019 15:06:36 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id ED91228AB8 for ; Thu, 28 Mar 2019 15:06:35 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E047928D17; Thu, 28 Mar 2019 15:06:35 +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=-5.0 required=2.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 92C7D28AB8 for ; Thu, 28 Mar 2019 15:06:35 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1h9Wa7-00020G-L4; Thu, 28 Mar 2019 15:04:39 +0000 Received: from all-amaz-eas1.inumbo.com ([34.197.232.57] helo=us1-amaz-eas2.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1h9Wa6-0001zi-An for xen-devel@lists.xen.org; Thu, 28 Mar 2019 15:04:38 +0000 X-Inumbo-ID: cc6deb42-516a-11e9-869b-efd490fcb122 Received: from NAM03-BY2-obe.outbound.protection.outlook.com (unknown [40.107.78.48]) by us1-amaz-eas2.inumbo.com (Halon) with ESMTPS id cc6deb42-516a-11e9-869b-efd490fcb122; Thu, 28 Mar 2019 15:04:35 +0000 (UTC) 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:X-MS-Exchange-SenderADCheck; bh=FJmv5ncngiQjjU/nRhKdkRf2URq8NAOAAsN4Y8A6f3k=; b=4zInYNJQutQ+duHrHYwaErgD7QzhrWmHV+H4sHm4qBP8MAYWKoJeAMuTsg7dF29FWNM5jVuuPE4oByFF3yDNt1wgh/RBm+OJ6xM4DrykgWTbMH9e0ctGybWUQBvbE8c4huWoUxMqgOhdLGy2vfFnIdYWfOyds1/BhQV878DxC20= Received: from MWHPR12MB1597.namprd12.prod.outlook.com (10.172.56.10) by MWHPR12MB1454.namprd12.prod.outlook.com (10.172.55.135) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1750.17; Thu, 28 Mar 2019 15:04:33 +0000 Received: from MWHPR12MB1597.namprd12.prod.outlook.com ([fe80::d8d0:f630:f358:d1a8]) by MWHPR12MB1597.namprd12.prod.outlook.com ([fe80::d8d0:f630:f358:d1a8%9]) with mapi id 15.20.1730.019; Thu, 28 Mar 2019 15:04:33 +0000 From: "Woods, Brian" To: "xen-devel@lists.xen.org" Thread-Topic: [PATCH v2 0/3] mwait support for AMD processors Thread-Index: AQHU5XeM504EUMjU30KXwgaAbNMDuQ== Date: Thu, 28 Mar 2019 15:04:32 +0000 Message-ID: <20190328150426.7295-1-brian.woods@amd.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: SN1PR12CA0048.namprd12.prod.outlook.com (2603:10b6:802:20::19) To MWHPR12MB1597.namprd12.prod.outlook.com (2603:10b6:301:10::10) authentication-results: spf=none (sender IP is ) smtp.mailfrom=Brian.Woods@amd.com; x-ms-exchange-messagesentrepresentingtype: 1 x-mailer: git-send-email 2.11.0 x-originating-ip: [165.204.78.1] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 0b6fc2ea-6a0e-414c-70df-08d6b38eaf35 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600127)(711020)(4605104)(4618075)(2017052603328)(7153060)(7193020); SRVR:MWHPR12MB1454; x-ms-traffictypediagnostic: MWHPR12MB1454: x-microsoft-antispam-prvs: x-forefront-prvs: 0990C54589 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(376002)(136003)(366004)(39860400002)(346002)(396003)(199004)(189003)(81156014)(54906003)(86362001)(71190400001)(71200400001)(81166006)(105586002)(102836004)(97736004)(50226002)(2906002)(106356001)(36756003)(2351001)(26005)(5660300002)(8676002)(6116002)(3846002)(8936002)(186003)(386003)(6506007)(316002)(53936002)(478600001)(7736002)(66066001)(486006)(1076003)(2616005)(4326008)(4744005)(305945005)(476003)(2501003)(99286004)(72206003)(14454004)(5640700003)(6916009)(25786009)(68736007)(256004)(6436002)(6512007)(52116002)(6486002); DIR:OUT; SFP:1101; SCL:1; SRVR:MWHPR12MB1454; H:MWHPR12MB1597.namprd12.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; received-spf: None (protection.outlook.com: amd.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: iRkvddG048NzmnOib6EZMPSQb1S99HSpBi0lRYk9pLJF+ygCc+hg0TSbZ2cykRfmpg5BME54tcgBiL4btlFoqITW3c6t/VW3a2q0DCFjhdPvjM9iqDTCSQCBcerTKE1tGXKb4iHvcZyGWdKEil61U54SaL/Zf55UDLxATiMmdsX278EP8RTjGEleIvz9WKuBdsQLIFv0hNKyG49w84cnecUWlQu7ns2I0kIrjmX3OcGZZJgTNIASZ1L3UCiQ6zhVP9VmOAq7MGq4k39SCvy54QhKwcR+Ze2EU+rwB+bSPGI+OsD05y0betFRayn3gE/aGjzril1Ya83z3CRxbtkfpNixjSD67+IhFkZMIQDGU28zDd6HnGbf5Lgcjra3yZkm8gRBEseoFi2rDqUlxl6wBygKnOQuMhfUEJvqzraP4jc= MIME-Version: 1.0 X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: 0b6fc2ea-6a0e-414c-70df-08d6b38eaf35 X-MS-Exchange-CrossTenant-originalarrivaltime: 28 Mar 2019 15:04:32.9590 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR12MB1454 Subject: [Xen-devel] [PATCH v2 0/3] mwait support for AMD processors X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Cc: Andrew Cooper , Wei Liu , "Woods, Brian" , Jan Beulich , =?iso-8859-1?q?Roger_Pau_Monn=E9?= Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" X-Virus-Scanned: ClamAV using ClamSMTP This patch series add support and enablement for mwait on AMD Naples and Rome processors. Newer AMD processors support mwait, but only for c1, and for c2 halt is used. The mwait-idle driver is modified to be able to use both mwait and halt for idling. Brian Woods (3): mwait-idle: add support for using halt mwait-idle: add support for AMD processors mwait-idle: add enablement for AMD Naples and Rome xen/arch/x86/acpi/cpu_idle.c | 2 +- xen/arch/x86/cpu/mwait-idle.c | 62 ++++++++++++++++++++++++++++++++++++++----- xen/include/asm-x86/cpuidle.h | 1 + 3 files changed, 57 insertions(+), 8 deletions(-)