drm/amdgpu: fix IH ring allocation for bus addresses (v2)
authorAlex Deucher <alexander.deucher@amd.com>
Tue, 25 Aug 2015 02:46:13 +0000 (22:46 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 25 Aug 2015 14:09:30 +0000 (10:09 -0400)
commit52293c67f1e7542a6dc61037d83c266e216bef27
tree51af2a9e0c5cbd678d74373082683f43995a767d
parenta887adadb7b9ef9eb4ee48e4ad575aefcfd1db14
drm/amdgpu: fix IH ring allocation for bus addresses (v2)

Use pci_alloc_consistent rather than kzalloc since we
need 256 byte aligned memory for the ring buffer.

v2: fix copy paste typo in free function noticed
by Jammy.

bug:
https://bugs.freedesktop.org/show_bug.cgi?id=91749

Reviewed-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Jammy Zhou <Jammy.Zhou@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
drivers/gpu/drm/amd/amdgpu/amdgpu_ih.c