[Intel-gfx] [RFC PATCH 02/11] drm/i915: Move a bunch of workaround-related code to its own file

Oscar Mateo oscar.mateo at intel.com
Tue Oct 10 17:26:30 UTC 2017



On 10/09/2017 02:06 PM, Chris Wilson wrote:
> Quoting Oscar Mateo (2017-10-09 21:58:17)
>> This has grown to be a sizable amount of code, so move it to
>> its own file before we try to refactor anything. For the moment,
>> we are leaving behind the WA BB code and the WAs that get applied
>> (incorrectly) in init_clock_gating, but we will deal with it later.
>>
>> Signed-off-by: Oscar Mateo <oscar.mateo at intel.com>
>> Cc: Chris Wilson <chris at chris-wilson.co.uk>
>> Cc: Mika Kuoppala <mika.kuoppala at linux.intel.com>
>> ---
>>   drivers/gpu/drm/i915/Makefile           |   1 +
>>   drivers/gpu/drm/i915/i915_workarounds.c | 705 ++++++++++++++++++++++++++++++++
>>   drivers/gpu/drm/i915/i915_workarounds.h |  31 ++
> If we look at the filenames with rose-tinted glasses:
>
> intel_* -> interaction with hw
> i915_* -> interaction with user
>
> (Let's not start on the mixup entailed when we use the i915 prefix to
> mean to talking to gen2/gen3. Hopefully most gen2 mixups are history.)
>
> i915_workarounds would imply w/a for the drm/i915 uABI, but we want
> intel_workarounds to imply w/a for hw.
>
> Now some are indeed workarounds to keep uABI constant (or otherwise
> correct)... The line can be murky ;)
> -Chris

I remembered file prefixes had a meaning, but I tried to recall it from 
memory and came up with the exact opposite (and I looked at 
i915_guc_submission.c as proof that I was recalling it correctly :P).

I'll rename the files, no problem.



More information about the Intel-gfx mailing list