[Intel-gfx] [PATCH v3] drm/i915/uc: Add explicit DISABLED state for firmware

Chris Wilson chris at chris-wilson.co.uk
Fri Aug 16 18:08:07 UTC 2019


Quoting Michal Wajdeczko (2019-08-16 18:51:30)
> We really need to have separate NOT_SUPPORTED state (for
> lack of hardware support) and DISABLED state (to indicate
> user decision) as we will have to take special steps even
> if GuC firmware is now disabled but hardware exists and
> could have been previously used.

Could you give a quick run down on the transition points?

driver_probe -> UNINIT
  uc_probe -> SUPPORTS
    uc_init -> ENABLED

>  static inline bool intel_guc_is_supported(struct intel_guc *guc)
>  {
> -       return intel_uc_fw_supported(&guc->fw);
> +       return intel_uc_fw_is_supported(&guc->fw);
> +}
> +
> +static inline bool intel_guc_is_enabled(struct intel_guc *guc)
> +{
> +       return intel_uc_fw_is_enabled(&guc->fw);
>  }

and include it somewhere around here?

I'm finding that overview hard to put together from the patch context.
-Chris


More information about the Intel-gfx mailing list