Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp4214142yba; Wed, 17 Apr 2019 07:02:57 -0700 (PDT) X-Google-Smtp-Source: APXvYqzqjmnBPmH6MPjnLzyE2/EwZQ1akc0MN0oT1k0NZvaCciUJw8py3f3oj/wKRjTZmD1Z0Eu1 X-Received: by 2002:a65:5181:: with SMTP id h1mr4992774pgq.167.1555509777486; Wed, 17 Apr 2019 07:02:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555509777; cv=none; d=google.com; s=arc-20160816; b=m/m80dr+zyFCvuyG92QKOodlH+nWb9YjBAQt/BBMOVDEFArNlQcOchFEECofZ0HqoH ZkuB6EOyQgBx29MtfHm3yYx8k4WqDwLy0yAhxPWh6EjZLKT6tLfpIK5SmCzVC68SjNiQ 4WVg1lR3Vhq/CfJdRqdJj+cG8im2AigGCttJ/AKJo7Gh3pDzVKIGsjLe6jIFNHCo5BXA SPjnf7raJ69KHb4k/api8fe8/UUmI3Su7vkwmNtWVm04dx2oM9camohD25RtQFdci81+ 6admXI2ABMzvEBtT5CF7tc3HCQYHRbtlZgoY3dKYi/lQyPxBY4o0mvKDyGBpOFE/xLgS lKzw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:to:subject:reply-to:dkim-signature; bh=w6bSU+aoJzkpTqgevvPOdjffpkj+vw/h7/N6upl4I1E=; b=NMlqR9/zxDZpszgKeiZy4YcfKS+7HSrghyxdi5+893ezSJ1SdTMaFiLPQ/SKgi4SP6 9mHvTuJaPUfySou0EqTBeIA4c93VV9GxEHDPdc6rRxHuV0ZhXqE+pkscDUbJyCG2I2Sj KDWE3ZvQHHZfO0PkP5wNbopujVbH+9ByHShfIGCgsrrV5ujyF90JXo8XzQwPbXESl4NS eP7zFjtK4TZ4MeB+0KT0VWMTIMC5byIvj6SFsgpO381xs43i1e/2djmR3h09HB+gULg3 DXpDdrWuv305LyChdzLM+GudZoN0TWoOfcfnadi3L481L0I+/nkuozccEpb9uG9PvF16 YYTw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=d3aCrIZf; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f1si52840125pld.32.2019.04.17.07.02.37; Wed, 17 Apr 2019 07:02:57 -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=@gmail.com header.s=20161025 header.b=d3aCrIZf; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732351AbfDQN7z (ORCPT + 99 others); Wed, 17 Apr 2019 09:59:55 -0400 Received: from mail-wr1-f68.google.com ([209.85.221.68]:46316 "EHLO mail-wr1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731454AbfDQN7z (ORCPT ); Wed, 17 Apr 2019 09:59:55 -0400 Received: by mail-wr1-f68.google.com with SMTP id t17so32051170wrw.13; Wed, 17 Apr 2019 06:59:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=reply-to:subject:to:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding:content-language; bh=w6bSU+aoJzkpTqgevvPOdjffpkj+vw/h7/N6upl4I1E=; b=d3aCrIZfC1c8ZNp5KfpUfaTCTrPdWUzFNK5X/zD5gIjtyHC98BsuDA2yMulK00wt3k DQgv8vCihflozMNGhNhP2kjts5Fb6VCJc98bQHzAqUY+/1crXAy3kW4ZqmDuUksOmWdV 1mZuh8Pg+6TnpOthNE/lMrhGo7Wj6Pt8DB7JdIhhTAc408V0fRbycArUbciJ62Ay5dB/ jWuIFmXj8hWO1ZiM5N6BaqBps3zofU+q5QFHZ0alIrACpTwiEVtgZv312QcNUF5W1Fiu i2k/MoouE3CUIdnwr6gS3sFbA506h6j604EO8OFkRcwp+bw8QAMzQU9RMoO21UGoipX5 7LMQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:reply-to:subject:to:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=w6bSU+aoJzkpTqgevvPOdjffpkj+vw/h7/N6upl4I1E=; b=pnsI4GUuuE+7DOWwL7ym4f8JQPbA4a739W6sgJY2UgIIW5f5fi7YKI0k1RNtxr8sGU zrvpHBeyc5v9/D+jxeljmPgPUaZ2aTlSAZjPrS5drMta0OrOoQ/QyhEAOgg/Uorkf7v3 pBGtUq6EXPcVccOGoEFBSBCSR74jCy34JrIol2Wo6qxfbisrLcf5m89Ze6qjyaMAd3Zy TiUpaHnNXj0VIzogLomP5QGlV8FRGCMgSln/cw0HakAdg9D50KrdNQ1QMp4n9tJwmcmj m9t1unV3jdbs1Ndk4iRjlzGucDr2ferkB8zjtg6AoD8lpr4Psn3a3MKsIgAu6KQwLid1 R00w== X-Gm-Message-State: APjAAAWnfg13DrvdcQtMa0j0A6CsG/qoI7tMnskx2DDMnwENrsZoWU1B dY4BTMfB1j7mAnI+Rkw0Vtp9TMJL X-Received: by 2002:adf:e790:: with SMTP id n16mr19803632wrm.292.1555509593857; Wed, 17 Apr 2019 06:59:53 -0700 (PDT) Received: from ?IPv6:2a02:908:1252:fb60:be8a:bd56:1f94:86e7? ([2a02:908:1252:fb60:be8a:bd56:1f94:86e7]) by smtp.gmail.com with ESMTPSA id z18sm84325274wrr.90.2019.04.17.06.59.52 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 17 Apr 2019 06:59:53 -0700 (PDT) Reply-To: christian.koenig@amd.com Subject: Re: dynamic DMA-buf sharing between devices To: Chunming Zhou , "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" References: <20190416183841.1577-1-christian.koenig@amd.com> From: =?UTF-8?Q?Christian_K=c3=b6nig?= Message-ID: <04558379-9788-bbcc-5c64-7fa9ad92f60d@gmail.com> Date: Wed, 17 Apr 2019 15:59:51 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On top of those I have 6 more patches in the pipeline to enable VRAM P2P with DMA-buf. So that is not the end of the patch set :) Christian. Am 17.04.19 um 15:52 schrieb Chunming Zhou: > Thanks Christian, great job. I will verify it this week when I finish my > current work on hand. > > -David > > 在 2019/4/17 2:38, Christian König wrote: >> Hi everybody, >> >> core idea in this patch set is that DMA-buf importers can now provide an optional invalidate callback. Using this callback and the reservation object exporters can now avoid pinning DMA-buf memory for a long time while sharing it between devices. >> >> I've already send out an older version roughly a year ago, but didn't had time to further look into cleaning this up. >> >> The last time a major problem was that we would had to fix up all drivers implementing DMA-buf at once. >> >> Now I avoid this by allowing mappings to be cached in the DMA-buf attachment and so driver can optionally move over to the new interface one by one. >> >> This is also a prerequisite to my patchset enabling sharing of device memory with DMA-buf. >> >> Please review and/or comment, >> Christian. >> >> >> _______________________________________________ >> dri-devel mailing list >> dri-devel@lists.freedesktop.org >> https://lists.freedesktop.org/mailman/listinfo/dri-devel