Re: [PATCH] n_tty: use kmalloc() instead of vmalloc() to avoid crash on armada-xp

From: Russell King - ARM Linux
Date: Thu Mar 12 2015 - 09:06:50 EST


On Wed, Mar 11, 2015 at 06:22:42PM +0300, Stas Sergeev wrote:
> 11.03.2015 18:13, Gregory CLEMENT ÐÐÑÐÑ:
> > On 11/03/2015 16:01, Stas Sergeev wrote:
> >> 11.03.2015 16:14, Russell King - ARM Linux ÐÐÑÐÑ:
> >>> On Wed, Mar 11, 2015 at 01:44:57PM +0100, Gregory CLEMENT wrote:
> >>>> Hi Stas,
> >>>>
> >>>> On 10/03/2015 17:54, Stas Sergeev wrote:
> >>>>> Hello, the patch below is needed for a successful boot on armada-xp.
> >>>>>
> >>>> I am really surprised by this patch because I used the Armada XP based
> >>>> board in a daily base and I never saw this issue.
> >>> Can you provide some details about your board - does it have 8GB of
> >>> memory, ranging from 0-0xf0000000, and 4G-8G ?
> >> I wonder about this 256Mb memory hole.
> > This is where the SoC registers are.
> OK but it seems I am loosing this region of _physical_ memory:

Correct, because the kernel can't see that physical memory.

If it tries to access the physical memory at those locations, it hits
the SoC registers and PCI instead of memory.

--
FTTC broadband for 0.8mile line: currently at 10.5Mbps down 400kbps up
according to speedtest.net.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/