Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp3820imm; Tue, 24 Jul 2018 12:54:06 -0700 (PDT) X-Google-Smtp-Source: AAOMgpcmpNDoBZ0Ctt5rrXWMtxUUGYEQWigE1wDvUWVQl4HwDR3uuQVev4V83a5BvwJo0fxS5+t4 X-Received: by 2002:a62:e00a:: with SMTP id f10-v6mr19116410pfh.208.1532462046069; Tue, 24 Jul 2018 12:54:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532462046; cv=none; d=google.com; s=arc-20160816; b=TY4FQRRlbHsobS4hOIWBkX5atfcLwg+LT/a7BVr9+lUF8MTb07a1x0hEP+VGWgcALb POaoWgXXwyI76bLojclPXkx0WkT18uk7kIzAT20u4eoh2DdcL7w3hI8sPGxEZVF/m7Bo Gx7TzYT/FaxbaWqMheUg1ur3xqeCgm+J/msl5/g7HXRg8xEPex5Tb+nYg12BcZAxQSWu 0V+IJxPOgiQ3AbWUOI15+n2dHKeKjn0WVHQ4ZFL1+kyWOGn15y8nefSE3EKWGynH318Q kYyUgimk6GcsLhFDZ6n4l3zvbE0p6z5ZWjCS6h89TNmehLEHT4FPb4xzllOJKXnOKo9r 9xpA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=68no5hwj51mwU7HR2ENqUyZm86fEYrXJ7UPZgSFDRpU=; b=CJvZ8LvsJSLgRPvCegwNJhe9q2pxmnEZA2nN8APRUe7VJ7npFXUSKZ+yglIEZpvUjo KkJQCFoVuFk8n5z1xuTZvW2JvQh+pIbxgrxTp8i93LvBJzzPdBo1yUFNwYMDNdBOehyN 7eqDZxoVTEvAaVwfCS7NglAm5UWbjJ8+tJzr/u+BAoxbzTzPO7qqlnG+jplkz74L7Txx u8jRDA9vC+LH5WaFqUWAYo4GeJxLY1qtrImnHsRQJFNtuxxxm9Zi9yRD3i9o5qqIEmVN MwjUdrArXyn0AwAKaw4FsRhT2+bf7znXqj7nc0x1/BSfqf5mcszLLJbuOp3WqMjKgeec 6oDQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b="S/xxiwUX"; 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 a186-v6si11078563pgc.453.2018.07.24.12.53.51; Tue, 24 Jul 2018 12:54:06 -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; dkim=fail header.i=@gmail.com header.s=20161025 header.b="S/xxiwUX"; 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 S2388699AbeGXVAU (ORCPT + 99 others); Tue, 24 Jul 2018 17:00:20 -0400 Received: from mail-pl0-f65.google.com ([209.85.160.65]:33317 "EHLO mail-pl0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388450AbeGXVAU (ORCPT ); Tue, 24 Jul 2018 17:00:20 -0400 Received: by mail-pl0-f65.google.com with SMTP id 6-v6so2227688plb.0; Tue, 24 Jul 2018 12:52:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=68no5hwj51mwU7HR2ENqUyZm86fEYrXJ7UPZgSFDRpU=; b=S/xxiwUXiOBkmdhxDo7aryykzCzpillijyjtu9LFEpwQeSxefmRZns3pvs5trgvyuw A5Aeg7ii3CpzlIQoRKkCGMxrTt4LI3xR2UL+VuNFqbvA6gTlOdbb21y2oATkbosiGzx0 YsxTSm9XoJmXeI5ohuXNhZI47T/YDvRUkNRlg2iASYm4WEfG5LbiQPfzZCBwkZDsxEIC zGBFBxas/cvT20hFEiW8b8mYzudbOHOq/WDdCo+l4q6LRLhdW2oAQWxHnZhU/k2IV4Z/ VMwbbd2ulvYX3xSHyvFLpJy53NPw9JjlMGWU4OcuXbIYC33PmGdeoCvX6KVPeGdQ3JAH lbpQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to:user-agent; bh=68no5hwj51mwU7HR2ENqUyZm86fEYrXJ7UPZgSFDRpU=; b=dspUsGVfrhZM/IaNiCwRXbzgtNIvd9OemaPp7qc1NJsRz5hukXtwxtpItq7Yg3w9Np SkZ+TmW7fEH1WMiYWPQ1bZrzcsw7JFvThSDwYniRFyEuJzN8oSoWpuEeXdOaKetCdn+I gPno1iV2WrGv4tdKpy7t6LxMAUV4OY9/qfqqHDjDL8VWSx6PbMPtZmxTiVonJiTIfDhm CKkRsm8BGRwp43rmmQYxrcVLTehlBIefPZGLboxf3Z6Acba+rMflfKLImp3QXDr6K7Jw A+E2bSdJTABNDKzcuKmanhHHtzAZ8DMzSeumC82CAFArQ4jm6XUJ/EWgylSR56Ra9NE6 LZ5g== X-Gm-Message-State: AOUpUlFvHXBkl4/+zHyjg5AS4pv8RyT9wz3o05vb/jJPLya4Il4tTeE0 uI5BhyOO5ch/72M5ITBm39WJuhZh X-Received: by 2002:a17:902:7894:: with SMTP id q20-v6mr18579981pll.3.1532461937881; Tue, 24 Jul 2018 12:52:17 -0700 (PDT) Received: from localhost (108-223-40-66.lightspeed.sntcca.sbcglobal.net. [108.223.40.66]) by smtp.gmail.com with ESMTPSA id g28-v6sm12693006pfe.41.2018.07.24.12.52.16 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 24 Jul 2018 12:52:16 -0700 (PDT) Date: Tue, 24 Jul 2018 12:52:15 -0700 From: Guenter Roeck To: linux-kernel@vger.kernel.org, pasha.tatashin@oracle.com, mingo@kernel.org, tglx@linutronix.de, hpa@zytor.com Cc: linux-tip-commits@vger.kernel.org Subject: Re: [tip:x86/timers] sched/clock: Enable sched clock early Message-ID: <20180724195215.GA22496@roeck-us.net> References: <20180719205545.16512-24-pasha.tatashin@oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On Thu, Jul 19, 2018 at 03:33:21PM -0700, tip-bot for Pavel Tatashin wrote: > Commit-ID: 857baa87b6422bcfb84ed3631d6839920cb5b09d > Gitweb: https://git.kernel.org/tip/857baa87b6422bcfb84ed3631d6839920cb5b09d > Author: Pavel Tatashin > AuthorDate: Thu, 19 Jul 2018 16:55:42 -0400 > Committer: Thomas Gleixner > CommitDate: Fri, 20 Jul 2018 00:02:43 +0200 > > sched/clock: Enable sched clock early > > Allow sched_clock() to be used before schec_clock_init() is called. This > provides a way to get early boot timestamps on machines with unstable > clocks. > This patch causes a regression when running a qemu emulation with arm:integratorcp. ... Console: colour dummy device 80x30 ------------[ cut here ]------------ WARNING: CPU: 0 PID: 0 at kernel/time/sched_clock.c:180 sched_clock_register+0x44/0x278 Modules linked in: CPU: 0 PID: 0 Comm: swapper Not tainted 4.18.0-rc6-next-20180724 #1 Hardware name: ARM Integrator/CP (Device Tree) [] (unwind_backtrace) from [] (show_stack+0x10/0x18) [] (show_stack) from [] (dump_stack+0x18/0x24) [] (dump_stack) from [] (__warn+0xc8/0xf0) [] (__warn) from [] (warn_slowpath_null+0x3c/0x4c) [] (warn_slowpath_null) from [] (sched_clock_register+0x44/0x278) [] (sched_clock_register) from [] (generic_sched_clock_init+0x28/0x88) [] (generic_sched_clock_init) from [] (sched_clock_init+0x54/0x74) [] (sched_clock_init) from [] (start_kernel+0x310/0x3e4) [] (start_kernel) from [<00000000>] ( (null)) ---[ end trace 08080eb81afa002c ]--- sched_clock: 32 bits at 100 Hz, resolution 10000000ns, wraps every 21474836475000000ns ... A complete boot log is available at http://kerneltests.org/builders/qemu-arm-next/builds/979/steps/qemubuildcommand/logs/stdio Unfortunately, reverting the patch results in conflicts, so I am unable to confirm that it is the only culprit. From the context and from looking into the patch, it appears that this can happen in any system if CONFIG_HAVE_UNSTABLE_SCHED_CLOCK is not enabled. Bisect log is attached. Guenter --- # bad: [3946cd385042069ec57d3f04240def53b4eed7e5] Add linux-next specific files for 20180724 # good: [d72e90f33aa4709ebecc5005562f52335e106a60] Linux 4.18-rc6 git bisect start 'HEAD' 'v4.18-rc6' # good: [f5fa891e325acf096c0f79e1d1b922002e251e5a] Merge remote-tracking branch 'crypto/master' git bisect good f5fa891e325acf096c0f79e1d1b922002e251e5a # good: [cb6471f6bcfdacbeef9c23ba9dac00e67bd3c3a4] Merge remote-tracking branch 'spi/for-next' git bisect good cb6471f6bcfdacbeef9c23ba9dac00e67bd3c3a4 # bad: [6b5bfa57bf4553d051be65d85d021465041406d8] Merge remote-tracking branch 'char-misc/char-misc-next' git bisect bad 6b5bfa57bf4553d051be65d85d021465041406d8 # bad: [675a67e9ef3c041999f412cb75418d2b0def3854] Merge remote-tracking branch 'rcu/rcu/next' git bisect bad 675a67e9ef3c041999f412cb75418d2b0def3854 # good: [e78b01a51131f25fc2d881bc43001575c129069c] Merge branch 'perf/core' git bisect good e78b01a51131f25fc2d881bc43001575c129069c # good: [4e581bce514f4107ce84525f0f75f89c92b4140e] Merge branch 'x86/cpu' git bisect good 4e581bce514f4107ce84525f0f75f89c92b4140e # good: [20fa22e90e54e2d21cace7ba083598531670f7cf] Merge branch 'x86/pti' git bisect good 20fa22e90e54e2d21cace7ba083598531670f7cf # good: [4763f03d3d186ce8a1125844790152d76804ad60] x86/tsc: Use TSC as sched clock early git bisect good 4763f03d3d186ce8a1125844790152d76804ad60 # good: [5f9ef44c7d1c59d0eda1d86e31d981bdffe2a725] tools/memory-model: Rename litmus tests to comply to norm7 git bisect good 5f9ef44c7d1c59d0eda1d86e31d981bdffe2a725 # bad: [fc3d25e1c8f6a9232530db02a1072033e22e0fe3] Merge branch 'x86/timers' git bisect bad fc3d25e1c8f6a9232530db02a1072033e22e0fe3 # bad: [46457ea464f5341d1f9dad8dd213805d45f7f117] sched/clock: Use static key for sched_clock_running git bisect bad 46457ea464f5341d1f9dad8dd213805d45f7f117 # bad: [857baa87b6422bcfb84ed3631d6839920cb5b09d] sched/clock: Enable sched clock early git bisect bad 857baa87b6422bcfb84ed3631d6839920cb5b09d # good: [5d2a4e91a541cb04d20d11602f0f9340291322ac] sched/clock: Move sched clock initialization and merge with generic clock git bisect good 5d2a4e91a541cb04d20d11602f0f9340291322ac # first bad commit: [857baa87b6422bcfb84ed3631d6839920cb5b09d] sched/clock: Enable sched clock early