Received: by 2002:a25:b794:0:0:0:0:0 with SMTP id n20csp4166101ybh; Tue, 6 Aug 2019 07:20:44 -0700 (PDT) X-Google-Smtp-Source: APXvYqySGso7wCCGrGAtPgGVjyshhgEIWgu+ZCEVinkiFUnMoEEJHhYqrbxWDaf1LumKAjhJaMAk X-Received: by 2002:a63:494d:: with SMTP id y13mr3319594pgk.109.1565101244167; Tue, 06 Aug 2019 07:20:44 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1565101244; cv=pass; d=google.com; s=arc-20160816; b=uLAmS3vPhBGWtpmOd0MaQa3x1o7Q9na55yE37Fuxhf5QOpFddRTXjgCV0Y3Cc8a7Ao 5TX1Nr30hlKkytZiSn/NP6rIE6G+dVFd29t+EYNRMzwsRx1O3vt+o6zFJOyzg12UDL4R +dAVe0FaY5GOtTuL98Qzl0J37ANB890cMYv5AOGTiUCrYWxkzfdPk9eW/Zh7Woh2rLIZ gR2nQH42OJxpI3bR7z5omJMwsqsBsy6fVzyM5eyK5UmQNmODeYVfUwkG6jgs1jxbApME HErkegR1yd5rZmM+S9wz/IvD76TOFNY7xgBpGe/i84g7IXiNZqxmykhqIPc2OYL2hPtY O0Vw== 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=gj7GKjLT/N+X/RBRdPGEi/Oj4Nh+AZ4NMO0kN71qCxs=; b=n56EfwKhDs44Xz6xhzoBR03KBWTDpB+FbY/TYxvtZtLenFVxe6deyfiKXwXtRRxowR G7DSFsV2kK5gn3tL7lO8nL66wW53kZYAVrclpRVZSDJiO46/5kDJ6u7qih+Ny8uLiUvY qOmQma/qmES8yKxFgOO/JKZf1aZeIAtkFE5CcLTDCdeHNIrMURPLAMCR8zhh8ykRKx82 ka4Q1Fhr2g+Z9JzrAFLu1RTx7bXQc1IwZegei+OTNqCDh8FFvhsxsRrV6X2uTcGxEqIV zIxpV0a9bE3VMnAt+MdoUjUgsJbycplyZqAeDTfdUyqcv2BH8ZJo1G6bJNo4QaHVlvJI t/2A== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amdcloud.onmicrosoft.com header.s=selector1-amdcloud-onmicrosoft-com header.b=ZLAHtaJU; 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 3si70624031plz.57.2019.08.06.07.20.28; Tue, 06 Aug 2019 07:20:44 -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=ZLAHtaJU; 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 S1733043AbfHFOSy (ORCPT + 99 others); Tue, 6 Aug 2019 10:18:54 -0400 Received: from mail-eopbgr700084.outbound.protection.outlook.com ([40.107.70.84]:51296 "EHLO NAM04-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1733024AbfHFOSw (ORCPT ); Tue, 6 Aug 2019 10:18:52 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=nnbGwcYhcY4nWQ5+cBifHys90szgxOBXMl4abuQMwfUi15ihfx3ZQskD2sVUgkdQ6ML6qNtgWJkgjr+5tQmBpigYoOpAIRKb6cBmYBY9Q8uwcfr2+oV+5afkhRrqdRelL4dTeUMjoQu5YtoLlxko32plybffIJCzp0qNSrV4ixTjre1qjP6C0OnD5elaPjFBhmPHAD3vqKOoDrBpi4+mpYwDgryp7EIMYSuqFUxQ6UHKEk9vq3XHmd0FFY5xg0uY1hIsJvDlRAuaY4qXon7KSYaYnUG3lZSQZtLwtLuDKAOImDAx0RL8JAJZy0lAP9rrYxTtbeXIdiaCpLqA5aBrUg== 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=gj7GKjLT/N+X/RBRdPGEi/Oj4Nh+AZ4NMO0kN71qCxs=; b=k2wFPbUtVGN2EjVF27YBkuoFFqt7O3zHCzua3ulIR9OGhyjS2eBgQV4JJq4h7XHTI5QQM+Zu+o9fOaGpymxDGWLTgFK/8gwzUa+MkzLZBhPlwyaMDoJTyV5Of1IjAUNxvyen/GFVIAPlG8zsx7ObzefujTjJSC5uBi4urHGwbHrHILksUpzjLQajZvoFZKdMUemaLO5E4dNoVKoyQSFiJE8G1a1B2kBipmHZTqpG0UpYYI4CcRan22ILzz/8ZjqEpJPEQ8qCPfxwWdICvtgT/FOzY2ppqShNqo19fj2Gwlos9M8YYXBYWHnRCtriljus7dNQkFi/7GcSw+pNCjLudw== 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=gj7GKjLT/N+X/RBRdPGEi/Oj4Nh+AZ4NMO0kN71qCxs=; b=ZLAHtaJU+eQBbzfY3xCv/lvWRUEX0t/ZBUkIpZ6wh3UWJ/YwBjSFvAL35p6x38cc1C177Bh18S2RdUXlUR1qQcDC62yRM55ZLdc+U9QnYvsMg1yN8NrDFT2G0FY4GTjzVvQ8jkD485WgsDebRB3pL8KAePGe76iqc4sxtptlnug= Received: from DM6PR12MB3163.namprd12.prod.outlook.com (20.179.104.150) by DM6PR12MB3833.namprd12.prod.outlook.com (10.255.173.138) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2136.17; Tue, 6 Aug 2019 14:18:49 +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 14:18:49 +0000 From: "Lendacky, Thomas" To: Lucas Stach , Christoph Hellwig 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/Q4AgAAjGICAAAcMAIAAAMsAgAADTYA= Date: Tue, 6 Aug 2019 14:18:49 +0000 Message-ID: <78833204-cd30-1a4b-54e3-1580018c6d57@amd.com> References: <1565082809.2323.24.camel@pengutronix.de> <20190806113318.GA20215@lst.de> <41cc93b1-62b5-7fb6-060d-01982e68503b@amd.com> <20190806140408.GA22902@lst.de> <1565100418.2323.32.camel@pengutronix.de> In-Reply-To: <1565100418.2323.32.camel@pengutronix.de> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: SN6PR08CA0003.namprd08.prod.outlook.com (2603:10b6:805:66::16) 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: 0a3e4f29-f288-48c3-da65-08d71a79000f 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:DM6PR12MB3833; x-ms-traffictypediagnostic: DM6PR12MB3833: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:3826; x-forefront-prvs: 0121F24F22 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(4636009)(39860400002)(136003)(376002)(396003)(346002)(366004)(189003)(199004)(66476007)(6506007)(3846002)(7736002)(6116002)(64756008)(386003)(66556008)(66446008)(14454004)(305945005)(110136005)(36756003)(256004)(76176011)(102836004)(71190400001)(71200400001)(14444005)(52116002)(486006)(53546011)(54906003)(68736007)(4326008)(99286004)(66946007)(316002)(2906002)(11346002)(6246003)(6512007)(31686004)(53936002)(86362001)(8936002)(31696002)(229853002)(6486002)(2616005)(6436002)(25786009)(5660300002)(81166006)(81156014)(26005)(478600001)(186003)(8676002)(66066001)(476003)(446003);DIR:OUT;SFP:1101;SCL:1;SRVR:DM6PR12MB3833;H:DM6PR12MB3163.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-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: lKx+BUlcDIYAul2bXPagh2gc6pO0ae6OcwMf5oSdUsbjoB40iPIaSKJSQkTuNYJ8P7JWCuWhyVqoEpAAALPCYnG5sWK7t8ZYMCd18F89CSuwL+R6v+LRkdomO81diO4nV/xwija5he34ZXq4oT7rb8bSGnOqxIa1dnhURN0po2f9J7b/TvmnEOLrUlF01QvemEpJV8sm2tNORs5UC+931jFBQrB5eVsErqTuikbaplp0chhVEQ1SQuZNSzeWCNN5OwGGlMefJGWkCgkZEN7K4j5hoxIYX+AnxjtLuPyztDCxdqZGhKhhM/Vta6guxOUEv+JcxIM5z2fTpCIJ07ufItwNPIzLOsHzaY0KjDdXwykn2aLf0eDMY56vR3eTsTeF6jCNVmoegoeorQO4qcY0t4zJEycsVyuz+q7EbpG/4tM= Content-Type: text/plain; charset="utf-8" Content-ID: Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: 0a3e4f29-f288-48c3-da65-08d71a79000f X-MS-Exchange-CrossTenant-originalarrivaltime: 06 Aug 2019 14:18:49.3156 (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: DM6PR12MB3833 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org T24gOC82LzE5IDk6MDYgQU0sIEx1Y2FzIFN0YWNoIHdyb3RlOg0KPiBBbSBEaWVuc3RhZywgZGVu IDA2LjA4LjIwMTksIDE2OjA0ICswMjAwIHNjaHJpZWIgQ2hyaXN0b3BoIEhlbGx3aWc6DQo+PiBP aywgZG9lcyB0aGlzIHdvcms/DQo+Pg0KPj4gLS0NCj4+IEZyb20gMzRkMzVmMzM1YTk4ZjUxNWYy NTE2YjUxNTA1MWUxMmVhZTc0NGM4ZCBNb24gU2VwIDE3IDAwOjAwOjAwIDIwMDENCj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