From patchwork Thu Nov 14 14:10:20 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Zimmermann X-Patchwork-Id: 11243849 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 11664138C for ; Thu, 14 Nov 2019 14:10:42 +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 EDBB52070E for ; Thu, 14 Nov 2019 14:10:41 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org EDBB52070E 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 1CF006E9D3; Thu, 14 Nov 2019 14:10:34 +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 218946E9D0 for ; Thu, 14 Nov 2019 14:10:31 +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 53469AFE1; Thu, 14 Nov 2019 14:10:29 +0000 (UTC) From: Thomas Zimmermann To: airlied@redhat.com, sean@poorly.run, daniel@ffwll.ch, kraxel@redhat.com, emil.velikov@collabora.com, sam@ravnborg.org, noralf@tronnes.org Subject: [PATCH 0/5] drm/udl: Convert to GEM framebuffer helpers Date: Thu, 14 Nov 2019 15:10:20 +0100 Message-Id: <20191114141025.32198-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" Udl uses struct udl_framebuffer for representing its framebuffer. The type can be replaced by the standard DRM framebuffer structure. Patches 1 to 4 prepare the driver for the conversion. Patch 5 replaces the structure. The patchset has been tested by running the fb console, X11 and Weston on a DisplayLink adapter. Thomas Zimmermann (5): drm/udl: Unmap buffer object after damage update drm/udl: Remove udl implementation of GEM's free_object() drm/udl: Store active framebuffer in device structure drm/udl: Call udl_handle_damage() with DRM framebuffer drm/udl: Replace struct udl_framebuffer with generic implementation drivers/gpu/drm/udl/udl_drv.h | 14 ++-- drivers/gpu/drm/udl/udl_fb.c | 131 +++++++++++------------------- drivers/gpu/drm/udl/udl_gem.c | 18 +--- drivers/gpu/drm/udl/udl_main.c | 3 + drivers/gpu/drm/udl/udl_modeset.c | 31 +++---- 5 files changed, 70 insertions(+), 127 deletions(-) Acked-by: Sam Ravnborg --- 2.23.0