From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.2 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id BED5BC4360C for ; Wed, 16 Oct 2019 06:12:09 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 9A41E2067D for ; Wed, 16 Oct 2019 06:12:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728318AbfJPGMD (ORCPT ); Wed, 16 Oct 2019 02:12:03 -0400 Received: from mx1.redhat.com ([209.132.183.28]:49326 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725797AbfJPGMD (ORCPT ); Wed, 16 Oct 2019 02:12:03 -0400 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 19CE03082B40; Wed, 16 Oct 2019 06:12:03 +0000 (UTC) Received: from sirius.home.kraxel.org (ovpn-116-43.ams2.redhat.com [10.36.116.43]) by smtp.corp.redhat.com (Postfix) with ESMTP id AF2ED1001B03; Wed, 16 Oct 2019 06:12:02 +0000 (UTC) Received: by sirius.home.kraxel.org (Postfix, from userid 1000) id E371F11AB5; Wed, 16 Oct 2019 08:12:01 +0200 (CEST) Date: Wed, 16 Oct 2019 08:12:01 +0200 From: Gerd Hoffmann To: Tomasz Figa Cc: Daniel Vetter , David Airlie , dri-devel , virtualization@lists.linux-foundation.org, Linux Kernel Mailing List , stevensd@chromium.org, =?utf-8?B?U3TDqXBoYW5l?= Marchesin , Zach Reizner , Keiichi Watanabe , Pawel Osciak Subject: Re: [RFC PATCH] drm/virtio: Export resource handles via DMA-buf API Message-ID: <20191016061201.iinqjcw6trx5qztq@sirius.home.kraxel.org> References: <20190912094121.228435-1-tfiga@chromium.org> <20190917132305.GV3958@phenom.ffwll.local> <20191008100328.GN16989@phenom.ffwll.local> <20191008150435.GO16989@phenom.ffwll.local> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20180716 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.45]); Wed, 16 Oct 2019 06:12:03 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, > up later when given a buffer index. But we would still need to make > the DMA-buf itself importable. For virtio-gpu I guess that would mean > returning an sg_table backed by the shadow buffer pages. The virtio-gpu driver in drm-misc-next supports dma-buf exports. cheers, Gerd From mboxrd@z Thu Jan 1 00:00:00 1970 From: Gerd Hoffmann Subject: Re: [RFC PATCH] drm/virtio: Export resource handles via DMA-buf API Date: Wed, 16 Oct 2019 08:12:01 +0200 Message-ID: <20191016061201.iinqjcw6trx5qztq@sirius.home.kraxel.org> References: <20190912094121.228435-1-tfiga@chromium.org> <20190917132305.GV3958@phenom.ffwll.local> <20191008100328.GN16989@phenom.ffwll.local> <20191008150435.GO16989@phenom.ffwll.local> Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Return-path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by gabe.freedesktop.org (Postfix) with ESMTPS id B41A96E8C1 for ; Wed, 16 Oct 2019 06:12:03 +0000 (UTC) Content-Disposition: inline In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" To: Tomasz Figa Cc: Zach Reizner , David Airlie , Linux Kernel Mailing List , dri-devel , virtualization@lists.linux-foundation.org, Keiichi Watanabe , stevensd@chromium.org, =?utf-8?B?U3TDqXBoYW5l?= Marchesin , Pawel Osciak List-Id: dri-devel@lists.freedesktop.org ICBIaSwKCj4gdXAgbGF0ZXIgd2hlbiBnaXZlbiBhIGJ1ZmZlciBpbmRleC4gQnV0IHdlIHdvdWxk IHN0aWxsIG5lZWQgdG8gbWFrZQo+IHRoZSBETUEtYnVmIGl0c2VsZiBpbXBvcnRhYmxlLiBGb3Ig dmlydGlvLWdwdSBJIGd1ZXNzIHRoYXQgd291bGQgbWVhbgo+IHJldHVybmluZyBhbiBzZ190YWJs ZSBiYWNrZWQgYnkgdGhlIHNoYWRvdyBidWZmZXIgcGFnZXMuCgpUaGUgdmlydGlvLWdwdSBkcml2 ZXIgaW4gZHJtLW1pc2MtbmV4dCBzdXBwb3J0cyBkbWEtYnVmIGV4cG9ydHMuCgpjaGVlcnMsCiAg R2VyZAoKX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJp LWRldmVsIG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBz Oi8vbGlzdHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVs