All of lore.kernel.org
 help / color / mirror / Atom feed
* Alignment Requirement for MT_MEMORY type
@ 2010-02-18  0:33 Henry Li
  2010-02-18  8:51 ` Russell King - ARM Linux
  0 siblings, 1 reply; 4+ messages in thread
From: Henry Li @ 2010-02-18  0:33 UTC (permalink / raw)
  To: linux-arm-kernel


Hi,

Can someone tell me why there is a requirement for the virtual and physical
addresses and size using MT_MEMORY memtype (where prot_l1=0) to be aligned
to section boundary (1MB) in linux-2.6.32/arch/arm/mm/mmu.c/create_mapping
during IO table init?


Following is the relevent code snippet:

addr = md->virtual & PAGE_MASK;
phys = (unsigned long)__pfn_to_phys(md->pfn);
length = PAGE_ALIGN(md->length + (md->virtual & ~PAGE_MASK));

if (type->prot_l1 == 0 && ((addr | phys | length) & ~SECTION_MASK)) {
	printk(KERN_WARNING "BUG: map for 0x%08lx at 0x%08lx can not "
	       "be mapped using pages, ignoring.\n",
	       __pfn_to_phys(md->pfn), addr);
	return;
}


Thanks,

- Henry

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-02-19  8:44 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-02-18  0:33 Alignment Requirement for MT_MEMORY type Henry Li
2010-02-18  8:51 ` Russell King - ARM Linux
2010-02-18 18:08   ` Henry Li
2010-02-19  8:44     ` Linus Walleij

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.