Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1580134pxb; Thu, 4 Feb 2021 17:30:12 -0800 (PST) X-Google-Smtp-Source: ABdhPJxQbGGQSH5e9bHFeTskY4EHDhKlHMifcqqk8jtjOaZfKppiy5stfR6I+eHgZof5UsOgFMaU X-Received: by 2002:a05:6402:31ae:: with SMTP id dj14mr1286817edb.364.1612488612181; Thu, 04 Feb 2021 17:30:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612488612; cv=none; d=google.com; s=arc-20160816; b=vbKjbKWcbeSokJCkFMgBXeUtR5CKNnrZenhSsLSNeZOqIts8yS6kT/eIOIvoyYwAl2 CeYmpALtuEOrxCdlv+1IWhZaSuS6sWx+LetsLukDCFBkqG3g5psm6LZnThOdzDBR/E58 2TMS+GLR9LoItRWCC29OriAugz5NX2/zV820omZyqiElmuyFLLgBtprtBfyCPUIuFp18 J37tE90YgW0vTA85q6sFyAk3678j2ipgEr74d0spajE27z3z9xlo3kdyDkhux7aF9PW6 9qN9mKFFKSn9OvePN2L0j4kc1xck03VCEhtDxqgWzUTdgWn7y2UY8hjrjxqMRFNnvdAG awRg== 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:subject:from:references:cc:to; bh=0HKEr0KXZ3LLdALb5AKfCm7wLI77olBzblGwZTweO1Y=; b=XmppAR4hBHNyvr6TcMqq1ADCAz0mRpVQKnrZtBxObi54fYrwXgN3bK/oPdZbySwEsS GXMKIV+jcJHkezCPYSO3LQMetV3ljXVRF+dobK4WPlx0CXNP/G6aI35ST49PEVEkgNKt KQQQFe8a7nW53rhR+Y1MgBvwgkCHS+RXTyE01CRHbXL69/azdTu/vjhJFmgX335iZsE8 voLdthhX5YFBTb5pCwd9R7Q8iv4es3BMGAAHlAG7bfOfnskyT9ii+TfZORzTXphp1F8R ezXkVfaezQ9YPaoPG/B9MufbZ80JAcqdmPl/BvCcJ4MMnUmQwevQqf9Vim3srwOj56cu q87g== 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 o19si4642823edz.565.2021.02.04.17.29.47; Thu, 04 Feb 2021 17:30:12 -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 S239204AbhBDSgB (ORCPT + 99 others); Thu, 4 Feb 2021 13:36:01 -0500 Received: from mx2.suse.de ([195.135.220.15]:40810 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239031AbhBDSfN (ORCPT ); Thu, 4 Feb 2021 13:35:13 -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 F2FE0AC45; Thu, 4 Feb 2021 18:34:31 +0000 (UTC) To: Gerd Hoffmann , dri-devel@lists.freedesktop.org Cc: David Airlie , Tong Zhang , 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-3-kraxel@redhat.com> From: Thomas Zimmermann Subject: Re: [PATCH v6 02/10] Revert "drm/qxl: do not run release if qxl failed to init" Message-ID: Date: Thu, 4 Feb 2021 19:34:30 +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-3-kraxel@redhat.com> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="fUCwg7Kcf5XhUz7W2mxvD8yfyNdVSH3DV" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --fUCwg7Kcf5XhUz7W2mxvD8yfyNdVSH3DV Content-Type: multipart/mixed; boundary="4nf4HqZJIJd5ZZmzyylTjIkZZmnhoKFoz"; protected-headers="v1" From: Thomas Zimmermann To: Gerd Hoffmann , dri-devel@lists.freedesktop.org Cc: David Airlie , Tong Zhang , 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 02/10] Revert "drm/qxl: do not run release if qxl failed to init" References: <20210204145712.1531203-1-kraxel@redhat.com> <20210204145712.1531203-3-kraxel@redhat.com> In-Reply-To: <20210204145712.1531203-3-kraxel@redhat.com> --4nf4HqZJIJd5ZZmzyylTjIkZZmnhoKFoz Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: quoted-printable Hi Am 04.02.21 um 15:57 schrieb Gerd Hoffmann: > This reverts commit b91907a6241193465ca92e357adf16822242296d. This should be in the correct format, as given by 'dim cite'. dim cite b91907a6241193465ca92e357adf16822242296d b91907a62411 ("drm/qxl: do not run release if qxl failed to init") >=20 > Patch is broken, it effectively makes qxl_drm_release() a nop > because on normal driver shutdown qxl_drm_release() is called > *after* drm_dev_unregister(). >=20 > Cc: Tong Zhang > Signed-off-by: Gerd Hoffmann > --- > drivers/gpu/drm/qxl/qxl_drv.c | 2 -- > 1 file changed, 2 deletions(-) >=20 > diff --git a/drivers/gpu/drm/qxl/qxl_drv.c b/drivers/gpu/drm/qxl/qxl_dr= v.c > index 34c8b25b5780..fb5f6a5e81d7 100644 > --- a/drivers/gpu/drm/qxl/qxl_drv.c > +++ b/drivers/gpu/drm/qxl/qxl_drv.c > @@ -144,8 +144,6 @@ static void qxl_drm_release(struct drm_device *dev)= > * reodering qxl_modeset_fini() + qxl_device_fini() calls is > * non-trivial though. > */ > - if (!dev->registered) > - return; I'm not sure what the original problem was, but I'm sure that this isn't = the fix for it. If there's a problem with shutdown, the operations=20 rather have to be reordered correctly. With the citation style address: Acked-by: Thomas Zimmermann > qxl_modeset_fini(qdev); > qxl_device_fini(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 --4nf4HqZJIJd5ZZmzyylTjIkZZmnhoKFoz-- --fUCwg7Kcf5XhUz7W2mxvD8yfyNdVSH3DV 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+AFAmAcPjYFAwAAAAAACgkQlh/E3EQov+Ci Cg//ZZKtx6YvhV4s/9QZ4Jb7GrH79ZKQGgATuoR0elTnN2QOyUA6Zvo33IQzsQ4sBsWIsystjEQu wNcvAebdbIj8Hiu87T8+1xfVRrzTo8p0gTo7yqtOs4L3mFA3NAqPkoY82USp+R4vk2szyh5CMHeZ L9wbNiDcMBXerPz/vpQbLQs0WmhLAG0EBCDz26cnNhQVkn7t0gM76qXRFQzzqSFmkmLIgRtflHFV 7WNu8AAh0gIpCIN8re829yAIEvul4AaoeFIsGDOGnZu+E47m6sj2VEpiQM83/GVarZXGm7UljMQc yVBnACDlK+uYEyXZIK8vYv1lVZmjg/T0XPBP/n7K00noJORqeXx5qYNuPP9wt60tZfOQVQF2Y6f6 lA6tCp/Din72pvQ4JxRgd3/TTuMI/wM5pHEzO61fFp60rMoBtgDMpWP6O6rT/2+lx1Vfm3ukxzCp 2xzqMKnvlFiH+4Texw067JiZIjfJcXk0dwXjZuevLvilVDFPIkPhGiuSi1dyaxP/T24TxFh/uLjM lroeQWyPcBhg9tVAyeMZNvqC2GGCo9SH/Sv4sT90F6lu9+9GkZXTgMgg7gnAt1SHTOYiNDTlZ+F2 lSNKqF20h4zJFcsSGtWbD459zb8hlqDsc/pE+y0LbkFjqcR6ExKDUVcM/p/PnT8K3hE+x8G195AQ gf8= =Vk0W -----END PGP SIGNATURE----- --fUCwg7Kcf5XhUz7W2mxvD8yfyNdVSH3DV--