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

Why do I unbind the dsa0 cause the machine crash and reboot #7

Closed
chen982 opened this issue Aug 13, 2021 · 10 comments
Closed

Why do I unbind the dsa0 cause the machine crash and reboot #7

chen982 opened this issue Aug 13, 2021 · 10 comments

Comments

@chen982
Copy link

chen982 commented Aug 13, 2021

The command as follows :
echo 0000:6a:01.0 > /sys/bus/pci/devices/0000:6a:01.0/driver/unbind
(The 0000:6a:01.0 is the dsa0)

@davejiang
Copy link
Contributor

Which kernel version are you using? You need this commit that is in 5.14-rc6
Fixes: 7eb25da161be ("dmaengine: idxd: fix sequence for pci driver remove() and shutdown()")

@davejiang
Copy link
Contributor

davejiang commented Sep 7, 2021 via email

@chen982
Copy link
Author

chen982 commented Sep 7, 2021

yes, using the latest accel-config, the configs in test 2g2q_user is not suitable . when loading this config, as using the shared wq dsa0.0 , it will cause write mode fail , load config error , but as using the dedicated wq dsa0.1 , it will be ok .

@davejiang
Copy link
Contributor

davejiang commented Sep 7, 2021 via email

@chen982
Copy link
Author

chen982 commented Sep 8, 2021

using delicate wq 0.1 in qemu, operation command timeout , why does this happen? the same script in host can run normally , but when pass the dsa0 to qemu, it doesn't work (dsa0 and dsa0/wq0.1 have been enabled using accfg).
image

@davejiang
Copy link
Contributor

dsa_test does not support operation outside of SVM. You need vSVM on guest, which is not upstream. To do operation in current guest mode, you'll need to program gPA or gIOVA to the descriptor after pinning the memory for the source, destination, and the completion descriptor.

@chen982
Copy link
Author

chen982 commented Sep 9, 2021

So where should I do this ? In kernel ? or dma engine?

@davejiang
Copy link
Contributor

This is all userspace.

@chen982
Copy link
Author

chen982 commented Sep 16, 2021

How to program gPA or gIOVA to the descriptor in userspace for dsa_test??

@davejiang
Copy link
Contributor

davejiang commented Sep 16, 2021 via email

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