All of lore.kernel.org
 help / color / mirror / Atom feed
* NVME Power State Modification
@ 2016-07-07 23:55 Haleigh Novak
  2016-07-08 16:06 ` Keith Busch
  0 siblings, 1 reply; 3+ messages in thread
From: Haleigh Novak @ 2016-07-07 23:55 UTC (permalink / raw)



?Hello All,?

I am currently working with the nvme power states - I need to keep everything in the nvme module,?and I have a couple of questions:?

(1) Is it actually?possible to modify the power states of the nvme?
(2) If it is I would have to do that through the nvme_id_ctrl object because it has a list of the nvme_id_power_state objects which are all of the available (used and unused) power states for the nvme, correct?

Thank you.
HN?


   

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

* NVME Power State Modification
  2016-07-07 23:55 NVME Power State Modification Haleigh Novak
@ 2016-07-08 16:06 ` Keith Busch
  2016-07-08 16:43   ` Haleigh Novak
  0 siblings, 1 reply; 3+ messages in thread
From: Keith Busch @ 2016-07-08 16:06 UTC (permalink / raw)


On Thu, Jul 07, 2016@11:55:17PM +0000, Haleigh Novak wrote:
> I am currently working with the nvme power states - I need to keep everything in the nvme module,?and I have a couple of questions:?

What do you want the module to do with power states, and when do you
want it to change the states?
 
> (1) Is it actually?possible to modify the power states of the nvme?

If you are just trying to test how the device responds, you can issue
the set feature command from user space.

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

* NVME Power State Modification
  2016-07-08 16:06 ` Keith Busch
@ 2016-07-08 16:43   ` Haleigh Novak
  0 siblings, 0 replies; 3+ messages in thread
From: Haleigh Novak @ 2016-07-08 16:43 UTC (permalink / raw)


>> I am currently working with the nvme power states - I need to keep everything in the nvme module, and I have a couple of questions:

>What do you want the module to do with power states, and when do you
>want it to change the states?

I am trying (for work) to put an nvme into an extreme low power state when idling and then be able to wake it up without issue. Currently it will not wake up fully/correctly [the /dev/nvme* files disappear when it goes into a low power state and I cant get them back unless I restart the machine], my attempt to explore this issue (as I am in the beginning stages of attempting to solve) was to first figure out how to change the power state from an extreme high power state to an extreme low power one - so it would be easier to see differences, that way I could find out if there was a floor power level that supported maintaining the /dev/nvme* files. Though because my nvme device only supports power states 0-4 (with max power of: 9W, 4.6W, 3.8W, 0.07W, and 0.005W) supported I felt I might need to modify one of the lower power states max/active/idle power values to retrieve a more exact value for the floor.

(I need to keep it within the module because this is an ongoing multi-layer project I was assigned and this power state issue is my next task.)

>> (1) Is it actually possible to modify the power states of the nvme?

>If you are just trying to test how the device responds, you can issue
>the set feature command from user space.

I have tried the set feature command through the nvme-cli interface as well as trying to modify the nvme_id_power_state object directly; in my print out of the power states the values change for the latter, however for both according to the nvme-cli "nvme id-ctrl /dev/nvme0" the change is not made permanently. I think the issue might be that I am not actually modifying the original nvme_id_ctrl->psd[i] object, that instead I am just modifying a copy thus the difference, but as I am new to this I figured it wouldst hurt to ask because thus far I haven't found in the spec sheet for the nvme where it specifically says I can/cant permanently modify the power state power values.

________________________________________
From: Keith Busch <keith.busch@intel.com>
Sent: Friday, July 8, 2016 9:06 AM
To: Haleigh Novak
Cc: linux-nvme at lists.infradead.org
Subject: Re: NVME Power State Modification

On Thu, Jul 07, 2016@11:55:17PM +0000, Haleigh Novak wrote:
> I am currently working with the nvme power states - I need to keep everything in the nvme module, and I have a couple of questions:

What do you want the module to do with power states, and when do you
want it to change the states?

> (1) Is it actually possible to modify the power states of the nvme?

If you are just trying to test how the device responds, you can issue
the set feature command from user space.

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

end of thread, other threads:[~2016-07-08 16:43 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-07-07 23:55 NVME Power State Modification Haleigh Novak
2016-07-08 16:06 ` Keith Busch
2016-07-08 16:43   ` Haleigh Novak

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.