Re: [PATCH] sparc64 - strict devmem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Bob Picco <bpicco@xxxxxxxxxx>
Date: Mon,  3 Mar 2014 12:00:35 -0500

> From: bob picco <bpicco@xxxxxxxxxx>
> 
> This patch adds support to enable STRICT_DEVMEM for sparc64. By selecting the
> new config option you enable this feature.
> 
> CC: Sam Ravnborg <sam@xxxxxxxxxxxx>
> Signed-off-by: Bob Picco <bob.picco@xxxxxxxxxx>

Ok, I looked more deeply into this and I'm going to rescind my request
to use kern_addr_valid().

This devmem_is_allowed() seems to also want to allow non-RAM MMIO
accesses too.

So using the iomem resource is probably the way to go.

Two things:

1) We have to make sure caching will be disabled and the side-effect
   bit will be set in accesses to non-RAM pages.

2) Our implementation of devmem_is_allowed() should be aligned as
   much as possible with other implementations.  Perhaps powerpc
   is the best example to use.

Thanks.


--
To unsubscribe from this list: send the line "unsubscribe sparclinux" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Kernel Development]     [DCCP]     [Linux ARM Development]     [Linux]     [Photo]     [Yosemite Help]     [Linux ARM Kernel]     [Linux SCSI]     [Linux x86_64]     [Linux Hams]

  Powered by Linux