Team,
I am attaching a patch provided by a customer for cmemk.c.
Could it be included in a future version of the Linux utils?
Here are more details from customer:
We are using CMEM in our development for DM816x and other
DaVinci processors and I have created a patch for CMEM that leverages the
follow_pfn() function introduced in Linux kernel 2.6.31 to more reliably get the
physical address from a kernel allocated buffer which is mapped into user
space.
This allows to use get_phys() to get the physical address of
an mmap'ed video output buffer (video4linux driver) of the DM816x running on PSP
04.00.01.13.
The patch is very simple, backwards compatible with earlier kernels, and does not modify the API nor ABI of the cmemk driver.
Please find the patch attached (against CMEM of Linux Utils 3.21.00.04). I think it should be included in the next Linux Utils release as it makes get_phys() much more reliable and useful.
Best regards,
Anthony