aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu
diff options
context:
space:
mode:
authorAlex Deucher <alexander.deucher@amd.com>2018-03-29 15:39:46 -0400
committerAlex Deucher <alexander.deucher@amd.com>2018-04-11 14:07:59 -0400
commitadbd4f894f3615f04a4c0cfb931ed647c0280a5f (patch)
tree67b8781ec66e9a06344e957c3ab4911e857bcdf5 /drivers/gpu/drm/amd/amdgpu
parent06082d9b711fd5889c5f182c6fa629891e5b48c3 (diff)
drm/amdgpu/soc15: 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: Christian König <christian.koenig@amd.com> Reviewed-by: Huang Rui <ray.huang@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/soc15.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/soc15.c b/drivers/gpu/drm/amd/amdgpu/soc15.c
index 654b015d5e05..2e9ebe8db5cc 100644
--- a/drivers/gpu/drm/amd/amdgpu/soc15.c
+++ b/drivers/gpu/drm/amd/amdgpu/soc15.c
@@ -568,6 +568,12 @@ static void soc15_invalidate_hdp(struct amdgpu_device *adev,
568 HDP, 0, mmHDP_READ_CACHE_INVALIDATE), 1); 568 HDP, 0, mmHDP_READ_CACHE_INVALIDATE), 1);
569} 569}
570 570
571static bool soc15_need_full_reset(struct amdgpu_device *adev)
572{
573 /* change this when we implement soft reset */
574 return true;
575}
576
571static const struct amdgpu_asic_funcs soc15_asic_funcs = 577static const struct amdgpu_asic_funcs soc15_asic_funcs =
572{ 578{
573 .read_disabled_bios = &soc15_read_disabled_bios, 579 .read_disabled_bios = &soc15_read_disabled_bios,
@@ -581,6 +587,7 @@ static const struct amdgpu_asic_funcs soc15_asic_funcs =
581 .get_config_memsize = &soc15_get_config_memsize, 587 .get_config_memsize = &soc15_get_config_memsize,
582 .flush_hdp = &soc15_flush_hdp, 588 .flush_hdp = &soc15_flush_hdp,
583 .invalidate_hdp = &soc15_invalidate_hdp, 589 .invalidate_hdp = &soc15_invalidate_hdp,
590 .need_full_reset = &soc15_need_full_reset,
584}; 591};
585 592
586static int soc15_common_early_init(void *handle) 593static int soc15_common_early_init(void *handle)