lkml.org 
[lkml]   [2021]   [Oct]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 5.14 070/172] drm/amdgpu: force exit gfxoff on sdma resume for rmb s0ix
    Date
    From: Prike Liang <Prike.Liang@amd.com>

    commit 26db706a6d77b9e184feb11725e97e53b7a89519 upstream.

    In the s2idle stress test sdma resume fail occasionally,in the
    failed case GPU is in the gfxoff state.This issue may introduce
    by firmware miss handle doorbell S/R and now temporary fix the issue
    by forcing exit gfxoff for sdma resume.

    Signed-off-by: Prike Liang <Prike.Liang@amd.com>
    Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
    Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
    Cc: stable@vger.kernel.org
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    ---
    drivers/gpu/drm/amd/amdgpu/sdma_v5_2.c | 8 ++++++++
    1 file changed, 8 insertions(+)

    --- a/drivers/gpu/drm/amd/amdgpu/sdma_v5_2.c
    +++ b/drivers/gpu/drm/amd/amdgpu/sdma_v5_2.c
    @@ -883,6 +883,12 @@ static int sdma_v5_2_start(struct amdgpu
    msleep(1000);
    }

    + /* TODO: check whether can submit a doorbell request to raise
    + * a doorbell fence to exit gfxoff.
    + */
    + if (adev->in_s0ix)
    + amdgpu_gfx_off_ctrl(adev, false);
    +
    sdma_v5_2_soft_reset(adev);
    /* unhalt the MEs */
    sdma_v5_2_enable(adev, true);
    @@ -891,6 +897,8 @@ static int sdma_v5_2_start(struct amdgpu

    /* start the gfx rings and rlc compute queues */
    r = sdma_v5_2_gfx_resume(adev);
    + if (adev->in_s0ix)
    + amdgpu_gfx_off_ctrl(adev, true);
    if (r)
    return r;
    r = sdma_v5_2_rlc_resume(adev);

    \
     
     \ /
      Last update: 2021-10-04 15:33    [W:4.195 / U:0.468 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site