From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933359AbcHYI1y (ORCPT ); Thu, 25 Aug 2016 04:27:54 -0400 Received: from verein.lst.de ([213.95.11.211]:42851 "EHLO newverein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758114AbcHYI13 (ORCPT ); Thu, 25 Aug 2016 04:27:29 -0400 Date: Thu, 25 Aug 2016 10:27:27 +0200 From: Christoph Hellwig To: Andy Lutomirski Cc: Christoph Hellwig , Andy Lutomirski , Keith Busch , Jens Axboe , linux-nvme@lists.infradead.org, "linux-kernel@vger.kernel.org" , linux-pm@vger.kernel.org Subject: Re: [PATCH] nvme: Fix nvme_get/set_features() with a NULL result pointer Message-ID: <20160825082727.GA20497@lst.de> References: <20160825073810.GA18622@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.17 (2007-11-01) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Aug 25, 2016 at 12:54:00AM -0700, Andy Lutomirski wrote: > I am, and I have a patch to do the former (and to add a length > argument). But that's not -stable material. Great! > While I have your attention: the new use is to enable APST (power > saving). In theory, it seems like I should integrate with dev_pm_qos > so that the standard interface for setting a latency limit will work, > but, on brief inspection, there are literally no drivers in the entire > tree that do this. Am I missing something? My current draft patch > just adds a sysfs attribute. (It saves a *lot* of power on my laptop, > so supporting APST is worth doing.) I'm proably the wrong person to talk about PM interfaces, but not having it used anywhere is a red herring and needs a ping to the PM folks why we even have that code in the tree. Integrating it with the PM core would be preferable, but until that happens we should just enable it by default in the nvme driver and have a local tweak (sysfs file, or maybe even just a run-time writeable module parameter) to turn it off.