]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Enable mmio_debug for vlv/chv
authorMika Kuoppala <mika.kuoppala@linux.intel.com>
Fri, 8 Jan 2016 13:51:19 +0000 (15:51 +0200)
committerMika Kuoppala <mika.kuoppala@intel.com>
Mon, 11 Jan 2016 16:29:13 +0000 (18:29 +0200)
commite6d616f7d4fa72fe525f6c97c0444f0f85a53e61
tree2ad205701c89d664ca233dc61542fbd823c0af47
parent3a2757ad0705b946736e326ad4b86b71cc484e7f
drm/i915: Enable mmio_debug for vlv/chv

With commit c87121e4c669 ("drm/i915: Add non claimed mmio checking
for vlv/chv") we now have chv/vlv support in place for detecting
unclaimed access. Also the perf hit of extra mmio read
is now only suffered if mmio_debug is set.

This allows us to stuff the macro for unclaimed reg
detection inside a generic gen6 register access, as now all
gens using these macros uses also unclaimed debugs, the one
exception being snb. We gain more clean and generic macros
and only downside is that snb will suffer one branch perf hit
without upside.

Note that the hsw write path debug register check now
happens before fifo check, but this should not make
any real difference.

As vlv/chv use the generic gen6 access macros, the consequence
is that they gain the mmio_debug feature.

Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Mika Kuoppala <mika.kuoppala@intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: http://patchwork.freedesktop.org/patch/msgid/1452261080-6979-1-git-send-email-mika.kuoppala@intel.com
drivers/gpu/drm/i915/intel_uncore.c