drm/i915/guc: keep breadcrumb irq always enabled
authorDaniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Mon, 12 Aug 2019 23:31:50 +0000 (16:31 -0700)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 13 Aug 2019 06:53:54 +0000 (07:53 +0100)
commitee94e0c4598a34ccbb2927af5700e373e5f96f23
treec70c2e91df014eafe18b510bc6ea4265d69e403d
parenta21ce8ad12d2e429fa393d6e3b79943f2b96e3a4
drm/i915/guc: keep breadcrumb irq always enabled

We rely on the tasklet to update the GT PM refcount, so we can't disable
it even if we've processed all the requests for the engine because we
might have detected the request completion before the interrupt arrived.

Since on all platforms on which we plan to support guc submission we
don't allow disabling the breadcrumb interrupts, we can further siplify
the park/unpark flow by removing the interrupt pin/unpin. A BUG_ON has
been added to catch changes to this flow that would require us to
restore some kind of pinning.

v2: split removal of engine_pin/unpin_breadcrumbs_irq to its own
    patch (chris)

Signed-off-by: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Michal Wajdeczko <michal.wajdeczko@intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: https://patchwork.freedesktop.org/patch/msgid/20190812233152.2172-1-daniele.ceraolospurio@intel.com
drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c