[Intel-gfx] [PATCH v3 05/10] drm/i915/uc: autogenerate uC checker functions
Andi Shyti
andi at etezian.org
Wed Feb 12 01:38:02 UTC 2020
Hi Daniele,
On Tue, Feb 11, 2020 at 04:31:19PM -0800, Daniele Ceraolo Spurio wrote:
> We want to map uC-level checks to GuC/HuC-level ones. The mapping from
> the uC state to the GuC/HuC one follows the same pattern for all the
> functions:
>
> uc_xxx_guc() -> guc_is_yyy()
>
> So we can easily use a macro to autogenerate the functions via macros by
> passing in the 2 mapped states.
>
> v2: Split this change to its own patch (Michal)
>
> Signed-off-by: Daniele Ceraolo Spurio <daniele.ceraolospurio at intel.com>
> Cc: Michal Wajdeczko <michal.wajdeczko at intel.com>
interesting, however it can be hard to follow.
I haven't spotted anything wrong (also in the patches that
follow), and I hope you tested it properly :)
Reviewed-by: Andi Shyti <andi.shyti at intel.com>
Andi
More information about the Intel-gfx
mailing list