RE: [Query] mm: !*pte hit in mm/memory.c:remap_pte_range

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Russell,

> ________________________________________
> From: Russell King - ARM Linux [linux@xxxxxxxxxxxxxxxx]
> Sent: Friday, January 21, 2011 4:30 AM
> To: Aguirre, Sergio
> Cc: linux-arm-kernel@xxxxxxxxxxxxxxxxxxx; linux-omap@xxxxxxxxxxxxxxx
> Subject: Re: [Query] mm: !*pte hit in mm/memory.c:remap_pte_range
> 
> On Thu, Jan 20, 2011 at 03:06:30PM -0600, Aguirre, Sergio wrote:
> > And while debugging further, i realized that the point of stall was
> > in mm/memory.c, function:
> >
> > static int remap_pte_range(struct mm_struct *mm, pmd_t *pmd,
> >                       unsigned long addr, unsigned long end,
> >                       unsigned long pfn, pgprot_t prot)
> > {

> >               BUG_ON(!pte_none(*pte)); <---******* HERE

> > }

> > How should i interpret this? Does this mean something specific?
> 
> It is asserting that the pte we are about to overwrite was empty.  In
> other words, there is no existing mapping in place at that virtual
> address.
> 
> If there was a pre-existing mapping, you're doing something wrong
> because you're potentially overwriting something else.

Ok. I see.

Thanks for the detailed explanation. I appreciate it.

Regards,
Sergio
> --
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Arm (vger)]     [ARM Kernel]     [ARM MSM]     [Linux Tegra]     [Linux WPAN Networking]     [Linux Wireless Networking]     [Maemo Users]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Trails]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux