[Intel-gfx] [PATCH 2/9] drm/i915/uc: Unify uC platform check

Daniele Ceraolo Spurio daniele.ceraolospurio at intel.com
Tue Jul 23 21:15:01 UTC 2019


<snip>

>>> -
>>> -/* For now, anything with a GuC has also HuC */
>>> -#define HAS_HUC(dev_priv)    (HAS_GUC(dev_priv))
>>> -#define HAS_HUC_UCODE(dev_priv)    (HAS_GUC(dev_priv))
>>> +#define HAS_UC(dev_priv)    (INTEL_INFO(dev_priv)->has_uc)
>>
>> time to use i915 instead of dev_priv
> 
> ok
> 

I've decided against this in the end because all the other HAS_* checks 
in the file use dev_priv and a single i915 sticks out like a sore thumb. 
Probably better to flip them all at the same time when we're ready.

Daniele


More information about the Intel-gfx mailing list