Received: by 2002:a25:ef43:0:0:0:0:0 with SMTP id w3csp693889ybm; Fri, 29 May 2020 09:53:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxcHcVhE/szRo0uplHsHYjQJ8wjjDUP9yiMPPHdlQZ0Pby0IRgKlC/u8Tk6j5lEJcIa8W3u X-Received: by 2002:a05:6402:b91:: with SMTP id cf17mr9080025edb.148.1590771229653; Fri, 29 May 2020 09:53:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590771229; cv=none; d=google.com; s=arc-20160816; b=Xe5MCdSybSY7B6W1s/TQalko4CEPKaywI6Csp4O61Are3bqMQ78xQhNc581wwoK1p7 sBmaBkZxfquZlzFrcB+5XoA+ctxG0d1gPGC7YnxhzdXnt6abTPXjOrwA53hBffcnaYs/ wgX/RnBhTulM8YVrUNknqEgIuukPfRuBLPV5FQU1e07bzEjh7hql0s0bkYgD9ASbruNr Kc2byCn7I2YppviYetY6J3FKwtW6M//TUFTUQlLHKIwW9CSYVxnvfbGNcnMWJv97vP75 uSmzxvSK6gpNN8/zlr0dOsJ0xHXQUk8ewIIyT2sjpzydBPcWLjnXavqPHBAvSsaWIwZD UVWw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:organization:from:references:to:subject:ironport-sdr :ironport-sdr; bh=PRv5NZL9pkdXG19CnVERNA3TQbcw2eR53mKli1u+OnI=; b=jwhtQO3TtNdzpfnbXs+J158r1ASBHMc8HQquxLNN6Q6czLyfqmhAK4rEppQPnHQsfU mUuzfvAZ4+9YeglJ/GtVN1v8W3QzKzmuEaAx3exIMU2WMgHjWFRsk/wQ+YNR5k7sXjr2 3q/dtIp2pq2eB4u5HMv64+kJ50wgZE43JBBaW2NVxG6Qw67IxA8034WreZA8TJjTrE81 WfxFlaQq9kToSO3kySkJRBpF9McqGzCm////SkTiHBNdu4cn+1zoTIPT8HqBbvhcJCZY cPNeEUj7H7vMZuQxqr23E2uuW0KQSsnZcBAAhF42ub3VBdFJ+Wrz8kOktW0s7+RXYxFN l01A== 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 dk10si6027940ejb.554.2020.05.29.09.53.26; Fri, 29 May 2020 09:53:49 -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 S1727094AbgE2Qv2 (ORCPT + 99 others); Fri, 29 May 2020 12:51:28 -0400 Received: from mga18.intel.com ([134.134.136.126]:58601 "EHLO mga18.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725901AbgE2QvZ (ORCPT ); Fri, 29 May 2020 12:51:25 -0400 IronPort-SDR: kc2tV3i8J4VNGJqGPMJP57LuYraXRDkQaxgYnAmL5SaVGgKG75fmt6dz1TNVKDjbiHL5whYEB8 dT5dF3McMPEg== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 May 2020 09:51:25 -0700 IronPort-SDR: NZI9hH+nitIWPQIlbZvARn1Y9JNWrM6DlBBASubVpGXnyhpDF/GqXeTyldLKZnoV6PL0kPXqL2 1U7OwAgTOgQg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,449,1583222400"; d="scan'208";a="443458186" Received: from rjwysock-mobl1.ger.corp.intel.com (HELO [10.249.153.119]) ([10.249.153.119]) by orsmga005.jf.intel.com with ESMTP; 29 May 2020 09:51:23 -0700 Subject: Re: Regression with PM / wakeup: Show wakeup sources stats in sysfs" To: Florian Fainelli , "linux-kernel@vger.kernel.org" , trong@android.com, Greg KH , swboyd@chromium.org, kaleshsingh@google.com References: <11459cde-7f57-c95b-8cac-4301f0a2390e@gmail.com> From: "Rafael J. Wysocki" Organization: Intel Technology Poland Sp. z o. o., KRS 101882, ul. Slowackiego 173, 80-298 Gdansk Message-ID: <9d75a67b-87f0-161c-02d7-c9fc4efe97e7@intel.com> Date: Fri, 29 May 2020 18:51:22 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.8.1 MIME-Version: 1.0 In-Reply-To: <11459cde-7f57-c95b-8cac-4301f0a2390e@gmail.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 5/28/2020 10:46 PM, Florian Fainelli wrote: > Hi, > > Commit c8377adfa78103be5380200eb9dab764d7ca890e ("PM / wakeup: Show > wakeup sources stats in sysfs") is causing some of our tests to fail > because /sys/class/net/*/device/power/wakeup_count is now 0, despite > /sys/kernel/debug/wakeup_sources clearly indicating that the Ethernet > device was responsible for system wake-up. > > What's more in looking at /sys/class/wakekup/wakeup2/event_count, we > have the number of Wake-on-LAN wakeups recorded properly, but > wakeup_count is desperately 0, why is that? I need to look at that commit in detail to find out what is going on. > This is seen on 5.4.43, but it is reproducible on Linus' master as well. > > The Ethernet driver being used is under > drivers/net/ethernet/broadcom/genet/ and the relevant part is in the > function bcmgenet_set_wol(). > > BTW, I think you want to backport > e976eb4b91e906f20ec25b20c152d53c472fc3fd ("PM: wakeup: Show statistics > for deleted wakeup sources again") into 5.4 and 4.19 at least. Well, please feel free to send a request to do that to stable@vger.kernel.org. Thanks!