public inbox for amd-gfx@lists.freedesktop.org
 help / color / mirror / Atom feed
  • * [PATCH AUTOSEL 4.19 59/73] drm/amdgpu/vcn: Update vcn.cur_state during suspend
           [not found] <20181213042838.75160-1-sashal@kernel.org>
           [not found] ` <20181213042838.75160-1-sashal-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
    @ 2018-12-13  4:28 ` Sasha Levin
      1 sibling, 0 replies; 4+ messages in thread
    From: Sasha Levin @ 2018-12-13  4:28 UTC (permalink / raw)
      To: linux-kernel, stable
      Cc: James Zhu, Alex Deucher, Sasha Levin, amd-gfx, dri-devel
    
    From: James Zhu <James.Zhu@amd.com>
    
    [ Upstream commit 0a9b89b2e2e7b6d90f81ddc47e489be1043e01b1 ]
    
    Replace vcn_v1_0_stop with vcn_v1_0_set_powergating_state during suspend,
    to keep adev->vcn.cur_state update. It will fix VCN S3 hung issue.
    
    Signed-off-by: James Zhu <James.Zhu@amd.com>
    Reviewed-by: Leo Liu <leo.liu@amd.com>
    Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
    Signed-off-by: Sasha Levin <sashal@kernel.org>
    ---
     drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c | 3 ++-
     1 file changed, 2 insertions(+), 1 deletion(-)
    
    diff --git a/drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c b/drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c
    index 072371ef5975..4f8f3bb21832 100644
    --- a/drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c
    +++ b/drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c
    @@ -43,6 +43,7 @@ static void vcn_v1_0_set_enc_ring_funcs(struct amdgpu_device *adev);
     static void vcn_v1_0_set_jpeg_ring_funcs(struct amdgpu_device *adev);
     static void vcn_v1_0_set_irq_funcs(struct amdgpu_device *adev);
     static void vcn_v1_0_jpeg_ring_set_patch_ring(struct amdgpu_ring *ring, uint32_t ptr);
    +static int vcn_v1_0_set_powergating_state(void *handle, enum amd_powergating_state state);
     
     /**
      * vcn_v1_0_early_init - set function pointers
    @@ -216,7 +217,7 @@ static int vcn_v1_0_hw_fini(void *handle)
     	struct amdgpu_ring *ring = &adev->vcn.ring_dec;
     
     	if (RREG32_SOC15(VCN, 0, mmUVD_STATUS))
    -		vcn_v1_0_stop(adev);
    +		vcn_v1_0_set_powergating_state(adev, AMD_PG_STATE_GATE);
     
     	ring->ready = false;
     
    -- 
    2.19.1
    
    ^ permalink raw reply related	[flat|nested] 4+ messages in thread

  • end of thread, other threads:[~2018-12-13  4:28 UTC | newest]
    
    Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
    -- links below jump to the message on this page --
         [not found] <20181213042838.75160-1-sashal@kernel.org>
         [not found] ` <20181213042838.75160-1-sashal-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
    2018-12-13  4:27   ` [PATCH AUTOSEL 4.19 10/73] drm/amd/display: Fix 6x4K displays light-up on Vega20 (v2) Sasha Levin
    2018-12-13  4:27   ` [PATCH AUTOSEL 4.19 18/73] drm/amdgpu: wait for IB test on first device open Sasha Levin
    2018-12-13  4:28   ` [PATCH AUTOSEL 4.19 36/73] drm/amd/powerplay: issue pre-display settings for display change event Sasha Levin
    2018-12-13  4:28 ` [PATCH AUTOSEL 4.19 59/73] drm/amdgpu/vcn: Update vcn.cur_state during suspend Sasha Levin
    

    This is a public inbox, see mirroring instructions
    for how to clone and mirror all data and code used for this inbox