Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp407686pxj; Thu, 20 May 2021 12:06:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwDIiqAuuGRL6L2GNg4QGNHKuLucu2TCsdTm/K6PRbcYRKsCZ0lGKe40vATN/T/1fKYvTbF X-Received: by 2002:a92:6610:: with SMTP id a16mr6751979ilc.124.1621537579020; Thu, 20 May 2021 12:06:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621537579; cv=none; d=google.com; s=arc-20160816; b=n+6BELlBpVoOSWVAhacysaeFk5+psI0YwWVeQzQQrYE1OFcjVClu1xALZuj/roPTqx aOWz+fCToKdLLa4HSq7W8Chj7K3oKygwtc6FQqKoFfp6/brEfz1idcKgE42gRtSiXM+b FIiGAQIeRpfzD2CSO+WbD9eJ221Nn3kBjD9HAwcfClEM8FC72KkjTofaBMspQ9aiaHSq HBd0B+mya97lT/ZnPbPEg1MrRANYzSItSK7bxkJEEFbdbVsJFFsldhSLQ5yRrgaCiNTP ZSEFiVoIvjwTM5wbxABZPXgFlv5+Q3CKl2uDcD/iOFi9JenZVs+SZfwOnID229MISflH alyg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=X5JvILG13lcKT9q4O2VTxSg2g7xIUDqqLcnwSPFv7VY=; b=LzRB3D5mC4X+6XGo1M3XZaJBLCx+KHRsxYi7KZmwmRA9216aHGcjhT89K0UyGaFGxT tVTlYuLwyYrbjY/U6D7W7NDnfSh3c6UJ4KnCU9gXCILHAF8RTDw/gh9BVSKU0W5vCkaJ 3hrmLpKiUA6Ch/1puCPcBpJWkJTREfO51PE/06s9txT8kL90KsjBiTtX5v1za6zyxJ+S 3ADrFqzBAdhI3MGD6/R2CcAxQ2DJG7hdWr1I+zHPK3uJ9zKf0AvXCMdh8udIcokOe4lF IRn7gjbfsjhtZKqsuGNe1l40WyBa4fj5rHtEpC4bS9vZf8jK2pZsqDMnQJQ5f0D9Tum8 2roA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=RhqiWUXR; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 16si3440628iou.15.2021.05.20.12.06.04; Thu, 20 May 2021 12:06:19 -0700 (PDT) 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; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=RhqiWUXR; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237964AbhETKgK (ORCPT + 99 others); Thu, 20 May 2021 06:36:10 -0400 Received: from mail.kernel.org ([198.145.29.99]:51948 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236299AbhETKWm (ORCPT ); Thu, 20 May 2021 06:22:42 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 96FB46135B; Thu, 20 May 2021 09:48:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1621504114; bh=7phCiXG70k8Vy5fS7iCF8xyE7KMcVO3FDONY75Fz7D4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=RhqiWUXRYNU6dvl9sXcBdeSN5wwnap9u7mWVHbWqhwJjdTvwhHNNyiH1nCwu7HnLL Ojjy8r8ZwgfjfYE6hvDEDzc6B0Jkvc9bOM5MxAd0UFPt/hOlu0O8U3nZSAgmtk1m38 xkJDzdfotWZzTSkPQZ702Ob7puh+JbGhnpRWy7pk= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, shaoyunl , Hawking Zhang , Alex Deucher , Sasha Levin Subject: [PATCH 4.14 054/323] drm/amdgpu : Fix asic reset regression issue introduce by 8f211fe8ac7c4f Date: Thu, 20 May 2021 11:19:06 +0200 Message-Id: <20210520092121.952070434@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210520092120.115153432@linuxfoundation.org> References: <20210520092120.115153432@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: shaoyunl [ Upstream commit c8941550aa66b2a90f4b32c45d59e8571e33336e ] This recent change introduce SDMA interrupt info printing with irq->process function. These functions do not require a set function to enable/disable the irq Signed-off-by: shaoyunl Reviewed-by: Hawking Zhang Signed-off-by: Alex Deucher Signed-off-by: Sasha Levin --- drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c index 538e5f27d120..fb9361590754 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c @@ -437,7 +437,7 @@ void amdgpu_irq_gpu_reset_resume_helper(struct amdgpu_device *adev) for (j = 0; j < AMDGPU_MAX_IRQ_SRC_ID; ++j) { struct amdgpu_irq_src *src = adev->irq.client[i].sources[j]; - if (!src) + if (!src || !src->funcs || !src->funcs->set) continue; for (k = 0; k < src->num_types; k++) amdgpu_irq_update(adev, src, k); -- 2.30.2