Re: [comedi] On later kernels 'comedi_config /dev/comedi0 ni_pcimio' does not work
"'Anders Blomdell' via Comedi: Linux Control and Measurement Device Interface" <[email protected]> Fri, 25 Aug 2023 21:01:09 +0200
| Newsgroups | gmane.linux.comedi |
|---|---|
| Message-ID | <[email protected]> |
On 2023-08-25 17:10, 'Anders Blomdell' via Comedi: Linux Control and Measurement Device Interface wrote: > With comedi from https://github.com/Linux-Comedi/comedi (git tag 9792ce4) 'comedi_config /dev/comedi0 ni_pcimio' > later kernels (6.2.9, 6.3.7 and 6.4.6) fails with 'Buffer allocation failed' in dmesg but earlier kernels (6.0.15) works. > > The problem is that the call to 'dma_alloc_coherent' (called from 'comedi_buf_alloc' fails to allocate > the needed buffer. > > Looking at the source in the kernel tree shows very different code in 'comedi_buf_alloc', than in the standalone comedi. And the driver built with the kernel source works (6.4.11). > > Should I take this as a discouragement to use the out of tree version of comedi, and instead rebuild the kernel with > comedi support? > > Best regards > > /Anders -- Anders Blomdell Email: [email protected] Department of Automatic Control Lund University Phone: +46 46 222 8793 P.O. Box 118 SE-221 00 Lund, Sweden -- You received this message because you are subscribed to the Google Groups "Comedi: Linux Control and Measurement Device Interface" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/comedi_list/6e57aec1-f0a3-e181-5580-8ca9a7c1fea8%40control.lth.se.