Received: by 2002:a25:b794:0:0:0:0:0 with SMTP id n20csp4122301ybh; Tue, 6 Aug 2019 06:40:26 -0700 (PDT) X-Google-Smtp-Source: APXvYqyDOEyHQyZ9u1FaKDYZv60BUvCYepE//u8Eyb5AnvyABAxXJerq33OHBWtK39V0Lu9Vz3Rd X-Received: by 2002:a17:902:29e6:: with SMTP id h93mr3120563plb.297.1565098826383; Tue, 06 Aug 2019 06:40:26 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1565098826; cv=pass; d=google.com; s=arc-20160816; b=oXp5PipZ47uoXOktkZRPzZYAdmc05HLEHwZSJ0ZZUXPW5oUEj1AXeqhhEcbuI1a6oc KYK6piU7w3i9Z21nhj18DXhyscUPp7L5hWQjSf0e2VXbtK3n04QvM1wbm+0dfjZP4903 OCHLcadKfBH0d87nXpHlL1zQGTJFbtOvTY6RE1UOwj8uCCyWPd+rNX9EWbzzR9InP2L5 6V4nH8SlQ+GgXV4ne6e0JvnbCfrHUqWbT20z9u01m0ULuwuLz9wMJOWFb90ZuBtv9tF4 uJyKvFYX7Z/8OK8hFHPceUg8xKRtY3hoVpbqDNfGccLCzvGraUTejQj3mVfB4bvr+ZrY RefQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-id:content-language:accept-language:in-reply-to:references :message-id:date:thread-index:thread-topic:subject:cc:to:from :dkim-signature; bh=lwW/esXYhGhEUeROiIJOESnT7VKUfz7DmoZrXsEo3Xk=; b=s68mwKWk1YSuRSpnJdRBYoiHHjTvOqP3PGL6tAsKaMoyu+9kZecfrfYCytEziumPzY 1ypVQyCh/DV/ALBmOyG9BY7JDvGpsnsj6JCHwTLxY/7t3QDQjd0Dug0NUgTzbkx3Mjej C+SGeROpwNL2rlDL6l/6Lrcnr/5m2XDDOfn0DZNNHAuCH1aD4E6PfwankVITetvsxjUz Efwqs/VgfMMTzQXhTItlq1tqUuEGdUZdzAvyjV6Yx4+iW+iEfCyR/uB3LwyDKUl+4z1F 1xfAFGrliATxtKKLAMC5VpwiBnbZiLiIOhcQVSTE0UK7YsDlRCuFhq5ZMtIiMXm3+/qq py5A== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amdcloud.onmicrosoft.com header.s=selector1-amdcloud-onmicrosoft-com header.b="ts0fga/Q"; arc=pass (i=1 spf=pass spfdomain=amd.com dkim=pass dkdomain=amd.com dmarc=pass fromdomain=amd.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 b25si52386448pgl.270.2019.08.06.06.40.10; Tue, 06 Aug 2019 06:40:26 -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; dkim=pass header.i=@amdcloud.onmicrosoft.com header.s=selector1-amdcloud-onmicrosoft-com header.b="ts0fga/Q"; arc=pass (i=1 spf=pass spfdomain=amd.com dkim=pass dkdomain=amd.com dmarc=pass fromdomain=amd.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 S1732105AbfHFNjC (ORCPT + 99 others); Tue, 6 Aug 2019 09:39:02 -0400 Received: from mail-eopbgr810058.outbound.protection.outlook.com ([40.107.81.58]:10608 "EHLO NAM01-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1732103AbfHFNjA (ORCPT ); Tue, 6 Aug 2019 09:39:00 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ZTEg16ry3vhRbnRUP+y0x/hsW202Tgro/MRoT6MMSYR4AmH0IXxjw71lKXsuOtwSeXLoflxFAqCE0/e0QbDKN9ABBGLrXOpoV4+c57odQw54nWU0bmCCqBMz2j4O+X4uc8FGKN6P85rmNSG4RlSWwcdmoCFRarUnOb1fWFP0NG2z6FXjQPOIzcDJaOQAR7em/JcJpmtXYtD7Iv2KO5vWhuddTuK5TOvKRgWvTcbWiok8eQu5ykNW5t6QB74WIwaRU8mOduIMixd9golEmOzWppATCEXUYh6MmKKlMq6PKZ/VyA9FQFPgvO0D6gTdU4karC5+YKLiN//ZO3pVUDpW6w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=lwW/esXYhGhEUeROiIJOESnT7VKUfz7DmoZrXsEo3Xk=; b=VIVeLUQZAM/ESzpC8dMfBJnHZdrvT30st5kefSeXorEkHLAdss82WQ5/XSKX6oX3buqqFDRMgzm9vEYamBiXA6CDaAde0c/DEKYCZM6da2Zw+OAJafIPdtGdWIyKQjdu1Kd+q8uB4vKuEpu+1WDG55pvIGbEz8hSHG7xYo7ikKz7NKVXj0TEbwA7zp3zcyUPUMTnkAIOe5LUQgCcfBDYhsQNe5xVrPaXdeU9WH+a9LaBp4yKQCQ9JBpkC0HiglGtAbp19zmxbXKQOr31vgfd7MBMGn23/hQ0BxL3JHnOPEfXde/GBj6t7Aepn09m8Ojycqs7nim3I89mC/Qy6T3LFQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1;spf=pass smtp.mailfrom=amd.com;dmarc=pass action=none header.from=amd.com;dkim=pass header.d=amd.com;arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amdcloud.onmicrosoft.com; s=selector1-amdcloud-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=lwW/esXYhGhEUeROiIJOESnT7VKUfz7DmoZrXsEo3Xk=; b=ts0fga/QAhMYtCjlyJH5bE3tlBgiqYFFjgxV8f7Fut/D1RBfZ8Jtt07fVba+uf8aPvd9OnbqglUFoQS24YW/W1DP12E5+9bgu3qcFcVOwdYD2p1GjSmyRqS4aQhzVDnHvx57SMzJ04dt9hs7Bts4mDEMZWLEVJmps0fRXiaKWkE= Received: from DM6PR12MB3163.namprd12.prod.outlook.com (20.179.104.150) by DM6PR12MB3594.namprd12.prod.outlook.com (20.178.199.81) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2136.16; Tue, 6 Aug 2019 13:38:57 +0000 Received: from DM6PR12MB3163.namprd12.prod.outlook.com ([fe80::9c3d:8593:906c:e4f7]) by DM6PR12MB3163.namprd12.prod.outlook.com ([fe80::9c3d:8593:906c:e4f7%6]) with mapi id 15.20.2136.018; Tue, 6 Aug 2019 13:38:57 +0000 From: "Lendacky, Thomas" To: Christoph Hellwig , Lucas Stach CC: "iommu@lists.linux-foundation.org" , "linux-kernel@vger.kernel.org" , Thiago Jung Bauermann , Halil Pasic Subject: Re: Regression due to d98849aff879 (dma-direct: handle DMA_ATTR_NO_KERNEL_MAPPING in common code) Thread-Topic: Regression due to d98849aff879 (dma-direct: handle DMA_ATTR_NO_KERNEL_MAPPING in common code) Thread-Index: AQHVTDc5jxhkF6eBGE2vQ7mpw/Pby6bt/Q4AgAAjGIA= Date: Tue, 6 Aug 2019 13:38:57 +0000 Message-ID: <41cc93b1-62b5-7fb6-060d-01982e68503b@amd.com> References: <1565082809.2323.24.camel@pengutronix.de> <20190806113318.GA20215@lst.de> In-Reply-To: <20190806113318.GA20215@lst.de> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: SN6PR06CA0020.namprd06.prod.outlook.com (2603:10b6:805:8e::33) To DM6PR12MB3163.namprd12.prod.outlook.com (2603:10b6:5:182::22) 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-ms-office365-filtering-correlation-id: 125b6e18-9dcb-4d2d-73e5-08d71a736e44 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600148)(711020)(4605104)(1401327)(4618075)(2017052603328)(7193020);SRVR:DM6PR12MB3594; x-ms-traffictypediagnostic: DM6PR12MB3594: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:9508; x-forefront-prvs: 0121F24F22 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(4636009)(396003)(366004)(346002)(376002)(136003)(39860400002)(199004)(189003)(6116002)(6246003)(31696002)(256004)(31686004)(3846002)(36756003)(81166006)(86362001)(305945005)(26005)(81156014)(6486002)(478600001)(6512007)(25786009)(8936002)(54906003)(71190400001)(71200400001)(316002)(52116002)(7736002)(2906002)(110136005)(53936002)(64756008)(66556008)(66476007)(102836004)(14454004)(476003)(8676002)(99286004)(66446008)(486006)(5660300002)(76176011)(6436002)(4326008)(11346002)(53546011)(66066001)(229853002)(66946007)(446003)(6506007)(186003)(68736007)(2616005)(386003);DIR:OUT;SFP:1101;SCL:1;SRVR:DM6PR12MB3594;H:DM6PR12MB3163.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: Q+K75nkx9QaGUrW40RiqEbKpYNEaqcEVlKAtTLJLVL4RMXsDra36njh6iP5+gYlJz71ejwMSgWgvc03LM3qXjejMGhissrCKJccUIIeTVZAsUpZygyzXeFV87r7WRRJVOe9kQOchhewyCICvb57sye8Z7yeUHJ0+2I/KuKXYJgrOq7YoLnc7aZulWGcTYJGGOZvX22yLSRr4IezbtqDm3p1PgnWlQg64JLpi/o6Cavr1SIk5aFPR2g17eTd+XWED1npxCPvESkL4seUG5cmRXMgUApTorTOJ9Hv13//BMbmR5627TaWYbdWy+NYhCBUOWwEdPKxzAaBR57ZeeilDYnT5PwaWaLtLqekRyjJnsBZu4ZXuPS8g4qVV/E8haiX55goz+aZy5GlwtBYLwzAm8z6Mn8LuFg+qy7GQTA+SwuY= Content-Type: text/plain; charset="utf-8" Content-ID: <8065952E1A506246A136908F61BC426D@namprd12.prod.outlook.com> Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: 125b6e18-9dcb-4d2d-73e5-08d71a736e44 X-MS-Exchange-CrossTenant-originalarrivaltime: 06 Aug 2019 13:38:57.1444 (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-CrossTenant-userprincipalname: tlendack@amd.com X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR12MB3594 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org T24gOC82LzE5IDY6MzMgQU0sIENocmlzdG9waCBIZWxsd2lnIHdyb3RlOg0KPiBPbiBUdWUsIEF1 ZyAwNiwgMjAxOSBhdCAxMToxMzoyOUFNICswMjAwLCBMdWNhcyBTdGFjaCB3cm90ZToNCj4+IEhp IENocmlzdG9waCwNCj4+DQo+PiBJIGp1c3QgZm91bmQgYSByZWdyZXNzaW9uIHdoZXJlIG15IE5W TWUgZGV2aWNlIGlzIG5vIGxvbmdlciBhYmxlIHRvIHNldA0KPj4gdXAgaXRzIEhNQi4NCj4+DQo+ PiBBZnRlciBzdWJqZWN0IGNvbW1pdCBkbWFfZGlyZWN0X2FsbG9jX3BhZ2VzK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