All of lore.kernel.org
 help / color / mirror / Atom feed
From: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
To: Chris Wilson <chris@chris-wilson.co.uk>, intel-gfx@lists.freedesktop.org
Cc: Eric Betancourt <eric.s.betancourt@intel.com>
Subject: Re: [PATCH] drm/i915: set vdbox/vebox enable masks on all gens
Date: Thu, 21 Mar 2019 15:14:20 -0700	[thread overview]
Message-ID: <77b76e50-40c4-13f4-bf26-344fa244efc7@intel.com> (raw)
In-Reply-To: <155320628204.18968.7589254074269682273@skylake-alporthouse-com>



On 3/21/19 3:11 PM, Chris Wilson wrote:
> Quoting Daniele Ceraolo Spurio (2019-03-21 22:02:06)
>> 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;

D'oh!

Thanks for catching this, GuC just ignores the higher bits and didn't 
complain, so I missed it.

Daniele

> 
> I915_MAX_V[E]CS is actually number of VCS, so this needs -1 on the high bit
> as it is inclusive.
> -Chris
> 
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

  reply	other threads:[~2019-03-21 22:14 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=77b76e50-40c4-13f4-bf26-344fa244efc7@intel.com \
    --to=daniele.ceraolospurio@intel.com \
    --cc=chris@chris-wilson.co.uk \
    --cc=eric.s.betancourt@intel.com \
    --cc=intel-gfx@lists.freedesktop.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.