Skip to contentSkip to conversation

drm/xe/eustall: use bitmap_weighted_or() in xe_eu_stall_stream_init()

PATCH In review Yury Norov (NVIDIA) 4 participants 5 messages Dec 16, 2025 – Jan 15

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/xe/eustall: use bitmap_weighted_or() in xe_eu_stall_stream_init()

Commit 437cb3ded2503 ("cpumask: Introduce cpumask_weighted_or()") added the new helper, which fits well here. Use it.

---
 drivers/gpu/drm/xe/xe_eu_stall.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/gpu/drm/xe/xe_eu_stall.c +3 -3
index b896b7ff5900..8bd4307afbbd 100644
@@ -737,9 +737,9 @@ static int xe_eu_stall_stream_init(struct xe_eu_stall_data_stream *stream,
 	u32 vaddr_offset;
 	int ret;
 
-	bitmap_or(all_xecores, gt->fuse_topo.g_dss_mask, gt->fuse_topo.c_dss_mask,
-		  XE_MAX_DSS_FUSE_BITS);
-	num_xecores = bitmap_weight(all_xecores, XE_MAX_DSS_FUSE_BITS);
+	num_xecores = bitmap_weighted_or(all_xecores, gt->fuse_topo.g_dss_mask,
+						      gt->fuse_topo.c_dss_mask,
+						      XE_MAX_DSS_FUSE_BITS);
 	last_xecore = xe_gt_topology_mask_last_dss(all_xecores) + 1;
 
 	max_wait_num_reports = num_data_rows(per_xecore_buf_size * num_xecores);
Signature · 1 line
2.43.0
#1 lore raw

✗ LGCI.VerificationFailed: failure for drm/xe/eustall: use bitmap_weighted_or() in xe_eu_stall_stream_init()

== Series Details ==

== Series Details ==

Series: drm/xe/eustall: use bitmap_weighted_or() in xe_eu_stall_stream_init()
URL : https://patchwork.freedesktop.org/series/159059/
State : failure

== Summary ==

Address '[email protected]' is not on the allowlist, which prevents CI from being triggered for this patch. If you want Intel GFX CI to accept this address, please contact the script maintainers at [email protected]. Exception occurred during validation, bailing out!

#2 lore raw
In reply to Yury Norov (NVIDIA)

Ping?

Quoted 27 lines · Yury Norov (NVIDIA)

Commit 437cb3ded2503 ("cpumask: Introduce cpumask_weighted_or()") added the new helper, which fits well here. Use it.

---
 drivers/gpu/drm/xe/xe_eu_stall.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/gpu/drm/xe/xe_eu_stall.c +3 -3
index b896b7ff5900..8bd4307afbbd 100644
@@ -737,9 +737,9 @@ static int xe_eu_stall_stream_init(struct xe_eu_stall_data_stream *stream,
 	u32 vaddr_offset;
 	int ret;
 
-	bitmap_or(all_xecores, gt->fuse_topo.g_dss_mask, gt->fuse_topo.c_dss_mask,
-		  XE_MAX_DSS_FUSE_BITS);
-	num_xecores = bitmap_weight(all_xecores, XE_MAX_DSS_FUSE_BITS);
+	num_xecores = bitmap_weighted_or(all_xecores, gt->fuse_topo.g_dss_mask,
+						      gt->fuse_topo.c_dss_mask,
+						      XE_MAX_DSS_FUSE_BITS);
 	last_xecore = xe_gt_topology_mask_last_dss(all_xecores) + 1;
 
 	max_wait_num_reports = num_data_rows(per_xecore_buf_size * num_xecores);
Signature · 1 line
2.43.0
maintainer Reviewed-by on v1 1/1
#3 lore raw
In reply to Yury Norov (NVIDIA)
Quoted 4 lines · Yury Norov (NVIDIA)

Commit 437cb3ded2503 ("cpumask: Introduce cpumask_weighted_or()") added the new helper, which fits well here. Use it.

(I'm just resending for CI and will merge after the confirmation)

Thanks for the patch and sorry for the delay.

Quoted 24 lines
---
 drivers/gpu/drm/xe/xe_eu_stall.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/gpu/drm/xe/xe_eu_stall.c +3 -3
index b896b7ff5900..8bd4307afbbd 100644
@@ -737,9 +737,9 @@ static int xe_eu_stall_stream_init(struct xe_eu_stall_data_stream *stream,
 	u32 vaddr_offset;
 	int ret;
 
-	bitmap_or(all_xecores, gt->fuse_topo.g_dss_mask, gt->fuse_topo.c_dss_mask,
-		  XE_MAX_DSS_FUSE_BITS);
-	num_xecores = bitmap_weight(all_xecores, XE_MAX_DSS_FUSE_BITS);
+	num_xecores = bitmap_weighted_or(all_xecores, gt->fuse_topo.g_dss_mask,
+						      gt->fuse_topo.c_dss_mask,
+						      XE_MAX_DSS_FUSE_BITS);
 	last_xecore = xe_gt_topology_mask_last_dss(all_xecores) + 1;
 
 	max_wait_num_reports = num_data_rows(per_xecore_buf_size * num_xecores);
Signature · 1 line
2.43.0
maintainer
#4 lore raw
Quoted 9 lines · Rodrigo Vivi
Quoted 4 lines · Yury Norov (NVIDIA)

Commit 437cb3ded2503 ("cpumask: Introduce cpumask_weighted_or()") added the new helper, which fits well here. Use it.

(I'm just resending for CI and will merge after the confirmation)

ERROR: modpost: "__bitmap_weighted_or" [drivers/gpu/drm/xe/xe.ko] undefined!

https://patchwork.freedesktop.org/series/159059/

Could you please check and fix this?!

Quoted 27 lines

Thanks for the patch and sorry for the delay.

Quoted 24 lines
---
 drivers/gpu/drm/xe/xe_eu_stall.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/gpu/drm/xe/xe_eu_stall.c +3 -3
index b896b7ff5900..8bd4307afbbd 100644
@@ -737,9 +737,9 @@ static int xe_eu_stall_stream_init(struct xe_eu_stall_data_stream *stream,
 	u32 vaddr_offset;
 	int ret;
 
-	bitmap_or(all_xecores, gt->fuse_topo.g_dss_mask, gt->fuse_topo.c_dss_mask,
-		  XE_MAX_DSS_FUSE_BITS);
-	num_xecores = bitmap_weight(all_xecores, XE_MAX_DSS_FUSE_BITS);
+	num_xecores = bitmap_weighted_or(all_xecores, gt->fuse_topo.g_dss_mask,
+						      gt->fuse_topo.c_dss_mask,
+						      XE_MAX_DSS_FUSE_BITS);
 	last_xecore = xe_gt_topology_mask_last_dss(all_xecores) + 1;
 
 	max_wait_num_reports = num_data_rows(per_xecore_buf_size * num_xecores);
Signature · 1 line
2.43.0