[Intel-gfx] [PATCH 5/6] drm/i915: Squash gen lookup through multiple indirections inside GT access

Daniel Vetter daniel at ffwll.ch
Tue Jul 16 22:07:46 CEST 2013


On Tue, Jul 16, 2013 at 9:30 PM, Paulo Zanoni <przanoni at gmail.com> wrote:
> 2013/7/16 Chris Wilson <chris at chris-wilson.co.uk>:
>> The INTEL_INFO() macro extracts the dev_private pointer from the device,
>> so passing in the dev_private->dev is a long winded circumlocution.
>>
>> v2: rebase onto uncore
>>
>> Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>
>
> Reviewed-by: Paulo Zanoni <paulo.r.zanoni at intel.com>
>
> I also wouldn't complain if you submitted a patch changing INTEL_INFO
> and friends to take dev_priv as argument.


Like I've said on irc imo the real fix is to get drm core off the
midlayer drugs and allow embedding of struct drm_device into device
driver private structures. At that point it'll boil down to cosmetics
since gcc should do a fine job at optimizing away the constant offset.
And cosmetics tend to just disrupt ongoing work by causing rebase
hell.
-Daniel
--
Daniel Vetter
Software Engineer, Intel Corporation
+41 (0) 79 365 57 48 - http://blog.ffwll.ch



More information about the Intel-gfx mailing list