[Intel-gfx] [PATCH 2/2] drm/i915/chv: Implement SSEU info for CHV

Jeff McGee jeff.mcgee at intel.com
Wed Aug 6 16:40:30 CEST 2014


On Tue, Aug 05, 2014 at 02:41:54PM +0100, Damien Lespiau wrote:
> On Tue, Aug 05, 2014 at 08:47:54AM -0500, Jeff McGee wrote:
> > > > +
> > > > +	/* Copy SSEU info to the const device info with pointer magic */
> > > > +	*(struct intel_sseu_info *)&dev_priv->info.sseu = sseu_info;
> > > 
> > > I've thought gcc just does a memcpy for plain strut assignments, i.e.
> > > 
> > > +	dev_priv->info.sseu = sseu_info;
> 
> That's what we have intel_device_info_runtime_init(), the SSEU init
> function should be called from there.
> 
> -- 
> Damien

Agree. I will move the call to intel_device_info_runtime_init().
-Jeff



More information about the Intel-gfx mailing list