drm/xe/topology: Add a function to find the index of the last enabled DSS in a mask
authorHarish Chegondi <harish.chegondi@intel.com>
Wed, 26 Feb 2025 01:47:05 +0000 (17:47 -0800)
committerAshutosh Dixit <ashutosh.dixit@intel.com>
Wed, 26 Feb 2025 19:30:56 +0000 (11:30 -0800)
commita2d6f86bbcb497f8e28795a3e4d27861dea020df
treede073ac96a48a375aefaab95874c9f4cd2cbf02b
parent1a7460a1976d4a9cba1545b071a45c31c1786e38
drm/xe/topology: Add a function to find the index of the last enabled DSS in a mask

Last enabled DSS in a DSS mask can help estimate the maximum DSSes enabled
in the DSS mask, as the enabled DSSes can be discontiguous.

Reviewed-by: Ashutosh Dixit <ashutosh.dixit@intel.com>
Signed-off-by: Harish Chegondi <harish.chegondi@intel.com>
Signed-off-by: Ashutosh Dixit <ashutosh.dixit@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/79944bb27eb4f7ce5df01f964aebbf431b3a6c61.1740533885.git.harish.chegondi@intel.com
drivers/gpu/drm/xe/xe_gt_topology.h