From patchwork Thu Oct 24 14:42:32 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Zimmermann X-Patchwork-Id: 11209929 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 242D7112B for ; Thu, 24 Oct 2019 14:43:00 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 07DE7222C2 for ; Thu, 24 Oct 2019 14:43:00 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 07DE7222C2 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=suse.de Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id F28EC6E42C; Thu, 24 Oct 2019 14:42:56 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mx1.suse.de (mx2.suse.de [195.135.220.15]) by gabe.freedesktop.org (Postfix) with ESMTPS id 5B3676E426 for ; Thu, 24 Oct 2019 14:42:48 +0000 (UTC) X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id BFB7EB92B; Thu, 24 Oct 2019 14:42:46 +0000 (UTC) From: Thomas Zimmermann To: airlied@redhat.com, sean@poorly.run, daniel@ffwll.ch, sam@ravnborg.org, noralf@tronnes.org Subject: [PATCH 0/5] drm/udl: Convert to generic fbdev emulation Date: Thu, 24 Oct 2019 16:42:32 +0200 Message-Id: <20191024144237.8898-1-tzimmermann@suse.de> X-Mailer: git-send-email 2.23.0 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: Thomas Zimmermann , dri-devel@lists.freedesktop.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" This patchset replaces udl's fbdev code with the generic implementation. The first patch fixes a bug that didn't trigger yet because the current fbdev never unmaps the BO. Patches 2 to 3 add missing interfaces to the udl driver. Patch 4 sets mapping flags. In the final patch, we remove a lot of code and set a few helpers instead. The patchset was tested by running the fbdev console, X11, and Weston on a DisplayLink adapter. Thomas Zimmermann (5): drm/udl: Clear BO vmapping pointer after unmapping BO memory drm/udl: Set drm_driver.gem_prime_mmap drm/udl: Add GEM object functions for free(), vmap(), and vunmap() drm/udl: Map BO memory pages in unencrypted mode drm/udl: Replace fbdev code with generic emulation drivers/gpu/drm/udl/udl_drv.c | 4 + drivers/gpu/drm/udl/udl_drv.h | 4 - drivers/gpu/drm/udl/udl_fb.c | 263 +----------------------------- drivers/gpu/drm/udl/udl_gem.c | 40 ++++- drivers/gpu/drm/udl/udl_main.c | 2 - drivers/gpu/drm/udl/udl_modeset.c | 3 +- 6 files changed, 48 insertions(+), 268 deletions(-) --- 2.23.0