Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp31702imm; Tue, 24 Jul 2018 13:25:38 -0700 (PDT) X-Google-Smtp-Source: AAOMgpciuUStIhKb6KChjCw8z8Ll485YPQ7d8rQOWsFRgKH0Qg9wFllwy5tP+FiUFeIM/6sWJoox X-Received: by 2002:a17:902:4101:: with SMTP id e1-v6mr18414467pld.205.1532463938471; Tue, 24 Jul 2018 13:25:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532463938; cv=none; d=google.com; s=arc-20160816; b=ncraYAfntyukQN+H12RlOy9mOg9AO8OkDI9e6W7tw50RwdJfizZm85CVAD4apWivPR JzBBNJLbmNWfCgcS5HGdRaU3IrZyVgCkUA3i+Xv5N6Ijyi3qku4W2h9vv2+pUWHvswEn FJGMRrS0Fi7g6/kn43FQ2UBXG4gPMNm1tDQ2QhzyXv8Bj4UdW2dGaP3eWw5xOIBRqipf FlpZN0xSYcWRraO3thWOQnnu5m1VPjypuXWfn+udTwf7L+ZHOpp9lzAseGLX9UbvmU2k 4t62reE2T/Yizs+osbjV4jzAVzEi1Nkz3lsBxQTHlV+ruZhecOTVceOGOxnAmF2G1H+e VTFA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature :arc-authentication-results; bh=fvWejWBW9dkA/7V9sOJbl8QDuY6Z46gQTEZTTqZDufo=; b=FUY+Q3YE0X0CfOLIidHykfRGs7pGA81+u9HXNPG5PUyniPMINjD/XgEuXvUsmpljT3 2P2fHOGqp46C8R1NollwzR/8UEVLvkYRkuTqOrQnfYAqdEJqMN8S6iE4OML3FuSSaQbI 4sjULtjO2R5JWL9Oy0IRpRDS1ZeAoqVreYqdIVshwQ6ANq1ZuaPOSH5Wq6ZarWr7J5Fp sWQP92ErYqVH2bWqRlGis6qtVMZFIsoYd36UVY0CUSCqVbnS8TnJGhFtYdt5bKn0FH7J rg1O0cNYlDH7nGr60qv13/N9tZPx4z6arRwY0FNHuk6DPGVaUpr2bfhtxCsZTodpyko1 +wsg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2018-07-02 header.b=AfF4uZ2F; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x18-v6si11181097pfh.84.2018.07.24.13.25.21; Tue, 24 Jul 2018 13:25:38 -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=pass header.i=@oracle.com header.s=corp-2018-07-02 header.b=AfF4uZ2F; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388805AbeGXVbh (ORCPT + 99 others); Tue, 24 Jul 2018 17:31:37 -0400 Received: from aserp2120.oracle.com ([141.146.126.78]:37726 "EHLO aserp2120.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388640AbeGXVbh (ORCPT ); Tue, 24 Jul 2018 17:31:37 -0400 Received: from pps.filterd (aserp2120.oracle.com [127.0.0.1]) by aserp2120.oracle.com (8.16.0.22/8.16.0.22) with SMTP id w6OKIZ5q181065; Tue, 24 Jul 2018 20:23:27 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=mime-version : references : in-reply-to : from : date : message-id : subject : to : cc : content-type; s=corp-2018-07-02; bh=fvWejWBW9dkA/7V9sOJbl8QDuY6Z46gQTEZTTqZDufo=; b=AfF4uZ2FAmiC2uJTtdvH4Cy6qHeyTd2gxikndqebV/PCFI3l6iqBL40CSUvWi2zwvrmQ 8bbdSho2NmZKjq1jPzA+AbUzixsVq5F9JRgPmZVO7JdHB2/+Knkpb1EKheZWEyMz0Di5 Qnxf1F3rK9c6/OlsEIQwcazyqr3Rywyizv6KDhbJfvnPn49J53DzNkoZi2iBW4jSq1hT wkQsAbCVkiiUktuJ5DImDBxYhIDbKKL/mjH/FgbWgedt4ujiNUi05jkSguLVRuhPRwqj fQRbee8V9q/XRw92j9jiFepC7m3c9l2Hf31/KCtnXP86XLh7c9bynfJuFQcG2B69IUlR WQ== Received: from userv0021.oracle.com (userv0021.oracle.com [156.151.31.71]) by aserp2120.oracle.com with ESMTP id 2kbvsntqt5-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 24 Jul 2018 20:23:27 +0000 Received: from userv0121.oracle.com (userv0121.oracle.com [156.151.31.72]) by userv0021.oracle.com (8.14.4/8.14.4) with ESMTP id w6OKNQUL002260 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 24 Jul 2018 20:23:26 GMT Received: from abhmp0010.oracle.com (abhmp0010.oracle.com [141.146.116.16]) by userv0121.oracle.com (8.14.4/8.13.8) with ESMTP id w6OKNP9E022635; Tue, 24 Jul 2018 20:23:26 GMT Received: from mail-oi0-f49.google.com (/209.85.218.49) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Tue, 24 Jul 2018 13:23:25 -0700 Received: by mail-oi0-f49.google.com with SMTP id i12-v6so9917834oik.2; Tue, 24 Jul 2018 13:23:25 -0700 (PDT) X-Gm-Message-State: AOUpUlF+fL/oYcJ4RAlqi0pJNQvigrlvROclKb4GnWyDBwvI0mqxaQC/ mWPkIZKks89vmSX/qe3XDiOEGS04nexDvdYNChI= X-Received: by 2002:aca:e089:: with SMTP id x131-v6mr344958oig.221.1532463804932; Tue, 24 Jul 2018 13:23:24 -0700 (PDT) MIME-Version: 1.0 References: <20180719205545.16512-24-pasha.tatashin@oracle.com> <20180724195215.GA22496@roeck-us.net> In-Reply-To: <20180724195215.GA22496@roeck-us.net> From: Pavel Tatashin Date: Tue, 24 Jul 2018 16:22:49 -0400 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [tip:x86/timers] sched/clock: Enable sched clock early To: linux@roeck-us.net Cc: LKML , mingo@kernel.org, tglx@linutronix.de, hpa@zytor.com, linux-tip-commits@vger.kernel.org Content-Type: text/plain; charset="UTF-8" X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=8964 signatures=668706 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=3 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1806210000 definitions=main-1807240214 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jul 24, 2018 at 3:54 PM Guenter Roeck wrote: > > 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. Thank you for the report. I will study it. > > ... > 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