Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp4310213pxy; Tue, 27 Apr 2021 01:46:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzaaYFy+ie67AGABVARilNbyLCQnyTD6h4OwaQQU17OkQLVns0SAuI8QSkUE0adXK+G6kI9 X-Received: by 2002:a17:906:cc8e:: with SMTP id oq14mr22065014ejb.15.1619513200062; Tue, 27 Apr 2021 01:46:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619513200; cv=none; d=google.com; s=arc-20160816; b=Jv0uKQDskiQbklMYdYMpXRRQ3olSGXUdIXQ/jMRZodESN8A0X3m/Oob0MvLK13uRrI rQS0MP6koEgl/q7TAK5VGCjNHkNtELrzc9D7FP4OXLfaQejPZL5RvnCq8hI/PqQo4Lge 8WY4tSljQ6jJvQE4O1bCGulF0f8iUU+mpm8GfUObDRfBw5ABjIbUfFzrMcZmSiXIvJu5 MIBcgwzjxzfkf8YG5Hou+DpP8WqbZT8pmGhxfdDIadQGkopKCS/LKX1aj7Mvue1cHlEe wpU7agT1HotUIO3iz5npqNstOowCrn22YeI61UvBuv/lMwUP1QozhCz5Dtale1vX2e2g nBNQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :ironport-sdr:ironport-sdr; bh=EUygQKUGzQvFKXmDItT+vS9mZaAkrsR3EY7uQ/jP1kc=; b=t11m4Q3JqTRS9OHFwUpiPyqCFJCamJcCIYcyOCMrHyLhutgfdCho0DCITGfuSW6Jgh XqNomhHu7KN3l+cOCPgDTrF7t64YF3Tamh7yJi6C3EwiBb9Sf1cPbnfdI3CzNkUZfT3Q xE6HZXtS5yJViEyvhkVx0UTjj7dxxgDp0uGmfCdXhP2VGGfwni0WY5W7frthIn/aFsob j4pVZl7zKkfWnnVIk/0YDlnHZTK63/dGaYi9Pb86fmTnEU4HAPSZNNGMYDHrobWm1vli 1QuKNW274YeEHggPNnKbuOMLU+f7QrW1rV7DLdtS5QYCd+9AeHDdkDuxI2HN5IM/xLpB zQPA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id nc12si1034382ejc.8.2021.04.27.01.46.17; Tue, 27 Apr 2021 01:46:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230325AbhD0IqK (ORCPT + 99 others); Tue, 27 Apr 2021 04:46:10 -0400 Received: from mga01.intel.com ([192.55.52.88]:16739 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229487AbhD0IqJ (ORCPT ); Tue, 27 Apr 2021 04:46:09 -0400 IronPort-SDR: OMWkYDGjt/LxppJ3zsJTXN8IjJLlg9esSbblAgihHQad024EQJ4Gi27uVKE6xe4FeIsrnhPUKz UkWuJ0e/gIvQ== X-IronPort-AV: E=McAfee;i="6200,9189,9966"; a="217179726" X-IronPort-AV: E=Sophos;i="5.82,254,1613462400"; d="scan'208";a="217179726" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Apr 2021 01:45:26 -0700 IronPort-SDR: OG9ab/gCwcLz+4i8DJjBybAC0UhDkAEnESMlBxalB40WjB8GRSsa83ZjC0icr0i4V7be276nkR kiSbYlZfTbjw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.82,254,1613462400"; d="scan'208";a="526029226" Received: from shbuild999.sh.intel.com (HELO localhost) ([10.239.147.94]) by fmsmga001.fm.intel.com with ESMTP; 27 Apr 2021 01:45:22 -0700 Date: Tue, 27 Apr 2021 16:45:22 +0800 From: Feng Tang To: kernel test robot Cc: "Paul E. McKenney" , 0day robot , John Stultz , Thomas Gleixner , Stephen Boyd , Jonathan Corbet , Mark Rutland , Marc Zyngier , Andi Kleen , Xing Zhengjun , LKML , lkp@lists.01.org, kernel-team@fb.com, neeraju@codeaurora.org, zhengjun.xing@intel.com Subject: Re: [clocksource] 8c30ace35d: WARNING:at_kernel/time/clocksource.c:#clocksource_watchdog Message-ID: <20210427084522.GB65970@shbuild999.sh.intel.com> References: <20210425224709.1312655-6-paulmck@kernel.org> <20210427072702.GC32408@xsang-OptiPlex-9020> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210427072702.GC32408@xsang-OptiPlex-9020> User-Agent: Mutt/1.5.24 (2015-08-30) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Apr 27, 2021 at 03:27:02PM +0800, kernel test robot wrote: > > > Greeting, > > FYI, we noticed the following commit (built with gcc-9): > > commit: 8c30ace35da3b362089f5c903144d762a065b58a ("[PATCH v10 clocksource 6/7] clocksource: Forgive tsc_early pre-calibration drift") > url: https://github.com/0day-ci/linux/commits/Paul-E-McKenney/Do-not-mark-clocks-unstable-due-to-delays-for-v5-13/20210426-064834 > base: https://git.kernel.org/cgit/linux/kernel/git/tip/tip.git 2d036dfa5f10df9782f5278fc591d79d283c1fad > > in testcase: boot > > on test machine: qemu-system-x86_64 -enable-kvm -cpu SandyBridge -smp 2 -m 16G > > caused below changes (please refer to attached dmesg/kmsg for entire log/backtrace): > > > > If you fix the issue, kindly add following tag > Reported-by: kernel test robot > > > [ 70.350923] WARNING: CPU: 0 PID: 1 at kernel/time/clocksource.c:435 clocksource_watchdog (kbuild/src/x86_64/kernel/time/clocksource.c:435) > [ 70.353152] Modules linked in: > [ 70.354074] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 5.12.0-rc3-00031-g8c30ace35da3 #2 > [ 70.356180] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.12.0-1 04/01/2014 > [ 70.358471] RIP: 0010:clocksource_watchdog (kbuild/src/x86_64/kernel/time/clocksource.c:435) Some log extraced from the attached dmesg.xz: [ 8.376387] clocksource: tsc-early: mask: 0xffffffffffffffff max_cycles: 0x26d347b2dd9, max_idle_ns: 440795223616 ns [ 8.890982] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 1911260446275000 ns [ 9.132146] clocksource: Switched to clocksource kvm-clock [ 10.324011] clocksource: acpi_pm: mask: 0xffffff max_cycles: 0xffffff, max_idle_ns: 2085701024 ns [ 10.397945] Trying to unpack rootfs image as initramfs... [ 70.350923] WARNING: CPU: 0 PID: 1 at kernel/time/clocksource.c:435 clocksource_watchdog+0x3b8/0x4c0 [ 199.544368] Freeing initrd memory: 592780K [ 199.551256] clocksource: tsc: mask: 0xffffffffffffffff max_cycles: 0x26d347b2dd9, max_idle_ns: 440795223616 ns Seems the initramfs took too long time, and exceeds the 60 seconds of WATCHDOG_SYNC_FORGIVENESS time, which triggers the warning. Also I asked Oliver about the reproduce rate, and he said the warning was seen only once for all around 100 boot tests. From other good boot logs, the initramfs unpacking usually only takes about 20 seconds. Thanks, Feng > [ 70.382655] > [ 70.386145] call_timer_fn (kbuild/src/x86_64/arch/x86/include/asm/jump_label.h:25 kbuild/src/x86_64/include/linux/jump_label.h:200 kbuild/src/x86_64/include/trace/events/timer.h:125 kbuild/src/x86_64/kernel/time/timer.c:1432) > [ 70.387393] run_timer_softirq (kbuild/src/x86_64/kernel/time/timer.c:1477 kbuild/src/x86_64/kernel/time/timer.c:1745 kbuild/src/x86_64/kernel/time/timer.c:1721 kbuild/src/x86_64/kernel/time/timer.c:1758) > [ 70.389855] __do_softirq (kbuild/src/x86_64/arch/x86/include/asm/jump_label.h:25 kbuild/src/x86_64/include/linux/jump_label.h:200 kbuild/src/x86_64/include/trace/events/irq.h:142 kbuild/src/x86_64/kernel/softirq.c:346) > [ 70.390965] irq_exit_rcu (kbuild/src/x86_64/kernel/softirq.c:221 kbuild/src/x86_64/kernel/softirq.c:422 kbuild/src/x86_64/kernel/softirq.c:434) > [ 70.392198] sysvec_apic_timer_interrupt (kbuild/src/x86_64/arch/x86/kernel/apic/apic.c:1100 (discriminator 14)) > [ 70.393575] > [ 70.394355] asm_sysvec_apic_timer_interrupt (kbuild/src/x86_64/arch/x86/include/asm/idtentry.h:632) > [ 70.395968] RIP: 0010:__memcpy (kbuild/src/x86_64/arch/x86/lib/memcpy_64.S:39) > [ 70.397140] Code: 84 00 00 00 00 00 66 90 48 89 fe 48 c7 c7 7e 0a a2 a7 e9 f1 fe ff ff cc 66 66 90 66 90 48 89 f8 48 89 d1 48 c1 e9 03 83 e2 07 48 a5 89 d1 f3 a4 c3 66 0f 1f 44 00 00 48 89 f8 48 89 d1 f3 a4 > [ 70.404945] RSP: 0000:ffffb8e500013ae8 EFLAGS: 00010246 > [ 70.406424] RAX: ffff9fc255c00000 RBX: 0000000000001000 RCX: 0000000000000200 > [ 70.408416] RDX: 0000000000000000 RSI: ffff9fc2423e4bb0 RDI: ffff9fc255c00000 > [ 70.410277] RBP: ffff9fc255c00000 R08: ffff9fc140000000 R09: 0000000000004bb0 > [ 70.412300] R10: ffff9fc2402a3180 R11: 0000000000000000 R12: 0000000000001000 > [ 70.414194] R13: ffffb8e500013c08 R14: 0000000000001000 R15: ffffe73dc0000000 > [ 70.416239] iov_iter_copy_from_user_atomic (kbuild/src/x86_64/lib/iov_iter.c:991 (discriminator 10)) > [ 70.417718] generic_perform_write (kbuild/src/x86_64/mm/filemap.c:3586) > [ 70.419241] __generic_file_write_iter (kbuild/src/x86_64/mm/filemap.c:3705) > [ 70.420517] generic_file_write_iter (kbuild/src/x86_64/include/linux/fs.h:780 kbuild/src/x86_64/mm/filemap.c:3737) > [ 70.421643] __kernel_write (kbuild/src/x86_64/fs/read_write.c:550 (discriminator 1)) > [ 70.422769] kernel_write (kbuild/src/x86_64/include/linux/fs.h:2903 kbuild/src/x86_64/fs/read_write.c:580 kbuild/src/x86_64/fs/read_write.c:569) > [ 70.423999] ? write_buffer (kbuild/src/x86_64/init/initramfs.c:436) > [ 70.425104] xwrite+0x31/0x62 > [ 70.426262] do_copy (kbuild/src/x86_64/init/initramfs.c:394) > [ 70.427333] ? write_buffer (kbuild/src/x86_64/init/initramfs.c:436) > [ 70.428395] write_buffer (kbuild/src/x86_64/init/initramfs.c:430 (discriminator 1)) > [ 70.429461] flush_buffer (kbuild/src/x86_64/init/initramfs.c:442) > [ 70.430523] ? initrd_load (kbuild/src/x86_64/init/initramfs.c:44) > [ 70.431700] __gunzip (kbuild/src/x86_64/lib/decompress_inflate.c:161) > [ 70.432696] ? bunzip2 (kbuild/src/x86_64/lib/decompress_inflate.c:39) > [ 70.433760] ? __gunzip (kbuild/src/x86_64/lib/decompress_inflate.c:207) > [ 70.434841] gunzip (kbuild/src/x86_64/lib/decompress_inflate.c:207) > [ 70.435927] ? initrd_load (kbuild/src/x86_64/init/initramfs.c:44) > [ 70.437032] unpack_to_rootfs (kbuild/src/x86_64/init/initramfs.c:500) > [ 70.438284] ? initrd_load (kbuild/src/x86_64/init/initramfs.c:44) > [ 70.439507] ? reserve_initrd_mem (kbuild/src/x86_64/init/initramfs.c:662) > [ 70.440794] populate_rootfs (kbuild/src/x86_64/init/initramfs.c:676) > [ 70.441946] ? reserve_initrd_mem (kbuild/src/x86_64/init/initramfs.c:662) > [ 70.443386] do_one_initcall (kbuild/src/x86_64/init/main.c:1226) > [ 70.444562] ? rcu_read_lock_sched_held (kbuild/src/x86_64/include/linux/lockdep.h:278 kbuild/src/x86_64/kernel/rcu/update.c:125) > [ 70.445893] kernel_init_freeable (kbuild/src/x86_64/init/main.c:1298 kbuild/src/x86_64/init/main.c:1315 kbuild/src/x86_64/init/main.c:1335 kbuild/src/x86_64/init/main.c:1537) > [ 70.447344] ? rest_init (kbuild/src/x86_64/init/main.c:1421) > [ 70.448383] kernel_init (kbuild/src/x86_64/init/main.c:1426) > [ 70.449219] ret_from_fork (kbuild/src/x86_64/arch/x86/entry/entry_64.S:300) > [ 70.450175] irq event stamp: 2300500 > [ 70.451358] hardirqs last enabled at (2300510): console_unlock (kbuild/src/x86_64/arch/x86/include/asm/irqflags.h:45 (discriminator 1) kbuild/src/x86_64/arch/x86/include/asm/irqflags.h:80 (discriminator 1) kbuild/src/x86_64/arch/x86/include/asm/irqflags.h:145 (discriminator 1) kbuild/src/x86_64/kernel/printk/printk.c:2605 (discriminator 1)) > [ 70.453717] hardirqs last disabled at (2300519): console_unlock (kbuild/src/x86_64/kernel/printk/printk.c:2520 (discriminator 1)) > [ 70.456262] softirqs last enabled at (2299674): __do_softirq (kbuild/src/x86_64/arch/x86/include/asm/preempt.h:27 kbuild/src/x86_64/kernel/softirq.c:373) > [ 70.458585] softirqs last disabled at (2299819): irq_exit_rcu (kbuild/src/x86_64/kernel/softirq.c:221 kbuild/src/x86_64/kernel/softirq.c:422 kbuild/src/x86_64/kernel/softirq.c:434) > [ 70.461343] ---[ end trace 5049069f8395a579 ]--- > [ 199.544368] Freeing initrd memory: 592780K > [ 199.545765] PCI-DMA: Using software bounce buffering for IO (SWIOTLB) > [ 199.547432] software IO TLB: mapped [mem 0x00000000bbfe0000-0x00000000bffe0000] (64MB) > [ 199.550168] kvm: no hardware support > [ 199.551256] clocksource: tsc: mask: 0xffffffffffffffff max_cycles: 0x26d347b2dd9, max_idle_ns: 440795223616 ns > [ 199.563791] Initialise system trusted keyrings > [ 199.565211] Key type blacklist registered