diff options
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/4037-drm-amdgpu-add-setting-powergating-method-for-gfx9.patch')
-rw-r--r-- | meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/4037-drm-amdgpu-add-setting-powergating-method-for-gfx9.patch | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/4037-drm-amdgpu-add-setting-powergating-method-for-gfx9.patch b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/4037-drm-amdgpu-add-setting-powergating-method-for-gfx9.patch new file mode 100644 index 00000000..4f849a56 --- /dev/null +++ b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/4037-drm-amdgpu-add-setting-powergating-method-for-gfx9.patch @@ -0,0 +1,35 @@ +From a8bbc0001da78b98f330e588a85a373d7a6a2860 Mon Sep 17 00:00:00 2001 +From: Huang Rui <ray.huang@amd.com> +Date: Wed, 6 Dec 2017 09:23:50 +0800 +Subject: [PATCH 4037/4131] drm/amdgpu: add setting powergating method for gfx9 +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +Signed-off-by: Huang Rui <ray.huang@amd.com> +Acked-by: Hawking Zhang <Hawking.Zhang@amd.com> +Acked-by: Alex Deucher <alexander.deucher@amd.com> +Acked-by: Christian König <christian.koenig@amd.com> +--- + drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c | 5 +++++ + 1 file changed, 5 insertions(+) + +diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c b/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c +index 7fd4467..26d516b 100644 +--- a/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c ++++ b/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c +@@ -3351,6 +3351,11 @@ static int gfx_v9_0_late_init(void *handle) + if (r) + return r; + ++ r = amdgpu_device_ip_set_powergating_state(adev, AMD_IP_BLOCK_TYPE_GFX, ++ AMD_PG_STATE_GATE); ++ if (r) ++ return r; ++ + return 0; + } + +-- +2.7.4 + |