From: Thomas Zimmermann Subject: Re: [PATCH v3 1/5] gem/vram: pin to vram in vmap Date: Thu, 27 Jun 2019 17:59:05 +0200 Message-ID: <41363906-ba15-3940-7b63-c8ae42fe49ff@suse.de> 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="v5mvHfWoBSW6q2OhJ1KOU2WDnpIPSFgU3" Return-path: In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org To: Gerd Hoffmann Cc: Maxime Ripard , David Airlie , Sean Paul , open list , dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --v5mvHfWoBSW6q2OhJ1KOU2WDnpIPSFgU3 Content-Type: multipart/mixed; boundary="CyfwPLyugCmmiD1QOF0mNPbhTPLbJPTRI"; protected-headers="v1" From: Thomas Zimmermann To: Gerd Hoffmann Cc: Maxime Ripard , David Airlie , Sean Paul , open list , dri-devel@lists.freedesktop.org Message-ID: <41363906-ba15-3940-7b63-c8ae42fe49ff@suse.de> 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: --CyfwPLyugCmmiD1QOF0mNPbhTPLbJPTRI Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: quoted-printable Am 27.06.19 um 17:54 schrieb Thomas Zimmermann: > Hi >=20 > Am 27.06.19 um 17:16 schrieb Gerd Hoffmann: >> Hi, >> >>> 1) Introduce a default_placement field in struct drm_gem_vram_helper= >>> where this flag can be configured. I'd favor this option. >> >>> 2) Introduce a separate callback function for pinning to vram. The >>> driver would have to set the correct function pointers. >> >>> 3) Pin the fb console buffer manually from within the bochs driver. >> >> Hmm. Before calling drm_fbdev_generic_setup() the bo doesn't exist ye= t >> and when the function returns it is already vmapped and pinned I think= =2E >> >> So (3) isn't easily doable. (1) looks best to me. >=20 > 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 tim= e. So, yeah, option 1 ... > Best regards > Thomas >=20 >> cheers, >> Gerd >> >=20 >=20 > _______________________________________________ > dri-devel mailing list > dri-devel@lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/dri-devel >=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) --CyfwPLyugCmmiD1QOF0mNPbhTPLbJPTRI-- --v5mvHfWoBSW6q2OhJ1KOU2WDnpIPSFgU3 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEchf7rIzpz2NEoWjlaA3BHVMLeiMFAl0U58kACgkQaA3BHVML eiM5lQf/RsyluzB6xEkjK6Yzi9qC1XEdmXeUMT+OdUI1bSiMmt+ruoWk0u63rBca HdrX5C939GADLVoVPG7bzxXHWwQ0yidOaRjVQ1OraFg+QlH6hRc7WIX54Z+GxZb0 TlVYQCtmfSKIqfA9ksJNvqbKvCpfqJQPjfWkG7hDAN5UWILPRzY9Vf7YJUBUDKHs n27LxKwD0AV9hgAct1mhdVgfVECgQYR8GcNdZH0uT3HdLCU6/W7GENtrBYgJKlvT 1aIh4OplSJNgx6DyNEYXp5wXbYEpYq6y7/Xn569+xH5mclL3kMAaRTBPyJ15bdtQ J50K4JrCIGaZzUopBIJ3TfltKu0pIg== =HSpn -----END PGP SIGNATURE----- --v5mvHfWoBSW6q2OhJ1KOU2WDnpIPSFgU3--