Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp312255yba; Thu, 18 Apr 2019 01:31:19 -0700 (PDT) X-Google-Smtp-Source: APXvYqyEDIc4ZTsIx/qcCi3yKm4CK15IePKSyt6zX1mF1Y6d6sfjFZImO4yCHSRiERaqN9UNio2N X-Received: by 2002:a17:902:2862:: with SMTP id e89mr75383988plb.203.1555576279539; Thu, 18 Apr 2019 01:31:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555576279; cv=none; d=google.com; s=arc-20160816; b=YhG9/+e6aeiSdhy2hy2qAxpP6QmywFQeusL3YqBFs1yeJEWV2DiceLXSeDRyluZWEx SpHukgCIa2zcRVA5cqoIs02TMLKn86f+S6iPm/ysmJ3oS8GBr7HIV8lNnINzKZG86BNU 754BUkOiDajhrhZX+zK3i27+ziPEdKQqp5jiGgXy998IJTKEUVKXirnc4BExdvVUC0GC jf1T4V5Sd6d3sb/Q0DG+2zsgOmOGdD77phxQ1A+JCfAAXspAnfCNh4f49pY3Ua2Upx4z YAozFT6Tn7aCdZdjs8unOULd16BEl6OJ3NVnnNHJJN+OK6Oetq7SKhn8VXo59SbV35Wk bbMg== 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:user-agent:content-language:accept-language:in-reply-to :references:message-id:date:thread-index:thread-topic:subject:to :from:dkim-signature; bh=RQtbWY6zqqDOHWn2c9H9yhjyF9z9beU8YvgwleVlyB4=; b=iEfNNHA3k3pj45cGW2jZTxuoYSd5etFx6o0R4fqhM2wLdu5ORwyYn7owdDpzNkzOKY 4FhwcpT/fimgdsRcJJf+JGWkd2/H7klSoXFOZQed3b1273jHbaqrBIDsM4lQyng9g9z5 twWHun8TUY2r4VXaD11fasIXfK79WQfHqV0y4Q+3ZO00SlQ7Xdja7pQLwHhGp8lx89GC RJatKdcSnoc/O8sG3fzAoCsOYYZ+sWmrEke1/IIO4EU0bBCCr2yQHJ61AdLlLkWso05q B27pSGnNU7DyP58uU1oJlREp6DtHX+yKKw5tLxj19aGksBdS6tcrlfCnoWx6eLQR1Z+W qiSQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amdcloud.onmicrosoft.com header.s=selector1-amd-com header.b=ayGurQbx; 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 q190si1789747pfc.215.2019.04.18.01.31.04; Thu, 18 Apr 2019 01:31:19 -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-amd-com header.b=ayGurQbx; 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 S2388255AbfDRI2y (ORCPT + 99 others); Thu, 18 Apr 2019 04:28:54 -0400 Received: from mail-eopbgr770072.outbound.protection.outlook.com ([40.107.77.72]:11106 "EHLO NAM02-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728074AbfDRI2y (ORCPT ); Thu, 18 Apr 2019 04:28:54 -0400 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=RQtbWY6zqqDOHWn2c9H9yhjyF9z9beU8YvgwleVlyB4=; b=ayGurQbxpr1IxMizDAbGcF4ecjoClBmaRaEmCej3a70lcJ5e6ILC6oEa6d7G8fkmpXxDlHKDXizys9LIp/Sold9mFoUfO4OCMN/qOxE6cM/eGxtHiZ13ltV9+9KmEzNfTca9Nue+d0PDAbcEJgHIBv6HTI5jWnB1bXglDOWtUIQ= Received: from DM5PR12MB1546.namprd12.prod.outlook.com (10.172.36.23) by DM5PR12MB2504.namprd12.prod.outlook.com (52.132.141.147) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1813.11; Thu, 18 Apr 2019 08:28:51 +0000 Received: from DM5PR12MB1546.namprd12.prod.outlook.com ([fe80::70fc:f26c:1e22:73ba]) by DM5PR12MB1546.namprd12.prod.outlook.com ([fe80::70fc:f26c:1e22:73ba%10]) with mapi id 15.20.1813.013; Thu, 18 Apr 2019 08:28:51 +0000 From: "Koenig, Christian" To: "sumit.semwal@linaro.org" , "linux-media@vger.kernel.org" , "dri-devel@lists.freedesktop.org" , "linaro-mm-sig@lists.linaro.org" , "linux-kernel@vger.kernel.org" , "amd-gfx@lists.freedesktop.org" Subject: Re: [PATCH 04/12] dma-buf: add optional invalidate_mappings callback v5 Thread-Topic: [PATCH 04/12] dma-buf: add optional invalidate_mappings callback v5 Thread-Index: AQHU9b3rtUqKb1xVM0O+lx+3bc1c1aZBlfuA Date: Thu, 18 Apr 2019 08:28:51 +0000 Message-ID: <0611f62c-2b81-b85f-a8d9-69c3daf0c635@amd.com> References: <20190416183841.1577-1-christian.koenig@amd.com> <20190416183841.1577-5-christian.koenig@amd.com> <20190417190719.GL13337@phenom.ffwll.local> <03a04d1d-9bc0-8f20-0436-b0f0017f0506@gmail.com> <20190418080826.GN13337@phenom.ffwll.local> In-Reply-To: <20190418080826.GN13337@phenom.ffwll.local> Accept-Language: de-DE, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: user-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 x-originating-ip: [2a02:908:1252:fb60:be8a:bd56:1f94:86e7] x-clientproxiedby: AM6P193CA0061.EURP193.PROD.OUTLOOK.COM (2603:10a6:209:8e::38) To DM5PR12MB1546.namprd12.prod.outlook.com (2603:10b6:4:8::23) authentication-results: spf=none (sender IP is ) smtp.mailfrom=Christian.Koenig@amd.com; x-ms-exchange-messagesentrepresentingtype: 1 x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 4abfcd8c-e508-4ab8-f947-08d6c3d7e2ce x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(5600141)(711020)(4605104)(4618075)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(2017052603328)(7193020);SRVR:DM5PR12MB2504; x-ms-traffictypediagnostic: DM5PR12MB2504: x-microsoft-antispam-prvs: x-forefront-prvs: 0011612A55 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(136003)(346002)(366004)(396003)(39860400002)(376002)(199004)(189003)(52116002)(11346002)(446003)(31696002)(66574012)(2501003)(86362001)(6246003)(53936002)(99286004)(6512007)(7736002)(65956001)(110136005)(81166006)(6436002)(36756003)(65826007)(65806001)(81156014)(31686004)(2201001)(97736004)(2906002)(305945005)(8936002)(14444005)(68736007)(316002)(25786009)(76176011)(102836004)(478600001)(8676002)(14454004)(229853002)(72206003)(64126003)(6116002)(5024004)(256004)(46003)(93886005)(476003)(386003)(71200400001)(186003)(5660300002)(486006)(6506007)(2616005)(58126008)(6486002)(71190400001);DIR:OUT;SFP:1101;SCL:1;SRVR:DM5PR12MB2504;H:DM5PR12MB1546.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: yeq6uFWXsqLrRK7cmFEBKa7zMtoUrJd/qsnI8RhqQ4leYEBEK/l6VaWAHjY8EiPdsQWb2qYXzdW0h+fHoHKehMddaSnZNdaIvjZOWdQMBsCXNlY7UKIf+fYfTsG328odkm94lC/WFbe1KkWtdL+j2s1d8hXXdPUgjS+LRdY41kwrEjgx7AjvugD+AAN2/jNyLXX/rNqZkFIJRjSf7FbJyjx9BUxZhx2PDwRklZmKOHEo8x43/AQDfjxy4DMKyjWpQMt4PICJaiyxwWZCeGslrF6mTsv40BiJvN9RrlJQJmIApF67Y85ZuDzR/UGQkNTSF7HGMdJW9QiRfWG+Cw0ldc6kJAeVv/ISGlRlQ9NRzeBJ9lmAxUNW8ng3GPFZtVVRSya8TewtSqHiuSzlgYWmitpDO2qjRh9yeZbpebIodCY= Content-Type: text/plain; charset="utf-8" Content-ID: <36AED96C7FBD8D46AB2DE6ACAC60BA31@namprd12.prod.outlook.com> Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: 4abfcd8c-e508-4ab8-f947-08d6c3d7e2ce X-MS-Exchange-CrossTenant-originalarrivaltime: 18 Apr 2019 08:28:51.2916 (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: DM5PR12MB2504 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org QW0gMTguMDQuMTkgdW0gMTA6MDggc2NocmllYiBEYW5pZWwgVmV0dGVyOg0KPiBPbiBXZWQsIEFw ciAxNywgMjAxOSBhdCAwOToxMzoyMlBNICswMjAwLCBDaHJpc3RpYW4gS8O2bmlnIHdyb3RlOg0K Pj4gQW0gMTcuMDQuMTkgdW0gMjE6MDcgc2NocmllYiBEYW5pZWwgVmV0dGVyOg0KPj4+IE9uIFR1 ZSwgQXByIDE2LCAyMDE5IGF0IDA4OjM4OjMzUE0gKzAyMDAsIENocmlzdGlhbiBLw7ZuaWcgd3Jv d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