drm/ttm: make ttm reservation calls behave like reservation calls
This commit converts the source of the val_seq counter to the ww_mutex api. The reservation objects are converted later, because there is still a lockdep splat in nouveau that has to resolved first. Signed-off-by:Maarten Lankhorst <maarten.lankhorst@canonical.com> Reviewed-by:
Jerome Glisse <jglisse@redhat.com> Signed-off-by:
Dave Airlie <airlied@redhat.com>
Showing
- drivers/gpu/drm/nouveau/nouveau_gem.c 25 additions, 13 deletionsdrivers/gpu/drm/nouveau/nouveau_gem.c
- drivers/gpu/drm/radeon/radeon.h 1 addition, 0 deletionsdrivers/gpu/drm/radeon/radeon.h
- drivers/gpu/drm/radeon/radeon_cs.c 10 additions, 8 deletionsdrivers/gpu/drm/radeon/radeon_cs.c
- drivers/gpu/drm/radeon/radeon_object.c 3 additions, 2 deletionsdrivers/gpu/drm/radeon/radeon_object.c
- drivers/gpu/drm/radeon/radeon_object.h 2 additions, 1 deletiondrivers/gpu/drm/radeon/radeon_object.h
- drivers/gpu/drm/radeon/radeon_uvd.c 13 additions, 14 deletionsdrivers/gpu/drm/radeon/radeon_uvd.c
- drivers/gpu/drm/ttm/ttm_bo.c 32 additions, 18 deletionsdrivers/gpu/drm/ttm/ttm_bo.c
- drivers/gpu/drm/ttm/ttm_execbuf_util.c 30 additions, 28 deletionsdrivers/gpu/drm/ttm/ttm_execbuf_util.c
- drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c 8 additions, 6 deletionsdrivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c
- drivers/gpu/drm/vmwgfx/vmwgfx_resource.c 14 additions, 9 deletionsdrivers/gpu/drm/vmwgfx/vmwgfx_resource.c
- include/drm/ttm/ttm_bo_api.h 1 addition, 1 deletioninclude/drm/ttm/ttm_bo_api.h
- include/drm/ttm/ttm_bo_driver.h 23 additions, 9 deletionsinclude/drm/ttm/ttm_bo_driver.h
- include/drm/ttm/ttm_execbuf_util.h 10 additions, 3 deletionsinclude/drm/ttm/ttm_execbuf_util.h
Loading
Please register or sign in to comment