Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2537616imu; Thu, 29 Nov 2018 06:34:21 -0800 (PST) X-Google-Smtp-Source: AFSGD/XV/2wlGz77wsKuLCJqINVtoMIetXQ+Sm7D4D+2VoRpRy9Td145SFQeSgQDuQdaNyhL7K+3 X-Received: by 2002:a17:902:bd46:: with SMTP id b6mr1676709plx.231.1543502061755; Thu, 29 Nov 2018 06:34:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543502061; cv=none; d=google.com; s=arc-20160816; b=BE1s9B1PqVDBj/E31T3o4ODcHrwldOeiJchAVcrplg9DitYv0ZtEb5FPJB9BSAnfgc 7MW1DP4Azw3IHpk+F1eK5sv6FY7+3rl47Zm9Wcnzk3Ai5p3ExmWQ6W3rlxD2PqZLYkt/ 1eVH4Z6WPC5da17+wEE8VokxxA6D+IL508KO74qk2nE3sJLkC7EHIDO3MYZLb+Gr2FLf 1MWHjQvOSM8qjt1bQWnK56S58/Xxc2piA9qVeoT03uKJnTFcB6gOkE/okJkbK7kzce19 0NNy+eYIkgu4Ruws1fQT77Y14NBvsacPTeYGQZoX2D4eW5dUIAqXDzgRtLlzN+X7fL3X cnRQ== 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=TrtLiyOm8LwrpbDtcDmOU4HsnfX49acW1k2NvdKwg6Y=; b=PV/b/8MExQoKCaqH/ru12dkiTAtSjG/DJl1K4lzhSw5eYY1kl2IluRYlB5zd5Bm8Nt mZVJK/kDrBg0ivdG+XBBbunXIJ2wVqTsS/OdNfaeX9vGlJfUVlp8iyWGpvq1y43QPxM5 vekiKEpG+DpCxG99CbehwTZd/5Dcr+KKwKhMZgM6jcUtzJh7eCcFNywMMzxw5AXQnQW+ pk9zmZ/8FZERPNA6q/1gxYRpboh7iXEsJg0AgvSEeHkrt7uMa6Liy2kL+qpAv1yI+wFm uwbbFVNjF3rMTuxhfE8Wx+EfcHDt6is0riOAOxaLS5skQUxABdzdKafYoWh0wgMQLBkv xH1A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=N9F8Yss1; 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 w1si2162305pgi.66.2018.11.29.06.34.06; Thu, 29 Nov 2018 06:34:21 -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=N9F8Yss1; 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 S2389638AbeK3Bib (ORCPT + 99 others); Thu, 29 Nov 2018 20:38:31 -0500 Received: from mail.kernel.org ([198.145.29.99]:42124 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732483AbeK3Bia (ORCPT ); Thu, 29 Nov 2018 20:38:30 -0500 Received: from localhost (5356596B.cm-6-7b.dynamic.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 A58962146D; Thu, 29 Nov 2018 14:32:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1543501977; bh=rV27G2XKB6sXoBsSLoZ+v5siD30qlU7214kLN5CHHbA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=N9F8Yss1fibbIOA3JPscbVxDGAGygO5351L3dIySRE2XBoD+hlWXmmR+6pvHMUZiM SXo9MboTt3BoFrbEl4jymUL+5z4HUxk0wL/jpStZsJgooBtXvDTP0E4fqWDaraCEg8 L8G0I1S3w/h285WcnWcVNdRLq+z5xrUSenEjkYnc= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, =?UTF-8?q?Christian=20K=C3=B6nig?= , Philip Yang , Alex Deucher , Sasha Levin Subject: [PATCH 4.19 090/110] drm/amdgpu: fix bug with IH ring setup Date: Thu, 29 Nov 2018 15:13:01 +0100 Message-Id: <20181129135924.890209320@linuxfoundation.org> X-Mailer: git-send-email 2.19.2 In-Reply-To: <20181129135921.231283053@linuxfoundation.org> References: <20181129135921.231283053@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.19-stable review patch. If anyone has any objections, please let me know. ------------------ [ Upstream commit c837243ff4017f493c7d6f4ab57278d812a86859 ] The bug limits the IH ring wptr address to 40bit. When the system memory is bigger than 1TB, the bus address is more than 40bit, this causes the interrupt cannot be handled and cleared correctly. Reviewed-by: Christian König Signed-off-by: Philip Yang Reviewed-by: Alex Deucher Signed-off-by: Alex Deucher Signed-off-by: Sasha Levin --- drivers/gpu/drm/amd/amdgpu/vega10_ih.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu/vega10_ih.c b/drivers/gpu/drm/amd/amdgpu/vega10_ih.c index 5ae5ed2e62d6..21bc12e02311 100644 --- a/drivers/gpu/drm/amd/amdgpu/vega10_ih.c +++ b/drivers/gpu/drm/amd/amdgpu/vega10_ih.c @@ -129,7 +129,7 @@ static int vega10_ih_irq_init(struct amdgpu_device *adev) else wptr_off = adev->wb.gpu_addr + (adev->irq.ih.wptr_offs * 4); WREG32_SOC15(OSSSYS, 0, mmIH_RB_WPTR_ADDR_LO, lower_32_bits(wptr_off)); - WREG32_SOC15(OSSSYS, 0, mmIH_RB_WPTR_ADDR_HI, upper_32_bits(wptr_off) & 0xFF); + WREG32_SOC15(OSSSYS, 0, mmIH_RB_WPTR_ADDR_HI, upper_32_bits(wptr_off) & 0xFFFF); /* set rptr, wptr to 0 */ WREG32_SOC15(OSSSYS, 0, mmIH_RB_RPTR, 0); -- 2.17.1