Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to specify test revision to NVME 2.0 ? #44

Open
JasonChiuCC opened this issue Oct 17, 2018 · 2 comments
Open

How to specify test revision to NVME 2.0 ? #44

JasonChiuCC opened this issue Oct 17, 2018 · 2 comments

Comments

@JasonChiuCC
Copy link

Hi all,
My device is support NVME 1.2.0

I used command below:
sudo ./tnvme --test=1

And test fail because check VS register fail
tnvme:test.cpp:215: Reg val(0x0000000000010200) expect val(0x0000000000010000)
tnvme-err:frmwkEx.cpp:60: Exception: allCtrlRegs_r10b.cpp:#201: FAILURE: ctrlr version register (VS) RO bit #9 has incorrect value

It seem the program test revision is NVME 1.0.0
So how do i change or specify test revision to NVME 2.0 ?

Thanks

@mangmang-zz
Copy link

including other questions, why no one answered.

@JeffHensel
Copy link
Contributor

JeffHensel commented Feb 13, 2019

I think what your looking for is something like:
-v="1.2"
Note: That syntax may be wrong for the flag but there is a flag
There is a spec revisions enum in tnvme.h

    SPECREV_10b,             // http://www.nvmexpress.org/ spec. rev. 1.0b
    SPECREV_11,              // http://www.nvmexpress.org/ spec. rev. 1.1
    SPECREV_12,              // http://www.nvmexpress.org/ spec. rev. 1.2
	SPECREV_121,             // http://www.nvmexpress.org/ spec. rev. 1.2.1
	SPECREV_13,              // http://www.nvmexpress.org/ spec. rev. 1.3
    SPECREVTYPE_FENCE        // always must be last element
} SpecRev;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants