From: Thomas Zimmermann Subject: Re: [PATCH v3 1/5] gem/vram: pin to vram in vmap Date: Thu, 27 Jun 2019 17:54:50 +0200 Message-ID: References: <20190627122348.5833-1-kraxel@redhat.com> <20190627122348.5833-2-kraxel@redhat.com> <8a52b578-b255-3e11-3a0c-0b68f0cb649e@suse.de> <20190627151633.j3xf3lkihklb2wzh@sirius.home.kraxel.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="tBTTJRDtS7CMLIYpOYJXPvr7feH33XgYO" Return-path: In-Reply-To: <20190627151633.j3xf3lkihklb2wzh@sirius.home.kraxel.org> Sender: linux-kernel-owner@vger.kernel.org To: Gerd Hoffmann Cc: dri-devel@lists.freedesktop.org, Maxime Ripard , open list , David Airlie , Sean Paul List-Id: dri-devel@lists.freedesktop.org This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --tBTTJRDtS7CMLIYpOYJXPvr7feH33XgYO Content-Type: multipart/mixed; boundary="5aKuOwci0HBAv9zVXFDlQwFppkudXPOMv"; protected-headers="v1" From: Thomas Zimmermann To: Gerd Hoffmann Cc: dri-devel@lists.freedesktop.org, Maxime Ripard , open list , David Airlie , Sean Paul Message-ID: Subject: Re: [PATCH v3 1/5] gem/vram: pin to vram in vmap References: <20190627122348.5833-1-kraxel@redhat.com> <20190627122348.5833-2-kraxel@redhat.com> <8a52b578-b255-3e11-3a0c-0b68f0cb649e@suse.de> <20190627151633.j3xf3lkihklb2wzh@sirius.home.kraxel.org> In-Reply-To: <20190627151633.j3xf3lkihklb2wzh@sirius.home.kraxel.org> --5aKuOwci0HBAv9zVXFDlQwFppkudXPOMv Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: quoted-printable Hi Am 27.06.19 um 17:16 schrieb Gerd Hoffmann: > Hi, >=20 >> 1) Introduce a default_placement field in struct drm_gem_vram_helper >> where this flag can be configured. I'd favor this option. >=20 >> 2) Introduce a separate callback function for pinning to vram. The >> driver would have to set the correct function pointers. >=20 >> 3) Pin the fb console buffer manually from within the bochs driver. >=20 > Hmm. Before calling drm_fbdev_generic_setup() the bo doesn't exist yet= > and when the function returns it is already vmapped and pinned I think.= >=20 > So (3) isn't easily doable. (1) looks best to me. For my patches, it's OK to have to BO pinned to VRAM by default. As the BO will be unmapped most of the time, I can change this flag at any time.= Best regards Thomas > cheers, > Gerd >=20 --=20 Thomas Zimmermann Graphics Driver Developer SUSE Linux GmbH, Maxfeldstrasse 5, 90409 Nuernberg, Germany GF: Felix Imend=C3=B6rffer, Mary Higgins, Sri Rasiah HRB 21284 (AG N=C3=BCrnberg) --5aKuOwci0HBAv9zVXFDlQwFppkudXPOMv-- --tBTTJRDtS7CMLIYpOYJXPvr7feH33XgYO Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEchf7rIzpz2NEoWjlaA3BHVMLeiMFAl0U5soACgkQaA3BHVML eiNQeAf+NnjuxqrjNx6kGfqn9NwnbfJLfP67MLbaMk5zgiP57zfMw/CAdHENVBtT fVlNbTQ2Y5894tk+TgvZUmtAbql242FJ8nPLTYoWoipUN5IgZ6m+dt/kCSZ80ci7 jffxxMeosDdXc8RGLIntkKJn/axK0S+L3h3dt8Jd6LyOhd7pUu4JM76IknYY6pUr TEJpYUzwiUW7OD7+eXBNxfK5fshT/gGmWUIItkWwCVMNQegPIHAfvqkpv4BHK+A2 3U38OZLODh64Z+Xnzz01mm+QM7jlXizRtVPAz6LzqUJtApf3OrnSSvMxhC+e1Ela A2NOCN5NpkxMCmsfPnmS3C1Sdux9yg== =USKJ -----END PGP SIGNATURE----- --tBTTJRDtS7CMLIYpOYJXPvr7feH33XgYO--