enfiskutensykkel / ssd-gpu-dma

Build userspace NVMe drivers and storage applications with CUDA support
BSD 2-Clause "Simplified" License
342 stars 47 forks source link

Fix unmap_memory bug #31

Closed KevinWu2017 closed 2 years ago

KevinWu2017 commented 2 years ago

When running ./nvm-latency-bench or other tests, the bug appears as below: [unmap_memory] Page unmapping kernel request failed: Invalid argument

This is a bug mentioned in #22

The bug appears when map A and B is created by host but when trying to unmap B mapA->vaddr == (vaddr & GPU_PAGE_MASK) can also be true

enfiskutensykkel commented 2 years ago

Thank you for this contribution :)