[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20251216000259.331293-1-yury.norov@gmail.com>
Date: Mon, 15 Dec 2025 19:02:58 -0500
From: "Yury Norov (NVIDIA)" <yury.norov@...il.com>
To: Lucas De Marchi <lucas.demarchi@...el.com>,
Thomas Hellström <thomas.hellstrom@...ux.intel.com>,
Rodrigo Vivi <rodrigo.vivi@...el.com>,
David Airlie <airlied@...il.com>,
Simona Vetter <simona@...ll.ch>,
Harish Chegondi <harish.chegondi@...el.com>,
intel-xe@...ts.freedesktop.org,
dri-devel@...ts.freedesktop.org,
linux-kernel@...r.kernel.org
Cc: "Yury Norov (NVIDIA)" <yury.norov@...il.com>,
Thomas Gleixner <tglx@...utronix.de>
Subject: [PATCH] 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.
Signed-off-by: Yury Norov (NVIDIA) <yury.norov@...il.com>
---
drivers/gpu/drm/xe/xe_eu_stall.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/gpu/drm/xe/xe_eu_stall.c b/drivers/gpu/drm/xe/xe_eu_stall.c
index b896b7ff5900..8bd4307afbbd 100644
--- a/drivers/gpu/drm/xe/xe_eu_stall.c
+++ b/drivers/gpu/drm/xe/xe_eu_stall.c
@@ -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);
--
2.43.0
Powered by blists - more mailing lists