[Mesa-dev] [PATCH v3 5/8] intel: devinfo: add helper functions to fill fusing masks values

Kenneth Graunke kenneth at whitecape.org
Thu Mar 22 17:20:29 UTC 2018


On Wednesday, March 21, 2018 7:12:50 AM PDT Lionel Landwerlin wrote:
> There are a couple of ways we can get the fusing information from the
> kernel :
> 
>   - Through DRM_I915_GETPARAM with the SLICE_MASK/SUBSLICE_MASK
>     parameters
> 
>   - Through the new DRM_IOCTL_I915_QUERY by requesting the
>     DRM_I915_QUERY_TOPOLOGY_INFO
> 
> The second method is more accurate and also gives us the EUs fusing
> masks. It's also a requirement for CNL as this platform has asymetric
> subslices and the first method SUBSLICE_MASK value is assumed uniform
> across slices.
> 
> v2: Change gen_device_info_update_from_masks() to generate topology
>     and call into gen_device_info_update_from_topology (Lionel/Ken)
> 
> Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin at intel.com>

With the num_eus_per_subslice asserts gone and division turned to
DIV_ROUND_UP, this is:

Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>

(Lionel and I discovered that there are 23 EU and 47 EU parts, where
one subslice has 1 fewer EU...so they're not uniformly distributed like
the code here assumed...)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part.
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20180322/8521f3dd/attachment.sig>


More information about the mesa-dev mailing list