[PATCH v2] drm/panfrost: Move the GPU reset bits outside the timeout handler

Robin Murphy robin.murphy at arm.com
Fri Oct 30 14:29:32 UTC 2020


On 2020-10-30 10:53, Boris Brezillon wrote:
[...]
> +	/* Schedule a reset if there's no reset in progress. */
> +	if (!atomic_cmpxchg(&pfdev->reset.pending, 0, 1))

Nit: this could just be a simple xchg with 1 - you don't need the 
compare aspect, since setting it to true when it was already true is 
still harmless ;)

Robin.


More information about the dri-devel mailing list