linux-sh.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] sh: fix size calculation for NUMA node 0
@ 2009-12-07 14:11 Magnus Damm
  2009-12-09  3:45 ` Paul Mundt
  0 siblings, 1 reply; 2+ messages in thread
From: Magnus Damm @ 2009-12-07 14:11 UTC (permalink / raw)
  To: linux-sh

From: Magnus Damm <damm@opensource.se>

Fix the NUMA size calculation for node 0. Do the same
as the UMA version of setup_memory() and use address
instead of pfn when calculating the size.

Signed-off-by: Magnus Damm <damm@opensource.se>
---

 arch/sh/mm/numa.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- 0001/arch/sh/mm/numa.c
+++ work/arch/sh/mm/numa.c	2009-12-07 21:13:58.000000000 +0900
@@ -28,7 +28,7 @@ void __init setup_memory(void)
 {
 	unsigned long free_pfn = PFN_UP(__pa(_end));
 	u64 base = min_low_pfn << PAGE_SHIFT;
-	u64 size = (max_low_pfn << PAGE_SHIFT) - min_low_pfn;
+	u64 size = (max_low_pfn << PAGE_SHIFT) - base;
 
 	lmb_add(base, size);
 

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

* Re: [PATCH] sh: fix size calculation for NUMA node 0
  2009-12-07 14:11 [PATCH] sh: fix size calculation for NUMA node 0 Magnus Damm
@ 2009-12-09  3:45 ` Paul Mundt
  0 siblings, 0 replies; 2+ messages in thread
From: Paul Mundt @ 2009-12-09  3:45 UTC (permalink / raw)
  To: linux-sh

On Mon, Dec 07, 2009 at 11:11:59PM +0900, Magnus Damm wrote:
> Fix the NUMA size calculation for node 0. Do the same
> as the UMA version of setup_memory() and use address
> instead of pfn when calculating the size.

On Mon, Dec 07, 2009 at 11:16:07PM +0900, Magnus Damm wrote:
> This patch updates the NUMA version of setup_memory()
> with UMA code changes and also modifies the last argument
> to lmb_alloc_base() to use an address instead of pfn.

On Mon, Dec 07, 2009 at 11:20:06PM +0900, Magnus Damm wrote:
> This patch adds a ->start_transfer() callback to the
> driver sh_mobile_lcdcfb.c. The callback is used to
> program the LCDC panel in the case of one-shot mode.
> 
> Needed by the LCD controller used on the KFR2R09 board.

On Mon, Dec 07, 2009 at 11:26:05PM +0900, Magnus Damm wrote:
> This patch adds a ->start_transfer() callback to the
> KFR2R09 lcd handling code. The callback is used to
> notify the lcd controller that a new frame of data
> is about to be transferred. The callback is only used
> in combination with deferred io, but the code has
> been tested both with and without deferred io enabled.
> 
> Without this patch the display data on the KFR2R09
> lcd panel becomes corrupted over time.

All applied, thanks.

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

end of thread, other threads:[~2009-12-09  3:45 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-07 14:11 [PATCH] sh: fix size calculation for NUMA node 0 Magnus Damm
2009-12-09  3:45 ` Paul Mundt

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).