mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-03 17:51:57 +09:00
drm/i915/xehp: Extra media engines - Part 2 (interrupts)
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
This commit is contained in:
committed by
Matt Roper
parent
938c778f6a
commit
1b16b6b696
@@ -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.
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user