]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
drm/i915: Trim the ironlake+ irq handler
authorChris Wilson <chris@chris-wilson.co.uk>
Mon, 1 Jun 2020 14:03:55 +0000 (15:03 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Mon, 1 Jun 2020 16:10:55 +0000 (17:10 +0100)
commitc48a798a74476877477d7597726308cc2c8e9e07
tree7c03b39219c09688f7582de853f8e5062f1e79cc
parentf8c86ffa2800adc80adc679c84c45e0c6b027374
drm/i915: Trim the ironlake+ irq handler

Ever noticed that our interrupt handlers are where we spend most of our
time on a busy system? In part this is unavoidable as each interrupt
requires to poll and reset several registers, but we can try and do so as
efficiently as possible.

Function                                     old     new   delta
ilk_irq_handler                             2317    2156    -161

v2: Restore the irqreturn_t ret

Function                                     old     new   delta
ilk_irq_handler.cold                          63      72      +9
ilk_irq_handler                             2221    2080    -141

A slight improvement in the baseline overnight as well!

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Reviewed-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200601140355.20243-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_irq.c