Re: PAGE_GUARDED

2016-05-24 Thread Aneesh Kumar K.V
Christian Zigotzky writes: > Ben, > > I tried: > > /* Workaround for lack of device tree */ > if (primary) { > __ioremap_at(range.cpu_addr, (void > *)ISA_IO_BASE, > range.size, pgprot_noncached(PAGE_KERNEL));

Re: PAGE_GUARDED

2016-05-24 Thread Benjamin Herrenschmidt
On Tue, 2016-05-24 at 12:48 +0200, Christian Zigotzky wrote: > Ben, > > Thanks for the hint. I'm sorry I don't know how pgprot_noncached() > works. > > I tried: > > 1) range.size, pgprot_noncached() > > 2) range.size, pgprot_val(pgprot_noncached(__pgprot(0; Hrm... The above is what is used

Re: PAGE_GUARDED

2016-05-23 Thread Benjamin Herrenschmidt
On Mon, 2016-05-23 at 06:38 +0200, Christian Zigotzky wrote: > Hi All, > > You removed PAGE_GUARDED in the commit   > > https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commi > t/?id=c04a5880299eab3da8c10547db96ea9cdffd44a6 > > We use > > range.size, _PAGE_NO_CACHE|_PAGE_GUARDED)