[Intel-gfx] [PATCH v3 3/6] drm/i915: Capture module parameters for the GPU error state
Chris Wilson
chris at chris-wilson.co.uk
Mon Feb 6 11:29:36 UTC 2017
On Mon, Feb 06, 2017 at 11:24:53AM +0000, Chris Wilson wrote:
> On Mon, Feb 06, 2017 at 09:51:43AM +0000, Chris Wilson wrote:
> > They include useful material such as what mode the VM address space is
> > running in, what submission mode, extra quirks, etc.
> >
> > v2: Undef the right macro, use type specific pretty printers
> > v3: Use strcmp(TYPENAME) rather than creating per-type pretty printers
> >
> > Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>
> > Reviewed-by: Joonas Lahtinen <joonas.lahtinen at linux.intel.com> #v1
> > Acked-by: Mika Kuoppala <mika.kuoppala at intel.com>
> > Acked-by: Jani Nikula <jani.nikula at intel.com>
>
> v4: Use always_inline to force GCC to eliminate the calls to strcmp and
> generate the right call to seq_printf for each parameter.
v5: With the strcmp elimination, we can now use BUILD_BUG to ensure
there are no unhandled types, also use __builtin_strcmp to make it look
even more special.
-Chris
--
Chris Wilson, Intel Open Source Technology Centre
More information about the Intel-gfx
mailing list