Group 1 Admin Command Set的第8项是Get Feature Select测试。
测试步骤
1、针对以下表格里的所有Feature:
- Host发送Get Feature command,将Select Field设置为000b;
- Host发送Get Feature command,将Select Field设置为001b;
- Host发送Set Feature command,为每个FID设置一个新值,然后发送Get Feature command,将Select Field设置为010b;
- Host发送Get Feature command,将Select Field设置为011b;
期望结果:
- 针对步骤a,SSD返回该Feature的“Current operating attribute value”;
- 针对步骤b,SSD返回该Feature的“Default attribute value“;
- 针对步骤c,SSD返回该Feature的“last saved attribute value“,该值应该与1.c里set feature command设置的值相同;
- 针对步骤c,SSD返回该Feature支持的capabilites (包含在CQ的Dword 0中);
Group 1 Admin Command Set的第9项是Feature Saved Across Reset测试。
NVMe规定SSD的每个Feature可以支持3种setting:Default,Saveable,Current。
Saveable值是某个Feature在上电或Reset之后具备的值,如果该Feature不支持Saveable值,则使用Default值。Current值则是由Host通过Set Feature command设置,当前正在使用的值。
测试步骤
- 检查ONCS字段的bit4,如果为1,继续测试,否则本测试无效;
- 针对所有Feature:
- Host发送Get Feature command,设置Select Field=000b,获取该Feature的 Current Operation Value;
- Host发送Set Feature command, 给每个FID设置一个新值;
- Host发送Get Feature command,设置Select Field=000b,获取该Feature的 Current Operation Value;
- 执行NVMe Subsystem Reset;
- Host发送Get Feature command,设置Select Field=000b,获取该Feature的 Current Operation Value;
期望结果:
针对每一个测试的Feature,检查步骤2.e获取的值与2.b设置的相同;