diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2017-08-04 12:59:24 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2017-08-04 12:59:24 -0400 |
commit | 47d47585d04e1a23e7734118f8a317cbcda8c139 (patch) | |
tree | f95a0690985206ed3949faca081ea789ad3a58da | |
parent | 841fe95303cc7b47485a142ed518599ffc55ac35 (diff) | |
parent | 5669b9989eaa664cacbad6a85631550bccdad963 (diff) |
Merge tag 'drm-fixes-for-v4.13-rc4' of git://people.freedesktop.org/~airlied/linux
Pull drm fixes from Dave Airlie:
"Either my email ate everything or everyone is on holidays, either way
all I can find is some lonely AMD fixes"
[ Europe might be on vacation, and the Pacific NW is too hot for work. ]
* tag 'drm-fixes-for-v4.13-rc4' of git://people.freedesktop.org/~airlied/linux:
drm/amdgpu: Use list_del_init in amdgpu_mn_unregister
drm/amdgpu: Fix undue fallthroughs in golden registers initialization
drm/amdgpu: fix header on gfx9 clear state
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_mn.c | 2 | ||||
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/clearstate_gfx9.h | 41 | ||||
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/si.c | 2 |
3 files changed, 24 insertions, 21 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_mn.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_mn.c index 38f739fb727b..6558a3ed57a7 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_mn.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_mn.c | |||
@@ -359,7 +359,7 @@ void amdgpu_mn_unregister(struct amdgpu_bo *bo) | |||
359 | head = bo->mn_list.next; | 359 | head = bo->mn_list.next; |
360 | 360 | ||
361 | bo->mn = NULL; | 361 | bo->mn = NULL; |
362 | list_del(&bo->mn_list); | 362 | list_del_init(&bo->mn_list); |
363 | 363 | ||
364 | if (list_empty(head)) { | 364 | if (list_empty(head)) { |
365 | struct amdgpu_mn_node *node; | 365 | struct amdgpu_mn_node *node; |
diff --git a/drivers/gpu/drm/amd/amdgpu/clearstate_gfx9.h b/drivers/gpu/drm/amd/amdgpu/clearstate_gfx9.h index 18fd01f3e4b2..003a131bad47 100644 --- a/drivers/gpu/drm/amd/amdgpu/clearstate_gfx9.h +++ b/drivers/gpu/drm/amd/amdgpu/clearstate_gfx9.h | |||
@@ -1,24 +1,25 @@ | |||
1 | |||
2 | /* | 1 | /* |
3 | *************************************************************************************************** | 2 | * Copyright 2017 Advanced Micro Devices, Inc. |
4 | * | 3 | * |
5 | * Trade secret of Advanced Micro Devices, Inc. | 4 | * Permission is hereby granted, free of charge, to any person obtaining a |
6 | * Copyright (c) 2010 Advanced Micro Devices, Inc. (unpublished) | 5 | * copy of this software and associated documentation files (the "Software"), |
7 | * | 6 | * to deal in the Software without restriction, including without limitation |
8 | * All rights reserved. This notice is intended as a precaution against inadvertent publication and | 7 | * the rights to use, copy, modify, merge, publish, distribute, sublicense, |
9 | * does not imply publication or any waiver of confidentiality. The year included in the foregoing | 8 | * and/or sell copies of the Software, and to permit persons to whom the |
10 | * notice is the year of creation of the work. | 9 | * Software is furnished to do so, subject to the following conditions: |
11 | * | 10 | * |
12 | *************************************************************************************************** | 11 | * The above copyright notice and this permission notice shall be included in |
13 | */ | 12 | * all copies or substantial portions of the Software. |
14 | /** | 13 | * |
15 | *************************************************************************************************** | 14 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
16 | * @brief gfx9 Clearstate Definitions | 15 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
17 | *************************************************************************************************** | 16 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL |
18 | * | 17 | * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR |
19 | * Do not edit! This is a machine-generated file! | 18 | * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, |
20 | * | 19 | * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR |
21 | */ | 20 | * OTHER DEALINGS IN THE SOFTWARE. |
21 | * | ||
22 | */ | ||
22 | 23 | ||
23 | static const unsigned int gfx9_SECT_CONTEXT_def_1[] = | 24 | static const unsigned int gfx9_SECT_CONTEXT_def_1[] = |
24 | { | 25 | { |
diff --git a/drivers/gpu/drm/amd/amdgpu/si.c b/drivers/gpu/drm/amd/amdgpu/si.c index f45fb0f022b3..4267fa417997 100644 --- a/drivers/gpu/drm/amd/amdgpu/si.c +++ b/drivers/gpu/drm/amd/amdgpu/si.c | |||
@@ -1385,6 +1385,7 @@ static void si_init_golden_registers(struct amdgpu_device *adev) | |||
1385 | amdgpu_program_register_sequence(adev, | 1385 | amdgpu_program_register_sequence(adev, |
1386 | pitcairn_mgcg_cgcg_init, | 1386 | pitcairn_mgcg_cgcg_init, |
1387 | (const u32)ARRAY_SIZE(pitcairn_mgcg_cgcg_init)); | 1387 | (const u32)ARRAY_SIZE(pitcairn_mgcg_cgcg_init)); |
1388 | break; | ||
1388 | case CHIP_VERDE: | 1389 | case CHIP_VERDE: |
1389 | amdgpu_program_register_sequence(adev, | 1390 | amdgpu_program_register_sequence(adev, |
1390 | verde_golden_registers, | 1391 | verde_golden_registers, |
@@ -1409,6 +1410,7 @@ static void si_init_golden_registers(struct amdgpu_device *adev) | |||
1409 | amdgpu_program_register_sequence(adev, | 1410 | amdgpu_program_register_sequence(adev, |
1410 | oland_mgcg_cgcg_init, | 1411 | oland_mgcg_cgcg_init, |
1411 | (const u32)ARRAY_SIZE(oland_mgcg_cgcg_init)); | 1412 | (const u32)ARRAY_SIZE(oland_mgcg_cgcg_init)); |
1413 | break; | ||
1412 | case CHIP_HAINAN: | 1414 | case CHIP_HAINAN: |
1413 | amdgpu_program_register_sequence(adev, | 1415 | amdgpu_program_register_sequence(adev, |
1414 | hainan_golden_registers, | 1416 | hainan_golden_registers, |