From patchwork Mon Mar 13 15:51:24 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Zimmermann X-Patchwork-Id: 13172820 X-Patchwork-Delegate: neil.armstrong@linaro.org 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 94E63C6FD19 for ; Mon, 13 Mar 2023 16:07:22 +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:References:In-Reply-To: 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: List-Owner; bh=dJOlUTgrQmf6skjoaK7+XDhklTO02Bx0kCh+4WRkwF8=; b=WpCenKwDMtRWGe n+m5h6GYLFeVyQNU+VWmevY61kjCIT405iZG+70Ee275M0Ft2MkIgRdqpNdw3CLH3pdfMJwWniy/o wL/phBqa/H1Hiu4r8DG3oJqQU2ycMdI3G2756Q8VMWxKhCoJ45pPTq2ra8ynAYpxQihj3gxoHHbAp vPsJhEyUHLQWRIaKbSDr+zhjzvry4WFVtFwrXdm2PGeqFw2xFQMivlLsMSZzT6TzgEAdU6fAiGV36 vtF20c059fuS1RsRCc7j6Z/Dvqto+v9Vh9bRcZG738B4wg1PYa3H7F/lm4WjlFshHz9yuNMMNvaSX a4Q2OfFP7VynFpZtiNbg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pbkha-006cqy-Rs; Mon, 13 Mar 2023 16:07:10 +0000 Received: from desiato.infradead.org ([2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pbkT2-006Vge-Cc; Mon, 13 Mar 2023 15:52:08 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=Content-Transfer-Encoding:MIME-Version :References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To: Content-Type:Content-ID:Content-Description; bh=Ek06wiRvjrNh7KML5L+9ZhCl1dorqZM+tNafXQU3C+g=; b=btmRp2TH6n39iXlrAWa2IexLFu yYvLDKMaexUHoOZDcxXtXJIA1f5KseHzGfP8S8BUho36IB2JF7epMojgWuqyZQqYl7LK0vxoDxYI0 JNtyqEdV+RCc44OCbN1Djuc3FQbp7vHM5SJydBTkeuwiWQzNYHPxMztKy7lT3Jfd0GkcWJVX507Cu vTR4jOzDneJYEYliqi6Q125reZ0tuW/5y9kQs6ZQIvayjCx4nwSIE1yp+WQ6/+Q12QC3Wjcdzk8Wm y5kr+Ch+hH407tvwg0/KdmzOOUFxbFqoKZS4sBY4w3SQxzZB+SJXCdt4n2WR0MrVVUkLDIVqarBgl HcpQkQjA==; Received: from smtp-out2.suse.de ([195.135.220.29]) by desiato.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1pbkSu-001QSu-1S; Mon, 13 Mar 2023 15:52:05 +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 1F6ED1FE17; Mon, 13 Mar 2023 15:51:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1678722703; 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: in-reply-to:in-reply-to:references:references; bh=Ek06wiRvjrNh7KML5L+9ZhCl1dorqZM+tNafXQU3C+g=; b=sdnrodf1Q+zO6xRk2m8n75jY/fXu6X1DHqfEpUmN5QMkHae5wzVui+ZfFDY5oZFFVlcbMZ gb/8iUnZqeqV1uatR+2XXWBnzpUPLh+LVz1uz8wNnftw1BzD3mSVoPCZ2OJPyMXS765pr3 APRvqksqKNnUFiLGJ8K/NnONvTAzsHU= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1678722703; 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: in-reply-to:in-reply-to:references:references; bh=Ek06wiRvjrNh7KML5L+9ZhCl1dorqZM+tNafXQU3C+g=; b=Yyx9O7M7i4T4wVnYwBk22kDwDZtYAiBJIzeYfmb6ksOX+ttJXkzxAqCq6dYiMKG0SllX/i U7brWIWoTTxHdRAg== 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 D32AE139F9; Mon, 13 Mar 2023 15:51:42 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id 0DfAMo5GD2RhegAAMHmgww (envelope-from ); Mon, 13 Mar 2023 15:51:42 +0000 From: Thomas Zimmermann To: javierm@redhat.com, maarten.lankhorst@linux.intel.com, mripard@kernel.org, airlied@gmail.com, daniel@ffwll.ch, linus.walleij@linaro.org Cc: linux-aspeed@lists.ozlabs.org, dri-devel@lists.freedesktop.org, linux-stm32@st-md-mailman.stormreply.com, linux-amlogic@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-arm-kernel@lists.infradead.org, Thomas Zimmermann , Martin Blumenstingl Subject: [PATCH v2 11/25] drm/meson: Use GEM DMA fbdev emulation Date: Mon, 13 Mar 2023 16:51:24 +0100 Message-Id: <20230313155138.20584-12-tzimmermann@suse.de> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230313155138.20584-1-tzimmermann@suse.de> References: <20230313155138.20584-1-tzimmermann@suse.de> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230313_155200_680046_D32710B0 X-CRM114-Status: GOOD ( 11.05 ) X-BeenThere: linux-amlogic@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-amlogic" Errors-To: linux-amlogic-bounces+linux-amlogic=archiver.kernel.org@lists.infradead.org Use the fbdev emulation that is optimized for DMA helpers. Avoids possible shadow buffering and makes the code simpler. Signed-off-by: Thomas Zimmermann Reviewed-by: Javier Martinez Canillas Acked-by: Martin Blumenstingl --- drivers/gpu/drm/meson/meson_drv.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/meson/meson_drv.c b/drivers/gpu/drm/meson/meson_drv.c index 79bfe3938d3c..6608a251106b 100644 --- a/drivers/gpu/drm/meson/meson_drv.c +++ b/drivers/gpu/drm/meson/meson_drv.c @@ -18,7 +18,7 @@ #include #include #include -#include +#include #include #include #include @@ -353,7 +353,7 @@ static int meson_drv_bind_master(struct device *dev, bool has_components) if (ret) goto uninstall_irq; - drm_fbdev_generic_setup(drm, 32); + drm_fbdev_dma_setup(drm, 32); return 0;