[PATCH] nvme: Add support for NVMe 1.3 Timestamp Feature

Jon Derrick jonathan.derrick at intel.com
Tue Jul 18 14:12:55 PDT 2017


On 07/13/2017 01:01 AM, Sagi Grimberg wrote:
> 
>> diff --git a/drivers/nvme/host/pci.c b/drivers/nvme/host/pci.c
>> index 5d5aa7f..82ce677 100644
>> --- a/drivers/nvme/host/pci.c
>> +++ b/drivers/nvme/host/pci.c
>> @@ -2156,6 +2156,10 @@ static void nvme_reset_work(struct work_struct *work)
>>   	if (result)
>>   		goto out;
>>   
>> +	if (dev->ctrl.vs >= NVME_VS(1, 3, 0) &&
>> +	    dev->ctrl.oncs & NVME_CTRL_ONCS_TIMESTAMP)
>> +		nvme_set_timestamp(&dev->ctrl);
>> +
> 
> Why after setting up the I/O queues?
> 
No reason in particular; I just wanted it in the reset path.
For v2 I've moved it to the identify path.



More information about the Linux-nvme mailing list