mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* Should drivers like nvme let userspace control their latency via dev_pm_qos?
@ 2016-09-16 15:26 Andy Lutomirski
  2016-09-16 15:54 ` One Thousand Gnomes
  2016-09-23  1:26 ` Rafael J. Wysocki
  0 siblings, 2 replies; 5+ messages in thread
From: Andy Lutomirski @ 2016-09-16 15:26 UTC (permalink / raw)
  To: linux-pm, Rafael J. Wysocki
  Cc: Keith Busch, Jens Axboe, linux-nvme, linux-kernel, J Freyensee,
	Christoph Hellwig

I'm adding power management to the nvme driver, and I'm exposing
exactly one knob via sysfs: the maximum permissible latency.  This
isn't a power domain issue, and it has no dependencies -- it's
literally just the maximum latency that the driver may impose on I/O
for power saving purposes.

ISTM userspace should be able to specify its own latency tolerance in
a uniform way, and dev_pm_qos seems like the natural interface for
this, except that I cannot find a single instance in the tree of *any*
driver using it via the notifier mechanism.  I can find two drivers
that do it using dev_pm_qos_expose_latency_tolerance(), and both are
LPSS drivers?

So: should I be exposing .set_latency_tolerance() or should I just use
a custom sysfs attribute?  Or both?

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2016-09-23  1:41 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-09-16 15:26 Should drivers like nvme let userspace control their latency via dev_pm_qos? Andy Lutomirski
2016-09-16 15:54 ` One Thousand Gnomes
2016-09-16 16:20   ` Andy Lutomirski
2016-09-23  1:26 ` Rafael J. Wysocki
2016-09-23  1:40   ` Andy Lutomirski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®