[igt-dev] [PATCH i-g-t 0/6] Attempt to get rid of some globals

Michał Winiarski michal.winiarski at intel.com
Wed Mar 13 12:53:26 UTC 2019


Not everything... Bunch of stuff in intel_mmio is left untouched.
Let's see if I'm going in the right direction. The idea is to drop globals and
make some helpers a bit less i915 specific.

Michał Winiarski (6):
  tests/gem_exec_blt: Drop benchmark mode, use igt_sysfs
  lib/igt_device: Introduce igt_device_get_card_index
  lib: Kill drm_get_card()
  lib/igt_sysfs: Remove idx from sysfs_open
  lib/igt_sysfs: Simplify obtaining sysfs path
  lib/igt_device: Move intel_get_pci_device under igt_device

 benchmarks/gem_latency.c           |   4 +-
 benchmarks/gem_wsim.c              |   4 +-
 debugger/debug_rdata.c             |   7 +-
 debugger/eudb.c                    |   8 +-
 lib/drmtest.c                      |  40 ----------
 lib/drmtest.h                      |   1 -
 lib/igt_device.c                   |  98 ++++++++++++++++++++++++
 lib/igt_device.h                   |   3 +
 lib/igt_gt.c                       |   2 +-
 lib/igt_kms.c                      |   7 +-
 lib/igt_sysfs.c                    |  40 +++-------
 lib/igt_sysfs.h                    |   4 +-
 lib/intel_chipset.c                |  51 -------------
 lib/intel_chipset.h                |   1 -
 lib/intel_mmio.c                   |   4 +-
 lib/ioctl_wrappers.c               |   5 +-
 lib/ioctl_wrappers.h               |   2 +-
 tests/i915/gem_concurrent_all.c    |  12 +--
 tests/i915/gem_cpu_reloc.c         |   4 +-
 tests/i915/gem_exec_blt.c          | 117 +++++++++--------------------
 tests/i915/gem_exec_capture.c      |   2 +-
 tests/i915/gem_exec_latency.c      |   3 +-
 tests/i915/gem_exec_parse.c        |   4 +-
 tests/i915/gem_mmap.c              |   4 +-
 tests/i915/gem_mmap_gtt.c          |  10 +--
 tests/i915/gem_pwrite.c            |   4 +-
 tests/i915/gem_shrink.c            |   2 +-
 tests/i915/i915_hangman.c          |   4 +-
 tests/i915/i915_pm_lpsp.c          |   3 +-
 tests/i915/i915_pm_rc6_residency.c |   2 +-
 tests/i915/i915_pm_rpm.c           |   6 +-
 tests/i915/i915_pm_rps.c           |   5 +-
 tests/i915/i915_suspend.c          |  17 +++--
 tests/kms_flip.c                   |   2 +-
 tests/perf.c                       |   6 +-
 tests/perf_pmu.c                   |   2 +-
 tests/prime_mmap.c                 |   4 +-
 tests/vgem_basic.c                 |   2 +-
 tools/intel_audio_dump.c           |   9 ++-
 tools/intel_backlight.c            |   8 +-
 tools/intel_display_poller.c       |   8 +-
 tools/intel_forcewaked.c           |  10 ++-
 tools/intel_gpu_frequency.c        |   9 ++-
 tools/intel_gpu_time.c             |   8 +-
 tools/intel_gtt.c                  |   8 +-
 tools/intel_infoframes.c           |   7 +-
 tools/intel_l3_parity.c            |   5 +-
 tools/intel_lid.c                  |   9 ++-
 tools/intel_panel_fitter.c         |   8 +-
 tools/intel_perf_counters.c        |   3 +-
 tools/intel_reg.c                  |  23 +++---
 tools/intel_reg_checker.c          |   8 +-
 tools/intel_watermark.c            |  23 +++---
 53 files changed, 332 insertions(+), 310 deletions(-)

-- 
2.20.1



More information about the igt-dev mailing list