[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <56094BCD.6000600@imgtec.com>
Date: Mon, 28 Sep 2015 15:16:45 +0100
From: Qais Yousef <qais.yousef@...tec.com>
To: Marc Zyngier <marc.zyngier@....com>,
Markos Chandras <markos.chandras@...tec.com>
CC: <linux-mips@...ux-mips.org>, <alex@...x-smith.me.uk>,
Alex Smith <alex.smith@...tec.com>,
Thomas Gleixner <tglx@...utronix.de>,
Jason Cooper <jason@...edaemon.net>,
<linux-kernel@...r.kernel.org>
Subject: Re: [PATCH 2/3] irqchip: irq-mips-gic: Provide function to map GIC
user section
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 this code have to be in the irqchip driver? It really feels out
> of place, and I'd rather see a function that returns the mappable range
> to the VDSO code, where the mapping would occur.
>
I don't think it's a good idea either for the VDSO code to know about
gic_base_addr. Maybe this function could be split to return the pfn and
let the caller do io_remap_pfn_range(). Though I think it's nice to have
it all there. USM stands for USer Mode - GIC wants to make some stuff
visible to user mode and it puts them in that special section. So it
makes sense to do it all there IMO.
Qais
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists