[utwg] FW: FWTS presentation for today's UTWG meeting

Alex Hung alex.hung at canonical.com
Fri Mar 28 14:31:19 UTC 2014


Hi Uma,

I am not an expert on NVMe, but I did some search on Linux source code
and found below information for your references.

Hope this provides more useful information.

== drivers/block/nvme-core.c ==

static int nvme_shutdown_ctrl(struct nvme_dev *dev)
{
        unsigned long timeout;
        u32 cc;

        cc = (readl(&dev->bar->cc) & ~NVME_CC_SHN_MASK) | NVME_CC_SHN_NORMAL;
        writel(cc, &dev->bar->cc);

        timeout = 2 * HZ + jiffies;
        while ((readl(&dev->bar->csts) & NVME_CSTS_SHST_MASK) !=
                                                        NVME_CSTS_SHST_CMPLT) {
                msleep(100);
                if (fatal_signal_pending(current))
                        return -EINTR;
                if (time_after(jiffies, timeout)) {
                        dev_err(&dev->pci_dev->dev,
                                "Device shutdown incomplete; abort shutdown\n");
                        return -ENODEV;
                }
        }

        return 0;
}



On Thu, Mar 27, 2014 at 1:06 AM, Uma Parepalli <uma.parepalli at skhms.com> wrote:
> I am interested in the devices managed by the open source UEFI NVMe Driver
> and Windows 8.1 built-in / in box NVMe Driver.
> Such timing information from OS vendors will help the IHV community in
> fine tuning the firmware and drivers for faster execution
> as expected by the OS vendors.
> Thank you,
> Uma
>
> -----Original Message-----
> From: Alex Hung [mailto:alex.hung at canonical.com]
> Sent: Tuesday, March 25, 2014 7:55 PM
> To: Uma Parepalli
> Cc: Wei, Dong (HP Servers CT Office); Steve Magoun; Mangefeste, Tony; Lin,
> Wilson (CSI); Cook, Harold E; Rothman, Michael A; fwts-devel
> Subject: Re: [utwg] FW: FWTS presentation for today's UTWG meeting
>
> Hi Uma,
>
> I do not think there is a single answer for all devices, as it may really
> depends on each device driver. Do you have a specific device in mind?
>
> FWTS has an mail list (fwts-devel at lists.ubuntu.com) which I also included
> in this mail loop. Other maintainers may provide better answer than the
> above.
>
> Cheers,
> Alex Hung
>
> On Wed, Mar 26, 2014 at 5:30 AM, Uma Parepalli <uma.parepalli at skhms.com>
> wrote:
>> Limiting the audience to few:
>>
>> One quick question regarding the firmware test suite.
>> Is there any way to know using this test kit what are the BIOS and OS
>> timeouts for the IHV Firmware to respond by?
>> For example when the system is coming up how long does the OS waits
>> before putting the controller in low power mode or disabling the
>> driver for that If the controller does not respond?
>> Also when the OS issues a shutdown how long does the OS waits for the
>> IHV controllers to shut down before powering off the system
>> irrespective of whether the IHV storage controller (NVMe SSD)
>> completed it's shutdown or not?
>> Thank you,
>> Uma
>>
>> -
>>
>> Uma M Parepalli
>> SK Hynix Memory Solutions Inc
>> 3103 North 1st Street, San Jose, CA 95134
>> Cell: 408 805 9260
>> Work: 408 514 3731
>> uma.parepalli at skhms.com / umaparepalli at gmail.com
>>
>>
>> -----Original Message-----
>> From: utwg at uefi.org [mailto:utwg at uefi.org] On Behalf Of Wei, Dong (HP
>> Servers CT Office)
>> Sent: Tuesday, March 25, 2014 2:08 PM
>> To: utwg at uefi.org
>> Subject: [utwg] FW: FWTS presentation for today's UTWG meeting
>>
>> FYI
>>
>> - DW
>> -
>> -----Original Message-----
>> From: Steve Magoun [mailto:steve.magoun at canonical.com]
>> Sent: Tuesday, March 25, 2014 2:04 PM
>> To: Wei, Dong (HP Servers CT Office)
>> Subject: FWTS presentation for today's UTWG meeting
>>
>> Hello Dong,
>>
>> Please find attached a presentation about the Firmware Test Suite
>> (FWTS) that I will use during today's UEFI Test Working Group meeting.
>> You may distribute this to other members of the working group.
>>
>>
>> Thanks,
>>
>> Steve Magoun
>> Director of Commercial Engineering
>> Canonical
>
>
>
> --
> Cheers,
> Alex Hung



-- 
Cheers,
Alex Hung
-------------- next part --------------
A non-text attachment was scrubbed...
Name: nvme-core.c
Type: text/x-csrc
Size: 66126 bytes
Desc: not available
URL: <https://lists.ubuntu.com/archives/fwts-devel/attachments/20140328/f686fcaf/attachment-0001.c>


More information about the fwts-devel mailing list