public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH 1/7] fix dma for 36bit addressing
@ 2010-08-27 21:25 York Sun
  2010-08-27 21:25 ` [U-Boot] [PATCH 2/7] Expand POST memory test to support arch-depended implementation York Sun
                   ` (6 more replies)
  0 siblings, 7 replies; 17+ messages in thread
From: York Sun @ 2010-08-27 21:25 UTC (permalink / raw)
  To: u-boot

Use more bits to support 36-bit addressing

Signed-off-by: York Sun <yorksun@freescale.com>
---
 drivers/dma/fsl_dma.c |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/drivers/dma/fsl_dma.c b/drivers/dma/fsl_dma.c
index df33e7a..09c18c1 100644
--- a/drivers/dma/fsl_dma.c
+++ b/drivers/dma/fsl_dma.c
@@ -114,8 +114,12 @@ int dmacpy(phys_addr_t dest, phys_addr_t src, phys_size_t count) {
 	while (count) {
 		xfer_size = MIN(FSL_DMA_MAX_SIZE, count);
 
-		out_dma32(&dma->dar, (uint) dest);
-		out_dma32(&dma->sar, (uint) src);
+		out_dma32(&dma->dar, (u32) (dest & 0xFFFFFFFF));
+		out_dma32(&dma->sar, (u32) (src & 0xFFFFFFFF));
+		out_dma32(&dma->satr,
+			in_dma32(&dma->satr) | (u32)((u64)src >> 32));
+		out_dma32(&dma->datr,
+			in_dma32(&dma->datr) | (u32)((u64)dest >> 32));
 		out_dma32(&dma->bcr, xfer_size);
 		dma_sync();
 
-- 
1.7.0.4

^ permalink raw reply related	[flat|nested] 17+ messages in thread
* [U-Boot] [PATCH 2/7] Expand POST memory test to support arch-depended implementation.
@ 2010-08-29 13:14 sun york-R58495
  0 siblings, 0 replies; 17+ messages in thread
From: sun york-R58495 @ 2010-08-29 13:14 UTC (permalink / raw)
  To: u-boot

Wolfgang,

Without progress indicator, slowe test on memory takes minutes and it looks like hanging. You probably don't want to run it every time the board boots up.

York Sun
----- Original Message -----
From:"Wolfgang Denk" <wd@denx.de>
To:"York Sun" <yorksun@freescale.com>
Cc:"u-boot at lists.denx.de" <u-boot@lists.denx.de>
Sent:8/29/2010 3:56 AM
Subject:Re: [U-Boot] [PATCH 2/7] Expand POST memory test to support arch-depended implementation.


Dear York Sun,

In message <1282944356-4020-2-git-send-email-yorksun@freescale.com> you wrote:
> Add progress indicator for slow test. It is useful when the testing
> takes too longer to finish. The indicator is reused from flash
> programming.
> 
> Hwconfig is used to turn on slow test when not enabled by flag.

NAK.

POST is supposed to be an automatic, unmonitored functionality.
Results are suposed to be reported through a mechanism compatible to
Linux' syslog system.

There is no place for progress indicators here.


Please note that your subject "support arch-depended implementation"
and the commit message "Add progress indicator" are seriously out of
sync as well.  Another reason for a NAK.

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
Voodoo Programming: Things programmers do that  they  know  shouldn't
work  but they try anyway, and which sometimes actually work, such as
recompiling everything.                             - Karl Lehenbauer

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

end of thread, other threads:[~2010-09-02  7:54 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-08-27 21:25 [U-Boot] [PATCH 1/7] fix dma for 36bit addressing York Sun
2010-08-27 21:25 ` [U-Boot] [PATCH 2/7] Expand POST memory test to support arch-depended implementation York Sun
2010-08-29  8:56   ` Wolfgang Denk
2010-08-30 19:46     ` Scott Wood
2010-09-02  7:48       ` Wolfgang Denk
2010-09-02  7:54         ` Bas Mevissen
2010-08-27 21:25 ` [U-Boot] [PATCH 3/7] Add memory test feature for mpc85xx POST York Sun
2010-08-28 20:20   ` Wolfgang Denk
2010-08-27 21:25 ` [U-Boot] [PATCH 4/7] Enabled POST for generic mpc85xx York Sun
2010-08-29  8:56   ` Wolfgang Denk
2010-08-27 21:25 ` [U-Boot] [PATCH 5/7] Enable POST memory test for corenet_ds York Sun
2010-08-29  8:56   ` Wolfgang Denk
2010-08-27 21:25 ` [U-Boot] [PATCH 6/7] Enable POST memory test for P2020DS York Sun
2010-08-27 21:25 ` [U-Boot] [PATCH 7/7] Fix parameters to support RDIMM " York Sun
2010-08-31 16:23   ` Kumar Gala
2010-08-31 16:23 ` [U-Boot] [PATCH 1/7] fix dma for 36bit addressing Kumar Gala
  -- strict thread matches above, loose matches on Subject: below --
2010-08-29 13:14 [U-Boot] [PATCH 2/7] Expand POST memory test to support arch-depended implementation sun york-R58495

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