Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp1540537ybl; Tue, 13 Aug 2019 14:34:31 -0700 (PDT) X-Google-Smtp-Source: APXvYqxmWbLcRZt/Wt5B3Z6Q1yPrRY70DvR2mHsj0WrtNPmR/agcfyublsVxxXBX9qnXuvhr3aZj X-Received: by 2002:a17:90a:8c92:: with SMTP id b18mr4010881pjo.97.1565732071572; Tue, 13 Aug 2019 14:34:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565732071; cv=none; d=google.com; s=arc-20160816; b=upRj2V3TKmMQu26Jln31QDxlFpQ8Zmhwolu8MjNZy2wnRc0WEGm9Ud/B5M45TQUYfy faMbdq5ptn5Oz6sfPnloW48fbh/Li16q0Wmm8iiBJuAYTAyZjCjOw5hoZctnpA1mHGr6 ksehnl1ioMaylhsxctBrFv6uEaMU2dRgGvKKTKsQlyOju3sxOkARS31CW7n4E5jHoVbM BpeDg2L/Yo3Fy3V/bcRWH4gF8AEcphyHDxAAfv/Jf7aJe2oA+RTd99smJqvDqDToaE2U s5yjic3Kd4rFCc0V6X2oXy4msQmD6qqhbizd01Xn+BvB0wmff2y4bBgKb88jDuAr1Siy dCzg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :date:cc:to:from:subject:message-id:dkim-signature; bh=qCbB+P5oHA9cZT/nz3Y/aGC8nM9/7bB2HylO7P1DLH0=; b=hatJhgVGyYdo0PUGfAM8CoYq61ep39bICA7iV94rpingyjjz8BjNzPY5FnWiDktZBB k/+85sVcCIjAghhfKkQcFGTDhPWT138ixzEOyoqKhw0/4OURAA4TSRQV1YQAp2elyN00 f5HFXawu/XOJq8DdD9KGrNs7brmVJRj1o+hXcve+PdJ0uYraiUMH+/Vj0FSbp8WGa/r6 nZdPZKVJ7m0zm41IgTmGkR8P177Uyh/KYo4JrcO4wFxAtDASeV03z7gopTlJt876JeIE Cza1WWNo4GLDZKQiHyhnJCif6rlp+Yj+kVsBI0BbAwTjFbj7jJflAJgf4B1itXx9Ks1E M8GA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lca.pw header.s=google header.b=bR3xyAb5; 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 f186si35922492pgc.438.2019.08.13.14.34.15; Tue, 13 Aug 2019 14:34:31 -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=@lca.pw header.s=google header.b=bR3xyAb5; 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 S1727223AbfHMVdC (ORCPT + 99 others); Tue, 13 Aug 2019 17:33:02 -0400 Received: from mail-qt1-f194.google.com ([209.85.160.194]:41208 "EHLO mail-qt1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727197AbfHMVdA (ORCPT ); Tue, 13 Aug 2019 17:33:00 -0400 Received: by mail-qt1-f194.google.com with SMTP id d17so28997497qtj.8 for ; Tue, 13 Aug 2019 14:32:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lca.pw; s=google; h=message-id:subject:from:to:cc:date:mime-version :content-transfer-encoding; bh=qCbB+P5oHA9cZT/nz3Y/aGC8nM9/7bB2HylO7P1DLH0=; b=bR3xyAb5DYDi5lyhiOo5mBPz5yoUVJC933X8edJw5MHjQdVxcXXzUDSUvmJcNyOdjo YUGyXFKe4XJZ3RCAhhN6rmlBuf6N7UOCckovrJ6QPsaTrsTEndmO2rtY0BAvttWKiXr8 X775u1AfnnXV2oWsGhrphvYMdWIgWHj4VXvHVeLmHN+Dp6ZdDFZ8QRSx9hFiCMTMbqVs WW3G/WB8dCIlt3S10CJRxOxsr8D9/KsZYTGznxZAr6A+fC+TXHKUWYMBSpBbwQihOMQW s/YGmq1LvJ3mTTGkIu9EfqCSubl0Kpgg6Mw/b8kzXW9WS8hBt/XyLYIpj6u/1byZU6Az G/+Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:subject:from:to:cc:date:mime-version :content-transfer-encoding; bh=qCbB+P5oHA9cZT/nz3Y/aGC8nM9/7bB2HylO7P1DLH0=; b=GSx572mPuQJHZO0HwIyoUek77GjQj/AU2I80H0xwbcpPq+i7Zi1qqtY5wqLhq4Q8GV lOlU+n7VTabJuyRc0kJRdJv91jThRSw6Q4aIeOaj/2XsO5YAit3EhCOpRa0xOISRbehU +4NOskvf9NrmBorZvbS8bHfjqrgqWlEeisIjbQ8P36tI/PV4Bm3hGMjrYJnW/sZ8a5NA aAkCOu4XHQmCQ4VlgdxsaK9nNwL1x8PG4RaydUo6oUBwbYpEbIIZB+xcR4Lv2W8R81rM MiK9gBlBW6OIt3g3mN/Z7F00m3awDSpVbm5TitIHOFUraehzjSbCq+aTXJRVMUdPa14A c4Zw== X-Gm-Message-State: APjAAAVgUxB2wG6pgo8G8HG/YGN7ZAG6Zlhiu/H7+/0e4A/GmXZFKlB1 cQ2BaZxMSR1HcyVoam+d5ppj1w== X-Received: by 2002:ac8:24b4:: with SMTP id s49mr11675536qts.255.1565731978799; Tue, 13 Aug 2019 14:32:58 -0700 (PDT) Received: from dhcp-41-57.bos.redhat.com (nat-pool-bos-t.redhat.com. [66.187.233.206]) by smtp.gmail.com with ESMTPSA id o18sm5935478qtt.4.2019.08.13.14.32.57 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 13 Aug 2019 14:32:58 -0700 (PDT) Message-ID: <1565731976.8572.16.camel@lca.pw> Subject: "PM / wakeup: Show wakeup sources stats in sysfs" causes boot warnings From: Qian Cai To: Tri Vo Cc: Peter Zijlstra , Greg Kroah-Hartman , Stephen Boyd , rafael@kernel.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org Date: Tue, 13 Aug 2019 17:32:56 -0400 Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.22.6 (3.22.6-10.el7) Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The linux-next commit "PM / wakeup: Show wakeup sources stats in sysfs" [1] introduced some baddies during boot on several x86 servers. Reverted the commit fixed the issue. [1] https://lore.kernel.org/lkml/20190807014846.143949-4-trong@android.com/ [   39.195053][    T1] serio: i8042 KBD port at 0x60,0x64 irq 1 [   39.197347][    T1] kobject_add_internal failed for wakeup (error: -2 parent: serio0) [   39.199845][    T1] INFO: trying to register non-static key. [   39.201582][    T1] the code is fine but needs lockdep annotation. [   39.203477][    T1] turning off the locking correctness validator. [   39.205399][    T1] CPU: 12 PID: 1 Comm: swapper/0 Not tainted 5.3.0-rc4- next-20190813 #3 [   39.207938][    T1] Hardware name: HP ProLiant XL420 Gen9/ProLiant XL420 Gen9, BIOS U19 12/27/2015 [   39.210606][    T1] Call Trace: [   39.210606][    T1]  dump_stack+0x62/0x9a [   39.210606][    T1]  register_lock_class+0x95a/0x960 [   39.210606][    T1]  ? __platform_driver_probe+0xcd/0x230 [   39.210606][    T1]  ? __platform_create_bundle+0xc0/0xe0 [   39.210606][    T1]  ? i8042_init+0x4ec/0x578 [   39.210606][    T1]  ? do_one_initcall+0xfe/0x45a [   39.219571][    T1]  ? kernel_init_freeable+0x614/0x6a7 [   39.219571][    T1]  ? kernel_init+0x11/0x138 [   39.219571][    T1]  ? ret_from_fork+0x35/0x40 [   39.219571][    T1]  ? is_dynamic_key+0xf0/0xf0 [   39.219571][    T1]  ? rwlock_bug.part.0+0x60/0x60 [   39.219571][    T1]  ? __debug_check_no_obj_freed+0x8e/0x250 [   39.219571][    T1]  __lock_acquire.isra.13+0x5f/0x830 [   39.229491][    T1]  ? __debug_check_no_obj_freed+0x152/0x250 [   39.229491][    T1]  lock_acquire+0x107/0x220 [   39.229491][    T1]  ? __pm_relax.part.2+0x21/0xa0 [   39.229491][    T1]  _raw_spin_lock_irqsave+0x35/0x50 [   39.229491][    T1]  ? __pm_relax.part.2+0x21/0xa0 [   39.229491][    T1]  __pm_relax.part.2+0x21/0xa0 [   39.239588][    T1]  wakeup_source_destroy.part.3+0x18/0x190 [   39.239588][    T1]  wakeup_source_register+0x43/0x50 [   39.239588][    T1]  device_wakeup_enable+0x76/0x170 [   39.239588][    T1]  device_set_wakeup_enable+0x13/0x20 [   39.239588][    T1]  i80probe+0x921/0xa45 [   39.339546][    T1]  ? i8042_toggle_aux+0xeb/0xeb [   39.349486][    T1]  ? kernfs_create_link+0xce/0x100 [   39.349486][    T1]  ? sysfs_do_create_link_sd+0x7b/0xe0 [   39.349486][    T1]  ? acpi_dev_pm_attach+0x31/0xf0 [   39.349486][    T1]  platform_drv_probe+0x51/0xe0 [   39.349486][    T1]  really_probe+0x1a2/0x630 [   39.349486][    T1]  ? device_driver_attach+0xa0/0xa0 [   39.349486][    T1]  driver_probe_device+0xcd/0x1f0 [   39.359562][    T1]  ? device_driver_attach+0xa0/0xa0 [   39.359562][    T1]  device_driver_attach+0x8f/0xa0 [   39.359562][    T1]  __driver_attach+0xc7/0x1a0 [   39.359562][    T1]  bus_for_each_dev+0xfe/0x160 [   39.359562][    T1]  ? subsys_dev_iter_init+0x80/0x80 [   39.359562][    T1]  ? __kasan_check_read+0x11/0x20 [   39.359562][    T1]  ? _raw_spin_unlock+0x27/0x40 [   39.369488][    T1]  driver_attach+0x2b/0x30 [   39.369488][    T1]  bus_add_driver+0x298/0x350 [   39.369488][    T1]  driver_register+0xdc/0x1d0 [   39.369488][    T1]  ? i8042_toggle_aux+0xeb/0xeb [   39.369488][    T1]  __platform_driver_probe+0xcd/0x230 [   39.3  __platform_create_bundle+0xc0/0xe0 [   39.769489][    T1]  ? i8042_toggle_aux+0xeb/0xeb [   39.779556][    T1]  ? i8042_probe+0xa45/0xa45 [   39.779556][    T1]  i8042_init+0x4ec/0x578 [   39.779556][    T1]  ? i8042_probe+0xa45/0xa45 [   39.779556][    T1]  ? netdev_run_todo+0x2f/0x4a0 [   39.779556][    T1]  ? qdisc_create_dflt+0xf0/0xf0 [   39.779556][    T1]  ? net_olddevs_init+0x67/0x67 [   39.779556][    T1]  ? i8042_probe+0xa45/0xa45 [   39.789486][    T1]  do_one_initcall+0xfe/0x45a [   39.789486][    T1]  ? initcall_blacklisted+0x150/0x150 [   39.789486][    T1]  ? __kasan_check_write+0x14/0x20 [   39.789486][    T1]  ? up_write+0xee/0x2a0 [   39.789486][    T1]  kernel_init_freeable+0x614/0x6a7 [   39.789486][    T1]  ? rest_init+0x188/0x188 [   39.789486][    T1]  kernel_init+0x11/0x138 [   39.799563][    T1]  ? rest_init+0x188/0x188 [   39.799563][    T1]  ret_from_fork+0x35/0x40 [   39.803412][    T1] serio: i8042 AUX port at 0x60,0x64 irq 12