#ifndef CPUSCHED_H #define CPUSCHED_H extern void init_cpusched(unsigned int cpus); extern unsigned int socket_to_cpu(int fd); extern unsigned int register_socket(int fd); extern void unregister_socket(int fd); extern void destroy_cpusched(void); #endif /* CPUSCHED_H */ cgi/linux/net-next.git/atom/?h=master' type='application/atom+xml'/>
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Szyprowski <m.szyprowski@samsung.com>2016-05-24 15:31:27 +0200
committerSylwester Nawrocki <s.nawrocki@samsung.com>2016-06-03 11:13:45 +0200
commit04f776734c4e03e33111d3d5a994b589870df623 (patch)
tree53b137189527d0f5556b769b964b4057d8e140d2
parentc79667dd93b084fe412bcfe7fbf0ba43f7dec520 (diff)
media: s5p-mfc: add iommu support
This patch adds support for IOMMU to s5p-mfc device driver. MFC firmware is limited and it cannot use the default configuration. If IOMMU is available, the patch disables the default DMA address space configuration and creates a new address space of size limited to 256M and base address set to 0x20000000. For now the same address space is shared by both 'left' and 'right' memory channels, because the DMA/IOMMU frameworks do not support configuring them separately. This is not optimal, but besides limiting total address space available has no other drawbacks (MFC firmware supports 256M of address space per each channel). Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com> Reviewed-by: Javier Martinez Canillas <javier@osg.samsung.com> Tested-by: Javier Martinez Canillas <javier@osg.samsung.com> Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>