lkml.org 
[lkml]   [2014]   [Feb]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 3.13 081/120] drm/radeon/runpm: dont runtime suspend non-PX cards
    Date
    3.13-stable review patch.  If anyone has any objections, please let me know.

    ------------------

    From: Alex Deucher <alexander.deucher@amd.com>

    commit 9babd35ad72af631547c7ca294bc2e931cc40e58 upstream.

    Prevent runtime suspend of non-PX GPUs. Runtime suspend is
    not what we want in those cases.

    Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

    ---
    drivers/gpu/drm/radeon/radeon_drv.c | 6 ++++++
    1 file changed, 6 insertions(+)

    --- a/drivers/gpu/drm/radeon/radeon_drv.c
    +++ b/drivers/gpu/drm/radeon/radeon_drv.c
    @@ -400,6 +400,9 @@ static int radeon_pmops_runtime_suspend(
    if (radeon_runtime_pm == 0)
    return -EINVAL;

    + if (radeon_runtime_pm == -1 && !radeon_is_px())
    + return -EINVAL;
    +
    drm_dev->switch_power_state = DRM_SWITCH_POWER_CHANGING;
    drm_kms_helper_poll_disable(drm_dev);
    vga_switcheroo_set_dynamic_switch(pdev, VGA_SWITCHEROO_OFF);
    @@ -422,6 +425,9 @@ static int radeon_pmops_runtime_resume(s
    if (radeon_runtime_pm == 0)
    return -EINVAL;

    + if (radeon_runtime_pm == -1 && !radeon_is_px())
    + return -EINVAL;
    +
    drm_dev->switch_power_state = DRM_SWITCH_POWER_CHANGING;

    pci_set_power_state(pdev, PCI_D0);



    \
     
     \ /
      Last update: 2014-02-12 02:41    [W:4.828 / U:0.068 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site