From: Thomas Zimmermann Subject: Re: [PATCH v2 0/3] ast, mgag200: Map console BO while it's being displayed Date: Thu, 5 Sep 2019 10:19:40 +0200 Message-ID: References: <20190904115644.7620-1-tzimmermann@suse.de> <20190905070058.ydjtkrmy5nvgqens@sirius.home.kraxel.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0532886255==" Return-path: Received: from mx1.suse.de (mx2.suse.de [195.135.220.15]) by gabe.freedesktop.org (Postfix) with ESMTPS id 4AA2489C97 for ; Thu, 5 Sep 2019 08:19:47 +0000 (UTC) In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" To: Daniel Vetter , Gerd Hoffmann Cc: Feng Tang , Davidlohr Bueso , kernel test robot , Dave Airlie , dri-devel , Maxime Ripard , Huang Ying , Sean Paul List-Id: dri-devel@lists.freedesktop.org This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --===============0532886255== Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="Q1ENK73XPPip2uhxflhgbQyXjzfpcsUdb" This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --Q1ENK73XPPip2uhxflhgbQyXjzfpcsUdb Content-Type: multipart/mixed; boundary="4qAU21r6MYKaa0pPp7CrX6qPIm2yWfcKa"; protected-headers="v1" From: Thomas Zimmermann To: Daniel Vetter , Gerd Hoffmann Cc: Feng Tang , Davidlohr Bueso , kernel test robot , Dave Airlie , dri-devel , Maxime Ripard , Huang Ying , Sean Paul Message-ID: Subject: Re: [PATCH v2 0/3] ast, mgag200: Map console BO while it's being displayed References: <20190904115644.7620-1-tzimmermann@suse.de> <20190905070058.ydjtkrmy5nvgqens@sirius.home.kraxel.org> In-Reply-To: --4qAU21r6MYKaa0pPp7CrX6qPIm2yWfcKa Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: quoted-printable Hi Am 05.09.19 um 09:56 schrieb Daniel Vetter: > On Thu, Sep 5, 2019 at 9:01 AM Gerd Hoffmann wrote:= >> >> Hi, >> >>> - imo we should fix this by using the io_mapping stuff, that avoids >>> the overhead of repeated pat checks for map/unmap. >> >> Another idea: IIRC ttm has a move_notify callback. So we could simpl= y >> keep mappings active even when the refcount goes down to zero. Then d= o >> the actual unmap either in the move_notify or in the destroy callback.= >=20 > Yeah that should be a really clean solution, and only needs changes in > the vram helpers. Which is nice, more common code! But the console's BO is special wrt to mapping. Putting special code for console handling into vram helpers doesn't seem right. I think it's preferable to keep the special cases located in fbdev emulation. Or even better in DRM client code, so that other, future, internal clients automatically do the right thing. Best regards Thomas > -Daniel >=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) --4qAU21r6MYKaa0pPp7CrX6qPIm2yWfcKa-- --Q1ENK73XPPip2uhxflhgbQyXjzfpcsUdb Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEchf7rIzpz2NEoWjlaA3BHVMLeiMFAl1wxR8ACgkQaA3BHVML eiMelAgAq1I8UX7C92CkYqYeqDy9vkkxqYwMuwHmgyRiKf4uOXGUnglBiLiZLlJO 4Xooeunbcnz0EEguijXb9YSXwhfFk9wORSSHopFs1drfL5P4WTY+PswdfAsoccPX ONANa9csdJiF0CMXD98dyH9hNIYLcSSfaL3pQs8NtSIBcDqGQTfoT4VWQkqj+tnJ bZSZ1fHvWwYhQOBlsqogOca1do2fNX3eWAfZj4gWUHBAE1qXShswr+qnq87lCHB1 lPITfhbVcrsop4F5PjkaCZ4qth0U3146t23yIit+0OiHUIzCDx91TCLFkdO+cs2v xjK9pFgKjpVWh7ixXfu/PP9IAIWKfg== =fZBa -----END PGP SIGNATURE----- --Q1ENK73XPPip2uhxflhgbQyXjzfpcsUdb-- --===============0532886255== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVs --===============0532886255==--