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

Some problems about using C API #14

Open
wuqiulin1995 opened this issue Feb 2, 2018 · 3 comments
Open

Some problems about using C API #14

wuqiulin1995 opened this issue Feb 2, 2018 · 3 comments

Comments

@wuqiulin1995
Copy link

Hi

Thanks for your previous help , but I met some other problems now.

When I write to the { channel 0, LUN 0, plane 0&1, block 0, page 0, sec 0&1&2&3 } of SSD using CLI command nvm_addr write , error came out:

nvm_addr write : {pMODE : DUAL}
...
nvm_addr write : Input/output error
nvm_ret:{result : 0x2, status : 0}
write: Input/output error

above are shown on the guest ubuntu terminal of QEMU.

and in the host ubuntu terminal it shows :

_set_written : invalid block state (ac)
lnvm_rw : set written status failed
ppa: ch(0) lun(0) pl(0) blk(0) pg(0) sec(0)

My SSD has 1 channel, 8 LUN , 2 planes per LUN and 31 blocks per plane, but if the SSD is 1 channel, 8 LUN , 1 planes per LUN and 63 blocks per plane, the error didn't come out, I can write to and read from the SSD correctly.

What's the problem about?

@MatiasBjorling
Copy link
Contributor

The bad block table looks wrong. Have you tracked where it happens in the source?

@safl
Copy link
Collaborator

safl commented Jul 27, 2018

@wuqiulin1995 are you still seing this issue?

@wuqiulin1995
Copy link
Author

@safl I didn't study recently.

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