All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Fix MPC83xx SDMA setup errors
@ 2007-03-26 22:24 Chuck Meade
  2007-03-27  6:35 ` Li Yang-r58472
  0 siblings, 1 reply; 2+ messages in thread
From: Chuck Meade @ 2007-03-26 22:24 UTC (permalink / raw)
  To: galak; +Cc: linuxppc-dev

Correct the alignment of the internal buffer used by the MPC83xx SDMA
controller to 4Kbytes.  Correct the shift direction in the logic that
sets up the SDMR register for the MPC83xx SDMA controller.

Signed-off-by: Chuck Meade <chuckmeade@mindspring.com>
---
  arch/powerpc/sysdev/qe_lib/qe.c |    4 ++--
  1 files changed, 2 insertions(+), 2 deletions(-)

diff -uprN a/arch/powerpc/sysdev/qe_lib/qe.c b/arch/powerpc/sysdev/qe_lib/qe.c
--- a/arch/powerpc/sysdev/qe_lib/qe.c	2007-01-13 09:37:03.000000000 -0500
+++ b/arch/powerpc/sysdev/qe_lib/qe.c	2007-03-26 17:48:08.000000000 -0400
@@ -251,12 +251,12 @@ static int qe_sdma_init(void)

  	/* allocate 2 internal temporary buffers (512 bytes size each) for
  	 * the SDMA */
-	sdma_buf_offset = qe_muram_alloc(512 * 2, 64);
+	sdma_buf_offset = qe_muram_alloc(512 * 2, 4096);
  	if (IS_MURAM_ERR(sdma_buf_offset))
  		return -ENOMEM;

  	out_be32(&sdma->sdebcr, sdma_buf_offset & QE_SDEBCR_BA_MASK);
-	out_be32(&sdma->sdmr, (QE_SDMR_GLB_1_MSK | (0x1 >>
+	out_be32(&sdma->sdmr, (QE_SDMR_GLB_1_MSK | (0x1 <<
  					QE_SDMR_CEN_SHIFT)));

  	return 0;

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

* RE: [PATCH] Fix MPC83xx SDMA setup errors
  2007-03-26 22:24 [PATCH] Fix MPC83xx SDMA setup errors Chuck Meade
@ 2007-03-27  6:35 ` Li Yang-r58472
  0 siblings, 0 replies; 2+ messages in thread
From: Li Yang-r58472 @ 2007-03-27  6:35 UTC (permalink / raw)
  To: Chuck Meade, galak; +Cc: linuxppc-dev

Hi Chuck,

The subject and comment of the patch is not accurate.  SDMA is not a
feature of MPC83xx but of QUICC Engine.  That means not all 83xx has
SDMA, and chip other than 83xx can have this feature.  I'd suggest you
change MPC83xx to QE.

- Leo
> -----Original Message-----
> From: linuxppc-dev-bounces+leoli=3Dfreescale.com@ozlabs.org
> [mailto:linuxppc-dev-bounces+leoli=3Dfreescale.com@ozlabs.org] On =
Behalf
Of Chuck
> Meade
> Sent: Tuesday, March 27, 2007 6:25 AM
> To: galak@kernel.crashing.org
> Cc: linuxppc-dev@ozlabs.org
> Subject: [PATCH] Fix MPC83xx SDMA setup errors
>=20
> Correct the alignment of the internal buffer used by the MPC83xx SDMA
> controller to 4Kbytes.  Correct the shift direction in the logic that
> sets up the SDMR register for the MPC83xx SDMA controller.
>=20
> Signed-off-by: Chuck Meade <chuckmeade@mindspring.com>

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

end of thread, other threads:[~2007-03-27  6:34 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-03-26 22:24 [PATCH] Fix MPC83xx SDMA setup errors Chuck Meade
2007-03-27  6:35 ` Li Yang-r58472

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.