]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
drm/amdgpu: fix topaz/tonga gmc assignment in 4.4 stable
authorAlex Deucher <alexdeucher@gmail.com>
Mon, 7 Mar 2016 23:40:45 +0000 (18:40 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 9 Mar 2016 23:34:57 +0000 (15:34 -0800)
When upstream commit 429c45deae6e57f1bb91bfb05b671063fb0cef60
was applied to 4.4 as d60703ca942e8d044d61360bc9792fcab54b95d0
it applied incorrectly to the tonga_ip_blocks array rather than
the topaz_ip_blocks array.  Fix that up here.

Bug:
https://bugzilla.kernel.org/show_bug.cgi?id=113951

Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/amd/amdgpu/vi.c

index 7628eb44cce2f28596d5f149659592e76fe4704f..3e9cbe398151f7a62d1177c69f16e61f09bc1a0f 100644 (file)
@@ -1082,10 +1082,10 @@ static const struct amdgpu_ip_block_version topaz_ip_blocks[] =
        },
        {
                .type = AMD_IP_BLOCK_TYPE_GMC,
-               .major = 8,
-               .minor = 0,
+               .major = 7,
+               .minor = 4,
                .rev = 0,
-               .funcs = &gmc_v8_0_ip_funcs,
+               .funcs = &gmc_v7_0_ip_funcs,
        },
        {
                .type = AMD_IP_BLOCK_TYPE_IH,
@@ -1129,10 +1129,10 @@ static const struct amdgpu_ip_block_version tonga_ip_blocks[] =
        },
        {
                .type = AMD_IP_BLOCK_TYPE_GMC,
-               .major = 7,
-               .minor = 4,
+               .major = 8,
+               .minor = 0,
                .rev = 0,
-               .funcs = &gmc_v7_0_ip_funcs,
+               .funcs = &gmc_v8_0_ip_funcs,
        },
        {
                .type = AMD_IP_BLOCK_TYPE_IH,