From patchwork Tue Jun 27 15:00:36 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Lendacky X-Patchwork-Id: 9812251 Return-Path: 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 755DA60351 for ; Tue, 27 Jun 2017 15:03:17 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A32C727FAD for ; Tue, 27 Jun 2017 15:03:16 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 96FFE28464; Tue, 27 Jun 2017 15:03:16 +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=-4.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 1EFC527FAD for ; Tue, 27 Jun 2017 15:03:16 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dPryy-0005dY-Pm; Tue, 27 Jun 2017 15:00:48 +0000 Received: from mail6.bemta6.messagelabs.com ([193.109.254.103]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dPryy-0005ca-32 for xen-devel@lists.xen.org; Tue, 27 Jun 2017 15:00:48 +0000 Received: from [193.109.254.147] by server-5.bemta-6.messagelabs.com id 06/1C-03371-F1372595; Tue, 27 Jun 2017 15:00:47 +0000 X-Brightmail-Tracker: H4sIAAAAA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g-Ref: server-5.tower-27.messagelabs.com!1498575644!104224185!1 X-Originating-IP: [104.47.34.85] X-SpamReason: No, hits=0.0 required=7.0 tests= X-StarScan-Received: X-StarScan-Version: 9.4.19; banners=-,-,- X-VirusChecked: Checked Received: (qmail 12348 invoked from network); 27 Jun 2017 15:00:46 -0000 Received: from mail-by2nam01on0085.outbound.protection.outlook.com (HELO NAM01-BY2-obe.outbound.protection.outlook.com) (104.47.34.85) by server-5.tower-27.messagelabs.com with AES256-SHA256 encrypted SMTP; 27 Jun 2017 15:00:46 -0000 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=RlOSin9mKIzn1Bq9OWTDW+2tr+FUHEUJGQ24Dz9wFB4=; b=XzIRH8LSJ+/GcmG3trGTdf8xysTnE4scm+QIUjS+rBLKGoRoYoLUumFmZvAVVfAtHnSEWJu3+MWWesq5LqfPCsAFxUy3f0IAsFgXmtHEJBoh0uGF81swqZ+i8S7YhI4S/+xwEijtZNcEzMUMsJHxtuiDosaV1p5PMMFqY1q+qQs= Received: from tlendack-t1.amdoffice.net (165.204.78.1) by BN6PR12MB1138.namprd12.prod.outlook.com (10.168.226.140) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1199.15; Tue, 27 Jun 2017 15:00:38 +0000 From: Tom Lendacky To: linux-arch@vger.kernel.org, linux-efi@vger.kernel.org, kvm@vger.kernel.org, linux-doc@vger.kernel.org, x86@kernel.org, kexec@lists.infradead.org, linux-kernel@vger.kernel.org, kasan-dev@googlegroups.com, xen-devel@lists.xen.org, linux-mm@kvack.org, iommu@lists.linux-foundation.org Date: Tue, 27 Jun 2017 10:00:36 -0500 Message-ID: <20170627150036.15908.80988.stgit@tlendack-t1.amdoffice.net> In-Reply-To: <20170627145607.15908.26571.stgit@tlendack-t1.amdoffice.net> References: <20170627145607.15908.26571.stgit@tlendack-t1.amdoffice.net> User-Agent: StGit/0.17.1-dirty MIME-Version: 1.0 X-Originating-IP: [165.204.78.1] X-ClientProxiedBy: BN6PR17CA0015.namprd17.prod.outlook.com (10.173.147.25) To BN6PR12MB1138.namprd12.prod.outlook.com (10.168.226.140) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 0a6ce0f2-d84f-4f90-cfca-08d4bd6d46ad X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(48565401081)(300000503095)(300135400095)(201703131423075)(201703031133081)(300000504095)(300135200095)(300000505095)(300135600095); SRVR:BN6PR12MB1138; X-Microsoft-Exchange-Diagnostics: 1; BN6PR12MB1138; 3:DiybHsyWffZAdXsoc6LSj2Kb6YyD1gWPDcyrEAHYygGzx8P0Goar5+Su2LziBxlhkHRk3+X3YWxWxZt7NqUK7fvWoqA4063md17SJn6/mf0TCW4zyinHV/uGONo5/prtcBARubXWxyfh0rDTHqi9NvGNn6W9BZgN8PH2OQ9LBfZsLdYPUWcE+WLA2bNDrDbMRBDLy9vR0rkaaq2MkSNar9A+hHnYkwjV/3kkasd1OzeF+dEKxCDpp0BP3mmWRfcxTd/ZdK1vxEQuRDvNLmd7rfHxfFuIyFeBwDnMsBB9dyVMxvM4jMj89sI6/XTD6Xnv5xIKWGcH18MdlQ6yPvkC9VJv3DvlDSuD6Lf30IFIqeUIgPSg97PovDvdN/0U3c3nPnbIlnl72zYmwRBXe7Py2QVSQ8Wv81uaSRB9LbZwClyWByEDCvmoCkBgGg5Tj+3NswDY2/uPxO7evIZ0zEiRF0RbQJ+1O1TZJGqndNmCj3ofVQjUhk6ipSTgHPrBPvDHV00PbKr7gYuR6NVFoKTxwMXMoISXXvADVVIpe43bcyBnK9abPyxsPC3PQR/fZ4KRFx+v+HZKivFy2SyPlUITsMUEJkEcIndd/63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fe+3X1PPSTd8Qf1YsQsisr3Dzav2PoNqNSbwFTmVB5x3y/suOn6XUuBQ0dRPzi7vquB6b6+yKkJhHn+EZ0csXBk8sdM53AagKe7iKi5y2apLa95JikLOTP4tyhxKElr+FwfNw8Ft8nsLK0jIB7O2aG9awQURQbC5ukTg36mJ3mkdA5RFttXuYblh3TWQf7qEhYUcyPzin6a38FEGXJgveXPoHJ/XweX5RlCN9uDJmATbGcVG6T0FNF X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(133145235818549)(236129657087228)(767451399110); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(5005006)(8121501046)(3002001)(100000703101)(100105400095)(10201501046)(93006095)(93001095)(6055026)(6041248)(20161123555025)(20161123562025)(20161123564025)(20161123560025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123558100)(6072148)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:BN6PR12MB1138; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:BN6PR12MB1138; X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtCTjZQUjEyTUIxMTM4OzQ6a2xkbzBkMkxyTjhmT3NQRCs4VjdUMjM1RjNJ?= =?utf-8?B?UGNJd1ptc1Y1MjVvdjI0bW5SS09zQlpnRVp6a0FQMnE1QlNXejBuWk1XSmZj?= =?utf-8?B?YUg4NENPKzBGdkphWUljZnVlT0dzeGlOUUY4MlEvS1orTGF1VmtOcWxQakxQ?= =?utf-8?B?SGVMVGdQQXBER1YxUmd4OUZXZGNlUk4wRFVuLzhLS1A4TDYvV3NMNm9tbmVF?= =?utf-8?B?K1NzYmR5U1pDSzEwQnBhbkxxYyt4VzFSdCsxN1N5MFl0R21lTnQwekl3ZnMv?= =?utf-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wNmwzZktIalJl?= =?utf-8?B?RjZkYUdJd3I0c3RQMmdrK2NSSkdESy9MbTdSQXdOMEV1cm1qQ2t0UlFZaFh1?= =?utf-8?B?dEVWbFZHaE0yWnJUcnFzYlljNzBjUGVtejJ4RDZvN0I2bVNTYjdVOTVQQmYv?= =?utf-8?B?MmZ1bGFQS0Nvc1JKTFBGSEpyUnk5ZEtlajVKbkFEeU94d0t0M25XR1pMV1Qv?= =?utf-8?B?WkdhcGZWbVlrVFRsTlBkQ1FEdSs3enBnUUZKR0RQNTNCV0w3dTN1cDkxSXNy?= =?utf-8?B?czR3QVFRWmY4djBOcnRxOTZIY2Q3S2RyeHkrc3hXakF2RW8vSmpBWUd3anNx?= =?utf-8?B?UDJaQkY0bFlZSDN4N0hOc2g5ZlhmS1lMYjB4MTVVMjJBaVdRanl6UjRoZ1cv?= =?utf-8?B?Z2h0Nm9MbFlFZkpKQ1RRYmc0SzRSVjdLSWl5Nk1UaU9CRkZPVCtsZ0xQb2Qw?= =?utf-8?B?bGpiOWZhQk4xU2RRejJHRnVjNFFvclk1aWpNNXh3cVdYQ1hXK0JQSGxpbmpF?= =?utf-8?Q?nxlmKmRqNdkkOu1iSZCqY6jPVRKS+lgy5g1StH?= X-Forefront-PRVS: 0351D213B3 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6009001)(39450400003)(39840400002)(39410400002)(39400400002)(39850400002)(39860400002)(2906002)(7406005)(230700001)(305945005)(81166006)(5660300001)(7416002)(4001350100001)(50986999)(76176999)(23676002)(83506001)(97746001)(86362001)(8676002)(54356999)(2950100002)(25786009)(53936002)(66066001)(50466002)(42186005)(33646002)(189998001)(47776003)(6116002)(3846002)(478600001)(1076002)(54906002)(9686003)(55016002)(4326008)(7736002)(72206003)(6506006)(110136004)(38730400002)(53416004)(103116003)(921003)(1121003); DIR:OUT; SFP:1101; SCL:1; SRVR:BN6PR12MB1138; H:tlendack-t1.amdoffice.net; FPR:; SPF:None; MLV:sfv; LANG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QXyGh3gj56nSYDpvZLh4IuYH4= X-Microsoft-Exchange-Diagnostics: 1; BN6PR12MB1138; 20:RotNiInKn5j2+XApZy7cgguU95WMhL81cEfUe4N+xT4JlCQfW72Chq0l4RV+nHoPc4gnMXktgHGt07CeEfZDwOg7S0HSZTPUmu8HDWcUYWkpyXTzG1/74MVvfqj2j8v1YMFLsDNk4kbc3aLfc7fLaHi6w9WqwZ62CAJammnPfjaGZ0WsPRnajMeOpLEzMaQBPOkqDTne156ABkIzeELvLunp+HZGDbKmUODFwkOpUa2OwzkWWnCFCiJOzYo8rub8 X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Jun 2017 15:00:38.4722 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN6PR12MB1138 Cc: Brijesh Singh , Toshimitsu Kani , "Michael S. Tsirkin" , Matt Fleming , Alexander Potapenko , "H. Peter Anvin" , Boris Ostrovsky , Jonathan Corbet , Joerg Roedel , Radim =?utf-8?b?S3LEjW3DocWZ?= , Larry Woodman , Ingo Molnar , Andrey Ryabinin , Dave Young , Rik van Riel , Arnd Bergmann , Borislav Petkov , Andy Lutomirski , Thomas Gleixner , Dmitry Vyukov , Juergen Gross , Paolo Bonzini Subject: [Xen-devel] [PATCH v8 25/38] swiotlb: Add warnings for use of bounce buffers with SME X-BeenThere: xen-devel@lists.xen.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xen.org Sender: "Xen-devel" X-Virus-Scanned: ClamAV using ClamSMTP Add warnings to let the user know when bounce buffers are being used for DMA when SME is active. Since the bounce buffers are not in encrypted memory, these notifications are to allow the user to determine some appropriate action - if necessary. Actions can range from utilizing an IOMMU, replacing the device with another device that can support 64-bit DMA, ignoring the message if the device isn't used much, etc. Signed-off-by: Tom Lendacky --- include/linux/dma-mapping.h | 13 +++++++++++++ lib/swiotlb.c | 3 +++ 2 files changed, 16 insertions(+) diff --git a/include/linux/dma-mapping.h b/include/linux/dma-mapping.h index 4f3eece..a156c40 100644 --- a/include/linux/dma-mapping.h +++ b/include/linux/dma-mapping.h @@ -10,6 +10,7 @@ #include #include #include +#include /** * List of possible attributes associated with a DMA mapping. The semantics @@ -554,6 +555,12 @@ static inline int dma_mapping_error(struct device *dev, dma_addr_t dma_addr) #endif } +static inline void dma_check_mask(struct device *dev, u64 mask) +{ + if (sme_active() && (mask < (((u64)sme_get_me_mask() << 1) - 1))) + dev_warn(dev, "SME is active, device will require DMA bounce buffers\n"); +} + #ifndef HAVE_ARCH_DMA_SUPPORTED static inline int dma_supported(struct device *dev, u64 mask) { @@ -577,6 +584,9 @@ static inline int dma_set_mask(struct device *dev, u64 mask) if (!dev->dma_mask || !dma_supported(dev, mask)) return -EIO; + + dma_check_mask(dev, mask); + *dev->dma_mask = mask; return 0; } @@ -596,6 +606,9 @@ static inline int dma_set_coherent_mask(struct device *dev, u64 mask) { if (!dma_supported(dev, mask)) return -EIO; + + dma_check_mask(dev, mask); + dev->coherent_dma_mask = mask; return 0; } diff --git a/lib/swiotlb.c b/lib/swiotlb.c index 04ac91a..8c6c83e 100644 --- a/lib/swiotlb.c +++ b/lib/swiotlb.c @@ -507,6 +507,9 @@ phys_addr_t swiotlb_tbl_map_single(struct device *hwdev, if (no_iotlb_memory) panic("Can not allocate SWIOTLB buffer earlier and can't now provide you with the DMA bounce buffer"); + if (sme_active()) + pr_warn_once("SME is active and system is using DMA bounce buffers\n"); + mask = dma_get_seg_boundary(hwdev); tbl_dma_addr &= mask;