[PATCH 0/2] drm/amd/amdgpu: locking fixes

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



this series is,
Reviewed-by: Edward O'Callaghan <funfunctor at folklore1984.net>

On 01/11/2017 06:31 PM, Nicolai Hähnle wrote:
> Hi all,
> 
> two fixes for locking issues that I noticed.
> 
> The first one is something that I actually encountered live; it probably
> only matters when lock debugging is enabled, but obviously needs to be fixed
> anyway.
> 
> The second one I only noticed upon reading the code -- I haven't seen it
> fail live yet, at least not with lock debugging enabled (who knows what its
> effects could be without lock debugging).
> 
> Please review!
> 
> I noticed two more locking-related problems, but since I'm not sure whether
> I'll get to those this week, I'm sending out these two patches already. The
> other two problems are (both of them probably mostly benign, but I did
> encounter them in live tests):
> 
> 1. amdgpu_bo_create_restricted(resv == NULL) --> ttm_bo_init will free a
>    reservation object while it is locked. Fixing this soundly probably
>    requires mild changes to the ttm_bo_init API (perhaps a separate
>    ttm_bo_init_locked?).
> 
> 2. ttm_bo_pipeline_move will ttm_bo_unref(&ghost_obj) leading to
>    mutex_destroy(&ghost_obj->wu_mutex) while that mutex "looks" locked (due
>    to the dumb copy).
> 
> Thanks,
> Nicolai
> 
> _______________________________________________
> amd-gfx mailing list
> amd-gfx at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/amd-gfx
> 

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <https://lists.freedesktop.org/archives/amd-gfx/attachments/20170111/bc86d12b/attachment.sig>


[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux