[PATCH v9 1/8] drm/xe/topology: Add a function to find the index of the last enabled DSS in a mask

Dixit, Ashutosh ashutosh.dixit at intel.com
Mon Feb 10 17:31:15 UTC 2025


On Mon, 10 Feb 2025 05:46:42 -0800, Harish Chegondi wrote:
>
> +static inline unsigned int
> +xe_gt_topology_mask_last_dss(const xe_dss_mask_t mask)
> +{
> +	return find_last_bit(mask, XE_MAX_DSS_FUSE_BITS);

I am still wondering if this function should be in the .c instead, because
we have not included linux/find.h where find_last_bit is declared, and if
this might have problems of circular depenedencies in the future. Anyway,
for now things are compiling so this is:

Reviewed-by: Ashutosh Dixit <ashutosh.dixit at intel.com>


> +}
> +
>  unsigned int
>  xe_dss_mask_group_ffs(const xe_dss_mask_t mask, int groupsize, int groupnum);
>
> --
> 2.48.1
>


More information about the Intel-xe mailing list