public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] arm, post, memory: fix bug if sdram base != 0x00000000
@ 2011-10-07  6:40 Heiko Schocher
  2011-10-07  6:53 ` Valentin Longchamp
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Heiko Schocher @ 2011-10-07  6:40 UTC (permalink / raw)
  To: u-boot

commit 8d3fcb5e60b6c8e1d530dbc2e2e33ec6a44670da breaks post
memory support for sdram base != 0x00000000. Fix this.

Signed-off-by: Heiko Schocher <hs@denx.de>
Cc: Valentin Longchamp <valentin.longchamp@keymile.com>
Cc: Holger Brunck <holger.brunck@keymile.com>
---
$ /home/git/linux-denx/scripts/checkpatch.pl 0001-arm-post-memory-fix-bug-if-sdram-base-0x00000000.patch
total: 0 errors, 0 warnings, 14 lines checked

0001-arm-post-memory-fix-bug-if-sdram-base-0x00000000.patch has no obvious style problems and is ready for submission.

 post/drivers/memory.c |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/post/drivers/memory.c b/post/drivers/memory.c
index 69973c0..d25e323 100644
--- a/post/drivers/memory.c
+++ b/post/drivers/memory.c
@@ -466,10 +466,11 @@ static int memory_post_test_regions(unsigned long start, unsigned long size)
 
 	for (i = 0; i < (size >> 20) && (!ret); i++) {
 		if (!ret)
-			ret = memory_post_test_patterns(i << 20, 0x800);
-		if (!ret)
-			ret = memory_post_test_patterns((i << 20) + 0xff800,
+			ret = memory_post_test_patterns(start + (i << 20),
 				0x800);
+		if (!ret)
+			ret = memory_post_test_patterns(start + (i << 20) +
+				0xff800, 0x800);
 	}
 
 	return ret;
-- 
1.7.6.2

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

* [U-Boot] [PATCH] arm, post, memory: fix bug if sdram base != 0x00000000
  2011-10-07  6:40 [U-Boot] [PATCH] arm, post, memory: fix bug if sdram base != 0x00000000 Heiko Schocher
@ 2011-10-07  6:53 ` Valentin Longchamp
  2011-10-07 17:19 ` Mike Frysinger
  2011-10-23 20:14 ` Wolfgang Denk
  2 siblings, 0 replies; 4+ messages in thread
From: Valentin Longchamp @ 2011-10-07  6:53 UTC (permalink / raw)
  To: u-boot

On 10/07/2011 08:40 AM, Heiko Schocher wrote:
> commit 8d3fcb5e60b6c8e1d530dbc2e2e33ec6a44670da breaks post
> memory support for sdram base != 0x00000000. Fix this.
> 
> Signed-off-by: Heiko Schocher <hs@denx.de>
> Cc: Valentin Longchamp <valentin.longchamp@keymile.com>
> Cc: Holger Brunck <holger.brunck@keymile.com>
> ---
> $ /home/git/linux-denx/scripts/checkpatch.pl 0001-arm-post-memory-fix-bug-if-sdram-base-0x00000000.patch
> total: 0 errors, 0 warnings, 14 lines checked
> 
> 0001-arm-post-memory-fix-bug-if-sdram-base-0x00000000.patch has no obvious style problems and is ready for submission.
> 
>  post/drivers/memory.c |    7 ++++---
>  1 files changed, 4 insertions(+), 3 deletions(-)
> 
> diff --git a/post/drivers/memory.c b/post/drivers/memory.c
> index 69973c0..d25e323 100644
> --- a/post/drivers/memory.c
> +++ b/post/drivers/memory.c
> @@ -466,10 +466,11 @@ static int memory_post_test_regions(unsigned long start, unsigned long size)
>  
>  	for (i = 0; i < (size >> 20) && (!ret); i++) {
>  		if (!ret)
> -			ret = memory_post_test_patterns(i << 20, 0x800);
> -		if (!ret)
> -			ret = memory_post_test_patterns((i << 20) + 0xff800,
> +			ret = memory_post_test_patterns(start + (i << 20),
>  				0x800);
> +		if (!ret)
> +			ret = memory_post_test_patterns(start + (i << 20) +
> +				0xff800, 0x800);
>  	}
>  
>  	return ret;

Thanks for fixing that Heiko: we only have boards starting @0x00000000 so I did
not notice this bug.

Ackey-by: Valentin Longchamp <valentin.longchamp@keymile.com>

Valentin

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

* [U-Boot] [PATCH] arm, post, memory: fix bug if sdram base != 0x00000000
  2011-10-07  6:40 [U-Boot] [PATCH] arm, post, memory: fix bug if sdram base != 0x00000000 Heiko Schocher
  2011-10-07  6:53 ` Valentin Longchamp
@ 2011-10-07 17:19 ` Mike Frysinger
  2011-10-23 20:14 ` Wolfgang Denk
  2 siblings, 0 replies; 4+ messages in thread
From: Mike Frysinger @ 2011-10-07 17:19 UTC (permalink / raw)
  To: u-boot

Acked-by: Mike Frysinger <vapier@gentoo.org>
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
Url : http://lists.denx.de/pipermail/u-boot/attachments/20111007/23278bfb/attachment.pgp 

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

* [U-Boot] [PATCH] arm, post, memory: fix bug if sdram base != 0x00000000
  2011-10-07  6:40 [U-Boot] [PATCH] arm, post, memory: fix bug if sdram base != 0x00000000 Heiko Schocher
  2011-10-07  6:53 ` Valentin Longchamp
  2011-10-07 17:19 ` Mike Frysinger
@ 2011-10-23 20:14 ` Wolfgang Denk
  2 siblings, 0 replies; 4+ messages in thread
From: Wolfgang Denk @ 2011-10-23 20:14 UTC (permalink / raw)
  To: u-boot

Dear Heiko Schocher,

In message <1317969600-32496-1-git-send-email-hs@denx.de> you wrote:
> commit 8d3fcb5e60b6c8e1d530dbc2e2e33ec6a44670da breaks post
> memory support for sdram base != 0x00000000. Fix this.
> 
> Signed-off-by: Heiko Schocher <hs@denx.de>
> Cc: Valentin Longchamp <valentin.longchamp@keymile.com>
> Cc: Holger Brunck <holger.brunck@keymile.com>
> ---
> $ /home/git/linux-denx/scripts/checkpatch.pl 0001-arm-post-memory-fix-bug-if-sdram-base-0x00000000.patch
> total: 0 errors, 0 warnings, 14 lines checked
> 
> 0001-arm-post-memory-fix-bug-if-sdram-base-0x00000000.patch has no obvious style problems and is ready for submission.
> 
>  post/drivers/memory.c |    7 ++++---
>  1 files changed, 4 insertions(+), 3 deletions(-)

Applied, thanks.

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
"The History of every  major  Galactic  Civilization  tends  to  pass
through  three  distinct  and recognizable phases, those of Survival,
Inquiry and Sophistication, otherwise known as the How, Why and Where
phases. "For instance,  the  first  phase  is  characterized  by  the
question  'How  can  we  eat?'  the second by the question 'Why do we
eat?' and the third by the question 'Where shall we have lunch?'"
- Hitchhiker's Guide to the Galaxy

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

end of thread, other threads:[~2011-10-23 20:14 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-10-07  6:40 [U-Boot] [PATCH] arm, post, memory: fix bug if sdram base != 0x00000000 Heiko Schocher
2011-10-07  6:53 ` Valentin Longchamp
2011-10-07 17:19 ` Mike Frysinger
2011-10-23 20:14 ` Wolfgang Denk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox