From patchwork Sat Nov 10 14:56:42 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Noralf_Tr=C3=B8nnes?= X-Patchwork-Id: 10677213 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id A8CB914DB for ; Sat, 10 Nov 2018 14:57:23 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8D34D2C897 for ; Sat, 10 Nov 2018 14:57:23 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7AE6F2CA4F; Sat, 10 Nov 2018 14:57:23 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 0521D2C897 for ; Sat, 10 Nov 2018 14:57:22 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id B19FD6E0F3; Sat, 10 Nov 2018 14:57:20 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from smtp.domeneshop.no (smtp.domeneshop.no [IPv6:2a01:5b40:0:3005::1]) by gabe.freedesktop.org (Postfix) with ESMTPS id B8A716E005; Sat, 10 Nov 2018 14:57:19 +0000 (UTC) Received: from 211.81-166-168.customer.lyse.net ([81.166.168.211]:42860 helo=localhost.localdomain) by smtp.domeneshop.no with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.84_2) (envelope-from ) id 1gLUhJ-00006h-G6; Sat, 10 Nov 2018 15:57:17 +0100 From: =?utf-8?q?Noralf_Tr=C3=B8nnes?= To: dri-devel@lists.freedesktop.org Subject: [PATCH 0/5] drm/gem: Add drm_gem_object_funcs Date: Sat, 10 Nov 2018 15:56:42 +0100 Message-Id: <20181110145647.17580-1-noralf@tronnes.org> X-Mailer: git-send-email 2.15.1 MIME-Version: 1.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: david@lechnology.com, intel-gfx@lists.freedesktop.org, sam@ravnborg.org, christian.koenig@amd.com Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP This patchset adds a GEM object function table and makes use of it in the CMA helper. This was originally part of a shmem helper series[1] that didn't make it. Daniel and Christian showed interest in the vtable part so I have hooked it up to some refactoring in tinydrm in order to have a user. The tinydrm refactoring is part of a long term plan to get rid of tinydrm.ko. Noralf. [1] https://patchwork.freedesktop.org/series/27184/ Noralf Trønnes (5): drm/driver: Add defaults for .gem_prime_export/import callbacks drm/prime: Add drm_gem_prime_mmap() drm/gem: Add drm_gem_object_funcs drm/cma-helper: Add DRM_GEM_CMA_VMAP_DRIVER_OPS drm/tinydrm: Use DRM_GEM_CMA_VMAP_DRIVER_OPS Documentation/gpu/todo.rst | 13 +++ drivers/gpu/drm/drm_client.c | 12 +-- drivers/gpu/drm/drm_gem.c | 109 ++++++++++++++++++-- drivers/gpu/drm/drm_gem_cma_helper.c | 86 ++++++++++++++++ drivers/gpu/drm/drm_prime.c | 79 +++++++++++---- drivers/gpu/drm/tinydrm/core/tinydrm-core.c | 71 -------------- drivers/gpu/drm/tinydrm/core/tinydrm-helpers.c | 6 ++ drivers/gpu/drm/tinydrm/hx8357d.c | 4 +- drivers/gpu/drm/tinydrm/ili9225.c | 5 +- drivers/gpu/drm/tinydrm/ili9341.c | 4 +- drivers/gpu/drm/tinydrm/mi0283qt.c | 6 +- drivers/gpu/drm/tinydrm/mipi-dbi.c | 10 +- drivers/gpu/drm/tinydrm/repaper.c | 4 +- drivers/gpu/drm/tinydrm/st7586.c | 5 +- drivers/gpu/drm/tinydrm/st7735r.c | 4 +- include/drm/drm_drv.h | 4 + include/drm/drm_gem.h | 131 +++++++++++++++++++++++++ include/drm/drm_gem_cma_helper.h | 24 +++++ include/drm/drm_prime.h | 1 + include/drm/tinydrm/tinydrm.h | 35 ++----- 20 files changed, 462 insertions(+), 151 deletions(-) Acked-by: Christian König for the series.