Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3379176yba; Mon, 29 Apr 2019 00:55:57 -0700 (PDT) X-Google-Smtp-Source: APXvYqx1GTbqmPL5A5l5Im9guSxOHGJLRR3lyr4FlOLcXtVLa8AR1C5DA4qx88zoH5hGmqkli8wD X-Received: by 2002:aa7:9148:: with SMTP id 8mr30761014pfi.176.1556524556995; Mon, 29 Apr 2019 00:55:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556524556; cv=none; d=google.com; s=arc-20160816; b=bdRUkaW1kbkwnYuQvHCGhWe0Wx+96S/xFfu0Le/hOIEur6tCQ5stthR9mvje1EdZ/g 5VrOeK3LD7FKjXEgHa3tHEUhCADidqrmaTs9JybVW9s/r9vaJQZ8Uu70642tYiq5cQfo jUtlifLAvadn3+HRvOzIPV5cBV/yXTxd3DDL1C28FdcUNlD8WWpEfdSX3xuWbNHQtpWm LppYhksUFFW4Tljc6Gq8Cw7X4jWfMGaFFe3kU50olfh+VOAAOCJ+znHQv5QM/Z7MmJaB HN6IupVfmEFIVq8iMEyWcRjBs0XRtHQ2rSgFPD+O2QMiByyAmWw7Qr0tsSDc4eza3CQP hiMw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=Ieo4PBvS2prLvHB18kZkG3kJ/k2e5KK7EJwgpRU13ik=; b=hhuKkuwyk7DKtDVpGActKihI9BIM0UGa4eHwImlPLj1d/Nz+G5OKHigdZ9f4e0ctQZ IPOlU80yEhXF3jrmiVZSFGSbyGNRfmkSlCxbEq+JvFb3AoVMj/Ouiq1ZdLfk8KIgVZTx Po1LfyMs4J40s1UvqQHcW+L7yt2+XTzQ8C1nQJtxFrPPr4E6nyQrbqihZEjVy4aXELMC oBu4SC8kDmDQgywpRr5qgusb7tEP1Of4d5Xd2mRe+LPHF1r0KNTtJF6yXu3ImnarvjaY V1en84pcg03ZgGNBmbTATIfKDPSpb+RyAK7VgAonOWPIu17UN79X+1OwStRj7fJg92cl IlWQ== ARC-Authentication-Results: i=1; mx.google.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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d3si31491099pgh.238.2019.04.29.00.55.41; Mon, 29 Apr 2019 00:55:56 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727595AbfD2HyQ (ORCPT + 99 others); Mon, 29 Apr 2019 03:54:16 -0400 Received: from mx1.redhat.com ([209.132.183.28]:37292 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727498AbfD2HyP (ORCPT ); Mon, 29 Apr 2019 03:54:15 -0400 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 5AD6F309266F; Mon, 29 Apr 2019 07:54:15 +0000 (UTC) Received: from sirius.home.kraxel.org (ovpn-116-45.ams2.redhat.com [10.36.116.45]) by smtp.corp.redhat.com (Postfix) with ESMTP id D21FD600C2; Mon, 29 Apr 2019 07:54:14 +0000 (UTC) Received: by sirius.home.kraxel.org (Postfix, from userid 1000) id F157311AAA; Mon, 29 Apr 2019 09:54:13 +0200 (CEST) Date: Mon, 29 Apr 2019 09:54:13 +0200 From: Gerd Hoffmann To: Daniel Vetter Cc: David Airlie , open list , dri-devel , "open list:DRM DRIVER FOR QXL VIRTUAL GPU" , "open list:DRM DRIVER FOR QXL VIRTUAL GPU" , David Airlie Subject: Re: [Spice-devel] [PATCH] Revert "drm/qxl: drop prime import/export callbacks" Message-ID: <20190429075413.smcocftjd2viznhv@sirius.home.kraxel.org> References: <20190426053324.26443-1-kraxel@redhat.com> 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.79 on 10.5.11.11 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.43]); Mon, 29 Apr 2019 07:54:15 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Apr 26, 2019 at 04:21:37PM +0200, Daniel Vetter wrote: > On Fri, Apr 26, 2019 at 7:33 AM Gerd Hoffmann wrote: > > > > This reverts commit f4c34b1e2a37d5676180901fa6ff188bcb6371f8. > > > > Simliar to commit a0cecc23cfcb Revert "drm/virtio: drop prime > > import/export callbacks". We have to do the same with qxl, > > for the same reasons (it breaks DRI3). > > > > Drop the WARN_ON_ONCE(). > > > > Fixes: f4c34b1e2a37d5676180901fa6ff188bcb6371f8 > > Signed-off-by: Gerd Hoffmann > > Maybe we need some helpers for virtual drivers which only allow > self-reimport and nothing else at all? The current gem prime helpers handle this reasonable well, I don't see a need for that. More useful would be some way to signal this self-reimport capability to userspace somehow. See DRM_PRIME_CAP_LOCAL patch. Right now I have the choice to set DRM_PRIME_CAP_{IMPORT,EXPORT}, in which case some userspace assumes it can do cross-driver export/import and trips over that not working. Or I do not set DRM_PRIME_CAP_{IMPORT,EXPORT}, which breaks DRI3 ... > I think there's qxl, virgl, export is implemented for virgl, and import should be possible too. qxl/bochs is simliar to vmgfx, it could be done but dma-bufs would basically be bounce buffers (need copy from/to vram) so probably not worth the effort. cheers, Gerd