Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp3364749ybi; Mon, 10 Jun 2019 09:01:49 -0700 (PDT) X-Google-Smtp-Source: APXvYqyPVrZ0h2ibNPcTeNlu6bKj5jU4Hx0l7OJv58lqzJFTQqIgjRVbIjZabGKvguVAJRkqYC2A X-Received: by 2002:a17:902:2ba9:: with SMTP id l38mr65068895plb.300.1560182509478; Mon, 10 Jun 2019 09:01:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560182509; cv=none; d=google.com; s=arc-20160816; b=KypSaXcgp28dKjgvf6uETZNGmFh20ZTVEMkns6q9DG9RYSuDpFfoeqtwWo+6KB3Qxj WnAmCY5spmBMOK9lqm0RNsE1cF2Mp6/WVTzq8834lwBcCqo0wVNXZU0MTu2TPwS7Z3Ok 2V334l4DtsdBkn6cSgKKvSJU7FL9OW+6GA8/Y6bzIbvlKd4kf9tjH59yKMPwS3/LG7iw XGwUtHiAUuTx0qFCaRZLqZayRDrNOniMgpvYd0PYLm6mmQSma3z5Np7rILWLt707PE8t EMTAb6N8sqx/4+hiN6ZM9DJ7vgfBPRubWXurl+84tHZ80ngWIpz9YWLqmzPzkcsJMHKj /Rog== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=86BzDSVZGwoM97EKW8QlELS/j+yE0EzqIPLtoEpf/3k=; b=l2ceOyIcalD/zf+KgH34M1XDm1+XAIfa0zJzNCgjJvv7hq+Wl3q1W192mxwknbiKsu v8m744SThwJXndk1c3OWhMm67cNok9yfFpiL8xYwh9PB3bFwEj/ab237yA7k70bb3jRZ QchnV0mgjBdQ0scVDBb5jbeEPiEYDSrTegetG3iAIxBblptnwlpnSwHboCa07ZhXC719 1MffRS2w2zEP7DipS2bQUAi2Rk6sTFMxao2r61s++RDnr4iSGILisarB3wQ1O6GW9Qe/ vnr/exCJ2OJ9n8784WE6yiKpTZtuvNV82JVMNpiufQhA1eUrCXS09LBcaeNoI47BnHR+ zYAQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t24si9776823plr.56.2019.06.10.09.01.29; Mon, 10 Jun 2019 09:01:49 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2403847AbfFJObt (ORCPT + 99 others); Mon, 10 Jun 2019 10:31:49 -0400 Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]:34082 "EHLO atrey.karlin.mff.cuni.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390812AbfFJObt (ORCPT ); Mon, 10 Jun 2019 10:31:49 -0400 Received: by atrey.karlin.mff.cuni.cz (Postfix, from userid 512) id 05B5980246; Mon, 10 Jun 2019 16:31:36 +0200 (CEST) Date: Mon, 10 Jun 2019 16:31:46 +0200 From: Pavel Machek To: Greg Kroah-Hartman Cc: linux-kernel@vger.kernel.org, stable@vger.kernel.org, Amber Lin , Alex Deucher Subject: Re: [PATCH 4.19 46/51] drm/amdgpu/soc15: skip reset on init Message-ID: <20190610143146.GA19565@amd> References: <20190609164127.123076536@linuxfoundation.org> <20190609164130.489004849@linuxfoundation.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="T4sUOijqQbZv57TR" Content-Disposition: inline In-Reply-To: <20190609164130.489004849@linuxfoundation.org> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --T4sUOijqQbZv57TR Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi! > From: Alex Deucher >=20 > commit 5887a59961e2295c5b02f39dbc0ecf9212709b7b upstream. >=20 > Not necessary on soc15 and breaks driver reload on server cards. > --- a/drivers/gpu/drm/amd/amdgpu/soc15.c > +++ b/drivers/gpu/drm/amd/amdgpu/soc15.c > @@ -495,6 +495,11 @@ int soc15_set_ip_blocks(struct amdgpu_de > return -EINVAL; > } > =20 > + /* Just return false for soc15 GPUs. Reset does not seem to > + * be necessary. > + */ > + return false; > + > if (adev->flags & AMD_IS_APU) > adev->nbio_funcs =3D &nbio_v7_0_funcs; > else if (adev->asic_type =3D=3D CHIP_VEGA20) Something is seriously wrong here. Upstream commit goes to soc15_need_reset_on_init() and creates dead variable and quite a bit of dead code. Is that intended? But this stable version... goes to different function, and returns false in function returning 0/-EINVAL, simulating success. New place does not seem right; it seems like patch misplaced it. Best regards, Pavel --=20 (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blo= g.html --T4sUOijqQbZv57TR Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAlz+adIACgkQMOfwapXb+vL9zwCfaWXb1BH3290hErTcBaxxREGa PqYAoJKCnzhWw6Kgy9stTLjBCzrCkVBS =ZlxE -----END PGP SIGNATURE----- --T4sUOijqQbZv57TR--