Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp5418739pxu; Thu, 22 Oct 2020 01:33:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyinHuA2S5rzuTKDiii5SCX9xIHbrAmYOCx3SdU18lpG75pdBqyHv9o1MhJ7h93J9BpTQWp X-Received: by 2002:a17:906:3799:: with SMTP id n25mr1187477ejc.6.1603355583693; Thu, 22 Oct 2020 01:33:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603355583; cv=none; d=google.com; s=arc-20160816; b=zDjwquFsAFVYSDzVsEoAnCztmegtB+grAQNteKnny0D/pxW8XzRZrZdNSpql4/Z+Dz C+RhTHbqheBXcIF23F1iHwYnMXAEXw78U9PSX7th7NFJk3cj7/mWpHb/Od0a3+KK9Gpz t6CMXtcdGhCvebjZ1vKCUuLlgQyWY2E3fVXFBHIJbqz6DN2HUJiLD/E+peICRorxhM1T syN6xCXTetmjZfjpd3p9y1bK/zxUq1tlsgIY/ilyaBi0/YaKUl2AJoOHjLy9HoIF5Tzb d/wMbUvlgGTYA1xA1gFe2kB05Aav/EYBxYV0UrSP+fyWZeZJCtXC/kJvUfbAj3HaB8Ru WjPg== 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=+9vJ0gqELkryA9iyvk8lELFva/XQcy6ztXLwDFCf6KY=; b=ixi8kLYx2PNVagDqiYILNh4OwgAX7wnoafSlWZYaD8KIu8xyDrGsoKUVCI27ox55rY oou84e3E6JBuqz3DkYcNFCv6tUZKfLrK0MhC0XsUHBX4tpxevwX+gfCsI2MuPFaRSj7t lqjwESrTnjbSpnyxriEDGnu5mTrk7y3DqrjUfuMHk+meoBKtM8RzdYIWxFELHzPLkyZu Hzq672OAcvCOj0IHhSJhFWcjEi1CLKWX3vArwef5yZS7YsUQb6vOa09sNv1OkFIuUWMO IcStPfI3yuEpAkW3bpX7FFjFwo0FHIvS3OCBE/JKuWXQd2afRRZvXtHuA6qXR6UqkmAC Rj8Q== 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 v5si503897edx.121.2020.10.22.01.32.41; Thu, 22 Oct 2020 01:33:03 -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 S2508061AbgJVFtR (ORCPT + 99 others); Thu, 22 Oct 2020 01:49:17 -0400 Received: from mga04.intel.com ([192.55.52.120]:11633 "EHLO mga04.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2508056AbgJVFtR (ORCPT ); Thu, 22 Oct 2020 01:49:17 -0400 IronPort-SDR: awULbn5bN84PHblpUU1bT4InUmMPRpuOKHNETT38cHZ36kr5bOngsjeGn85yao9feeZfdDEtoO LYBkIoX9cE5Q== X-IronPort-AV: E=McAfee;i="6000,8403,9781"; a="164883297" X-IronPort-AV: E=Sophos;i="5.77,403,1596524400"; d="scan'208";a="164883297" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Oct 2020 22:49:17 -0700 IronPort-SDR: QaQM5PLoJt5HoYm0mvpsC1Nn+HcHHSLkEXRwVVy5YOAl+a1ibjroc5hFHX1vZuGjzguUapQYOY D5QYRezgvHQg== X-IronPort-AV: E=Sophos;i="5.77,403,1596524400"; d="scan'208";a="533814761" Received: from chenyu-office.sh.intel.com ([10.239.158.173]) by orsmga005-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Oct 2020 22:49:15 -0700 Date: Thu, 22 Oct 2020 13:51:37 +0800 From: Chen Yu To: Greg Kroah-Hartman Cc: "Rafael J. Wysocki" , Len Brown , Andy Shevchenko , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] PM / sysfs: Expose suspend resume driver flags in sysfs Message-ID: <20201022055137.GA29165@chenyu-office.sh.intel.com> References: <20201022032324.25308-1-yu.c.chen@intel.com> <20201022053143.GB6523@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201022053143.GB6523@kroah.com> User-Agent: Mutt/1.9.4 (2018-02-28) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Greg, thanks for taking a look at this. On Thu, Oct 22, 2020 at 07:31:43AM +0200, Greg Kroah-Hartman wrote: > On Thu, Oct 22, 2020 at 11:23:24AM +0800, Chen Yu wrote: > > Currently there are 4 driver flags to control system suspend/resume > > behavior: DPM_FLAG_NO_DIRECT_COMPLETE, DPM_FLAG_SMART_PREPARE, > > DPM_FLAG_SMART_SUSPEND and DPM_FLAG_MAY_SKIP_RESUME. Make these flags > > visible in sysfs as read-only to get a brief understanding of the > > expected behavior of each device during suspend/resume, so as to > > facilitate suspend/resume debugging/tuning. > > > > For example: > > /sys/devices/pci0000:00/0000:00:15.1/power/driver_flags:4 > > (DPM_FLAG_SMART_SUSPEND) > > > > /sys/devices/pci0000:00/0000:00:07.3/power/driver_flags:5 > > (DPM_FLAG_NO_DIRECT_COMPLETE | DPM_FLAG_SMART_SUSPEND) > > > > Acked-by: Len Brown > > Signed-off-by: Chen Yu > > --- > > drivers/base/power/sysfs.c | 29 ++++++++++++++++++++++++++++- > > 1 file changed, 28 insertions(+), 1 deletion(-) > > There is no Documentataion/ABI/ entry for your new file, which makes > this patch impossible to properly review by anyone, and prevents it from > being able to be accepted. > > Please fix. > Okay, will add the entry in the document. thanks, Chenyu > thanks, > > greg k-h