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

map_pci_memory: workaround for kernel race condition #1476

Merged
merged 3 commits into from
Jul 4, 2022

Conversation

eugeneia
Copy link
Member

map_pci_memory: wait for kernel driver to release the device

Starting with 4.5, the kernel returns EINVAL for mmap() if compiled
with CONFIG_IO_STRICT_DEVMEM=y. Unbinding the device is an
asynchronous operation. map_pci_memory() waits for EINVAL to disappear
or gives up after a timeout of 5 seconds.

alexandergall and others added 3 commits April 19, 2022 12:34
Starting with 4.5, the kernel returns EINVAL for mmap() if compiled
with CONFIG_IO_STRICT_DEVMEM=y. Unbinding the device is an
asynchronous operation. map_pci_memory() waits for EINVAL to disappear
or gives up after a timeout of 5 seconds.

# Conflicts:
#	src/lib/hardware/pci.lua
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants