linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* Why the region area don't decrease 1 in function sanity_check_meminfo?
@ 2012-07-24 10:54 湛振波
  2012-07-25  7:50 ` 湛振波
  2012-08-10 15:14 ` Jonathan Austin
  0 siblings, 2 replies; 5+ messages in thread
From: 湛振波 @ 2012-07-24 10:54 UTC (permalink / raw)
  To: linux-arm-kernel

In this function, have these codes:

/*
		 * Check whether this memory bank would partially overlap
		 * the vmalloc area.
		 */
		if (__va(bank->start + bank->size) > vmalloc_min ||
		    __va(bank->start + bank->size) < __va(bank->start)) {
			unsigned long newsize = vmalloc_min - __va(bank->start);
			printk(KERN_NOTICE "Truncating RAM at %.8llx-%.8llx "
			       "to -%.8llx (vmalloc region overlap).\n",
			       (unsigned long long)bank->start,
			       (unsigned long long)bank->start + bank->size - 1,
			       (unsigned long long)bank->start + newsize - 1);
			bank->size = newsize;
		}

Dear all,


I don't known why the memory region have not decrease 1, i think it
should be decreased(like this , (__va(bank->start + bank->size
-1))because in sparse memory system,  this address bank->start +
bank->size is belong to another bank, so this method is not correctly.

Please indicate whether my understanding is correct.

Thanks.


Steve

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

end of thread, other threads:[~2012-08-10 17:43 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-07-24 10:54 Why the region area don't decrease 1 in function sanity_check_meminfo? 湛振波
2012-07-25  7:50 ` 湛振波
2012-08-10 15:14 ` Jonathan Austin
2012-08-10 15:37   ` Russell King - ARM Linux
2012-08-10 17:43     ` Jonathan Austin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).