drm/amdgpu: bump the afmt limit for CZ, ST, Polaris
authorAlex Deucher <alexander.deucher@amd.com>
Mon, 18 Apr 2016 22:25:34 +0000 (18:25 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 5 May 2016 00:23:43 +0000 (20:23 -0400)
Fixes array overflow on these chips.

Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
drivers/gpu/drm/amd/amdgpu/amdgpu_mode.h

index e4da6daf128e1b291aa80abdbefcc3073b1bc732..81bd964d3dfc2f12cba2bf0e64b63c677e964d37 100644 (file)
@@ -53,7 +53,7 @@ struct amdgpu_hpd;
 
 #define AMDGPU_MAX_HPD_PINS 6
 #define AMDGPU_MAX_CRTCS 6
-#define AMDGPU_MAX_AFMT_BLOCKS 7
+#define AMDGPU_MAX_AFMT_BLOCKS 9
 
 enum amdgpu_rmx_type {
        RMX_OFF,