diff options
| author | Jani Nikula <[email protected]> | 2013-05-22 15:36:17 +0300 |
|---|---|---|
| committer | Daniel Vetter <[email protected]> | 2013-05-23 23:24:28 +0200 |
| commit | 5a09ae9fd509d7dded34e0d599e1afa5142c6987 (patch) | |
| tree | 24d7ea5d6d8ca8e4c492f090f24d70174e2743d2 /tools/perf/scripts/python/netdev-times.py | |
| parent | 59de08136f0c8d91bfd607d03cf722c5b6c60d1b (diff) | |
drm/i915: refactor VLV IOSF sideband accessors to use one helper
Both the intel_dpio_{read,write} and valleyview_{punit,nc}_{read,write}
use the IOSF sideband interface. They access the same registers and do
mostly the same stuff, but no shared code. There are even duplicate
register defines for the same registers. Both have locking, but the
former use dpio_lock and the latter rps.hw_lock. It's racy.
This patch refactors the sideband access to a single function that
expects dpio_lock to be held. The dpio_lock is only used for sideband
stuff, so it's a better match than rps.hw_lock for the purpose. The rps
stuff still needs rps.hw_lock, since it's used to protect more than just
the register access, so rps code will need to hold both locks.
Based on the work by Shobhit Kumar <[email protected]> and Yogesh
Mohan Marimuthu <[email protected]>.
Signed-off-by: Jani Nikula <[email protected]>
Acked-by: Jesse Barnes <[email protected]>
Signed-off-by: Daniel Vetter <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/netdev-times.py')
0 files changed, 0 insertions, 0 deletions