Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp3768178ybb; Tue, 31 Mar 2020 11:35:22 -0700 (PDT) X-Google-Smtp-Source: ADFU+vvQY2Qxs1W2pGaYSV6yH/mMWWfQk2PbzrZcpiAgZ5DUQLO3dlnQ4Vgg8XTtMMxzQ6Ga8fs4 X-Received: by 2002:a9d:2c64:: with SMTP id f91mr14861564otb.17.1585679721996; Tue, 31 Mar 2020 11:35:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585679721; cv=none; d=google.com; s=arc-20160816; b=zf/imvR1S15OepmbOvBnsm2N2WFKTxYx6boW0U4qXLPHk/IM2lzL3XoivAMuRL4JO6 8R3JnNfCWyrmsLwFp8FKI2aRLProldu0krHLXUCYNH12yNYMKHCKWAb6rRByfUmi4d/D 0ClYWjLqTjOj8uHgMbTUbGYO+tJNdXuXIT3krRkIn34x32R5H4FvhOyAGddLhsIH0aRd H1G/lW03Lme5tbmcHP+YmzyUMbO5YLMCLAqzNrGlmup2/VmApEdjyxF657LXtaOw0xTd h6VqzJr2SGj68SaFnjAFuLV1B3vVRqeUBWjOVF4Kh+COIxGcdy8DSqJCoKPRM6Nj8Itz fIOg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:user-agent:message-id:to:cc:from :subject:references:in-reply-to:content-transfer-encoding :mime-version; bh=7+mYwVLTyPniiRXN0ga0Iv9UPyr2d9NZCc42wSiuJiQ=; b=nqxgdsFJNrZN/cFLpBJ4q9F4tfe7VwQj+DiepEpi3yBUFMHQI+9HJMXrvjxrvXWIdk CMQQMiIw61jFZZnY40aP6sfRSBWtSwKm+jlBa9idDjTOLTlWxrylW0grJR/N+oxYQM7D BxgqjJMQo9L1MRUOFXymaEPWpeXxkMoOXO31CvTYxd3Llc+xa8GsAq1HWENarH1/AMw6 ckHEVOmsgxCVnHlss5gTBP9ZnihQgBnby6AUWA1AsmMJjdT+GBCrjTx4sWym0kKqogdO ZaXLW12mfkjHG2mVxh2Dw3YUHEaQlPUe4QbMu/Lsvww7E2UJciT4fgeUBgGhu9M+TTFC zqLw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z23si7494640oos.54.2020.03.31.11.35.08; Tue, 31 Mar 2020 11:35:21 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727707AbgCaSeJ convert rfc822-to-8bit (ORCPT + 99 others); Tue, 31 Mar 2020 14:34:09 -0400 Received: from mail.fireflyinternet.com ([109.228.58.192]:59525 "EHLO fireflyinternet.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726170AbgCaSeJ (ORCPT ); Tue, 31 Mar 2020 14:34:09 -0400 X-Default-Received-SPF: pass (skip=forwardok (res=PASS)) x-ip-name=78.156.65.138; Received: from localhost (unverified [78.156.65.138]) by fireflyinternet.com (Firefly Internet (M1)) with ESMTP (TLS) id 20756283-1500050 for multiple; Tue, 31 Mar 2020 19:33:51 +0100 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8BIT In-Reply-To: <1585678285.30493.27.camel@suse.cz> References: <20200122151617.531-2-ggherdovich@suse.cz> <158029757853.396.10568128383380430250.tip-bot2@tip-bot2> <158556634294.3228.4889951961483021094@build.alporthouse.com> <1585678285.30493.27.camel@suse.cz> Subject: Re: [tip: sched/core] x86, sched: Add support for frequency invariance From: Chris Wilson Cc: Peter Zijlstra , Ingo Molnar , Doug Smythies , "Rafael J. Wysocki" , x86 To: Giovanni Gherdovich , linux-kernel@vger.kernel.org, linux-tip-commits@vger.kernel.org, tip-bot2 for Giovanni Gherdovich Message-ID: <158567963079.5852.13300525696474233020@build.alporthouse.com> User-Agent: alot/0.8.1 Date: Tue, 31 Mar 2020 19:33:50 +0100 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Quoting Giovanni Gherdovich (2020-03-31 19:11:25) > Hello Chris, > > thank you for catching this problem and sorry for the mess. > > Until your message I wasn't aware that CPU0 can be hotplugged, but now that I > check the feature is been there since v3.8 :/ > > The code assumes cpu0 is always there and I need to fix that. > > It seems your report comes from executing an automated test suite, can you > give me a link to the test sources and a hint on how to run it? I'd like to > reproduce locally so that I make sure I correctly address this problem. https://gitlab.freedesktop.org/drm/igt-gpu-tools/ It's an i915 test (so expects i915 running and root access to your machine, with the intent of breaking your machine), but the cpu hotplugging could be extracted https://gitlab.freedesktop.org/drm/igt-gpu-tools/-/blob/master/tests/perf_pmu.c#L1153 since it's basically doing: i = 0 while :; do test -e /sys/devices/system/cpu/cpu$i/online || break echo 0 > /sys/devices/system/cpu/cpu$i/online sleep .1 echo 1 > /sys/devices/system/cpu/cpu$i/online i = $[[ $i + 1 ]] done dmesg Possibly running that under perf stat to keep perf_event_open, or something else that hooks up the perf cpu hotplug callbacks. Hope that helps, -Chris