• Mikko Perttunen's avatar
    gpu: host1x: External timeout/cancellation for fences · d5179020
    Mikko Perttunen authored
    Currently all fences have a 30 second timeout to ensure they are
    cleaned up if the fence never completes otherwise. However, this
    one size fits all solution doesn't actually fit in every case,
    such as syncpoint waiting where we want to be able to have timeouts
    longer than 30 seconds. As such, we want to be able to give control
    over fence cancellation to the caller (and maybe eventually get rid
    of the internal timeout altogether).
    
    Here we add this cancellation mechanism by essentially adding a
    function for entering the timeout path by function call, and changing
    the syncpoint wait function to use it.
    Signed-off-by: default avatarMikko Perttunen <mperttunen@nvidia.com>
    Signed-off-by: default avatarThierry Reding <treding@nvidia.com>
    d5179020
fence.h 483 Bytes