From: Kumar Gala <hidden> Date: 2011-10-12 14:43:48
For some devices the default behavior of pgprot_noncached is not
the correct flags for the address space. Provide a means for the
kernel side UIO driver to override the flags without having to
implement its own full mmap callback.
Signed-off-by: Kumar Gala <redacted>
---
drivers/uio/uio.c | 6 +++++-
include/linux/uio_driver.h | 2 ++
2 files changed, 7 insertions(+), 1 deletions(-)
From: Hans J. Koch <hidden> Date: 2011-10-12 15:35:55
On Wed, Oct 12, 2011 at 09:43:36AM -0500, Kumar Gala wrote:
For some devices the default behavior of pgprot_noncached is not
the correct flags for the address space.
For what devices? Can you give a real world usecase where this is needed?
Thanks,
Hans
quoted hunk
Provide a means for the
kernel side UIO driver to override the flags without having to
implement its own full mmap callback.
Signed-off-by: Kumar Gala <redacted>
---
drivers/uio/uio.c | 6 +++++-
include/linux/uio_driver.h | 2 ++
2 files changed, 7 insertions(+), 1 deletions(-)
From: Kumar Gala <hidden> Date: 2011-10-12 16:08:31
On Oct 12, 2011, at 10:35 AM, Hans J. Koch wrote:
On Wed, Oct 12, 2011 at 09:43:36AM -0500, Kumar Gala wrote:
quoted
For some devices the default behavior of pgprot_noncached is not
the correct flags for the address space.
=20
For what devices? Can you give a real world usecase where this is =
needed?
=20
Thanks,
Hans
In the Freescale Networking devices we have a coherent memory interface =
to our HW queuing system. In that case we want to change the pgprot() =
to be cache-able instead of non-cached.
- k
=20
quoted
Provide a means for the
kernel side UIO driver to override the flags without having to
implement its own full mmap callback.
=20
Signed-off-by: Kumar Gala <redacted>
---
drivers/uio/uio.c | 6 +++++-
include/linux/uio_driver.h | 2 ++
2 files changed, 7 insertions(+), 1 deletions(-)
=20
From: Hans J. Koch <hidden> Date: 2011-10-12 16:21:13
On Wed, Oct 12, 2011 at 11:08:20AM -0500, Kumar Gala wrote:
On Oct 12, 2011, at 10:35 AM, Hans J. Koch wrote:
quoted
On Wed, Oct 12, 2011 at 09:43:36AM -0500, Kumar Gala wrote:
quoted
For some devices the default behavior of pgprot_noncached is not
the correct flags for the address space.
For what devices? Can you give a real world usecase where this is needed?
Thanks,
Hans
In the Freescale Networking devices we have a coherent memory interface to our HW queuing system. In that case we want to change the pgprot() to be cache-able instead of non-cached.
Could you please post the kernel part of that driver?
Thanks,
Hans