Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1412458imu; Thu, 13 Dec 2018 14:53:42 -0800 (PST) X-Google-Smtp-Source: AFSGD/VjUj1Hb/qLSqZDD2az8Z7LQtdXhIP3ytRFVFcP/1sI7IvO2g0w4p6K35FB1Wb238wBffeH X-Received: by 2002:a17:902:468:: with SMTP id 95mr611586ple.3.1544741622642; Thu, 13 Dec 2018 14:53:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544741622; cv=none; d=google.com; s=arc-20160816; b=A/yAHxDjO9zU/KxHf3Y4jNhgBz+AQqEfGvfuxp11Xykw4mKyFazSLpwRwfF0AB7mp+ 3FuxsPYRlTDb+qMRuVKhgKCnnnDd3OH+/zLWZDqdT/boy3wysXzbvccy5HQZiuVQ5EKx URvZ2OcBUBGzfF0VctuAUfNEQGAoRwQF10wfCyflpsF6CXFQhIwISoKyB+vFJ6iRqK3o u+ZUB3eLvvY5O/pfuV2sOiMdoO9YjX2a7LgqXV/9OnFiJxl0fAqcWeHz8n8XYQFlYTab FsBOpo+IxGUM2l5H0SCKOsqlemipZSi5BXwb5F+JPLGP7gZBxUlNkpQ8YmvPOVSXOK1Q QdsA== 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-id:spamdiagnosticmetadata:spamdiagnosticoutput :content-language:accept-language:message-id:date:thread-index :thread-topic:subject:cc:to:from:dkim-signature; bh=EZ13NgBdxOnFKX1ViClP+b8HpgQ0r6BC0pmboxTEr2w=; b=wLQEFXZEYCDQ1Pvxr50iWbsa4XyVvxW4xAs6cGMC1a7jFQ2wUrtfE0lIHseifkFfH2 pNJd8cJauQ7pCJ6q3YcGFRBqpSbcOOPXMOzu8MqHzLdF0e2uYEHTp8e9cZtihdt2eQfK WU+19ZPZKKYPLEVE5BKdp8Ck1i/m2D4Fep+UBlObglCUDFXjUsQ+2OtzpN82OwFCboE8 DY4BpnqVlosadVerCnFXWPlq9eaBmX5kjx8WqKmL0lV1oyLrs7EPiRjl+p7UgYYpwnxO oHHfEpGUUlXoi0K9gLgs42NVB5yyY08/cj9fDv4XwxRq2JKZjIawg5FG/oaQaSeQqWgf wxng== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amdcloud.onmicrosoft.com header.s=selector1-amd-com header.b=JS7zdCGC; 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 3si2614867plo.102.2018.12.13.14.53.27; Thu, 13 Dec 2018 14:53:42 -0800 (PST) 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; dkim=pass header.i=@amdcloud.onmicrosoft.com header.s=selector1-amd-com header.b=JS7zdCGC; 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 S1728425AbeLMWvS (ORCPT + 99 others); Thu, 13 Dec 2018 17:51:18 -0500 Received: from mail-eopbgr700055.outbound.protection.outlook.com ([40.107.70.55]:38304 "EHLO NAM04-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726813AbeLMWvS (ORCPT ); Thu, 13 Dec 2018 17:51:18 -0500 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=EZ13NgBdxOnFKX1ViClP+b8HpgQ0r6BC0pmboxTEr2w=; b=JS7zdCGCVctBw1voClXgr2pFzsxZ2WYRGCwM+rKujIhxdTi0wbNJkaQnDBxZYsQr4Fm2xt1jRdW00aBLtcT+asVau+D45F9v165ihyEZEWLV1WraqWPp1gMEFGYOZXpZDnxb25DfKri201PWXz6pFJ8MJ56uzeTsjtBLOXQ0X8k= Received: from SN1PR12MB0175.namprd12.prod.outlook.com (10.162.3.15) by SN1PR12MB0767.namprd12.prod.outlook.com (10.164.26.29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1425.20; Thu, 13 Dec 2018 22:51:12 +0000 Received: from SN1PR12MB0175.namprd12.prod.outlook.com ([fe80::bc0e:7f7f:ee65:e2d5]) by SN1PR12MB0175.namprd12.prod.outlook.com ([fe80::bc0e:7f7f:ee65:e2d5%6]) with mapi id 15.20.1425.016; Thu, 13 Dec 2018 22:51:12 +0000 From: "Lendacky, Thomas" To: "iommu@lists.linux-foundation.org" CC: Benjamin Herrenschmidt , "linuxppc-dev@lists.ozlabs.org" , Alexander Duyck , "linux-kernel@vger.kernel.org" , Greg KH , Robin Murphy , Christoph Hellwig , Guenter Roeck Subject: [PATCH] kernel/dma/direct: Do not include SME mask in the DMA supported check Thread-Topic: [PATCH] kernel/dma/direct: Do not include SME mask in the DMA supported check Thread-Index: AQHUkzZYZbIHsqBVPUqwArkjtx2NOg== Date: Thu, 13 Dec 2018 22:51:12 +0000 Message-ID: <20181213225110.6567.69313.stgit@tlendack-t1.amdoffice.net> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: SN4PR0201CA0053.namprd02.prod.outlook.com (2603:10b6:803:20::15) To SN1PR12MB0175.namprd12.prod.outlook.com (2a01:111:e400:5143::15) authentication-results: spf=none (sender IP is ) smtp.mailfrom=Thomas.Lendacky@amd.com; x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [165.204.77.1] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;SN1PR12MB0767;20:I0ZpezcbJNdqj30zr2Uk8wzlqMd6lYFagxzTY8CoEbD1S9cp7PavofUTKOzamIsgTa5fEiYaJPeccZP/HVsEgYsZbfs+j6I137MwwAfYmthmllRTHuA4ciAIB8DFxxjN79OyQ9TPWAMER7qmoYh+/3tLamhKuZhfmxNMp7mrxIEJg2UEJ0oqlBVjeBI0eyH/3Ui/8+218yf3gxGzKl1Cy2WrT1XVNv2i6lqZk+gy4jNfUOU7TkGYvTFVckfXVO20 x-ms-office365-filtering-correlation-id: afb0eaa0-c299-4a0f-5dc0-08d6614d7aee x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390098)(7020095)(4652040)(8989299)(5600074)(711020)(4618075)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(2017052603328)(7153060)(7193020);SRVR:SN1PR12MB0767; x-ms-traffictypediagnostic: SN1PR12MB0767: x-microsoft-antispam-prvs: x-ms-exchange-senderadcheck: 1 x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(8211001083)(3230021)(999002)(6040522)(2401047)(8121501046)(5005006)(823302103)(10201501046)(3002001)(3231475)(944501520)(52105112)(93006095)(93001095)(6055026)(148016)(149066)(150057)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123562045)(20161123558120)(20161123564045)(20161123560045)(201708071742011)(7699051)(76991095);SRVR:SN1PR12MB0767;BCL:0;PCL:0;RULEID:;SRVR:SN1PR12MB0767; x-forefront-prvs: 088552DE73 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(376002)(346002)(366004)(39860400002)(396003)(136003)(189003)(199004)(3846002)(6116002)(97746001)(1076002)(5660300001)(6436002)(2906002)(316002)(6916009)(106356001)(478600001)(476003)(66066001)(68736007)(97736004)(103116003)(14444005)(256004)(71190400001)(71200400001)(486006)(99286004)(33896004)(5640700003)(575784001)(86362001)(6512007)(8936002)(53936002)(186003)(9686003)(305945005)(7736002)(2351001)(25786009)(2501003)(6506007)(386003)(26005)(54906003)(8676002)(39060400002)(4326008)(81166006)(1730700003)(81156014)(52116002)(14454004)(102836004)(105586002)(6486002)(72206003);DIR:OUT;SFP:1101;SCL:1;SRVR:SN1PR12MB0767;H:SN1PR12MB0175.namprd12.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; received-spf: None (protection.outlook.com: amd.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: 6zkrdLhunDhEwPYdxiqOZJI2zTutKZEe0qlQtWotPx63GixHJdVs+EyBXKcP67Pa47VUZhkHFOD4aKI0lrs1hAzqP7n6+uotfWfd35R1SwLwn7VonJlt0J9eRSqZ/YTEsfDv1iv99SuyvXlA8LYbobSteteBFFoIRj7qk3QjX0fii9d5GIa8LU5Ux2Xoan5aegrNmJEKA5hdiAAqcLaz1f3Q81s+ikUgCOZvPoEYBZKtOnFQwMjUlLNq3Vcy+KgOJETKDLC6iLZTI9cQ3g7p2YgAABujBy7mxZb1qBVV+o+sav1980yiiLoY0m9eWwuv spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="utf-8" Content-ID: <4D87B982A8810C41AD4B5C04C918B735@namprd12.prod.outlook.com> Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: afb0eaa0-c299-4a0f-5dc0-08d6614d7aee X-MS-Exchange-CrossTenant-originalarrivaltime: 13 Dec 2018 22:51:12.7435 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN1PR12MB0767 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org VGhlIGRtYV9kaXJlY3Rfc3VwcG9ydGVkKCkgZnVuY3Rpb24gaW50ZW5kcyB0byBjaGVjayB0aGUg RE1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