From patchwork Thu Apr 4 15:24:24 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gerd Hoffmann X-Patchwork-Id: 10885803 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 6236A17EE for ; Thu, 4 Apr 2019 15:24:46 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4F1962870F for ; Thu, 4 Apr 2019 15:24:46 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 439BA28AB0; Thu, 4 Apr 2019 15:24:46 +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 03F1128733 for ; Thu, 4 Apr 2019 15:24:46 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 79D706EA12; Thu, 4 Apr 2019 15:24:42 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by gabe.freedesktop.org (Postfix) with ESMTPS id 213E36EA12 for ; Thu, 4 Apr 2019 15:24:38 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id C49BA31408EC for ; Thu, 4 Apr 2019 15:24:37 +0000 (UTC) Received: from sirius.home.kraxel.org (ovpn-116-22.ams2.redhat.com [10.36.116.22]) by smtp.corp.redhat.com (Postfix) with ESMTP id 674AC1001E84; Thu, 4 Apr 2019 15:24:37 +0000 (UTC) Received: by sirius.home.kraxel.org (Postfix, from userid 1000) id 1334616E30; Thu, 4 Apr 2019 17:24:30 +0200 (CEST) From: Gerd Hoffmann To: dri-devel@lists.freedesktop.org Subject: [PATCH v2 0/6] drm/cirrus: rewrite and modernize driver. Date: Thu, 4 Apr 2019 17:24:24 +0200 Message-Id: <20190404152430.8263-1-kraxel@redhat.com> X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.49]); Thu, 04 Apr 2019 15:24:37 +0000 (UTC) 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: Gerd Hoffmann MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP v2: - It's a little series now. It moves tinydrm converters to drm_fb_helpers.c first. - Added support for RG24 and XR24. Without bpp module parameter, instead the driver will convert formats if needed. - A bunch of little tweaks here and there (embedded struct drm_driver, use more drm helpers, ...) Gerd Hoffmann (6): drm: move tinydrm_memcpy() to drm_fb_helper.c drm: add dstclip parameter to drm_fb_memcpy() drm: move tinydrm_xrgb8888_to_rgb565() to drm_fb_helper.c drm: add dstclip parameter to drm_fb_xrgb8888_to_rgb565() drm: add drm_fb_xrgb8888_to_rgb888() function to drm_fb_helper.c drm/cirrus: rewrite and modernize driver. drivers/gpu/drm/cirrus/cirrus_drv.h | 251 ------- include/drm/drm_fb_helper.h | 11 + include/drm/tinydrm/tinydrm-helpers.h | 5 - drivers/gpu/drm/cirrus/cirrus.c | 621 ++++++++++++++++++ drivers/gpu/drm/cirrus/cirrus_drv.c | 161 ----- drivers/gpu/drm/cirrus/cirrus_fbdev.c | 309 --------- drivers/gpu/drm/cirrus/cirrus_main.c | 328 --------- drivers/gpu/drm/cirrus/cirrus_mode.c | 617 ----------------- drivers/gpu/drm/cirrus/cirrus_ttm.c | 343 ---------- drivers/gpu/drm/drm_fb_helper.c | 127 ++++ .../gpu/drm/tinydrm/core/tinydrm-helpers.c | 69 -- drivers/gpu/drm/tinydrm/mipi-dbi.c | 5 +- drivers/gpu/drm/cirrus/Kconfig | 2 +- drivers/gpu/drm/cirrus/Makefile | 3 - 14 files changed, 763 insertions(+), 2089 deletions(-) delete mode 100644 drivers/gpu/drm/cirrus/cirrus_drv.h create mode 100644 drivers/gpu/drm/cirrus/cirrus.c delete mode 100644 drivers/gpu/drm/cirrus/cirrus_drv.c delete mode 100644 drivers/gpu/drm/cirrus/cirrus_fbdev.c delete mode 100644 drivers/gpu/drm/cirrus/cirrus_main.c delete mode 100644 drivers/gpu/drm/cirrus/cirrus_mode.c delete mode 100644 drivers/gpu/drm/cirrus/cirrus_ttm.c