]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 21 Sep 2015 17:10:41 +0000 (10:10 -0700)
commit0abcb8a6c1ede6322d64f6a46333b38282a00fc4
tree2b140103a7ae5dd2cb174105f23c10b5febbb0cb
parenta93dd14f3cefffc46e49e55fc907b7323053cf09
drm/amdgpu: fix IH ring allocation for bus addresses (v2)

commit 52293c67f1e7542a6dc61037d83c266e216bef27 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/amd/amdgpu/amdgpu_ih.c