drm/i915/gvt: Add helper for tuning MMIO hash table
authorChangbin Du <changbin.du@intel.com>
Tue, 6 Jun 2017 07:56:13 +0000 (15:56 +0800)
committerZhenyu Wang <zhenyuw@linux.intel.com>
Thu, 8 Jun 2017 05:59:20 +0000 (13:59 +0800)
commitfbfd76c3746a322a9f33f77b66f85d4f68cabe4a
tree8d23172e719cf060e9d5c78c1f7a848d3ce03f35
parent5c6d4c676d0ccba2dcd97e47e1f10321da423e7d
drm/i915/gvt: Add helper for tuning MMIO hash table

We count all the tracked virtual MMIO registers, which can help us to
tune the MMIO hash table.

v2: Move num_tracked_mmio into gvt structure.

Signed-off-by: Changbin Du <changbin.du@intel.com>
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
drivers/gpu/drm/i915/gvt/gvt.h
drivers/gpu/drm/i915/gvt/handlers.c