summaryrefslogtreecommitdiff
path: root/firmware
diff options
context:
space:
mode:
authorAlex Williamson <alex.williamson@redhat.com>2013-08-16 02:37:59 +0400
committerDaniel Vetter <daniel.vetter@ffwll.ch>2013-09-03 21:17:59 +0400
commit5c0f6ee766d7c689e71a7df5e5fa87941affd75a (patch)
tree42674b39f8b5c4c587e6d7474e6b8f601e896cdb /firmware
parentf22d776f3e280e605819fc09fc35db0d802d36ce (diff)
downloadlinux-5c0f6ee766d7c689e71a7df5e5fa87941affd75a.tar.xz
vgaarb: Fix VGA decodes changes
When VGA decodes change we need to do a bit more evaluation of exactly what has changed. We don't necessarily give up all the old owns resources and we need to account for resources with locks. The new algorithm is: If something is added, update decodes. If legacy resources were added and none were there before, we have a new participant. If something is removed, update decodes. If we previously owned it, we no longer own it. If it was previously locked, invalidate all locks and release it. If legacy resources were removed and none are left, remove the participant from VGA arbitration. Previously we updated decodes, released ownership of everything that was previously decoded, ignored all locks, and went off looking for another device to transfer VGA to. In a test case where Intel IGD removes only legacy VGA memory decoding, this left the arbiter switching to discrete graphics without actually disabling legacy VGA IO from the IGD. As a bonus, we bumped up the count of VGA arbitration participants for no good reason. Signed-off-by: Alex Williamson <alex.williamson@redhat.com> Cc: Dave Airlie <airlied@redhat.com> Acked-by: Dave Airlie <airlied@redhat.com> Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com> [danvet: Kill now unused variables, reported by the 0-day kernel builtbot.] Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'firmware')
0 files changed, 0 insertions, 0 deletions