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

[Bug]: Incompatibility of enav2-vfio-patch on Ubuntu 24.04 #333

Open
3 tasks done
Binary-Vanguard-12138 opened this issue Dec 22, 2024 · 1 comment
Open
3 tasks done
Labels
bug Report errors or unexpected behavior DPDK driver triage Determine the priority and severity

Comments

@Binary-Vanguard-12138
Copy link

Preliminary Actions

Driver Type

DPDK PMD for Elastic Network Adapter (ENA)

Driver Tag/Commit

ena_linux_2.13.1

Custom Code

No

OS Platform and Distribution

Ubuntu 24.04.1 LTS
20-Ubuntu SMP Thu Oct 10 18:14:42 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux

Bug description

When I tried to run amzn-drivers/userspace/dpdk/enav2-vfio-patch/get-vfio-with-wc.sh on Ubuntu24.04, I got the following error.

 linux-aws-6.8.0/virt/kvm/kvm_main.c
W: Download is performed unsandboxed as root as file 'linux-aws_6.8.0-1021.23.dsc' couldn't be accessed by user '_apt'. - pkgAcquire::Run (13: Permission denied)
Done

[2] Patch and build the vfio driver
Apply patch for the write combining to the vfio-pci
Using patch for kernel version 5.15
patching file drivers/vfio/pci/vfio_pci_core.c
Hunk #1 succeeded at 1745 (offset 252 lines).
Hunk #2 FAILED at 1506.
1 out of 2 hunks FAILED -- saving rejects to file drivers/vfio/pci/vfio_pci_core.c.rej
ERROR: Cannot apply patch: /home/ubuntu/dpdk/amzn-drivers/userspace/dpdk/enav2-vfio-patch/patches/linux-5.15-vfio-wc.patch!

Reproduction steps

1. Install a fresh Ubuntu 24.04.1 OS on AWS `c6in.16xlarge` instance.
2. Download and run the script.

  git clone https://github.com/amzn/amzn-drivers
  cd amzn-drivers/userspace/dpdk/enav2-vfio-patch
  sudo ./get-vfio-with-wc.sh
  1. Got the error
 linux-aws-6.8.0/virt/kvm/guest_memfd.c
 linux-aws-6.8.0/virt/kvm/kvm_main.c
W: Download is performed unsandboxed as root as file 'linux-aws_6.8.0-1021.23.dsc' couldn't be accessed by user '_apt'. - pkgAcquire::Run (13: Permission denied)
Done

[2] Patch and build the vfio driver
Apply patch for the write combining to the vfio-pci
Using patch for kernel version 5.15
patching file drivers/vfio/pci/vfio_pci_core.c
Hunk #1 succeeded at 1745 (offset 252 lines).
Hunk #2 FAILED at 1506.
1 out of 2 hunks FAILED -- saving rejects to file drivers/vfio/pci/vfio_pci_core.c.rej
ERROR: Cannot apply patch: /home/ubuntu/dpdk/amzn-drivers/userspace/dpdk/enav2-vfio-patch/patches/linux-5.15-vfio-wc.patch!


### Expected Behavior

The patch works without error.

### Actual Behavior

Patch fails with an error.

### Additional Data

_No response_

### Relevant log output

_No response_

### Contact Details

_No response_
@Binary-Vanguard-12138 Binary-Vanguard-12138 added bug Report errors or unexpected behavior triage Determine the priority and severity labels Dec 22, 2024
@shaibran
Copy link
Contributor

Thanks for informing us, we will look into this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Report errors or unexpected behavior DPDK driver triage Determine the priority and severity
Projects
None yet
Development

No branches or pull requests

2 participants