drm/amdgpu: increase IH ring buffer size to avoid overflow
authorRoger.He <Hongbo.He@amd.com>
Tue, 14 Mar 2017 08:47:30 +0000 (16:47 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 30 Mar 2017 03:53:53 +0000 (23:53 -0400)
We originally limited the IH to 4k on tonga since it
uses bus addresses directly rather than GPU MC addresses,
so it needs contigous physical memory.  This brings it
inline with other asics.

Signed-off-by: Roger.He <Hongbo.He@amd.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/tonga_ih.c

index 2053220dacfaa76821755f0d1d7bca7566e68b24..3a5097ac2bb49520026a2b8e725edfc47c7bad07 100644 (file)
@@ -289,7 +289,7 @@ static int tonga_ih_sw_init(void *handle)
        int r;
        struct amdgpu_device *adev = (struct amdgpu_device *)handle;
 
-       r = amdgpu_ih_ring_init(adev, 4 * 1024, true);
+       r = amdgpu_ih_ring_init(adev, 64 * 1024, true);
        if (r)
                return r;