Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp3369307ybi; Mon, 10 Jun 2019 09:05:47 -0700 (PDT) X-Google-Smtp-Source: APXvYqxwzkxIcMWeFCEXYynFFy/z0Nb/u1v3l27qg2mo886DzqIHs4gEY47CpIy4hyJDFQUUJv/q X-Received: by 2002:a65:6104:: with SMTP id z4mr16334343pgu.319.1560182746858; Mon, 10 Jun 2019 09:05:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560182746; cv=none; d=google.com; s=arc-20160816; b=s4M6AjVD/ZQ1q/ctKlIFa2jQKv9y5pbPmMi7T8qUgcLFjtve7tMiFhJNeirlpUcnIE i9w6oB06sD7WtMdoi55OV7PflimxQgOSUJ8ak4fbD1qqhNO5ZGBo0248pX10c2QHa9Nz RAsOqOP0V4UVBwcIuZdDo/VXDF7X9K51YYXHHuvoeIWTDjjk7cZog2Y0gq4R1vvVY+yV 7LvFv5Pn2H63W0KO8Y7jHpwREvzcMWpvoGLLVZ4BUQI8jORq320XEEjhHIzD2z272yqW 71tMu6O2Z6gA49k54zd6K/QheVQ++ZyIOt6+dI6JzMYRDOdlhn5PcRxoeRZCEe2H7Uo8 oO6g== 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:dkim-signature; bh=xwxwtzUiMgr5IVo8/ESygCV9lSBtwyoHDeatB0cKQcg=; b=f4xGBaz8jfY53+IbuzFe5NHfdJJALZiUlD+qDA8DJ5blC2HZ6n6Jl4KpQbB6syCV8E gGx6AbrE8/bGR33c+k6ma9IyPgD/xdvSKUpKk5TsFwe5cFh+rtbpG0wI/dvvxUKp9Wp+ wf2U4AKGjoBp5sQWNBJJyOlJoxhBKcIQFZN+zYxhF1x3nP+8wH+QdGIdYqjjGPNUS0cZ ZxvytzsT81H0SFlzOq1QsSImjjrhiVhsibRu8vPPNkQZ5pBYHv6hCo9ZxE8d6CiUHuSF yEYgPPA4k5hqjLfG7NuI1QGRRVNwObThZggX7176X9O8kQEnDnZaA2JG4E6YjFRd/s+g q5Cg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=g8Qo5WmI; 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 g12si10379559pla.322.2019.06.10.09.05.31; Mon, 10 Jun 2019 09:05:46 -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; dkim=pass header.i=@kernel.org header.s=default header.b=g8Qo5WmI; 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 S2390896AbfFJOlp (ORCPT + 99 others); Mon, 10 Jun 2019 10:41:45 -0400 Received: from mail.kernel.org ([198.145.29.99]:40488 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389520AbfFJOlo (ORCPT ); Mon, 10 Jun 2019 10:41:44 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 6229E2085A; Mon, 10 Jun 2019 14:41:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1560177703; bh=FokFmznO3hyjBT8LK5KtRnNef6UscRIFRtkTmxIJrmQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=g8Qo5WmIqFD1faasY7A/hAKgeI9tnxPlxIqa55wfHQgTNzcnno5Uzs3xN04BF50UU hgUc6Ae/i+nO6c2JYCqoZ7cZdW7FG+s9+/GTqa+MWggonJAmLP/4kvodu9ayALzsS7 sSdAE8wS4jybXI5y/423thBYHffoH/EBF93kVJrY= Date: Mon, 10 Jun 2019 16:41:41 +0200 From: Greg Kroah-Hartman To: Pavel Machek 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: <20190610144141.GB31086@kroah.com> References: <20190609164127.123076536@linuxfoundation.org> <20190609164130.489004849@linuxfoundation.org> <20190610143146.GA19565@amd> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190610143146.GA19565@amd> User-Agent: Mutt/1.12.0 (2019-05-25) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jun 10, 2019 at 04:31:46PM +0200, Pavel Machek wrote: > Hi! > > > From: Alex Deucher > > > > commit 5887a59961e2295c5b02f39dbc0ecf9212709b7b upstream. > > > > 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; > > } > > > > + /* Just return false for soc15 GPUs. Reset does not seem to > > + * be necessary. > > + */ > > + return false; > > + > > if (adev->flags & AMD_IS_APU) > > adev->nbio_funcs = &nbio_v7_0_funcs; > > else if (adev->asic_type == 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. Ah, good catch! This happened in the 4.14.y tree, so I had to drop the patch from there, for some reason I missed checking the 4.19.y backport (I had validated that 5.1.y got it right.) Now dropped from the queue, thanks! greg k-h