From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3EAC7C43381 for ; Wed, 6 Mar 2019 17:32:18 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id 0995D206DD for ; Wed, 6 Mar 2019 17:32:18 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="BZKXjYu+" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 0995D206DD Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=anholt.net Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender:Content-Type:Cc: List-Subscribe:List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id: MIME-Version:Message-ID:Date:References:In-Reply-To:Subject:To:From:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=yUM3YiYT/frlPpfHTlz2dQpipLIfnVShJ/4BlYjdgC0=; b=BZKXjYu+/kG7pWkSnC65ADUJN pFINkl3p1X/XCVP3fiETgtxVQzE+HiKnPlkyTqeLCLBVsEz8ihx7MEX4C7cA7ywgHy/sYy2WhDR6M +cbw37+dRBeGESe3O/o02MRAkgdLS8Y/Q2LrzIT/GKgLL6jFpxKOTF7RUmOf9WnLfBZt4Z+sIEHou 0jBwxsy6xEMXgv8iK8klY2pLdg6SVb04OWG5SzZ9yQjk83mVuc9cqKiGbEAFSjM3ujVtzz6j5RJcO uqMayAxposEMLnq9FWbDxazTTQKd2V0qWLHvzcubJHUqsQAHW/OF/AHb15ibGGufPEQ9vdxxA0mbB h87PY9mwQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1h1aOr-0007RM-Fu; Wed, 06 Mar 2019 17:32:13 +0000 Received: from anholt.net ([50.246.234.109]) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1h1aOn-0007Qy-NQ for linux-arm-kernel@lists.infradead.org; Wed, 06 Mar 2019 17:32:11 +0000 Received: from localhost (localhost [127.0.0.1]) by anholt.net (Postfix) with ESMTP id 48CFA10A2E0F; Wed, 6 Mar 2019 09:32:05 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at anholt.net Received: from anholt.net ([127.0.0.1]) by localhost (kingsolver.anholt.net [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 6NVFCcDQ_ZtF; Wed, 6 Mar 2019 09:32:03 -0800 (PST) Received: from eliezer.anholt.net (localhost [127.0.0.1]) by anholt.net (Postfix) with ESMTP id C572F10A050A; Wed, 6 Mar 2019 09:32:03 -0800 (PST) Received: by eliezer.anholt.net (Postfix, from userid 1000) id 1218C2FE4653; Wed, 6 Mar 2019 09:32:03 -0800 (PST) From: Eric Anholt To: Maxime Ripard Subject: Re: [PATCH] drm/vc4: Use 16bpp by default for the fbdev buffer In-Reply-To: <20190306140245.21973-1-maxime.ripard@bootlin.com> References: <20190306140245.21973-1-maxime.ripard@bootlin.com> User-Agent: Notmuch/0.22.2+1~gb0bcfaa (http://notmuchmail.org) Emacs/25.2.2 (x86_64-pc-linux-gnu) Date: Wed, 06 Mar 2019 09:32:01 -0800 Message-ID: <87ef7jkiy6.fsf@anholt.net> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190306_093209_803709_DB2A45FC X-CRM114-Status: GOOD ( 12.00 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: eben@raspberrypi.org, Maxime Ripard , Maarten Lankhorst , dri-devel@lists.freedesktop.org, Paul Kocialkowski , Sean Paul , Thomas Petazzoni , linux-arm-kernel@lists.infradead.org Content-Type: multipart/mixed; boundary="===============2218046380545334912==" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org --===============2218046380545334912== Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" --=-=-= Content-Type: text/plain Maxime Ripard writes: > The preferred bpp for the fbdev emulation buffer has been 32 so far, which > means that by default we will allocate an 8MB buffer with a 1920x1080 > resolution. > > Worse this memory will be allocated from the CMA pool, and will never be > freed even if we don't use the fbdev emulation. Therefore, reducing it is a > big deal, and switching to 16bpp by default will gain us around 4MB at > 1920x1080, while keeping decent color depth. And users still have the > option to switch to 32bpp using the kernel command line. Reviewed-by: Eric Anholt This matches the defaults used by the bcm2708 fbdev driver that we're trying to get people to switch off of. --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEE/JuuFDWp9/ZkuCBXtdYpNtH8nugFAlyABBEACgkQtdYpNtH8 nugm4A/9GCfu8WwfhqZk+5d9PLe/9jFpg6iAQ1GaKp44Z/tLa4GAKRwifbX1PqiI tqBydo/K00ggn5iZOnstJXS3TaSYf+mdXcu+R/J/eo7fVeMvKbFSyJ2PF3bI17co yjo/YR4B+ojeFW3AOas4c2MPp7tZGhjVWenPQ9Nipd/Dnw+Aeh1996TNprlXySMw 7gHRWeIkfZ5GIIvG6vytcUVWcBdQSWSA528n9MnO+m55byRIS0NCVYTwkb6FhoqA IfUj2Jvo86rlXKT6Ep7baiOr89J/Um1SAq/qFLr7tqtwe6eNoQ8t04O0h7Q53EfW YhFyFzPLmMBGHZJ9IoUYh3lwlAdic5TtwptnXtWcdIPbAjIDmnV7dFVN7GK8Gowx 0hebGEKPlvCyH756GWv+hRLTAeUHOvazdguBfFW2mk8qbbLP1KM4zuL/jCTp3AwD ngB3EVY0Cp+9RLimcWQhORfJHn+g9x958+J5pqQlOEjQwVpZ43NOiadFzidgus05 qcZNYMYcEVYEBTHrGWAGN8SxhkV0eiCOVf1KcUUeZFzTqvrsiOLB5wkFYqFXFaH7 JLrsdxhHQ32c/Eb8L0ghkoGpypOWP2kFb72ITsKe7qVeJ7NLN9Lp3I6HHddTh/Z1 tiqjvUCLXVE8IEzMwbnvHBeANBWVp5EhNSLLcC9kq+wTtEoLzjk= =75dA -----END PGP SIGNATURE----- --=-=-=-- --===============2218046380545334912== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel --===============2218046380545334912==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Anholt Subject: Re: [PATCH] drm/vc4: Use 16bpp by default for the fbdev buffer Date: Wed, 06 Mar 2019 09:32:01 -0800 Message-ID: <87ef7jkiy6.fsf@anholt.net> References: <20190306140245.21973-1-maxime.ripard@bootlin.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0837905499==" Return-path: Received: from anholt.net (anholt.net [50.246.234.109]) by gabe.freedesktop.org (Postfix) with ESMTP id 9D5596E13E for ; Wed, 6 Mar 2019 17:32:05 +0000 (UTC) In-Reply-To: <20190306140245.21973-1-maxime.ripard@bootlin.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Cc: eben@raspberrypi.org, Maxime Ripard , dri-devel@lists.freedesktop.org, Paul Kocialkowski , Sean Paul , Thomas Petazzoni , linux-arm-kernel@lists.infradead.org List-Id: dri-devel@lists.freedesktop.org --===============0837905499== Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" --=-=-= Content-Type: text/plain Maxime Ripard writes: > The preferred bpp for the fbdev emulation buffer has been 32 so far, which > means that by default we will allocate an 8MB buffer with a 1920x1080 > resolution. > > Worse this memory will be allocated from the CMA pool, and will never be > freed even if we don't use the fbdev emulation. Therefore, reducing it is a > big deal, and switching to 16bpp by default will gain us around 4MB at > 1920x1080, while keeping decent color depth. And users still have the > option to switch to 32bpp using the kernel command line. Reviewed-by: Eric Anholt This matches the defaults used by the bcm2708 fbdev driver that we're trying to get people to switch off of. --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEE/JuuFDWp9/ZkuCBXtdYpNtH8nugFAlyABBEACgkQtdYpNtH8 nugm4A/9GCfu8WwfhqZk+5d9PLe/9jFpg6iAQ1GaKp44Z/tLa4GAKRwifbX1PqiI tqBydo/K00ggn5iZOnstJXS3TaSYf+mdXcu+R/J/eo7fVeMvKbFSyJ2PF3bI17co yjo/YR4B+ojeFW3AOas4c2MPp7tZGhjVWenPQ9Nipd/Dnw+Aeh1996TNprlXySMw 7gHRWeIkfZ5GIIvG6vytcUVWcBdQSWSA528n9MnO+m55byRIS0NCVYTwkb6FhoqA IfUj2Jvo86rlXKT6Ep7baiOr89J/Um1SAq/qFLr7tqtwe6eNoQ8t04O0h7Q53EfW YhFyFzPLmMBGHZJ9IoUYh3lwlAdic5TtwptnXtWcdIPbAjIDmnV7dFVN7GK8Gowx 0hebGEKPlvCyH756GWv+hRLTAeUHOvazdguBfFW2mk8qbbLP1KM4zuL/jCTp3AwD ngB3EVY0Cp+9RLimcWQhORfJHn+g9x958+J5pqQlOEjQwVpZ43NOiadFzidgus05 qcZNYMYcEVYEBTHrGWAGN8SxhkV0eiCOVf1KcUUeZFzTqvrsiOLB5wkFYqFXFaH7 JLrsdxhHQ32c/Eb8L0ghkoGpypOWP2kFb72ITsKe7qVeJ7NLN9Lp3I6HHddTh/Z1 tiqjvUCLXVE8IEzMwbnvHBeANBWVp5EhNSLLcC9kq+wTtEoLzjk= =75dA -----END PGP SIGNATURE----- --=-=-=-- --===============0837905499== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVs --===============0837905499==--