Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp4823480ybl; Wed, 22 Jan 2020 05:25:47 -0800 (PST) X-Google-Smtp-Source: APXvYqyvtOdYsuFVRd0qqYtrtB21PU3ETAxZckrlqlg9AGzDB+qzPAeIW4kj8qAjo+VRHzivUqB5 X-Received: by 2002:a9d:7519:: with SMTP id r25mr7287061otk.284.1579699546464; Wed, 22 Jan 2020 05:25:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579699546; cv=none; d=google.com; s=arc-20160816; b=MK/aQZqISi4rZ2AtGLs996I7h1ieWXEkulG35q1QDaIZlK9n40fC+LNYoFUUSYsABD MhIdSfRp8YhbeRaaWllBK9rLsMRMcVK0qPTksAiYLhJLuPmumFcco14pd3zghgEm/skA 7ynQRCX0PRN73hAtc1pXA7ruHWSAH3aJm7/M9zHel4g99rfmr+nv3D2JYd7+MmKdTKI+ hzb36QxvnYE7kXVks6vww9zozvdSUbOoro/ulTuRyFux5V2NLc9BcfF1B2M1d5rvqFx4 Ypn8f7tgnYMMaw8lKbL6lKzjAFTlLyo/V+D7xI+TSZWT2ElJULfL6/igPFSVVVHViGnm tdkw== 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=n5SCYFnQHz8671o6BksQLyD8zy4z2Vdln2w+1DQ8ATI=; b=gYevi7HNr4O/ulSt3Bdb6sPyjxtb6qQbVAtdZBPzDTiAqoVkGeswEeuL4wihNSBu0E 34Bm2tk+hJ+QZ7yNyTkrWuhlRlGsF6wEi8W4aI9jHH6I9UfxHMKmw0xP/JQ3fcF+6crV i0Q68UNOiZAR5Ho3yoyBLRMxrmzjDq/0fzF/vpWM/FMK8hdhA6J97eN6Llr4SRicRYM1 XttM4lH5XSm9/kvDuxknJDWH7Uqp4hSv61RCWiWAJxaCwMcev14E05NxOoJgQih48lJg +Xdq/G3ZyZsAbRQbLj4mmTa7CWLrGwQvHXA3CWXllZHH3Q1Tuulf7SuON3orGhVz+KH5 M1kA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=EHGbF060; 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 h9si21288235oie.74.2020.01.22.05.25.35; Wed, 22 Jan 2020 05:25:46 -0800 (PST) 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=EHGbF060; 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 S1731064AbgAVNYn (ORCPT + 99 others); Wed, 22 Jan 2020 08:24:43 -0500 Received: from mail.kernel.org ([198.145.29.99]:43890 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730109AbgAVNYl (ORCPT ); Wed, 22 Jan 2020 08:24:41 -0500 Received: from localhost (unknown [84.241.205.26]) (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 51FC9205F4; Wed, 22 Jan 2020 13:24:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1579699480; bh=BElaCkOda/ASxPVa60w9Uom3LiwB9M4TLjazoFdpulk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=EHGbF060tE/tKR3NBTujTeOstPOcmJLbaFSBZrJVrJd8a9ve8PKSwX/DXjX5EMbQz YnQlI54KGLut1Uj9hoUVcj8HzOimhp8rncrPl6j9jsmDNvMnQPiSAGAcdCsAoLCRlH oQJOiJBWBQdsBUMBzi2RXD72P8/S4EKS0TA4NUzo= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, changzhu , Huang Rui , Alex Deucher Subject: [PATCH 5.4 159/222] drm/amdgpu: allow direct upload save restore list for raven2 Date: Wed, 22 Jan 2020 10:29:05 +0100 Message-Id: <20200122092845.101869349@linuxfoundation.org> X-Mailer: git-send-email 2.25.0 In-Reply-To: <20200122092833.339495161@linuxfoundation.org> References: <20200122092833.339495161@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 From: changzhu commit eebc7f4d7ffa09f2a620bd1e2c67ddd579118af9 upstream. It will cause modprobe atombios stuck problem in raven2 if it doesn't allow direct upload save restore list from gfx driver. So it needs to allow direct upload save restore list for raven2 temporarily. Signed-off-by: changzhu Reviewed-by: Huang Rui Signed-off-by: Alex Deucher Signed-off-by: Greg Kroah-Hartman --- drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) --- a/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c +++ b/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c @@ -2923,7 +2923,9 @@ static void gfx_v9_0_init_pg(struct amdg * And it's needed by gfxoff feature. */ if (adev->gfx.rlc.is_rlc_v2_1) { - if (adev->asic_type == CHIP_VEGA12) + if (adev->asic_type == CHIP_VEGA12 || + (adev->asic_type == CHIP_RAVEN && + adev->rev_id >= 8)) gfx_v9_1_init_rlc_save_restore_list(adev); gfx_v9_0_enable_save_restore_machine(adev); }