OSDN Git Service

drm/i915/icl: Correctly clear lost ctx-switch interrupts across reset for Gen11
authorOscar Mateo <oscar.mateo@intel.com>
Tue, 24 Apr 2018 21:39:55 +0000 (14:39 -0700)
committerChris Wilson <chris@chris-wilson.co.uk>
Wed, 25 Apr 2018 15:12:24 +0000 (16:12 +0100)
commitff047a87cfacf0a530960171a0779f5b19a3b1b8
tree34dea065a3d73825e7b7518655756fc7a18be2e5
parentf6f109155f0deca7fae7ab503d1f12a806c2c095
drm/i915/icl: Correctly clear lost ctx-switch interrupts across reset for Gen11

Interrupt handling in Gen11 is quite different from previous platforms.

v2: Rebased (Michel)
v3: Rebased with wiggle
v4: Rebased, remove TODO warning correctly (Daniele)
v5: Rebased, made gen11_gtiir const while at it (Michel)
v6: Rebased
v7: Adapt to the style currently in upstream

Suggested-by: Michel Thierry <michel.thierry@intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Signed-off-by: Michel Thierry <michel.thierry@intel.com>
Signed-off-by: Oscar Mateo <oscar.mateo@intel.com>
Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Cc: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Cc: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Reviewed-by: Michel Thierry <michel.thierry@intel.com>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: https://patchwork.freedesktop.org/patch/msgid/1524605995-22324-1-git-send-email-oscar.mateo@intel.com
drivers/gpu/drm/i915/i915_irq.c
drivers/gpu/drm/i915/intel_drv.h
drivers/gpu/drm/i915/intel_lrc.c