From patchwork Thu Mar 30 07:36:30 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Zimmermann X-Patchwork-Id: 13193519 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 40B5EC6FD1D for ; Thu, 30 Mar 2023 07:37:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=LFWdquwe9/Aeiisb5Xhbj8Y6CDD3Jw8ahdrYd88OheE=; b=3QLOZ0HoGkvhcH PCqFJZih2d6R3l1BBob4RoafIK7pG8paXaschjOzYIChDmA9QkNsb3z6vIE16CFUK8JKrLHmdV7Qq RiOPJGataSLvmYe8UkYbYiBN46DXBhCvw41o32kTOc9LkKNrEHIXrHDSKiWH0pp15BPmTg0J99dmy oCz+ishLt/Ot8moHHZg1QD2lIRXyR7Ux+dDhpqfdG42p/O3s36vKWZyAdMiPK/lSIm17Lh8oGO8lO 3BnIgeD9ULmxS4hG8hJ8OwjGtdziGbQHw6l5jfQuso6tASgUq6KQPS7QBoQYWv9Way7fMtN4SfZz5 S4xBEQMdmJtvradWKQMg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1phmpz-002vMT-2P; Thu, 30 Mar 2023 07:36:47 +0000 Received: from smtp-out2.suse.de ([195.135.220.29]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1phmpw-002vII-2q for linux-arm-kernel@lists.infradead.org; Thu, 30 Mar 2023 07:36:46 +0000 Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id 181151FE89; Thu, 30 Mar 2023 07:36:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1680161799; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=ySFeAxMChdgqaB3/9bDz46byvGcT0yeTQSoZkBui9wU=; b=FvrvL5z0mnIjpgArU4BFEdsFV4jbyS/TK8ZGDY4KcpI4aLRYBN4c+XeOGE6gO/q5z8y3oo jljMrR3Q++VJ0s9Fytjt3YPFXwd6JRcM7TK60lUqdPbcenLZDBcFoBSeyedpFfD84YeEUS WolmAjn4ViOmUSfuPL5No63UfoWcOK4= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1680161799; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=ySFeAxMChdgqaB3/9bDz46byvGcT0yeTQSoZkBui9wU=; b=1lBGykyg02W1gFkoLQxWY2NnSgr1STiliDM2I1QtcX7A0rvi9E6r0e8EVjk9fT9Jr6F20x 30VzUzu2yDf8e8AA== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id CE09E1348E; Thu, 30 Mar 2023 07:36:38 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id hitaMQY8JWQJewAAMHmgww (envelope-from ); Thu, 30 Mar 2023 07:36:38 +0000 From: Thomas Zimmermann To: inki.dae@samsung.com, sw0312.kim@samsung.com, kyungmin.park@samsung.com, javierm@redhat.com, airlied@gmail.com, daniel@ffwll.ch, krzysztof.kozlowski@linaro.org, alim.akhtar@samsung.com Cc: dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, Thomas Zimmermann Subject: [PATCH 0/5] drm/exynos: Convert fbdev to DRM client Date: Thu, 30 Mar 2023 09:36:30 +0200 Message-Id: <20230330073635.7409-1-tzimmermann@suse.de> X-Mailer: git-send-email 2.40.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230330_003645_079079_147A61FB X-CRM114-Status: GOOD ( 10.79 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Convert exynos' fbdev code to struct drm_client. Replaces the current ad-hoc integration. The conversion includes a number of cleanups. As with most other drivers' fbdev emulation, fbdev in exynos is now just another DRM client that runs after the DRM device has been registered. Once all drivers' fbdev emulation has been converted to struct drm_client, we can attempt to add additional in-kernel clients. A DRM-based dmesg log or a bootsplash are commonly mentioned. DRM can then switch easily among the existing clients if/when required. I did the conversion from similar experience with other drivers. But I don't have the hardware to test this. Any testing is welcome. Thomas Zimmermann (5): drm/exynos: Remove exynos_gem from struct exynos_drm_fbdev drm/exynos: Remove struct exynos_drm_fbdev drm/exynos: Remove fb_helper from struct exynos_drm_private drm/exynos: Initialize fbdev DRM client drm/exynos: Implement fbdev emulation as in-kernel client drivers/gpu/drm/exynos/exynos_drm_drv.c | 13 +- drivers/gpu/drm/exynos/exynos_drm_drv.h | 2 - drivers/gpu/drm/exynos/exynos_drm_fb.c | 2 - drivers/gpu/drm/exynos/exynos_drm_fbdev.c | 174 +++++++++++----------- drivers/gpu/drm/exynos/exynos_drm_fbdev.h | 20 +-- 5 files changed, 94 insertions(+), 117 deletions(-) Tested-by: Marek Szyprowski