Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp304735ybi; Thu, 1 Aug 2019 19:28:39 -0700 (PDT) X-Google-Smtp-Source: APXvYqxLx70isEzTfDZgYn9X+3/TiSR41nVL4T3eaMC4Nv84wiLbRi+iD/ZAe+ZUZBEqKdYXP9sy X-Received: by 2002:a17:902:968d:: with SMTP id n13mr81850425plp.257.1564712919353; Thu, 01 Aug 2019 19:28:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564712919; cv=none; d=google.com; s=arc-20160816; b=HEpwl1jFN7Hd20bpTnahBLvlmAZNhncpH5Q5/yeevExdTm/sWdVwLmmJgWAv1pdMCn yt8W3p/OumB9+4bVbw09tQmznE9fioEfOxgDCCM28NuVRssHBDBVrvTH5abNUO6vg6M6 25EJw1Dl/1ZFGu34EkyhNvBgyTQjeD8hrxTVFRThpOqzXfWzvREfcNd1OIU/rgmeG9ti uOAg2kDbrZCF93YWF0jpzkL6aFtG7UyrVf4HG6GlOfzh7L2TUCj+88Bb3zXRojH/c4iG oE9WNFBcN2Jvkxatx3qScUMAnOR1VH8XLomJ/v/CkMvdzixbrKw9TGFFPjESvzPDN8/y lFNg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:user-agent:to:cc:from:subject :references:in-reply-to:content-transfer-encoding:mime-version :message-id:dkim-signature; bh=JKIoLFzzkXibS5O3zhs4gTdyl9Ps1+sukQExcGJaYsY=; b=dAxsawgNTmAKmbz5GGTatqrbtOI0odnrLSBwb/BAXJFp2cDEkOBttcR21EheLIbSdj AId482wbFZaUvFa5Q3m+NBZSZlTf6GwFeQVy3ovSp5+pQCe37Vi1a/V4e+C89PzWP+B7 biQz/cGYafKQ9/HwAUioczds3MJor8HV8A2bak/PaunrxKv5NFBUAgeaSTirbeExHuI3 j9f663Sr9i5SFPTCUQ3HVIdTZ0IH6VbWGuVwCXziGL7uWUYe7nHQWgoXsyKMgeisHY17 wQFOx4w8Aezu9VN2NDBQctRBuyCls/S0UE7rUs+VqBH+bXyi/eOh22QDwS0WQGXzuxch kubw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=GfQD9FxP; 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=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b8si37376142plk.140.2019.08.01.19.28.24; Thu, 01 Aug 2019 19:28:39 -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=@chromium.org header.s=google header.b=GfQD9FxP; 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=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388516AbfHAXke (ORCPT + 99 others); Thu, 1 Aug 2019 19:40:34 -0400 Received: from mail-pg1-f193.google.com ([209.85.215.193]:34125 "EHLO mail-pg1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732215AbfHAXke (ORCPT ); Thu, 1 Aug 2019 19:40:34 -0400 Received: by mail-pg1-f193.google.com with SMTP id n9so28826034pgc.1 for ; Thu, 01 Aug 2019 16:40:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=message-id:mime-version:content-transfer-encoding:in-reply-to :references:subject:from:cc:to:user-agent:date; bh=JKIoLFzzkXibS5O3zhs4gTdyl9Ps1+sukQExcGJaYsY=; b=GfQD9FxPIpykw+z4D8TSlVF/7q8v4ZmsP4UEn2Z8g8eP2JrYLJsiEugo+EGHUZys1/ tKSUeFkfmYkyg/rp/r1r7oWrz7UlNkK1hMyzc2+KK7BOynxJn6VLNJNUfRE64/cficll daS5ql4z+Lk+3XFHDmErq2QSTvlcNnEkckyxU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:mime-version :content-transfer-encoding:in-reply-to:references:subject:from:cc:to :user-agent:date; bh=JKIoLFzzkXibS5O3zhs4gTdyl9Ps1+sukQExcGJaYsY=; b=kfCCkk9MpC2cPMIyrcNV0/3CWrUMf43vL9CYP4TNqU9C6krK8r+RweGIypyXlRQLlj B4qA1gDvvsQwh4xuvG2q/cpgBqxvXFD8y8tg71TPpzCxw6v28wwR3C888+OdzhHHxuSq BuCgc/HicdzbUPA51U/+2RJ84k19E9SQu+MoYs+jCpIMyp9kBcXk7F7N3J6TEwsCLO8+ DaB+N+CaAj7vDBZxKdwsjp58EGcFGMzaKiSjBZFqEF+s5VfrpojU3OEshCoSXNhxaPJc jN2EC36A1lSJLDj6ET77cVuttWoxo/gUaheSSUUboLK8z5+CNH9+K6MXUOxKgcSXjJWn xj7Q== X-Gm-Message-State: APjAAAXCK09tzTTs6C3yRd80OrQlw79P04U2gizeD6SmRNGMhBm3wIzU 4NqdQIloFe79aJKfOkX3ooha4w== X-Received: by 2002:a63:c64b:: with SMTP id x11mr7215244pgg.319.1564702833651; Thu, 01 Aug 2019 16:40:33 -0700 (PDT) Received: from chromium.org ([2620:15c:202:1:fa53:7765:582b:82b9]) by smtp.gmail.com with ESMTPSA id o14sm5833555pjp.29.2019.08.01.16.40.32 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Thu, 01 Aug 2019 16:40:33 -0700 (PDT) Message-ID: <5d437871.1c69fb81.74806.02ea@mx.google.com> Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: References: <20190731215514.212215-1-trong@android.com> <6987393.M0uybTKmdI@kreacher> <5d42281c.1c69fb81.bcda1.71f5@mx.google.com> <5d434a23.1c69fb81.c4201.c65b@mx.google.com> <5d4363ae.1c69fb81.b621e.65ed@mx.google.com> Subject: Re: [PATCH v6] PM / wakeup: show wakeup sources stats in sysfs From: Stephen Boyd Cc: Tri Vo , "Rafael J. Wysocki" , "Rafael J. Wysocki" , Greg Kroah-Hartman , Viresh Kumar , Hridya Valsaraju , Sandeep Patil , Kalesh Singh , Ravi Chandra Sadineni , LKML , Linux PM , "Cc: Android Kernel" To: "Rafael J. Wysocki" User-Agent: alot/0.8.1 Date: Thu, 01 Aug 2019 16:40:32 -0700 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Quoting Rafael J. Wysocki (2019-08-01 15:46:33) > On Fri, Aug 2, 2019 at 12:11 AM Stephen Boyd wrote: > > > > Ok. If the device name is going to be something generic like 'wakeupN', > > then we need to make sure that the wakeup source name is unique. > > Otherwise, I'm not able to see how userspace will differentiate between > > two of the same named wakelocks. Before this patch the wakeup source > > name looks to have been used for debugging, but now it's being used > > programmatically to let userspace act upon it somehow. >=20 > I'm not actually sure if this patch changes the situation with respect > to wakeup source names. User space still can use them for whatever > it used to use the list in debugfs and that's it. >=20 > That's what I mean by retaining the names for "backwards compatibility on= ly". >=20 Ok, got it. Maybe one day the name attribute will become unimportant if we have a namespace and process aware wake lock API in userspace.