drm/amdgpu: add EDC support for CZ (v3)
authorAlex Deucher <alexander.deucher@amd.com>
Tue, 24 Nov 2015 22:43:42 +0000 (17:43 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 2 Dec 2015 20:54:26 +0000 (15:54 -0500)
commitccba7691a580a0967f60a512473ce699b9edac0d
tree6a86aee8f3d2c4267cd9bb37549322d259c50b7b
parentaa5e24e5f8a83b19b1b19964f35562c7a42636e2
drm/amdgpu: add EDC support for CZ (v3)

This adds EDC support for CZ.
EDC = Error Correction and Detection
This code properly initializes the EDC hardware and
resets the error counts.  This is done in late_init
since it requires the IB pool which is not initialized
during hw_init.

v2: fix the IB size as noted by Felix, fix shader pgm
register programming
v3: use the IB for the shaders as suggested by Christian

Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c