]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit1f15be903f224766faa002c1af5c7c5ec50dc6ed
treec70c2e91df014eafe18b510bc6ea4265d69e403d
parent204976d9c6d87d812c1ec717b13a434a5352482c
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