]> git.karo-electronics.de Git - linux-beck.git/commit
drm/i915: Consolidate unclaimed mmio detection
authorMika Kuoppala <mika.kuoppala@linux.intel.com>
Tue, 15 Dec 2015 17:24:47 +0000 (19:24 +0200)
committerMika Kuoppala <mika.kuoppala@intel.com>
Fri, 8 Jan 2016 11:08:54 +0000 (13:08 +0200)
commit8a47eb198d6e59e5d2509324287d0d913b2d5af1
tree1e7cd9520d3b98658985a4765c5a6ced8efcc0ed
parent61642ff03523995918c452ef41adf0795d54d909
drm/i915: Consolidate unclaimed mmio detection

Access the unclaimed reg detection register through
one helper which also does cleanup. Note that we now access
the register only if the platform has the actual non claimed
access bit. This prevents reading the register with gens that
doesn't have the register or the unclaimed bit,
when debug_mmio > 0.

Note that we post after clearing the bit. This makes sure
that the next unclaimed write access would get detected
also if it happened right after clearing, and not fold
into the previous detection.

v2: s/unclaimed_reg_access/check_for_unclaimed_mmio (Chris)
    debug log on unclaimed detection on uncore init (Joonas)

v3: remove posting read (Ville)

Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Paulo Zanoni <przanoni@gmail.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Mika Kuoppala <mika.kuoppala@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1450200287-24080-1-git-send-email-mika.kuoppala@intel.com
drivers/gpu/drm/i915/intel_uncore.c