Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1575073pxb; Thu, 4 Feb 2021 17:19:38 -0800 (PST) X-Google-Smtp-Source: ABdhPJyKZBywWkne/auA5WrqTo5NvSHNMAj7nJuCvJsSIECFzIs1lQ61R2SxVCOfvAvpqtCF3KjB X-Received: by 2002:a17:906:7d4d:: with SMTP id l13mr1667394ejp.107.1612487978429; Thu, 04 Feb 2021 17:19:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612487978; cv=none; d=google.com; s=arc-20160816; b=QCGwQUfZ09TXf0SY5gWFTScLeoPHAA4rQ1ozKMQFxWf2z7t8CFs6kVoMjmK1gbCgiY ZyaWOqetbk8FbZghi1jC5x772vfHGD6V+ly75N6iqXsCfajAVA6fyM/slWTHMqNba3+l r5MxnZqKZA3hyFSaV9JPpc0/Hubukxl8xQ+hMDJTFW1yGuKmhie0cesfNK7y2YDegsEn r2GounuL7W/N5q330Yhp36l7v/q7gSOpkEozCQRlY97KV8VDukAMeYtHSaoHWZiRcUOk 9sj1idCxkyG852EaDIUz6nKVLR8HEvpMi37kboN68XqYOjbv9RSTCrZeFNiHiAIjJni3 UtbQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=BwkVhWZb48PLUi9KJ4nAEa5tUmdrkVKT87NESawaXqA=; b=DWTZMujBWHSzfBwduR+X1OtH8JGoK4NV2IPvr1xE5I4KCfm7utLqN3iaXy37MdKFFI khJaXz30bIOwsG9xjx76PXeg8yqAwMUTzGTekfmwT/9y31olc7hXGNb0ZspXFnaiSWPJ lEJHqzQ8iGU33PaDR+4Nxy9MP7Ob+wTpk5rqQH6O33gPI5NBcpGK0buPzy2IZ/xWP0I5 zzyUoBUveP0xTMXoNaCyNQ2/1I+7fctacFFzlCi0g7u6PJiNJXaO5r1qc/nUvTe5KH6K pFZdT4wI50f9EfXtFDRG0ooUZmdPkt75QPsWPQ+3vC8LNgzafLFAcm1jKQFKIegOIRq3 pssQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y4si4158953ejp.679.2021.02.04.17.19.14; Thu, 04 Feb 2021 17:19:38 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238935AbhBDST0 (ORCPT + 99 others); Thu, 4 Feb 2021 13:19:26 -0500 Received: from mx2.suse.de ([195.135.220.15]:58646 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238861AbhBDSSf (ORCPT ); Thu, 4 Feb 2021 13:18:35 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 9FFB2AF19; Thu, 4 Feb 2021 18:17:50 +0000 (UTC) Subject: Re: [PATCH v6 05/10] drm/qxl: release shadow on shutdown To: Gerd Hoffmann , dri-devel@lists.freedesktop.org Cc: David Airlie , open list , "open list:DRM DRIVER FOR QXL VIRTUAL GPU" , "open list:DRM DRIVER FOR QXL VIRTUAL GPU" , Dave Airlie References: <20210204145712.1531203-1-kraxel@redhat.com> <20210204145712.1531203-6-kraxel@redhat.com> From: Thomas Zimmermann Message-ID: Date: Thu, 4 Feb 2021 19:17:49 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.6.1 MIME-Version: 1.0 In-Reply-To: <20210204145712.1531203-6-kraxel@redhat.com> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="7IZlZjBb9k90ggGG1jTaJcJnFpkLl9eRf" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --7IZlZjBb9k90ggGG1jTaJcJnFpkLl9eRf Content-Type: multipart/mixed; boundary="Pt9hD2fxGYr4bNM5i7RjcBEacqKwJegvC"; protected-headers="v1" From: Thomas Zimmermann To: Gerd Hoffmann , dri-devel@lists.freedesktop.org Cc: David Airlie , open list , "open list:DRM DRIVER FOR QXL VIRTUAL GPU" , "open list:DRM DRIVER FOR QXL VIRTUAL GPU" , Dave Airlie Message-ID: Subject: Re: [PATCH v6 05/10] drm/qxl: release shadow on shutdown References: <20210204145712.1531203-1-kraxel@redhat.com> <20210204145712.1531203-6-kraxel@redhat.com> In-Reply-To: <20210204145712.1531203-6-kraxel@redhat.com> --Pt9hD2fxGYr4bNM5i7RjcBEacqKwJegvC Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: quoted-printable Am 04.02.21 um 15:57 schrieb Gerd Hoffmann: > In case we have a shadow surface on shutdown release > it so it doesn't leak. >=20 > Signed-off-by: Gerd Hoffmann Acked-by: Thomas Zimmermann > --- > drivers/gpu/drm/qxl/qxl_display.c | 4 ++++ > 1 file changed, 4 insertions(+) >=20 > diff --git a/drivers/gpu/drm/qxl/qxl_display.c b/drivers/gpu/drm/qxl/qx= l_display.c > index 38d6b596094d..60331e31861a 100644 > --- a/drivers/gpu/drm/qxl/qxl_display.c > +++ b/drivers/gpu/drm/qxl/qxl_display.c > @@ -1229,5 +1229,9 @@ int qxl_modeset_init(struct qxl_device *qdev) > =20 > void qxl_modeset_fini(struct qxl_device *qdev) > { > + if (qdev->dumb_shadow_bo) { > + drm_gem_object_put(&qdev->dumb_shadow_bo->tbo.base); > + qdev->dumb_shadow_bo =3D NULL; > + } > qxl_destroy_monitors_object(qdev); > } >=20 --=20 Thomas Zimmermann Graphics Driver Developer SUSE Software Solutions Germany GmbH Maxfeldstr. 5, 90409 N=C3=BCrnberg, Germany (HRB 36809, AG N=C3=BCrnberg) Gesch=C3=A4ftsf=C3=BChrer: Felix Imend=C3=B6rffer --Pt9hD2fxGYr4bNM5i7RjcBEacqKwJegvC-- --7IZlZjBb9k90ggGG1jTaJcJnFpkLl9eRf Content-Type: application/pgp-signature; name="OpenPGP_signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="OpenPGP_signature" -----BEGIN PGP SIGNATURE----- wsF5BAABCAAjFiEExndm/fpuMUdwYFFolh/E3EQov+AFAmAcOk0FAwAAAAAACgkQlh/E3EQov+Bf pxAAzhS9yhz/7odXPF65ASlBgs72y2q/jr9c8XrWtKuF+dnkmjfzmTs57Mb1tt2uLEJezZliNmhd Tk6Pz22ASPfstmuLFw3gRbwT1gjjwMIzZJzH5FqSFNHFGMhwtMWY8kNbDNGPTkjc/4ON+DTQ4Hj1 AM6TLilIZVzM/uNZ04oOnpllo1Zpe7mntkS0/hL20vK5HXb0IuEiRLCowCGTu+4zqZJtGxcqaa0/ IckeSfvu9BDGKI3MNZvxRMZGkjZpPZX7r/yN7qy6TbsNraGX22jNAPgEx3E0eIJR9NGwC+qxm3J3 CAcd6IGMHhNPtkb/28Vg6+UsBYb5wL0d3PdXUjsAgZ94R/dc21bBb7+9cF+NqkovM/M44ieISjJr aqUJj5M3mtw02bXdTZUtSfdbdWAtpGnCQFTQgQtzOn8G19hc2rHDmcUSbqCYuipmyhLIQQAN43Jt XBJ9c9LvgLCQUYeGsROLUpTBS8YcCO/pYd0jSLrpNpGzokrXuiJC+Z24+QMWNULtUSukAASKMgnH mi3QEIkULGM8A447WcSYG+IiK0AEaLyhal9xaI1nR1Ie5dH10sOZmdUYKhZZqKuiQvy3wCg+b78U b6Ll7UXhqLSbi4en9av9ZABOWSXdSWZ4npX3HbYiAhDXsx4/rDCTq0u9ZQqkdVxTSlVZl7QMo1kn nFw= =qOcx -----END PGP SIGNATURE----- --7IZlZjBb9k90ggGG1jTaJcJnFpkLl9eRf--