From patchwork Sun Apr 7 16:52:31 2019 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: 10888441 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 8EF8813B5 for ; Sun, 7 Apr 2019 16:53:02 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 77B6C27FB7 for ; Sun, 7 Apr 2019 16:53:02 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6B2C128653; Sun, 7 Apr 2019 16:53:02 +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 DCBB427FB7 for ; Sun, 7 Apr 2019 16:53:01 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 6B815893B9; Sun, 7 Apr 2019 16:52:58 +0000 (UTC) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@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 1561E893B9; Sun, 7 Apr 2019 16:52:57 +0000 (UTC) Received: from 211.81-166-168.customer.lyse.net ([81.166.168.211]:49162 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 1hDB2M-0008Km-Tq; Sun, 07 Apr 2019 18:52:54 +0200 From: =?utf-8?q?Noralf_Tr=C3=B8nnes?= To: dri-devel@lists.freedesktop.org Date: Sun, 7 Apr 2019 18:52:31 +0200 Message-Id: <20190407165243.54043-1-noralf@tronnes.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tronnes.org; s=ds201810; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-Id:Date:Subject:Cc:To:From; bh=0qzZu4Ge01Q9nL+IVgOB6hZ8bVrvN7kII0XX8MwQDHs=; b=T53Ur16JlF/GI3JNTu1yRgIqGhhQhi4wqBaQJsbvsCfy3k2mO/sfqC/pTYmR574RwzTNwuFOTcs8721UHtDMLZVK/dRHEHmgZE3WMGEiE47b8xt2y2vi16sMAl5xHjdbu5T7W1iP/ET8p0xLnIgo9UgoLbZq/pYz3EyIgJ6ADnoIft/qiVDLxQG8ngtajVO0IMX+mohcuxgFLZZUu6PvRHUw9lnyG3iOdmam4P515+JAYD5WoFhlRAkRXh7LIhWKUBgQRFqNKrkimP+01+1CskGy5+1uq72bh9FHQiKGAm8sDx0hThNeogVQ7X8YNPCpaNuNl8mI7IEPtUV2lJZQpA==; Subject: [Intel-gfx] [PATCH v2 00/12] drm/fb-helper: Move modesetting code to drm_client X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: daniel.vetter@ffwll.ch, intel-gfx@lists.freedesktop.org, =?utf-8?q?Noral?= =?utf-8?q?f_Tr=C3=B8nnes?= , Emmanuel Vadot Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" X-Virus-Scanned: ClamAV using ClamSMTP This moves the modesetting code from drm_fb_helper to drm_client so it can be shared by all internal clients. The main change this time is to attach the modeset array to drm_client_dev and honour the drm_fb_helper MIT license. I've dropped the display abstraction. Noralf. Cc: Emmanuel Vadot Noralf Trønnes (12): drm/atomic: Move __drm_atomic_helper_disable_plane/set_config() drm/fb-helper: Avoid race with DRM userspace drm/i915/fbdev: Move intel_fb_initial_config() to fbdev helper drm/fb-helper: No need to cache rotation and sw_rotations drm/fb-helper: Remove drm_fb_helper_crtc->{x,y,desired_mode} drm/fb-helper: Remove drm_fb_helper_crtc drm/fb-helper: Prepare to move out commit code drm/fb-helper: Move out commit code drm/fb-helper: Remove drm_fb_helper_connector drm/fb-helper: Prepare to move out modeset config code drm/fb-helper: Move out modeset config code drm/client: Hack: Add bootsplash example Documentation/gpu/todo.rst | 10 + drivers/gpu/drm/Kconfig | 5 + drivers/gpu/drm/Makefile | 3 +- drivers/gpu/drm/drm_atomic.c | 168 ++++ drivers/gpu/drm/drm_atomic_helper.c | 164 ---- drivers/gpu/drm/drm_auth.c | 20 + drivers/gpu/drm/drm_bootsplash.c | 359 ++++++++ drivers/gpu/drm/drm_client.c | 17 +- drivers/gpu/drm/drm_client_modeset.c | 1086 +++++++++++++++++++++++ drivers/gpu/drm/drm_crtc_internal.h | 5 + drivers/gpu/drm/drm_drv.c | 4 + drivers/gpu/drm/drm_fb_helper.c | 1195 +++----------------------- drivers/gpu/drm/drm_internal.h | 2 + drivers/gpu/drm/i915/intel_fbdev.c | 218 ----- include/drm/drm_atomic_helper.h | 4 - include/drm/drm_client.h | 48 ++ include/drm/drm_fb_helper.h | 125 +-- 17 files changed, 1859 insertions(+), 1574 deletions(-) create mode 100644 drivers/gpu/drm/drm_bootsplash.c create mode 100644 drivers/gpu/drm/drm_client_modeset.c