Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prevent use of bounce buffer in targets with 4GB of memory
This fixes the following error while mapping the DMA buffer: panda a0000000.panda_pcap: swiotlb buffer is full (sz: 2097152 bytes), total 32768 (slots), used 0 (slots) Linux has a memory zone for the first 2GB and will allocate from it when passing the flag GFP_DMA32 to the allocating function. There is still the question of why linux assumes a bounce buffer is needed when the buffer is allocated in the highest 2GB.
- Loading branch information