[Intel-gfx] [P v4 02/11] drm/i915/guc: Move GuC boot param initialization out of xfer

Michal Wajdeczko michal.wajdeczko at intel.com
Thu Oct 12 15:03:54 UTC 2017


On Thu, 12 Oct 2017 10:51:58 +0200, Chris Wilson  
<chris at chris-wilson.co.uk> wrote:

> Quoting Michal Wajdeczko (2017-10-10 15:51:26)
>> We want to keep ucode xfer functions separate from other
>> initialization. Once separated, add explicit forcewake.
>>
>> Suggested-by: Joonas Lahtinen <joonas.lahtinen at linux.intel.com>
>> Signed-off-by: Michal Wajdeczko <michal.wajdeczko at intel.com>
>> Cc: Joonas Lahtinen <joonas.lahtinen at linux.intel.com>
>> Cc: Sagar Arun Kamble <sagar.a.kamble at intel.com>
>> ---
>>  drivers/gpu/drm/i915/intel_guc.c        | 88  
>> +++++++++++++++++++++++++++++++++
>>  drivers/gpu/drm/i915/intel_guc.h        |  1 +
>>  drivers/gpu/drm/i915/intel_guc_loader.c | 85  
>> -------------------------------
>>  drivers/gpu/drm/i915/intel_uc.c         |  1 +
>>  4 files changed, 90 insertions(+), 85 deletions(-)
>>
>> diff --git a/drivers/gpu/drm/i915/intel_guc.c

<snip>

>> +
>> +       for (i = 0; i < GUC_CTL_MAX_DWORDS; i++)
>
> for (i = 1; i <= MAX; i++) ?
>
>> +               I915_WRITE(SOFT_SCRATCH(1 + i), params[i]);

Not so sure, as this loop is over CTL params[] not SCRATCH() regs.

Michal


More information about the Intel-gfx mailing list