Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1017879imu; Fri, 11 Jan 2019 13:22:48 -0800 (PST) X-Google-Smtp-Source: ALg8bN6hCCMLb3mSI7Yo2ZJha9xvB5rmJ3Gz0OYJMT9JslXa6B5MLcsxVcb2fwmDPPWeps1Kw1Hr X-Received: by 2002:a65:5a4c:: with SMTP id z12mr14754150pgs.188.1547241768440; Fri, 11 Jan 2019 13:22:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547241768; cv=none; d=google.com; s=arc-20160816; b=VhwkTuKDf5ipw6kSPq782iXK51sAL/U1ngloE7zy1uKF9wTfgyQamnbACgNTztAH7/ tiMyl9baJGdDbG+xhIul0bhCuKVIQ1Oqoxu/FUI7o5TBkUuwdo3RpwQFi1Kkt1W44u6P pc76dfCqhybr3VsylEWxA6F5jakAibpe3ZA5cKY4Ny5d80jDoI7Z2mRsuDdERdlqGAy/ Ajxgr0/q5vIIe4165cdvqk9E/S4EwTKeA5qq27dTkO3or5nvJT40vXw3hd9OGRNwenQY ISFQ6nMUKmcmXHv/5k3ooybUp5bOYjLzggDxHJvUB4UaAOxlyIcHv9cLiTZ1uV3ogXQX dbzQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=yqQgiSuVNjHbY0DzQNt6elhDjZhe5frmxgkV4u9a6GE=; b=xeav/S8DcNIutnYnrQ+9wIl9h2RtlrymcobwHMAOaWx5Dqyp3ZGOL4LGd1dcgjH+30 qsGBhBMPisMShbmukk66ugO9YLtl1Z5TeFGYtCsoevU4kl3RdFtmS7GvM5hmaC+qGjeD 7LFLZ1DNS1wtDpKOwpJ+Rr4Id/2MDPYD3TSfhpCS0AvEpH81LCxlwcqKO1W0OoHag49V HmWIk9cgUlv02kGoGB2Jw8tmb9nFW0WQ+qrGhY2JcjopH/h+lawRdzD2h6w5OwgccNtB kXSQddCrEdNNK9VnSBoc5a6+Y5smA4LjVQnzv6QwQej1/hwvL2xWdNP9FXfHKVyc2GWJ EmNA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=QJ2zr1lO; 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 l123si1599916pfc.187.2019.01.11.13.22.33; Fri, 11 Jan 2019 13:22:48 -0800 (PST) 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=QJ2zr1lO; 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 S1726810AbfAKVOc (ORCPT + 99 others); Fri, 11 Jan 2019 16:14:32 -0500 Received: from mail-qt1-f193.google.com ([209.85.160.193]:36221 "EHLO mail-qt1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726799AbfAKVOc (ORCPT ); Fri, 11 Jan 2019 16:14:32 -0500 Received: by mail-qt1-f193.google.com with SMTP id t13so20418001qtn.3 for ; Fri, 11 Jan 2019 13:14:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=yqQgiSuVNjHbY0DzQNt6elhDjZhe5frmxgkV4u9a6GE=; b=QJ2zr1lOYsT7gDDV4zRwyv79xFg/jiWJ5QOOMJNYG2DCruLD47wvFWcgMUxm6vN7PP bL3RBcmY92WqgU8X31IwgPD5T2ZJYvaBr7WTAG/oAg0bxHTmOFMzNNN2iy3vFjB6CFgd HmTReMZGUKpO/dyzfNYZFv56iRr632l6O4k6phzZ/hFmraxB2+I6nBQBf62RzaAN7shG P1hr0kNaLtSWlgLqKvlTtGLqKYz4VZ2RdIfCYpdK6XhlvmIFy8fS+1BUcxFNo7qJguIL 3w5PysFaAnYUVkuNXn5F9oYBf3EybL09ltu/xUpZgyr7p+/ANQkZg9/fIOEJRqpBpKVn E1lQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=yqQgiSuVNjHbY0DzQNt6elhDjZhe5frmxgkV4u9a6GE=; b=YYJn1bG/m9Bj0+RvTobgXeJZ2+NTbfD1Jk9I0TjLtuNirz6GZDo9d5TLC364XpdvxW sz43oBl4cbnEySbBchuS/XSpiBJXfcn0+vpE5t/zD2MhZVqb1nGegfpPf5DC54SzMOxy cSmK0qr6paYSTEjt5zzE+KqUgiNwx/lMr07x1aN6QTq7arOI+Iqn93NWwvy3GhQBqO+2 YhOMehdmWdNGDl0XFxW5Jb18Hyr2QpT5P86YgTs0r+loRXJjnhVNxSAg8hBuAe+b2WW5 BMgM9gG0gYFrFWaV0apknW5NGDpMw1lvUKw5iii81UyJYRNWwxGOoUpSxMTsDNidrUhR dV5g== X-Gm-Message-State: AJcUukfh24SnmKn9hQ/B9PK2DFe1hDnplyLgcm5lSoyPOr+f+A9IHlTm pEGedTLx+iorJhxHrk6hVQUl0IzhV8PDHbC6jffj1Q== X-Received: by 2002:ac8:296a:: with SMTP id z39mr15647575qtz.264.1547241271614; Fri, 11 Jan 2019 13:14:31 -0800 (PST) MIME-Version: 1.0 References: <20190110111545.26768-1-kraxel@redhat.com> In-Reply-To: <20190110111545.26768-1-kraxel@redhat.com> From: Dave Airlie Date: Sat, 12 Jan 2019 07:14:19 +1000 Message-ID: Subject: Re: [PATCH] drm/virtio: drop prime import/export callbacks To: Gerd Hoffmann Cc: dri-devel , David Airlie , open list , "open list:VIRTIO GPU DRIVER" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 10 Jan 2019 at 21:16, Gerd Hoffmann wrote: > > Also set prime_handle_to_fd and prime_fd_to_handle to NULL, > so drm will not advertive DRM_PRIME_CAP_{IMPORT,EXPORT} to > userspace. Reviewed-by: Dave Airlie > > Signed-off-by: Gerd Hoffmann > --- > drivers/gpu/drm/virtio/virtgpu_drv.h | 4 ---- > drivers/gpu/drm/virtio/virtgpu_drv.c | 4 ---- > drivers/gpu/drm/virtio/virtgpu_prime.c | 14 -------------- > 3 files changed, 22 deletions(-) > > diff --git a/drivers/gpu/drm/virtio/virtgpu_drv.h b/drivers/gpu/drm/virtio/virtgpu_drv.h > index cf896d8793..4f2f3c43a4 100644 > --- a/drivers/gpu/drm/virtio/virtgpu_drv.h > +++ b/drivers/gpu/drm/virtio/virtgpu_drv.h > @@ -354,10 +354,6 @@ int virtio_gpu_object_wait(struct virtio_gpu_object *bo, bool no_wait); > /* virtgpu_prime.c */ > int virtgpu_gem_prime_pin(struct drm_gem_object *obj); > void virtgpu_gem_prime_unpin(struct drm_gem_object *obj); > -struct sg_table *virtgpu_gem_prime_get_sg_table(struct drm_gem_object *obj); > -struct drm_gem_object *virtgpu_gem_prime_import_sg_table( > - struct drm_device *dev, struct dma_buf_attachment *attach, > - struct sg_table *sgt); > void *virtgpu_gem_prime_vmap(struct drm_gem_object *obj); > void virtgpu_gem_prime_vunmap(struct drm_gem_object *obj, void *vaddr); > int virtgpu_gem_prime_mmap(struct drm_gem_object *obj, > diff --git a/drivers/gpu/drm/virtio/virtgpu_drv.c b/drivers/gpu/drm/virtio/virtgpu_drv.c > index af92964b68..b996ac1d4f 100644 > --- a/drivers/gpu/drm/virtio/virtgpu_drv.c > +++ b/drivers/gpu/drm/virtio/virtgpu_drv.c > @@ -205,14 +205,10 @@ static struct drm_driver driver = { > #if defined(CONFIG_DEBUG_FS) > .debugfs_init = virtio_gpu_debugfs_init, > #endif > - .prime_handle_to_fd = drm_gem_prime_handle_to_fd, > - .prime_fd_to_handle = drm_gem_prime_fd_to_handle, > .gem_prime_export = drm_gem_prime_export, > .gem_prime_import = drm_gem_prime_import, > .gem_prime_pin = virtgpu_gem_prime_pin, > .gem_prime_unpin = virtgpu_gem_prime_unpin, > - .gem_prime_get_sg_table = virtgpu_gem_prime_get_sg_table, > - .gem_prime_import_sg_table = virtgpu_gem_prime_import_sg_table, > .gem_prime_vmap = virtgpu_gem_prime_vmap, > .gem_prime_vunmap = virtgpu_gem_prime_vunmap, > .gem_prime_mmap = virtgpu_gem_prime_mmap, > diff --git a/drivers/gpu/drm/virtio/virtgpu_prime.c b/drivers/gpu/drm/virtio/virtgpu_prime.c > index 86ce0ae93f..c59ec34c80 100644 > --- a/drivers/gpu/drm/virtio/virtgpu_prime.c > +++ b/drivers/gpu/drm/virtio/virtgpu_prime.c > @@ -39,20 +39,6 @@ void virtgpu_gem_prime_unpin(struct drm_gem_object *obj) > WARN_ONCE(1, "not implemented"); > } > > -struct sg_table *virtgpu_gem_prime_get_sg_table(struct drm_gem_object *obj) > -{ > - WARN_ONCE(1, "not implemented"); > - return ERR_PTR(-ENODEV); > -} > - > -struct drm_gem_object *virtgpu_gem_prime_import_sg_table( > - struct drm_device *dev, struct dma_buf_attachment *attach, > - struct sg_table *table) > -{ > - WARN_ONCE(1, "not implemented"); > - return ERR_PTR(-ENODEV); > -} > - > void *virtgpu_gem_prime_vmap(struct drm_gem_object *obj) > { > struct virtio_gpu_object *bo = gem_to_virtio_gpu_obj(obj); > -- > 2.9.3 > > _______________________________________________ > dri-devel mailing list > dri-devel@lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/dri-devel