Re: [PATCH] drm: Get ref on CRTC commit object when waiting for flip_done

2018-10-12 Thread Leo Li
On 2018-10-12 03:34 AM, Daniel Vetter wrote: On Thu, Oct 11, 2018 at 08:27:43PM -0400, sunpeng...@amd.com wrote: From: Leo Li This fixes a general protection fault, caused by accessing the contents of a flip_done completion object that has already been freed. It occurs due to the preemption

Re: [PATCH] drm: Get ref on CRTC commit object when waiting for flip_done

2018-10-12 Thread Daniel Vetter
On Thu, Oct 11, 2018 at 08:27:43PM -0400, sunpeng...@amd.com wrote: > From: Leo Li > > This fixes a general protection fault, caused by accessing the contents > of a flip_done completion object that has already been freed. It occurs > due to the preemption of a non-blocking commit worker thread W

[PATCH] drm: Get ref on CRTC commit object when waiting for flip_done

2018-10-11 Thread sunpeng.li
From: Leo Li This fixes a general protection fault, caused by accessing the contents of a flip_done completion object that has already been freed. It occurs due to the preemption of a non-blocking commit worker thread W by another commit thread X. X continues to clear its atomic state at the end,