Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp888905yba; Thu, 18 Apr 2019 11:15:17 -0700 (PDT) X-Google-Smtp-Source: APXvYqyi/+U6ZT9x+/tEgzVQyOgcpzn5KdQgUfg/yy/dIY2zv394Wm2uODb3axSJvg7/Lm1z0pGv X-Received: by 2002:a17:902:8a4:: with SMTP id 33mr98114345pll.7.1555611317386; Thu, 18 Apr 2019 11:15:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555611317; cv=none; d=google.com; s=arc-20160816; b=VatI7igra/zH3loA+Jl7Gwxrc3ruEoBDioJfEE936yI0qW2nmiSjZ0v2UHQhjXHce6 cvdeqULvFPRFFWUE+4/dwJsZYzErGWtWYamQFVd8dVZalob+Xc461KQJVpdIUKv9EKNV 07fkM/PnKdt/yoX7fBznE/gM0pHwsdNHUBILpzFwzJcBeyY41VXgahKaV+/N7EbFFEAF HWTN+MztDrLIKZmTk2q9j5Tn324YnNTy6Zp+0ZWRCoboDU5nAzsXG6nTjpIFM4LWUYC7 1C5i5b5ShmU7dWr+kisTOawSLLkcg9VM2mTB4NXg14yhFdEeFCb4G0gSuSXPHv8gIaND vHUw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=pZ5oJWSynVUoE+DYNB0YwTWyW/ENpVeTiANiUQsqmBQ=; b=tFg8mjLnx54auCrGCQelcOBlVxfmJOSgiGqDx3y0PVKHqTOZxAevazuzd0DOLMAM7f JJ/Fg9DASbU3geyahY7qunxk8pDfdGd0saisq9COADucN7ztR70NgBS8AxjaQfkmhRGr vcqtd+yNqFxXFoD55ZUstuubPK38XHZqw9/zrrndoBFi8eJbcL/7fbskrsvNC0ISAYJW +LSfwhqm2Hv+wiLqZy1Mtb7KLyFi/q2yEYyLwimIUgKurwwln6sYePZ3ODOQH7ttQvk0 1Hx/155t0RG0wxGZczFZqcvFB6T9doNTyDSndPCrN96P+63wp3tx9tjAOePvRaa5AAQw c50A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Et7C2O3L; 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 c144si3130753pfc.5.2019.04.18.11.15.02; Thu, 18 Apr 2019 11:15:17 -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=Et7C2O3L; 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 S2404447AbfDRSN3 (ORCPT + 99 others); Thu, 18 Apr 2019 14:13:29 -0400 Received: from mail.kernel.org ([198.145.29.99]:46178 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2404072AbfDRSN0 (ORCPT ); Thu, 18 Apr 2019 14:13:26 -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 CE2EB20652; Thu, 18 Apr 2019 18:13:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1555611206; bh=EbRltLgt24jtA3OsQnBzek7YLCLP46q2X5ONOuX8KQ4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Et7C2O3LXIbLlU3DKDRjZiKh8S6Wg4B4rBYw0AH1RbIq4N2MNBjLgWnBPIa/gLxmw o+lY1hBPbUVs3wUuYqtOo6nseDERUhMgcKSf+cSDCf6ureRCDj0vGLWPOK0ZgSzm6x 3grbDNhHDG6gzedotIBAYQsBSIoVcI8Ah7HkxF8Y= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Xiangliang Yu , Wentao Lou , Alex Deucher , Sasha Levin Subject: [PATCH 5.0 70/93] drm/amdgpu: psp_ring_destroy cause psp->km_ring.ring_mem NULL Date: Thu, 18 Apr 2019 19:57:48 +0200 Message-Id: <20190418160444.295980911@linuxfoundation.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190418160436.781762249@linuxfoundation.org> References: <20190418160436.781762249@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org [ Upstream commit 14d20ec7f31ef96a2e7dcf7880b13dde1d473b56 ] psp_ring_destroy inside psp_load_fw cause psp->km_ring.ring_mem NULL. Call Trace occurred when psp_cmd_submit. should be psp_ring_stop instead. Reviewed-by: Xiangliang Yu Signed-off-by: Wentao Lou Signed-off-by: Alex Deucher Signed-off-by: Sasha Levin --- drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c index 3a9b48b227ac..a7208ca0bfe3 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c @@ -546,7 +546,7 @@ static int psp_load_fw(struct amdgpu_device *adev) struct psp_context *psp = &adev->psp; if (amdgpu_sriov_vf(adev) && adev->in_gpu_reset) { - psp_ring_destroy(psp, PSP_RING_TYPE__KM); + psp_ring_stop(psp, PSP_RING_TYPE__KM); /* should not destroy ring, only stop */ goto skip_memalloc; } -- 2.19.1