All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] drm/i915/pmu: Limit the selection of the dedicated reader cpu to an online sibling
@ 2017-11-22 18:26 Chris Wilson
  2017-11-22 18:26 ` [PATCH 2/2] drm/i915/pmu: Remove conditional HOTPLUG_CPU registration Chris Wilson
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: Chris Wilson @ 2017-11-22 18:26 UTC (permalink / raw)
  To: intel-gfx

When bringing a cpu online, we want to see if it or a sibling is already
in the online mask before adding to the designated reader.

Fixes: b46a33e271ed ("drm/i915/pmu: Expose a PMU interface for perf queries")
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Cc: Dmitry Rogozhkin <dmitry.v.rogozhkin@intel.com>
---
 drivers/gpu/drm/i915/i915_pmu.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/i915/i915_pmu.c b/drivers/gpu/drm/i915/i915_pmu.c
index 1071935bfa67..64e36d72e76a 100644
--- a/drivers/gpu/drm/i915/i915_pmu.c
+++ b/drivers/gpu/drm/i915/i915_pmu.c
@@ -750,7 +750,8 @@ static int i915_pmu_cpu_online(unsigned int cpu, struct hlist_node *node)
 
 	GEM_BUG_ON(!pmu->base.event_init);
 
-	target = cpumask_any_and(&i915_pmu_cpumask, &i915_pmu_cpumask);
+	target = cpumask_any_and(&i915_pmu_cpumask,
+				 topology_sibling_cpumask(cpu));
 	/* Select the first online CPU as a designated reader. */
 	if (target >= nr_cpu_ids)
 		cpumask_set_cpu(cpu, &i915_pmu_cpumask);
-- 
2.15.0

_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2017-11-23  8:41 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-11-22 18:26 [PATCH 1/2] drm/i915/pmu: Limit the selection of the dedicated reader cpu to an online sibling Chris Wilson
2017-11-22 18:26 ` [PATCH 2/2] drm/i915/pmu: Remove conditional HOTPLUG_CPU registration Chris Wilson
2017-11-23  7:36   ` Tvrtko Ursulin
2017-11-23  7:40     ` Chris Wilson
2017-11-23  8:41       ` Tvrtko Ursulin
2017-11-22 18:47 ` ✓ Fi.CI.BAT: success for series starting with [1/2] drm/i915/pmu: Limit the selection of the dedicated reader cpu to an online sibling Patchwork
2017-11-22 20:12 ` ✗ Fi.CI.IGT: warning " Patchwork
2017-11-23  7:33 ` [PATCH 1/2] " Tvrtko Ursulin

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.