Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2484573pxj; Mon, 10 May 2021 04:13:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyuQKVsGpLXSkN8YeFZIBytUpgpGQLKM92gAW8+hU4ievDjB4N/IpCHVulsy1iZIqQILfvi X-Received: by 2002:a05:6602:181:: with SMTP id m1mr18316986ioo.153.1620645180543; Mon, 10 May 2021 04:13:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620645180; cv=none; d=google.com; s=arc-20160816; b=IggADPBjhLaDtiJAOkR2Wae22E4XjlmIovojsPP0Q3a5kxCYLwwChjuqKJOVzGRr3w l7CrH67FVreMLnv4E+05XcdOY8VzUVzFcuVNFlf6Gd5lXnebGuJO8aiOwB6wzkXQaryj MmOLtnGatXZgYpjdhudSQfMkzbqmTMyHNT1QJ8IjhRF9+lzOfzk7NQO+QyGAcwhL1CRn 5dlUmDHL8A84XQ3zk695T2R19kc+NtPcIM05PfRUM/JOo3VqMbe97JR0mMiq3MYdhzRW KYkAo8iS1dfDhhWTAKt/AVkQBK6LqmbdNSMPxnCZuV83OHO2hZEl5zExR1+NjkFK29rH +K0g== 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=YYN8Efng4S+wEqWm9rlpySROssB9F/XfXj/j7d9Cg1I=; b=g9NX+QQaYPBhrtk0aM5+jMW7dJiY0g2QzxDBbasAAfHK9bPYMdVBJBGw5GdzRRZ7XL RPcZ+rAgbVh0tUFLsqZkdhEO3tYRbVNgMAFdF44hFnciHZrFlXVuzyRAznnbBoOWEnZ/ 66lbdeqhY09jsfqnhu5BNivauw50Bp/DAXBGaE5vE2OGFHJr+C2AnnLScPrFNysQ0Y79 sOnxenkTIOL29mKQj9n0RPOm6xg2U/JRay3iztzZPf4viwfYb42ixL3/8HbgBTW87fSW PNQOGXS0RCztiQtme8d6pvoU3TX8vtl2a8nW2N3e+OY6aBlwE/7hJha/PCaCQsIF5DHr Eh7Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=BozksDFF; 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 x6si15246128ilv.63.2021.05.10.04.12.48; Mon, 10 May 2021 04:13:00 -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=BozksDFF; 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 S235747AbhEJLGA (ORCPT + 99 others); Mon, 10 May 2021 07:06:00 -0400 Received: from mail.kernel.org ([198.145.29.99]:59424 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232283AbhEJKp5 (ORCPT ); Mon, 10 May 2021 06:45:57 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 5511861626; Mon, 10 May 2021 10:36:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1620643015; bh=o/l0lSsczpZLxrZMv/NdxfFKve3qOYESAWe0kB0foAU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=BozksDFF+8bdPw4tV07qZLfvgnx7+BLpoetagURNSWW/QEVObJYjwPMTP15pk4yJl A73TJKbKvk0Ag4q6vAAEd+BT1sdkPvkU84JHnlJiXqLzdhY8/nwRilju8kNZAfw5a9 /3wLlZy2z0fKzxoRhLSrJdbDGW1Fcs3YB6IRfsPs= 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 5.10 143/299] drm/amdgpu : Fix asic reset regression issue introduce by 8f211fe8ac7c4f Date: Mon, 10 May 2021 12:19:00 +0200 Message-Id: <20210510102009.690350053@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210510102004.821838356@linuxfoundation.org> References: <20210510102004.821838356@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 300ac73b4738..2f70fdd6104f 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c @@ -499,7 +499,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