diff options
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/3982-drm-amdgpu-si-implement-asic-need_full_reset-callbac.patch')
-rw-r--r-- | meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/3982-drm-amdgpu-si-implement-asic-need_full_reset-callbac.patch | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/3982-drm-amdgpu-si-implement-asic-need_full_reset-callbac.patch b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/3982-drm-amdgpu-si-implement-asic-need_full_reset-callbac.patch new file mode 100644 index 00000000..65240968 --- /dev/null +++ b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/3982-drm-amdgpu-si-implement-asic-need_full_reset-callbac.patch @@ -0,0 +1,43 @@ +From 5959e18eee306717308cf0027c0d4de615c0bf08 Mon Sep 17 00:00:00 2001 +From: Alex Deucher <alexander.deucher@amd.com> +Date: Thu, 29 Mar 2018 14:38:09 -0500 +Subject: [PATCH 3982/4131] drm/amdgpu/si: implement asic need_full_reset + callback + +Used to check on a per SoC basis whether the SoC needs +a full reset of a per IP soft reset. + +Reviewed-by: Huang Rui <ray.huang@amd.com> +Signed-off-by: Alex Deucher <alexander.deucher@amd.com> +--- + drivers/gpu/drm/amd/amdgpu/si.c | 7 +++++++ + 1 file changed, 7 insertions(+) + +diff --git a/drivers/gpu/drm/amd/amdgpu/si.c b/drivers/gpu/drm/amd/amdgpu/si.c +index a763ac0..feb86ee 100644 +--- a/drivers/gpu/drm/amd/amdgpu/si.c ++++ b/drivers/gpu/drm/amd/amdgpu/si.c +@@ -1317,6 +1317,12 @@ static void si_invalidate_hdp(struct amdgpu_device *adev, + } + } + ++static bool si_need_full_reset(struct amdgpu_device *adev) ++{ ++ /* change this when we support soft reset */ ++ return true; ++} ++ + static const struct amdgpu_asic_funcs si_asic_funcs = + { + .read_disabled_bios = &si_read_disabled_bios, +@@ -1332,6 +1338,7 @@ static const struct amdgpu_asic_funcs si_asic_funcs = + .get_config_memsize = &si_get_config_memsize, + .flush_hdp = &si_flush_hdp, + .invalidate_hdp = &si_invalidate_hdp, ++ .need_full_reset = &si_need_full_reset, + }; + + static uint32_t si_get_rev_id(struct amdgpu_device *adev) +-- +2.7.4 + |