Received: by 2002:a25:ef43:0:0:0:0:0 with SMTP id w3csp913159ybm; Fri, 29 May 2020 15:32:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx7bxzLMDrfznfJK51+kVMmsj5OTkGInIIw1aaz7Xn60C8414YpE93FU9I1SpOWdDZ9CZa2 X-Received: by 2002:a17:906:bcc5:: with SMTP id lw5mr9948254ejb.470.1590791531325; Fri, 29 May 2020 15:32:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590791531; cv=none; d=google.com; s=arc-20160816; b=aPTuTmQdbawhNuO6amJEmkuWRQwHAdOQOBIOtvWavOSvShgcn9bQkFuGM6TB+9hRzM CZix5hsvDNCQTNP7jhSFCeKhOoT53/9KdxGxOEjV7VMHFOF4bVVTVPukNdmCbSDuzL+Q dbVngdNooKJ72S9boOsTfv+hdN/2hL3JnxGTrAInzNI4crR5hGITzPvdnu3rEPl9x5yM ZCESenmawqOVa4/9C3aOH92Me4K5/iYM1woDM1quT9m0EwaWEd49MlXwkxZrYWm8MoCb 1jZY2glxBKacei/s3g14xPl9VJ1r8tU41giBtsIqo3IaozXSPjf7EOKZZaB9ytjSNEKw THMg== 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; bh=kY4yj9c52oXZ2jWS1wKDWOQi2s1UaHS96yM6OzNUtkQ=; b=VqJHZmhkrOpbM3COxiPRNR3swwkGo6NZLRvozxSDbbHxwaf/s5ybN20it0w5EgK8CH 76jru+3Mp7Ar//2sNCbAL5TGbw0eCpSE9Se6/YDRzPpCbqkzQPaDyZZ+hXUbkKyBSq0m l6sg3MRIS3FKJ648+Ic6rL4OgtjsiFUwWpriZ1Yz1PcnCQRfX9/ixLxZJf4MgS/3gvx2 4wzPG2qPvdZPMFkm/O4Lk/yeevoJf5YTEsGli4Eg6sNGXR7oEfQlTVomGxItfsH7Wm6v bB4zArs3alHKtfJCuCI0aoFjeogy2+V7W1giQNbIUKe+4405iW1IUs9b6fTIwbyjiQSx +dMw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@android.com header.s=20161025 header.b=K1NuNPjg; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=android.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w18si6271503edv.185.2020.05.29.15.31.48; Fri, 29 May 2020 15:32:11 -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; dkim=pass header.i=@android.com header.s=20161025 header.b=K1NuNPjg; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=android.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728484AbgE2W2s (ORCPT + 99 others); Fri, 29 May 2020 18:28:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58922 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726555AbgE2W2s (ORCPT ); Fri, 29 May 2020 18:28:48 -0400 Received: from mail-pf1-x444.google.com (mail-pf1-x444.google.com [IPv6:2607:f8b0:4864:20::444]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 34470C03E969 for ; Fri, 29 May 2020 15:28:48 -0700 (PDT) Received: by mail-pf1-x444.google.com with SMTP id n15so522938pfd.0 for ; Fri, 29 May 2020 15:28:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=android.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=kY4yj9c52oXZ2jWS1wKDWOQi2s1UaHS96yM6OzNUtkQ=; b=K1NuNPjgow6uSw+YTDTgFTw1YZCCGa3PWnxcKw9xJSNMVu5gT76WtnwBNVpum8llTI CIvg+UUtsESCCaRi6wPmxp/nfgtR7gA8SMW9N4432o1sn5QDKT168OsWWhZxQgN/n5tZ Av09LwWkvdcLCaTsznEQfcFK+2LymblRcx+rd6yK4qG8maaIOALFPoqCxETQyPU7V6LX mA1HGUmme6EF31wu2ODcY1UTpYjfJvza5F8xxZfOA2lOx53XL34mLnzSN9cOSf7r/zRJ Hc8b37+oaKCdAAvMSTsx66xxwe24QTA16bobPojqDjif5ez8mWN4i1lDMbcReLVY6m7z 5cRg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=kY4yj9c52oXZ2jWS1wKDWOQi2s1UaHS96yM6OzNUtkQ=; b=o7S4dYhqU6pbti1lfSERRHyrHi4Lglic/gXBHQmBy49tIFPN9llKQtzhyYk3G1We6+ vF9y7x9AYzVQOtms4cwFbDH+E7N6tSFzrSsqJIDuDaOqozezGm/EUyPJY4usaJ+vfjPc 4CCe3/6D/2NchFrQ1z7XaZafyEZOT0BQn6Gp17lrLISUtuI5rLZkVX43ingRtdHOgOvx ftCHnemzyLsYELeUBglA7MMj9+32/A6HEDbh3UxQfSt8HROyApgnWOn1MnDhXz9WSiMx ZYs+BLLCMSN9FUOvYkWpjlf1oujm4w/KV382h1H9yR4bF8QOrgBoXDO9iud/85ZHn6or lwpQ== X-Gm-Message-State: AOAM531ERleYKrhn+ZtOscBKQ71GN6gPk5nfzDlb+XVTZydBdLMT2ft3 wwcZP2NhG9kArd4FK37ywdsM00cGQzzupxv9EeCbTA== X-Received: by 2002:a65:40c3:: with SMTP id u3mr10617456pgp.305.1590791327745; Fri, 29 May 2020 15:28:47 -0700 (PDT) MIME-Version: 1.0 References: <11459cde-7f57-c95b-8cac-4301f0a2390e@gmail.com> <9d75a67b-87f0-161c-02d7-c9fc4efe97e7@intel.com> In-Reply-To: <9d75a67b-87f0-161c-02d7-c9fc4efe97e7@intel.com> From: Tri Vo Date: Fri, 29 May 2020 15:28:32 -0700 Message-ID: Subject: Re: Regression with PM / wakeup: Show wakeup sources stats in sysfs" To: Florian Fainelli Cc: "linux-kernel@vger.kernel.org" , "Rafael J. Wysocki" , Greg KH , Stephen Boyd Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, May 29, 2020 at 9:51 AM Rafael J. Wysocki wrote: > > 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. It would be helpful to see the contents of /sys/kernel/debug/wakeup_sources, /sys/class/net/*/device/power/*, and /sys/class/wakekup/* corresponding to the device in question. The values in these files are queried from the same struct wakeup_source. So it's odd if wakeup_count diverges.