Re: [PATCH 2/3] irqchip: irq-mips-gic: Provide function to map GIC user section

2015-10-05 Thread Markos Chandras
Hi, On 09/28/2015 11:55 AM, Marc Zyngier wrote: > On 28/09/15 11:11, Markos Chandras wrote: >> From: Alex Smith >> >> The GIC provides a "user-mode visible" section containing a mirror of >> the counter registers which can be mapped into user memory. This will >> be used by the VDSO time function

Re: [PATCH 2/3] irqchip: irq-mips-gic: Provide function to map GIC user section

2015-09-28 Thread Marc Zyngier
On 28/09/15 15:16, Qais Yousef wrote: > On 09/28/2015 11:55 AM, Marc Zyngier wrote: >> On 28/09/15 11:11, Markos Chandras wrote: >> >>> + >>> + pfn = (gic_base_addr + USM_VISIBLE_SECTION_OFS) >> PAGE_SHIFT; >>> + return io_remap_pfn_range(vma, base, pfn, size, >>> +

Re: [PATCH 2/3] irqchip: irq-mips-gic: Provide function to map GIC user section

2015-09-28 Thread Qais Yousef
On 09/28/2015 11:55 AM, Marc Zyngier wrote: On 28/09/15 11:11, Markos Chandras wrote: + + pfn = (gic_base_addr + USM_VISIBLE_SECTION_OFS) >> PAGE_SHIFT; + return io_remap_pfn_range(vma, base, pfn, size, + pgprot_noncached(PAGE_READONLY)); - Does thi

Re: [PATCH 2/3] irqchip: irq-mips-gic: Provide function to map GIC user section

2015-09-28 Thread Marc Zyngier
On 28/09/15 11:11, Markos Chandras wrote: > From: Alex Smith > > The GIC provides a "user-mode visible" section containing a mirror of > the counter registers which can be mapped into user memory. This will > be used by the VDSO time function implementations, so provide a > function to map it in.