[igt-dev] [PATCH igt] igt/perf_pmu: Skip hotplugging cpu0

Chris Wilson chris at chris-wilson.co.uk
Tue Feb 13 16:05:04 UTC 2018


It is a known issue that some "commodity" machines fail when asked to
hotplug CPU0, so don't.

Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>
Cc: Tvrtko Ursulin <tvrtko.ursulin at intel.com>
--
Tvrtko, is it just this simple? Or do we need to avoid the physical
package?
-Chris
---
 tests/perf_pmu.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/perf_pmu.c b/tests/perf_pmu.c
index a7501ca5..e9ce2881 100644
--- a/tests/perf_pmu.c
+++ b/tests/perf_pmu.c
@@ -982,7 +982,7 @@ static void cpu_hotplug(int gem_fd)
 	 * this has not affected busyness stats in the parent.
 	 */
 	igt_fork(child, 1) {
-		int cpu = 0;
+		int cpu = 1;
 
 		close(link[0]);
 
-- 
2.16.1



More information about the igt-dev mailing list