From patchwork Fri Apr 19 08:29:06 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Zimmermann X-Patchwork-Id: 13635861 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 3BD545FB99 for ; Fri, 19 Apr 2024 08:33:42 +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=1713515623; cv=none; b=NyRyLADAtKuMv9YWhmrT6Z6uNGDPP11S3cK2NnD4T6WmIncZxEGEsdjU63Tregv3yxLSAjqYOjiqzDqXxKK3U4vdtyjcCSBzyVzwq+22RPzum3IqSfP9pYbkGse1plI4R3pfC+7l95waOow3NtqErt4YqcrBZwKUnh8RhDswBWM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713515623; c=relaxed/simple; bh=JVlBRv+tZWrBtB1x2+i3mDrnZiw+7TvW2BxG4KvhzqA=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=W042QOUg2ys5vKr6B+YJRq+18IhuvF0LV2zzvB4zMNjDkHzfhRv9etNmXTBmdPCjNsQnsrhnxmmVDCSXuwOPf1Oqb3Q9RGH+D72ydQfkx37pj8EZgKP17yrNqHCPFoCiGHampFQh6huJAguj6z1kN8mVLjhlCVdg3qjx3nXQ0Bw= 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=svH7pT/N; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b=2Dn9iKxg; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b=svH7pT/N; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b=2Dn9iKxg; 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="svH7pT/N"; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b="2Dn9iKxg"; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b="svH7pT/N"; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b="2Dn9iKxg" 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 5E58337583; Fri, 19 Apr 2024 08:33:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1713515619; 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=Sub/GnxglbhCf8bC//ZWOEcnuY0H/3LsG9UBAU7/Lz4=; b=svH7pT/NN7+7J0lCLwExHwPOL+Ar+MzKHksvdGrgeepzXyDhy1hGwTurGAIfNcTvgpxQ1V ojWv9zUtgaM6yTWtQfJo3XplezZzVe9flkbQ+f6/ANyevVTV21vxQkXolyyF9+N9DaSPBt V1dbdG2/yprSnyWim8vgcTN1yWm9P20= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1713515619; 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=Sub/GnxglbhCf8bC//ZWOEcnuY0H/3LsG9UBAU7/Lz4=; b=2Dn9iKxgJYutOcIdjWPXLC6bwawr4O6UvVcbJeqeVt/EZ6uvLG6x1xche0ftkMlfuC7gHB ixVSbdj+iPfdH3DQ== Authentication-Results: smtp-out1.suse.de; none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1713515619; 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=Sub/GnxglbhCf8bC//ZWOEcnuY0H/3LsG9UBAU7/Lz4=; b=svH7pT/NN7+7J0lCLwExHwPOL+Ar+MzKHksvdGrgeepzXyDhy1hGwTurGAIfNcTvgpxQ1V ojWv9zUtgaM6yTWtQfJo3XplezZzVe9flkbQ+f6/ANyevVTV21vxQkXolyyF9+N9DaSPBt V1dbdG2/yprSnyWim8vgcTN1yWm9P20= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1713515619; 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=Sub/GnxglbhCf8bC//ZWOEcnuY0H/3LsG9UBAU7/Lz4=; b=2Dn9iKxgJYutOcIdjWPXLC6bwawr4O6UvVcbJeqeVt/EZ6uvLG6x1xche0ftkMlfuC7gHB ixVSbdj+iPfdH3DQ== 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 2D3C513687; Fri, 19 Apr 2024 08:33:39 +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 eKj4CWMsImb9agAAD6G6ig (envelope-from ); Fri, 19 Apr 2024 08:33:39 +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 13/43] drm/solomon: Use fbdev-shmem Date: Fri, 19 Apr 2024 10:29:06 +0200 Message-ID: <20240419083331.7761-14-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-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)[suse.de:email,imap1.dmz-prg2.suse.org:helo,imap1.dmz-prg2.suse.org:rdns]; 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] X-Spam-Score: -6.80 X-Spam-Flag: NO Implement fbdev emulation with fbdev-shmem. Avoids the overhead of fbdev-generic's additional shadow buffering. No functional changes. Signed-off-by: Thomas Zimmermann Cc: Javier Martinez Canillas Reviewed-by: Javier Martinez Canillas --- drivers/gpu/drm/solomon/ssd130x.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/solomon/ssd130x.c b/drivers/gpu/drm/solomon/ssd130x.c index ebd943b9e357b..6f51bcf774e27 100644 --- a/drivers/gpu/drm/solomon/ssd130x.c +++ b/drivers/gpu/drm/solomon/ssd130x.c @@ -23,7 +23,7 @@ #include #include #include -#include +#include #include #include #include @@ -2029,7 +2029,7 @@ struct ssd130x_device *ssd130x_probe(struct device *dev, struct regmap *regmap) if (ret) return ERR_PTR(dev_err_probe(dev, ret, "DRM device register failed\n")); - drm_fbdev_generic_setup(drm, 32); + drm_fbdev_shmem_setup(drm, 32); return ssd130x; }