From patchwork Fri Apr 19 08:29:26 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Zimmermann X-Patchwork-Id: 790563 Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.223.130]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1C9C771B24 for ; Fri, 19 Apr 2024 08:33:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=195.135.223.130 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713515627; cv=none; b=dGwJbxEnnkZsjmuxGGw4/LrzgHba0JFLl0aU7T3ap7ZwZMscO4tnaUh5mTu0j4HOlYgqGTFQ1229JTW9UPTNfS7Ljoy1J0DRJS1PK3G/ROEWiMAbynv/xVE3dTygyJgp1ovdo85Q7+qLfepEgH2Gy2n3Sr7yOZ0S4E6250GaSpE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713515627; c=relaxed/simple; bh=phPbeSQFZaqC69mqsc9qjrgn/Cwv+Ja2nCyNIEUN+qs=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=T5b+36qi+lyNTfgqlGKy5vSXH/jdnpsSZj1NQ4n9VCMJccr1syvzzz0RrltmSldc1irHjOgJgO82leD21pb/PJUYFd1kIRbxZ/YkUGD9NmCMFXsmoYzjRXts3vgdLAI7MqBEja4ICPVXuQtxufXfBBp9vDYFd9HLPM+lsVA9kIM= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=suse.de; spf=pass smtp.mailfrom=suse.de; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b=O5MnBeuC; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b=91z+OLEl; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b=O5MnBeuC; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b=91z+OLEl; arc=none smtp.client-ip=195.135.223.130 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=suse.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=suse.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b="O5MnBeuC"; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b="91z+OLEl"; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b="O5MnBeuC"; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b="91z+OLEl" Received: from imap1.dmz-prg2.suse.org (imap1.dmz-prg2.suse.org [10.150.64.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 940C237583; Fri, 19 Apr 2024 08:33:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1713515624; 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=UOLm07lzbfBs1UIqhUxEAgzmUaED7VUFnaq6PeIqjTk=; b=O5MnBeuCeL2EtodHOgx38zoC4vuBMvhVMFlvwEowgRztNCKCaU6UU4wNobkzByR10kVcb4 4KW5QZnD5Ak0Y77ARaCNGmSASWtFj4ptP0YdNGsQT2UeIU9Cxrt4kBmPM5KnezEeaPF7YW YtqbsrxFSu+UkSvqhWQ+pNb/I0yh9KY= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1713515624; 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=UOLm07lzbfBs1UIqhUxEAgzmUaED7VUFnaq6PeIqjTk=; b=91z+OLElQDIWDTxtlUEklOnK00EDY/hwnWofxqc0Q/s0EuzizomKRq7lvEuev2HTNYvrbo inrlmphRMutm4UCg== Authentication-Results: smtp-out1.suse.de; none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1713515624; 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=UOLm07lzbfBs1UIqhUxEAgzmUaED7VUFnaq6PeIqjTk=; b=O5MnBeuCeL2EtodHOgx38zoC4vuBMvhVMFlvwEowgRztNCKCaU6UU4wNobkzByR10kVcb4 4KW5QZnD5Ak0Y77ARaCNGmSASWtFj4ptP0YdNGsQT2UeIU9Cxrt4kBmPM5KnezEeaPF7YW YtqbsrxFSu+UkSvqhWQ+pNb/I0yh9KY= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1713515624; 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=UOLm07lzbfBs1UIqhUxEAgzmUaED7VUFnaq6PeIqjTk=; b=91z+OLElQDIWDTxtlUEklOnK00EDY/hwnWofxqc0Q/s0EuzizomKRq7lvEuev2HTNYvrbo inrlmphRMutm4UCg== Received: from imap1.dmz-prg2.suse.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by imap1.dmz-prg2.suse.org (Postfix) with ESMTPS id 62ED51395B; Fri, 19 Apr 2024 08:33:44 +0000 (UTC) Received: from dovecot-director2.suse.de ([2a07:de40:b281:106:10:150:64:167]) by imap1.dmz-prg2.suse.org with ESMTPSA id yCsJF2gsImb9agAAD6G6ig (envelope-from ); Fri, 19 Apr 2024 08:33:44 +0000 From: Thomas Zimmermann To: javierm@redhat.com, deller@gmx.de, airlied@gmail.com, daniel@ffwll.ch Cc: dri-devel@lists.freedesktop.org, linux-fbdev@vger.kernel.org, Thomas Zimmermann Subject: [PATCH v3 33/43] drm/tiny/ili9163: Use fbdev-dma Date: Fri, 19 Apr 2024 10:29:26 +0200 Message-ID: <20240419083331.7761-34-tzimmermann@suse.de> X-Mailer: git-send-email 2.44.0 In-Reply-To: <20240419083331.7761-1-tzimmermann@suse.de> References: <20240419083331.7761-1-tzimmermann@suse.de> Precedence: bulk X-Mailing-List: linux-fbdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Spam-Flag: NO X-Spam-Score: -6.80 X-Spam-Level: X-Spamd-Result: default: False [-6.80 / 50.00]; REPLY(-4.00)[]; BAYES_HAM(-3.00)[100.00%]; MID_CONTAINS_FROM(1.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; R_MISSING_CHARSET(0.50)[]; NEURAL_HAM_SHORT(-0.20)[-1.000]; MIME_GOOD(-0.10)[text/plain]; DBL_BLOCKED_OPENRESOLVER(0.00)[imap1.dmz-prg2.suse.org:helo,imap1.dmz-prg2.suse.org:rdns,suse.de:email]; RCVD_VIA_SMTP_AUTH(0.00)[]; FROM_HAS_DN(0.00)[]; ARC_NA(0.00)[]; TO_DN_SOME(0.00)[]; MIME_TRACE(0.00)[0:+]; FROM_EQ_ENVFROM(0.00)[]; FREEMAIL_TO(0.00)[redhat.com,gmx.de,gmail.com,ffwll.ch]; RCPT_COUNT_SEVEN(0.00)[7]; RCVD_COUNT_TWO(0.00)[2]; TO_MATCH_ENVRCPT_ALL(0.00)[]; RCVD_TLS_ALL(0.00)[]; FUZZY_BLOCKED(0.00)[rspamd.com]; R_RATELIMIT(0.00)[to_ip_from(RLw9gjjhh8cousxs3wi4trssza)]; DKIM_SIGNED(0.00)[suse.de:s=susede2_rsa,suse.de:s=susede2_ed25519]; FREEMAIL_ENVRCPT(0.00)[gmail.com,gmx.de] Implement fbdev emulation with fbdev-dma. Fbdev-dma now supports damage handling, which is required by ili9163. Avoids the overhead of fbdev-generic's additional shadow buffering. No functional changes. Signed-off-by: Thomas Zimmermann Reviewed-by: Javier Martinez Canillas --- drivers/gpu/drm/tiny/ili9163.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/tiny/ili9163.c b/drivers/gpu/drm/tiny/ili9163.c index bc4384d410fcc..86f9d88349015 100644 --- a/drivers/gpu/drm/tiny/ili9163.c +++ b/drivers/gpu/drm/tiny/ili9163.c @@ -9,7 +9,7 @@ #include #include -#include +#include #include #include #include @@ -185,7 +185,7 @@ static int ili9163_probe(struct spi_device *spi) if (ret) return ret; - drm_fbdev_generic_setup(drm, 0); + drm_fbdev_dma_setup(drm, 0); return 0; }