]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 4 May 2016 21:49:04 +0000 (14:49 -0700)
commit 83c5cda2ccf40a7a7e4bb674321509b346e23d5a upstream.

Fixes array overflow on these chips.

Reviewed-by: Harry Wentland <harry.wentland@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_mode.h

index 69111879ae21c628274c9f38212d710ccc723982..3b2d75d96ea0220449a8b54912b0b606eda34c40 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,