All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drm/i915: set vdbox/vebox enable masks on all gens
@ 2019-03-21 22:02 Daniele Ceraolo Spurio
  2019-03-21 22:11 ` Chris Wilson
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: Daniele Ceraolo Spurio @ 2019-03-21 22:02 UTC (permalink / raw)
  To: intel-gfx; +Cc: Eric Betancourt

The upcoming unified GuC FW will require us to send video engine enable
masks to GuC for its initialization.

For consistency, just set the runtime_info enable masks for all gens.
We'll then be able to directly use those in the GuC setup

Cc: Michal Wajdeczko <michal.wajdeczko@intel.com>
Cc: John Spotswood <john.a.spotswood@intel.com>
Cc: Eric Betancourt <eric.s.betancourt@intel.com>
Signed-off-by: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
---
 drivers/gpu/drm/i915/intel_device_info.c | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/i915/intel_device_info.c b/drivers/gpu/drm/i915/intel_device_info.c
index eddf83807957..836184d6538e 100644
--- a/drivers/gpu/drm/i915/intel_device_info.c
+++ b/drivers/gpu/drm/i915/intel_device_info.c
@@ -872,8 +872,14 @@ void intel_device_info_init_mmio(struct drm_i915_private *dev_priv)
 	unsigned int i;
 	u32 media_fuse;
 
-	if (INTEL_GEN(dev_priv) < 11)
+	if (INTEL_GEN(dev_priv) < 11) {
+		RUNTIME_INFO(dev_priv)->vdbox_enable =
+			(info->engine_mask & GENMASK(VCS0 + I915_MAX_VCS, VCS0)) >> VCS0;
+
+		RUNTIME_INFO(dev_priv)->vebox_enable =
+			(info->engine_mask & GENMASK(VECS0 + I915_MAX_VECS, VECS0)) >> VECS0;
 		return;
+	}
 
 	media_fuse = ~I915_READ(GEN11_GT_VEBOX_VDBOX_DISABLE);
 
-- 
2.20.1

_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2019-03-22 18:28 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-03-21 22:02 [PATCH] drm/i915: set vdbox/vebox enable masks on all gens Daniele Ceraolo Spurio
2019-03-21 22:11 ` Chris Wilson
2019-03-21 22:14   ` Daniele Ceraolo Spurio
2019-03-21 22:39     ` Chris Wilson
2019-03-21 22:43       ` Daniele Ceraolo Spurio
2019-03-21 22:14 ` Chris Wilson
2019-03-22  1:33 ` ✓ Fi.CI.BAT: success for " Patchwork
2019-03-22 18:28 ` ✓ Fi.CI.IGT: " Patchwork

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.