]> git.baikalelectronics.ru Git - kernel.git/commitdiff
drm/i915/xehp: Extra media engines - Part 2 (interrupts)
authorJohn Harrison <John.C.Harrison@Intel.com>
Fri, 23 Jul 2021 17:42:12 +0000 (10:42 -0700)
committerMatt Roper <matthew.d.roper@intel.com>
Sat, 24 Jul 2021 14:17:12 +0000 (07:17 -0700)
Xe_HP can have a lot of extra media engines. This patch adds the
interrupt handler support for them.

Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Cc: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Signed-off-by: John Harrison <John.C.Harrison@Intel.com>
Signed-off-by: Matt Roper <matthew.d.roper@intel.com>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210723174239.1551352-4-matthew.d.roper@intel.com
drivers/gpu/drm/i915/gt/intel_gt_irq.c
drivers/gpu/drm/i915/i915_reg.h

index c13462274fe82561813533ae0b9b81b6cec1ca16..b2de83be4d977085e00b95c90718c7c8dae4fb26 100644 (file)
@@ -184,7 +184,13 @@ void gen11_gt_irq_reset(struct intel_gt *gt)
        intel_uncore_write(uncore, GEN11_BCS_RSVD_INTR_MASK,    ~0);
        intel_uncore_write(uncore, GEN11_VCS0_VCS1_INTR_MASK,   ~0);
        intel_uncore_write(uncore, GEN11_VCS2_VCS3_INTR_MASK,   ~0);
+       if (HAS_ENGINE(gt, VCS4) || HAS_ENGINE(gt, VCS5))
+               intel_uncore_write(uncore, GEN12_VCS4_VCS5_INTR_MASK,   ~0);
+       if (HAS_ENGINE(gt, VCS6) || HAS_ENGINE(gt, VCS7))
+               intel_uncore_write(uncore, GEN12_VCS6_VCS7_INTR_MASK,   ~0);
        intel_uncore_write(uncore, GEN11_VECS0_VECS1_INTR_MASK, ~0);
+       if (HAS_ENGINE(gt, VECS2) || HAS_ENGINE(gt, VECS3))
+               intel_uncore_write(uncore, GEN12_VECS2_VECS3_INTR_MASK, ~0);
 
        intel_uncore_write(uncore, GEN11_GPM_WGBOXPERF_INTR_ENABLE, 0);
        intel_uncore_write(uncore, GEN11_GPM_WGBOXPERF_INTR_MASK,  ~0);
@@ -218,8 +224,13 @@ void gen11_gt_irq_postinstall(struct intel_gt *gt)
        intel_uncore_write(uncore, GEN11_BCS_RSVD_INTR_MASK, ~smask);
        intel_uncore_write(uncore, GEN11_VCS0_VCS1_INTR_MASK, ~dmask);
        intel_uncore_write(uncore, GEN11_VCS2_VCS3_INTR_MASK, ~dmask);
+       if (HAS_ENGINE(gt, VCS4) || HAS_ENGINE(gt, VCS5))
+               intel_uncore_write(uncore, GEN12_VCS4_VCS5_INTR_MASK, ~dmask);
+       if (HAS_ENGINE(gt, VCS6) || HAS_ENGINE(gt, VCS7))
+               intel_uncore_write(uncore, GEN12_VCS6_VCS7_INTR_MASK, ~dmask);
        intel_uncore_write(uncore, GEN11_VECS0_VECS1_INTR_MASK, ~dmask);
-
+       if (HAS_ENGINE(gt, VECS2) || HAS_ENGINE(gt, VECS3))
+               intel_uncore_write(uncore, GEN12_VECS2_VECS3_INTR_MASK, ~dmask);
        /*
         * RPS interrupts will get enabled/disabled on demand when RPS itself
         * is enabled/disabled.
index 42accdfa860f35068a8d11d9b417d229144ded70..0b2eaf7594aa3e93a1c0c25609dda0e164bc3d54 100644 (file)
@@ -8079,7 +8079,10 @@ enum {
 #define GEN11_BCS_RSVD_INTR_MASK       _MMIO(0x1900a0)
 #define GEN11_VCS0_VCS1_INTR_MASK      _MMIO(0x1900a8)
 #define GEN11_VCS2_VCS3_INTR_MASK      _MMIO(0x1900ac)
+#define GEN12_VCS4_VCS5_INTR_MASK      _MMIO(0x1900b0)
+#define GEN12_VCS6_VCS7_INTR_MASK      _MMIO(0x1900b4)
 #define GEN11_VECS0_VECS1_INTR_MASK    _MMIO(0x1900d0)
+#define GEN12_VECS2_VECS3_INTR_MASK    _MMIO(0x1900d4)
 #define GEN11_GUC_SG_INTR_MASK         _MMIO(0x1900e8)
 #define GEN11_GPM_WGBOXPERF_INTR_MASK  _MMIO(0x1900ec)
 #define GEN11_CRYPTO_RSVD_INTR_MASK    _MMIO(0x1900f0)