Description[Ozone-Drm] Process display hotplug events sequentially
If add,remove or add,add (scanning for devices) events are delivered
fast enough, the remove/add event would be processed before the first
add event. In the first case the state would be incorrect while in the
second case it would cause the device to be opened multiple times
(causing permission errors in one of the events). To avoid this, use a
sequenced worker pool to properly order events. The device path is used
to group events for the same device.
This CL also keeps track of the active devices such that we can ignore
duplicate events (possible due to device scanning) and reduce the number
of display configurations performed.
BUG=477792, 476728
Committed: https://crrev.com/e037bbf79d760921ed56cb0694b1defc598edadc
Cr-Commit-Position: refs/heads/master@{#327321}
Patch Set 1 #Patch Set 2 : Handle GPU crashes #Patch Set 3 : Use WorkerPool for sequential scheduling #Patch Set 4 : Simplified #
Total comments: 4
Patch Set 5 : Add task_pending_ #
Messages
Total messages: 14 (4 generated)
|