lkml.org 
[lkml]   [2018]   [Jun]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH v4 3/3] drm: Change deadlock-avoidance algorithm for the modeset locks.
    Date
    For modeset locks we don't expect a high number of contending
    transactions so change algorithm from Wait-Die to Wound-Wait.

    Cc: dri-devel@lists.freedesktop.org
    Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>

    ---
    v2, v3, v4: Adjusted to API changes.
    ---
    drivers/gpu/drm/drm_modeset_lock.c | 2 +-
    1 file changed, 1 insertion(+), 1 deletion(-)

    diff --git a/drivers/gpu/drm/drm_modeset_lock.c b/drivers/gpu/drm/drm_modeset_lock.c
    index 638be2eb67b4..8a5100685875 100644
    --- a/drivers/gpu/drm/drm_modeset_lock.c
    +++ b/drivers/gpu/drm/drm_modeset_lock.c
    @@ -70,7 +70,7 @@
    * lists and lookup data structures.
    */

    -static DEFINE_WD_CLASS(crtc_ww_class);
    +static DEFINE_WW_CLASS(crtc_ww_class);

    /**
    * drm_modeset_lock_all - take all modeset locks
    --
    2.14.3
    \
     
     \ /
      Last update: 2018-06-19 10:27    [W:6.396 / U:0.016 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site