Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp3930488imm; Mon, 8 Oct 2018 11:52:43 -0700 (PDT) X-Google-Smtp-Source: ACcGV635jh6TvoSViP71Qar8Q8uSFj5c43blKjHR5LuS0oSliu7MNyBUdOECDJpWxkIaohXh4uVA X-Received: by 2002:a63:65c7:: with SMTP id z190-v6mr22323620pgb.146.1539024763071; Mon, 08 Oct 2018 11:52:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539024763; cv=none; d=google.com; s=arc-20160816; b=FUajxxPnONjYQHt43AQUsM1Uuxab7CNe95BfTkFpFhmKL8Bu5r8manLASi2e9dhSEv 5IZCxcl7YShGw16xPVWAkXme3/KrkDIpndyyRXmdLCVv4Q2vzXMjnCJ+hnZOxMXjnLtZ 56iz1JeXUnzt/LVq9QW03o2iZkjRjdewTFfCd6cU1V9Qpy53Q0h42YPm9h2c0mIY90Vm q37gSy0Oikgk9+MbNPS2WkGMj0ooHiJnMzw0ep9gWbMXT6v9HDlnDbXK78awCvwIW1um 7HmEmtatSy/7ySik0tgDFmCbpNMFggrVHCnzCMuzpsTbkcOIskZ+GIxp7657JJztuqzB Oj5A== 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=rnlUmEcbs+hIlclXaYzjC8eF2bgugQdoC45ZgOUwzDE=; b=pI2HVyPlrh+GuJDrqUtFjAcQ7cmJuGTnKflPL+uNqCatBhrWKc2SBynIZdLER4Fic4 d9YIWk6RC2by+9/5/tjGkrg3Ff+9ZQjZYtXzCfoFvRaxPzQBSAaSvZM8utrooBjqEpQJ eqtMR9QpEaJX1UPM0qB3nKG0tmdlDmCTDFs9jjmWuZ4D9UGjYF/DUzPVIoVqIyfERMHb o2CBxHKCeA1OXcp+t8hW3urg7EM/PuqHkQqSdIoCc9N8IXw8JpTpRp3YOWduJAN+GABf bju/5n5TfHDq5GbyWsZWSEElNWi+Yt0IfL0UauFmee2UOlhCjhrczOoejdVmbDN8GWaO 0PpQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=EXTbdaml; 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 g17-v6si18409915pfo.130.2018.10.08.11.52.28; Mon, 08 Oct 2018 11:52:43 -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=EXTbdaml; 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 S1732456AbeJICFL (ORCPT + 99 others); Mon, 8 Oct 2018 22:05:11 -0400 Received: from mail.kernel.org ([198.145.29.99]:55212 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730284AbeJICFK (ORCPT ); Mon, 8 Oct 2018 22:05:10 -0400 Received: from localhost (ip-213-127-77-176.ip.prioritytelecom.net [213.127.77.176]) (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 A63F02087D; Mon, 8 Oct 2018 18:52:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1539024722; bh=Br0KLunLTQatDHe+gk22IoDYJ5+Wq8Gc3JTP7ivKjyw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=EXTbdamloD2XR0KNh+8+zSrcvdZ4RlLd/GzyvJhIpjzynPt8w5uPQQga5O1u46zh8 tHXsfGtssOOcC6MbQIno7BzaKFZ8UdoWUgDB5rR+Dp8sEwUXV07nmY6nucmaUsCrnJ 7f1byLra2rRWmojEPlNRALskCNrI5MMzLLgjM8+E= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Tao Zhou , Yukun Li , Hawking Zhang , =?UTF-8?q?Christian=20K=C3=B6nig?= , Alex Deucher , Sasha Levin Subject: [PATCH 4.18 132/168] drm/amdgpu: Fix SDMA hang in prt mode v2 Date: Mon, 8 Oct 2018 20:31:52 +0200 Message-Id: <20181008175625.062711084@linuxfoundation.org> X-Mailer: git-send-email 2.19.0 In-Reply-To: <20181008175620.043587728@linuxfoundation.org> References: <20181008175620.043587728@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review 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 4.18-stable review patch. If anyone has any objections, please let me know. ------------------ From: Tao Zhou [ Upstream commit 68ebc13ea40656fddd3803735d621921a2d74a5e ] Fix SDMA hang in prt mode, clear XNACK_WATERMARK in reg SDMA0_UTCL1_WATERMK to avoid the issue Affected ASICs: VEGA10 VEGA12 RV1 RV2 v2: add reg clear for SDMA1 Signed-off-by: Tao Zhou Tested-by: Yukun Li Reviewed-by: Hawking Zhang Acked-by: Christian König Signed-off-by: Alex Deucher Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) --- a/drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c +++ b/drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c @@ -67,6 +67,7 @@ static const struct soc15_reg_golden gol SOC15_REG_GOLDEN_VALUE(SDMA0, 0, mmSDMA0_RLC1_IB_CNTL, 0x800f0100, 0x00000100), SOC15_REG_GOLDEN_VALUE(SDMA0, 0, mmSDMA0_RLC1_RB_WPTR_POLL_CNTL, 0x0000fff0, 0x00403000), SOC15_REG_GOLDEN_VALUE(SDMA0, 0, mmSDMA0_UTCL1_PAGE, 0x000003ff, 0x000003c0), + SOC15_REG_GOLDEN_VALUE(SDMA0, 0, mmSDMA0_UTCL1_WATERMK, 0xfc000000, 0x00000000), SOC15_REG_GOLDEN_VALUE(SDMA1, 0, mmSDMA1_CHICKEN_BITS, 0xfe931f07, 0x02831f07), SOC15_REG_GOLDEN_VALUE(SDMA1, 0, mmSDMA1_CLK_CTRL, 0xffffffff, 0x3f000100), SOC15_REG_GOLDEN_VALUE(SDMA1, 0, mmSDMA1_GFX_IB_CNTL, 0x800f0100, 0x00000100), @@ -78,7 +79,8 @@ static const struct soc15_reg_golden gol SOC15_REG_GOLDEN_VALUE(SDMA1, 0, mmSDMA1_RLC0_RB_WPTR_POLL_CNTL, 0x0000fff0, 0x00403000), SOC15_REG_GOLDEN_VALUE(SDMA1, 0, mmSDMA1_RLC1_IB_CNTL, 0x800f0100, 0x00000100), SOC15_REG_GOLDEN_VALUE(SDMA1, 0, mmSDMA1_RLC1_RB_WPTR_POLL_CNTL, 0x0000fff0, 0x00403000), - SOC15_REG_GOLDEN_VALUE(SDMA1, 0, mmSDMA1_UTCL1_PAGE, 0x000003ff, 0x000003c0) + SOC15_REG_GOLDEN_VALUE(SDMA1, 0, mmSDMA1_UTCL1_PAGE, 0x000003ff, 0x000003c0), + SOC15_REG_GOLDEN_VALUE(SDMA1, 0, mmSDMA1_UTCL1_WATERMK, 0xfc000000, 0x00000000) }; static const struct soc15_reg_golden golden_settings_sdma_vg10[] = { @@ -106,7 +108,8 @@ static const struct soc15_reg_golden gol SOC15_REG_GOLDEN_VALUE(SDMA0, 0, mmSDMA0_RLC0_RB_WPTR_POLL_CNTL, 0xfffffff7, 0x00403000), SOC15_REG_GOLDEN_VALUE(SDMA0, 0, mmSDMA0_RLC1_IB_CNTL, 0x800f0111, 0x00000100), SOC15_REG_GOLDEN_VALUE(SDMA0, 0, mmSDMA0_RLC1_RB_WPTR_POLL_CNTL, 0xfffffff7, 0x00403000), - SOC15_REG_GOLDEN_VALUE(SDMA0, 0, mmSDMA0_UTCL1_PAGE, 0x000003ff, 0x000003c0) + SOC15_REG_GOLDEN_VALUE(SDMA0, 0, mmSDMA0_UTCL1_PAGE, 0x000003ff, 0x000003c0), + SOC15_REG_GOLDEN_VALUE(SDMA0, 0, mmSDMA0_UTCL1_WATERMK, 0xfc000000, 0x00000000) }; static const struct soc15_reg_golden golden_settings_sdma_4_2[] =