Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3491007yba; Mon, 8 Apr 2019 21:19:15 -0700 (PDT) X-Google-Smtp-Source: APXvYqwgGqmcTjrHH/pRdTdzlAYLBmEekBJYO89/O5LTJTanI0EdrJ21BoVy7FwBs5xItM+0w4+R X-Received: by 2002:a63:5a4b:: with SMTP id k11mr32897979pgm.119.1554783555679; Mon, 08 Apr 2019 21:19:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554783555; cv=none; d=google.com; s=arc-20160816; b=gEwB4Uqff5j7Pg2JK235fsvZ2tYSfXDpIrlooYCXFf4ez+BQmOIhBv2vREd49GnOHi DxyGw1p9qoozMQVXdOFw0lsxj9nHsEef9yN9lMZ1qpwN8XWbjKuaQ7eG9a2MFjW87yqH F8Cqq0O/HewAq4UC2GaOzRp1Z9/tW2UPgIEJDK3rUZ3wTx0HWzEaLEY1adne1znGlDWs reKa0NRGiUuxbY4YowKkf1lEIiLgOGvvg9jw6I43L+M35nar8HiYYM2ETG1njI9G07qV emahfaWQ7ZSbRMVwFpBtg1iPQ66Gdie8T5DG5Ib8BJYR8tOUKzb43iujvWlz3vvAzG3Z koyQ== 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=4u8fidm5D/opMYz7YM2gWO+UekfpbAquXOxV/eIlKgk=; b=T8c6bG+41RNu93hmk+lLovc3OFshmnJQw8SwUfZe7Kb/hBFoUW9BGYgw58o5QK+T9K OsPv8f1+g3HKC7O6JA2U+iJwVwXoz08pb5fzTIfObGl8xxrwQMwGO9GR8rGTmCqj6Y8o cANFrjqCmdpHaJ9CaxzeGCIbkXMiD2IuRTNsNLLSyRIXDDoTJMFfOGEQqF8en0kTTUyA dCzeYXA3aeEsogvJfJ+D3v2RphdtGidOlKhpbuJyXPWzu71Yc5b/NVSvy2F2nYlaajgg icXn8g/j/k3X1tr/n7XhlTXYYRrCSANUQIjuPUKg/2CvkFoVZWAE/p83QwilUXyLY3qY 1v8A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=gtU2eedT; 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 34si28947259plz.256.2019.04.08.21.18.47; Mon, 08 Apr 2019 21:19:15 -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=gtU2eedT; 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 S1726129AbfDIEBq (ORCPT + 99 others); Tue, 9 Apr 2019 00:01:46 -0400 Received: from mail-qk1-f194.google.com ([209.85.222.194]:43346 "EHLO mail-qk1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725974AbfDIEBq (ORCPT ); Tue, 9 Apr 2019 00:01:46 -0400 Received: by mail-qk1-f194.google.com with SMTP id c20so9410760qkc.10 for ; Mon, 08 Apr 2019 21:01:46 -0700 (PDT) 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=4u8fidm5D/opMYz7YM2gWO+UekfpbAquXOxV/eIlKgk=; b=gtU2eedTWqSRvZn7ZCVXsaVeVFV7MIJTrZLf1Q2wuOrmyj7qOBmUWqDuhxqGSEp0Ik pQEYp9mm18X8MaRh7TQfSBji4+ey/0R6xohEExXcHHGqbtC55/95Csp3S2xrxavENJXX WZW+kgSXj/hYWNsAkyPAfjxlkHSIY/umaiVAGgQ/NHyhQcgV9u+WxwjuEYNnFlj2wk8R VTiE/d9JRLbkQj8q46tRMwlDMTFNJcO33nBalhNnZ+nMJigV0bcH9Kh2LfCd2TM7or9S 8MWfAKuL0VqhwV0u1SBg6KDrmVR2LSJzgdXykV/o0gCmrZ92CZbFR7TmC/YkOMGJFGB1 5psA== 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=4u8fidm5D/opMYz7YM2gWO+UekfpbAquXOxV/eIlKgk=; b=gQOO/5lBEzReKNA82M9uE/n4UbUnNPVHHNet3iD2RgPVOzNdl3ktWvGTWF7k6OcMIK MW1D/Dn/7jeQEzq4ciXMVFvhWsqalFlXDy/WcWL8rhWXj2L5riA1o/0KEq8+5Z9ASNWC Htm6QdzE+Q0CVIYLCEVA7VoianJJXhzqA749aEBfXH2AWNc24tvDj6IzS7tw4IodtGh4 j41Kvyfc0tENByPImSScLzC26reDZ75Lp+s1DlnNwwSZL2B+K8goUWO/w+CaSnyQFJtO AWjKyJIU4dN+M4JGAaoHs8YE0fTRX8jmIihdeVOIJsk1uoFA2P7O9eh3r5jnm0vlyqJ9 o0Kw== X-Gm-Message-State: APjAAAWlMRVHd4wX1VZ3kv0/WPFqeu3rOcjrax3cNwBicudJU5G2jZ15 KxNN8F9WFUDUj2J913M1rxCsPfWA7B0oE2Zq3JY= X-Received: by 2002:a05:620a:1591:: with SMTP id d17mr25699490qkk.39.1554782505387; Mon, 08 Apr 2019 21:01:45 -0700 (PDT) MIME-Version: 1.0 References: <20190110081750.11358-1-kraxel@redhat.com> In-Reply-To: From: Dave Airlie Date: Tue, 9 Apr 2019 14:01:33 +1000 Message-ID: Subject: Re: [PATCH] drm/qxl: drop prime import/export callbacks To: Gerd Hoffmann Cc: dri-devel , David Airlie , open list , "open list:DRM DRIVER FOR QXL VIRTUAL GPU" , "open list:DRM DRIVER FOR QXL VIRTUAL GPU" , Dave Airlie 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 Sat, 12 Jan 2019 at 07:13, Dave Airlie wrote: > > On Thu, 10 Jan 2019 at 18:17, 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. It's been pointed out to me that disables DRI3 for these devices, I'm not sure that is the solution we actually wanted. any ideas? Dave. > > > > Signed-off-by: Gerd Hoffmann > > Reviewed-by: Dave Airlie > > --- > > drivers/gpu/drm/qxl/qxl_drv.c | 4 ---- > > drivers/gpu/drm/qxl/qxl_prime.c | 14 -------------- > > 2 files changed, 18 deletions(-) > > > > diff --git a/drivers/gpu/drm/qxl/qxl_drv.c b/drivers/gpu/drm/qxl/qxl_drv.c > > index 13c8a662f9..ccb090f3ab 100644 > > --- a/drivers/gpu/drm/qxl/qxl_drv.c > > +++ b/drivers/gpu/drm/qxl/qxl_drv.c > > @@ -250,14 +250,10 @@ static struct drm_driver qxl_driver = { > > #if defined(CONFIG_DEBUG_FS) > > .debugfs_init = qxl_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 = qxl_gem_prime_pin, > > .gem_prime_unpin = qxl_gem_prime_unpin, > > - .gem_prime_get_sg_table = qxl_gem_prime_get_sg_table, > > - .gem_prime_import_sg_table = qxl_gem_prime_import_sg_table, > > .gem_prime_vmap = qxl_gem_prime_vmap, > > .gem_prime_vunmap = qxl_gem_prime_vunmap, > > .gem_prime_mmap = qxl_gem_prime_mmap, > > diff --git a/drivers/gpu/drm/qxl/qxl_prime.c b/drivers/gpu/drm/qxl/qxl_prime.c > > index a55dece118..df65d3c1a7 100644 > > --- a/drivers/gpu/drm/qxl/qxl_prime.c > > +++ b/drivers/gpu/drm/qxl/qxl_prime.c > > @@ -38,20 +38,6 @@ void qxl_gem_prime_unpin(struct drm_gem_object *obj) > > WARN_ONCE(1, "not implemented"); > > } > > > > -struct sg_table *qxl_gem_prime_get_sg_table(struct drm_gem_object *obj) > > -{ > > - WARN_ONCE(1, "not implemented"); > > - return ERR_PTR(-ENOSYS); > > -} > > - > > -struct drm_gem_object *qxl_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(-ENOSYS); > > -} > > - > > void *qxl_gem_prime_vmap(struct drm_gem_object *obj) > > { > > WARN_ONCE(1, "not implemented"); > > -- > > 2.9.3 > > > > _______________________________________________ > > dri-devel mailing list > > dri-devel@lists.freedesktop.org > > https://lists.freedesktop.org/mailman/listinfo/dri-devel