Re: [meta-freescale] Mismatch between linux-imx-headers version and toradex kernel in current git master
Otavio Salvador <[email protected]> Wed, 30 Mar 2022 09:02:05 -0300
| Newsgroups | org.yoctoproject.lists.meta-freescale |
|---|---|
| Message-ID | <CAP9ODKqY2rHmREkLczr4jyFs00O8hAp2_oyPoZuZHQ92=KDqLw@mail.gmail.com> |
Em ter., 29 de mar. de 2022 às 15:03, Carlos Rafael Giani via lists.yoctoproject.org <[email protected]> escreveu: > When building code with support for DMA-BUF heaps ( > https://github.com/torvalds/linux/blob/master/include/uapi/linux/dma-heap.h > ), I noticed that my code was detecting the dma-heap.h userspace API header > in the Yocto SDK, while on the running system, no dma-heap was found. > > It turns out that the linux-imx-headers (which contain the dma-heap.h > header) are from linux-imx 5.10, while the Toradex kernel is at 5.4. > > This makes me wonder how to address this. I can think of two options: > > 1. Recipes of software that supports DMA-BUF heaps needs to have a > "dma-heap" packageconfig that is explicitly disabled on systems with > pre-5.6 kernels (5.6 is when DMA-BUF heaps were added as part of the > userspace API). > > 2. Somehow check for the actual kernel version in the recipe and turn off > DMA-BUF heaps if the version is <5.6. > > Furthermore, I am concerned that such version mismatches between these two > recipes could lead to other subtle errors. > > Is a linux-toradex upgrade to 5.10 planned? Or is there a smarter way to > address such version discrepancies? > Carlos, please open an issue about this in meta-freescale so we can do the discussion there. -- Otavio Salvador O.S. Systems http://www.ossystems.com.br http://code.ossystems.com.br Mobile: +55 (53) 9 9981-7854 Mobile: +1 (347) 903-9750