Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp219249imm; Tue, 24 Jul 2018 17:38:05 -0700 (PDT) X-Google-Smtp-Source: AAOMgpcF9RVxLdT9Qnm1UoO2uXT/ZhduY5ksoxNt3Sr2Vd9xrw3ATfiTpuLiFdCkazBILJNwGVng X-Received: by 2002:a17:902:7894:: with SMTP id q20-v6mr19262527pll.3.1532479085100; Tue, 24 Jul 2018 17:38:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532479085; cv=none; d=google.com; s=arc-20160816; b=ymB4tpIv9AP5PMN3PPQTm+s8bjwKOHpWUuJRulxam3bkV6Hif3yYtHVoIfSdUz+019 EqiT4LxlASQWj6qAlwKmD3c9/aKoLiRV4jCiT55mfOwWd9r+AtS0vOyOsMX8Hny1bOfN /T90zIMFN5cNvffolTCKWtzNPPQfkr4gWqJK9GgilXVRWtBxqKJcnjswKnQ2058rtEYy qp90CMRxuFakODUlu3IuPBM5xT+RHnaDvuGMyhHlBvEk4ygwwNq1PqzWuTHOYnNNoIh6 j5xFAgXs/66VTqW+qdGWXDLBxWQBep9iZ+x+u3iYUL3sN9eYm5L9VJz+CmjpL+vHD/sm aS+Q== 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=/E+ukspvPx4ueqD4ZULSOYVSmkNbzbC8N5M7Xmb4Jak=; b=VWBDAGT5dQ1S/0s1VdjdnDWwk5fF0T8CKagPV85eBj0LWxi+x5WFIln2vsgaRUTHlN Zt9C82YWMcz1BmsifHhOzPh75MLEMg6y4poSBiralgudjFPXDya7hXKrgF0WQ08oCLLZ D/soAi1oHLADBFrzt02szu1XrUsSvMHfxW/e1YdcmjL9CqVqT7EKtNaGu8XcK9sRDLxv W0MStTNQHmH7t8fmFwQWF32kSfjHlJK/1GKoeIoISAVnQrsSyinGQ+dt7jA5ijap+ank NxuVVlqqJNPuCsa2VVzZaUJEXRSnoYZz7y07V3WqwLBnfrGLR4JLz3x1esKV8iWS8Ebr BkLg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2018-07-02 header.b=A07xrtrN; 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 q8-v6si12361853pfh.353.2018.07.24.17.37.49; Tue, 24 Jul 2018 17:38:05 -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=A07xrtrN; 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 S2388525AbeGYBqB (ORCPT + 99 others); Tue, 24 Jul 2018 21:46:01 -0400 Received: from aserp2130.oracle.com ([141.146.126.79]:59226 "EHLO aserp2130.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388473AbeGYBqB (ORCPT ); Tue, 24 Jul 2018 21:46:01 -0400 Received: from pps.filterd (aserp2130.oracle.com [127.0.0.1]) by aserp2130.oracle.com (8.16.0.22/8.16.0.22) with SMTP id w6P0YcmW152557; Wed, 25 Jul 2018 00:36:58 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=/E+ukspvPx4ueqD4ZULSOYVSmkNbzbC8N5M7Xmb4Jak=; b=A07xrtrNSFEVdV1jXaFu0JHaUzQ5WUprI3CutOTYztdYoB8ENs98Si4EN8pWkSQUQwhW XvQnGE/Q8Es9uc/HWTyMZsVb4C8N3Oi5GnkhEh0k4B7FfUD/Wqwmq2TER/16N3S0fY2R hZeg/+oHw8vJ+7EA+8rhRL1Hh41PdUMdeNsWiddbXEEMQvVSXwwu83a3EoD8xF0x4i+K w2vgUyzW9F7/35qaGGMS7SC6nkn0w2dFJAH3NkIehuXz/MEQKjD77/kqrvgKSfXAm6GT NhenXL6F8NQoB2SmjOjUjNS/ACK/tXtdbwkoxnait8Rh3e4xsJUn7iVT7NzvxaU5lWBc Wg== Received: from aserv0022.oracle.com (aserv0022.oracle.com [141.146.126.234]) by aserp2130.oracle.com with ESMTP id 2kbtbcueur-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 25 Jul 2018 00:36:58 +0000 Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by aserv0022.oracle.com (8.14.4/8.14.4) with ESMTP id w6P0avlt017549 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 25 Jul 2018 00:36:57 GMT Received: from abhmp0002.oracle.com (abhmp0002.oracle.com [141.146.116.8]) by aserv0121.oracle.com (8.14.4/8.13.8) with ESMTP id w6P0avoN009196; Wed, 25 Jul 2018 00:36:57 GMT Received: from mail-oi0-f44.google.com (/209.85.218.44) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Tue, 24 Jul 2018 17:36:57 -0700 Received: by mail-oi0-f44.google.com with SMTP id k81-v6so10839462oib.4; Tue, 24 Jul 2018 17:36:57 -0700 (PDT) X-Gm-Message-State: AOUpUlHswg9qOoo/vO9Z8dGIWTc3Nhbg29d4zTDPiAldZU73GFGRYc7A mWmDrm0xmwTq3ZEKjT9weAYiIvXMGaNYVFF3W/c= X-Received: by 2002:aca:3bc2:: with SMTP id i185-v6mr1274720oia.156.1532479017220; Tue, 24 Jul 2018 17:36:57 -0700 (PDT) MIME-Version: 1.0 References: <20180719205545.16512-24-pasha.tatashin@oracle.com> <20180724195215.GA22496@roeck-us.net> In-Reply-To: From: Pavel Tatashin Date: Tue, 24 Jul 2018 20:36:21 -0400 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [tip:x86/timers] sched/clock: Enable sched clock early To: Guenter Roeck 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=2 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-1807250004 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 4:22 PM Pavel Tatashin wrote: > > 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. Do you have a complete config, and also qemu args that were used? I have tried defconfig arm, and run in qemu, could not reproduce the problem. Thank you, Pavel > > > > 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