Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp308633pxb; Wed, 3 Feb 2021 06:13:20 -0800 (PST) X-Google-Smtp-Source: ABdhPJzcL32ZpzsuX3Yvpu8yXghB/tzp0IbJj5iZfzSv/Rf5FYOvn5tSHq4H61HZ80MTE5AJhz8C X-Received: by 2002:aa7:c64a:: with SMTP id z10mr3079994edr.61.1612361209213; Wed, 03 Feb 2021 06:06:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612361209; cv=none; d=google.com; s=arc-20160816; b=o+8M98Odn3qIbe/LSSuUguX5jbZeSnRwq6DMXaIKPMdKooX3m6ncPz6ihp1bu1n54a qSiqj6RUKxr4/Gl73XJIrTjc/ImFRGJtM0JhlX/TJD68eEGMXCBOcj7aNTmRCIKR7FYc Q3tESpZeTs44bh1UMjMEEqWkS1HIWeZfnDIK29U/exeWQuUBLrjdnra2bwwTMY06JfKb NK15g+KRc3z1442JyqPKgOKe8dCKNrnv3yUiTFkw9g6edc85mGpQrPCsMuS0slFUNvfD UHFQ9+pPY3A3wvb68L3DyNrgqzjfGQnD/7XEW6QWNqAeAQaM0bYJQLz9VThRCtT3sma1 SV8g== 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=/Svid+wHmFXCcHKDjcklKDIaIA8fePLkWnlp+EZoyc8=; b=TmnvC1z7y+VGo0zyKNAtSCPFaIsqj1GB3nZ98RNDC27pAO4YjZDdLkTsCNCr0f1Qso pi+iRmyifrMVzO4o7XkIx+MlbhANsDNd4rbf93gynMK9TRgtRHiLw5zMUb7598yvs2IU T/Ta18a4q/6GyyFQZJUjMZ75v0yDkHAYpLYLDoEE8SduPavN3TSfN3HSN6prkJK+FEuD zGmlVm1X09HZYrIdYc0tLaC+vi+EXWkZN4yFmrj+L6XvV0Zqmd6uNyZfzBosIwVRqKJb bArfsunJ/ikUhS60Zw2j/8rMReX1xJLgtfvI1Ha98wn/F+elOVCl/p7iiXnjNP/+bx19 SGTA== 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 k8si1200826edn.92.2021.02.03.06.06.10; Wed, 03 Feb 2021 06:06:49 -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 S232565AbhBCOB7 (ORCPT + 99 others); Wed, 3 Feb 2021 09:01:59 -0500 Received: from mx2.suse.de ([195.135.220.15]:48576 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232537AbhBCOBc (ORCPT ); Wed, 3 Feb 2021 09:01:32 -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 1A215ACBA; Wed, 3 Feb 2021 14:00:50 +0000 (UTC) Subject: Re: [PATCH v5 2/6] drm/qxl: unpin release objects 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: <20210203131615.1714021-1-kraxel@redhat.com> <20210203131615.1714021-3-kraxel@redhat.com> From: Thomas Zimmermann Message-ID: <0d852d0b-4142-50c1-065f-0fd5b14b17a1@suse.de> Date: Wed, 3 Feb 2021 15:00:48 +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: <20210203131615.1714021-3-kraxel@redhat.com> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="147yOX0GtdM3jPKqvLPAx9h80hVHKqJ7g" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --147yOX0GtdM3jPKqvLPAx9h80hVHKqJ7g Content-Type: multipart/mixed; boundary="tuZNwHXxX3tyWjYURWnuiC68XZDdfrL3z"; 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: <0d852d0b-4142-50c1-065f-0fd5b14b17a1@suse.de> Subject: Re: [PATCH v5 2/6] drm/qxl: unpin release objects References: <20210203131615.1714021-1-kraxel@redhat.com> <20210203131615.1714021-3-kraxel@redhat.com> In-Reply-To: <20210203131615.1714021-3-kraxel@redhat.com> --tuZNwHXxX3tyWjYURWnuiC68XZDdfrL3z Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: quoted-printable Am 03.02.21 um 14:16 schrieb Gerd Hoffmann: > Balances the qxl_create_bo(..., pinned=3Dtrue, ...); > call in qxl_release_bo_alloc(). >=20 > Signed-off-by: Gerd Hoffmann Acked-by: Thomas Zimmermann > --- > drivers/gpu/drm/qxl/qxl_release.c | 1 + > 1 file changed, 1 insertion(+) >=20 > diff --git a/drivers/gpu/drm/qxl/qxl_release.c b/drivers/gpu/drm/qxl/qx= l_release.c > index c52412724c26..28013fd1f8ea 100644 > --- a/drivers/gpu/drm/qxl/qxl_release.c > +++ b/drivers/gpu/drm/qxl/qxl_release.c > @@ -347,6 +347,7 @@ int qxl_alloc_release_reserved(struct qxl_device *q= dev, unsigned long size, > =20 > mutex_lock(&qdev->release_mutex); > if (qdev->current_release_bo_offset[cur_idx] + 1 >=3D releases_per_b= o[cur_idx]) { > + qxl_bo_unpin(qdev->current_release_bo[cur_idx]); > qxl_bo_unref(&qdev->current_release_bo[cur_idx]); > qdev->current_release_bo_offset[cur_idx] =3D 0; > qdev->current_release_bo[cur_idx] =3D NULL; >=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 --tuZNwHXxX3tyWjYURWnuiC68XZDdfrL3z-- --147yOX0GtdM3jPKqvLPAx9h80hVHKqJ7g 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+AFAmAarJAFAwAAAAAACgkQlh/E3EQov+Dz uQ//U1uTJoKsaLKOoS1MtBmpxmUkzEq79UWDKej0Ztr1GoESBn6ciRQSFHXIAe/7uS4a1VsmKctn 9tzo1qc7pU5JMmlm9a0tzgThX5i8uwA8kX43yvhZKyS22wOy4ED4s6hIbxIr/VsjpSpBBebmFi2s 4ruG8vmNOWwjZC0a9YPhcoAmaIA92OSI89yHmbX8Eng1wHEFaBc/E5x+FtKHJI4r65HcwicmN5ju +4h47XWgZRjcRdbjcOK2t9fOOlwe7hrhiuVRIYOFZW5zwObe+2RiOIeR6bNAjGuRAKD91hgab0+O /qO2weLPZv5RaJo1BRT7dGgSqJPsY7sW461Qaqm/A1wYMpl2QzxD4jVRNhLdx4MlKFMoYhPu/HsB odabRkl5PEuU/ixB5ZqvpsaO6Jum3YGhAksv3ORp/Wx2vy2xtR5JKutvsDO6dzHDA6mCKltDEVEX tSbQ7PMG5CHjSeejvJbPfmDFc01Km0t+moEqqnUc9F/gZZ9rc2DhzndhQP/OYUuiqyachR4BM3Zk 3ukuEBqjRJT32v09DvJMSngeIplz71qHHMyv4UzlI5pl9yujRyuicZphARk48KWBq/7kcM+APZoq NRg6IqxUsuXrydppNtr8RxmuTAGKiNPRaMHXRdMJmy3A5gQebggnmBuGKky8vZikXHjzeDhwqR5O jNU= =l1Yg -----END PGP SIGNATURE----- --147yOX0GtdM3jPKqvLPAx9h80hVHKqJ7g--