From: Eric Anholt Subject: Re: [PATCH 3/3] drm/vc4: Don't liberate the binner BO at runtime suspend Date: Sat, 16 Mar 2019 11:58:55 -0700 Message-ID: <87o96alk7k.fsf@anholt.net> References: <20190315162538.4120-1-paul.kocialkowski@bootlin.com> <20190315162538.4120-3-paul.kocialkowski@bootlin.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1388389682==" Return-path: Received: from anholt.net (anholt.net [50.246.234.109]) by gabe.freedesktop.org (Postfix) with ESMTP id C57096E1B3 for ; Sat, 16 Mar 2019 18:58:59 +0000 (UTC) In-Reply-To: <20190315162538.4120-3-paul.kocialkowski@bootlin.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" To: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Cc: Eben Upton , Maxime Ripard , Paul Kocialkowski , David Airlie , Thomas Petazzoni , Sean Paul List-Id: dri-devel@lists.freedesktop.org --===============1388389682== Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" --=-=-= Content-Type: text/plain Paul Kocialkowski writes: > The binner BO is a pre-requisite to GPU operations, so we must ensure > that it is always allocated when the GPU is in use. > > Because the buffer is allocated from the same pool as other GPU buffers, > we might run into a situation where we are out of memory at runtime > resume. This causes the binner BO allocation to fail and results in all > subsequent operations to fail, resulting in a major hang in userspace. > > Now that we allocate the buffer at firstopen and liberate it at > lastclose, we can just keep it alive during runtime suspend. I think this needs to be squashed into the previous patch, as otherwise coming from suspended, a firstopen -> resume -> render will leak a copy of the bin BO. --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEE/JuuFDWp9/ZkuCBXtdYpNtH8nugFAlyNR28ACgkQtdYpNtH8 nujZCA/+JhiOcpBD5A0ORtq9Csa+MUsoE3qDMT1X7Dc++FSgtskzj+21EXTEd3kb xLyp8jr7D3xwFsIVi/S8+TXxd6flWepXc9gb5Hjp4ARV1AP2QfzeL3CyhMxSsuWQ 92GsbL79jhQc6v9YoGFtrfRCSAP+fELA7HWvwJFAWVHTRoQB6pb6x5raZ9O5Ho1F 8A/UyF+YCNZh6X2U12kt54MiymBi4JG283sqCfmSpNF3u5IJcvho9H0ldyKP+znH 7010amQfuMMET4OcS53fDez5OnleWNBUvHuoipKyzItg24PpHHGMnsLW+vyT9n8I NBMIPwreCI8deYVdwrpPLtl9YNA3vPGgd8uZ3Jx6EBVnnR56cjD/2VUpFrgAxG2l a7CmBp3K3hZf5eIs3DkTN66MUugcs1Krv3rL33KvBBcXkT55acamuKiidv9M20Wn lhbgR6URxSC0pX3+cE2UGRfzVdWmvbRIUUIzxn3CVJbpjboXQsgyrNdRHZTGlJzE LCW9XA6SzP8QbXGqy2Dgqx/OwgT6Pfh3bucDVq5xGs32qBPOQiCcR8Csh9QE0sCK cNAX95GMh5RAmrJMPUGKyLQScQojo5mzB6JkFmlgv2+MeArWvOFCAwrTd22VkIfL 90hSKJww8SACxmN6wh4r7d369fyuNyBAAs+e8jVnAo/hPBZl8cM= =sVM+ -----END PGP SIGNATURE----- --=-=-=-- --===============1388389682== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVs --===============1388389682==--