drm/amdgpu: fix bug with IH ring setup
authorPhilip Yang <Philip.Yang@amd.com>
Mon, 12 Nov 2018 19:00:45 +0000 (14:00 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 1 Dec 2018 08:37:33 +0000 (09:37 +0100)
commit4dc8439068731e22ba02cebb4fdd0d1ce3b362f6
treefbadbe63b889fee25a2e2831be4dad111b7999a4
parent021e2f3fc985842d756e292b7aaa1a44a8d41fd9
drm/amdgpu: fix bug with IH ring setup

[ 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 <christian.koenig@amd.com>
Signed-off-by: Philip Yang <Philip.Yang@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/amd/amdgpu/vega10_ih.c