Re: [Intel-gfx] [PATCH 1/2] drm/dp: Read the tx msg state once after checking for an event

2017-05-15 Thread Daniel Vetter
On Sat, May 13, 2017 at 11:52:00AM +0100, Chris Wilson wrote: > Both as an exercise to document that we are reading the state outside of > the appropriate mutex and to ensure that we only read the value once > before the multiple comparisons, use READ_ONCE. I think gcc could also opt to

[Intel-gfx] [PATCH 1/2] drm/dp: Read the tx msg state once after checking for an event

2017-05-13 Thread Chris Wilson
Both as an exercise to document that we are reading the state outside of the appropriate mutex and to ensure that we only read the value once before the multiple comparisons, use READ_ONCE. Signed-off-by: Chris Wilson --- drivers/gpu/drm/drm_dp_mst_topology.c | 8