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

java.lang.IllegalStateException: failed to reset device #3

Open
surajnr-19 opened this issue Sep 12, 2019 · 4 comments
Open

java.lang.IllegalStateException: failed to reset device #3

surajnr-19 opened this issue Sep 12, 2019 · 4 comments

Comments

@surajnr-19
Copy link

Can you please tell me what should be the PCI forwarding address ?
0000:03:00.1 does not seem to work.

bash pktfwd/build/install/pktfwd/bin/pktfwd --batch-size 5 0000:03:00.0 0000:03:00.1
333 | main          | TRACE | UnsafeMemoryManager  | Making declared field inaccessible.
343 | main          | TRACE | UnsafeMemoryManager  | Making declared field inaccessible.
344 | main          | TRACE | tUnsafeMemoryManager | Created a smart Unsafe-based memory manager.
Exception in thread "Ixy Forwarder" java.lang.IllegalStateException: failed to reset device
        at de.tum.in.net.ixy.ixgbe.IxgbeDevice.resetLink(IxgbeDevice.java:179)
        at de.tum.in.net.ixy.ixgbe.IxgbeDevice.resetAndInitAll(IxgbeDevice.java:134)
        at de.tum.in.net.ixy.ixgbe.IxgbeDevice.configure(IxgbeDevice.java:455)
        at de.tum.in.net.ixy.forwarder.Main.forward(Main.java:143)
        at de.tum.in.net.ixy.forwarder.Main.main(Main.java:110)
@ackxolotl
Copy link
Member

Did you unbind the device?

sudo sh -c 'echo 0000:03:00.0 > /sys/bus/pci/devices/0000:03:00.0/driver/unbind; echo 0000:03:00.1 > /sys/bus/pci/devices/0000:03:00.1/driver/unbind'

@emmericp
Copy link
Member

Driver unbind should be done automatically in the Java driver.

Do you have an IOMMU enabled? You seem to be on an AMD system, not sure how the IOMMU works there; but I know there are some configurations where it's enabled by default.

We've also never tested anything but Debian, could be broken on other systems

@ackxolotl
Copy link
Member

ackxolotl commented Sep 12, 2019

Driver unbind should be done automatically in the Java driver.

Oh, cool. Didn't know that.

Do you have an IOMMU enabled? You seem to be on an AMD system, not sure how the IOMMU works there; but I know there are some configurations where it's enabled by default.

AMD IOMMU works just the same way as the Intel IOMMU (at least on my system). Only difference is the boot parameter which is amd_iommu instead of intel_iommu. But even if the IOMMU is enabled at boot time, the driver should be working, shouldn't it?

@emmericp
Copy link
Member

No, it doesn't work if the iommu is enabled

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