Wolfgang Denk | 1 Jun 2004 01:57
Picon
Picon
Favicon

Re: Internal Address multiplexing for MCP852


In message <0F48024310E5D6118D200002B3A440DB08B07A15 <at> zil01exm08.mcil.comm.mot.com> you wrote:
>
> I hope you are using U-boot as a bootloader.
> So just try this SDRAM init (see attachment).

Seemes you removed some code, including the write to the  mamr  which
enables  the  refresh? The while init sequence seams a bit simplified
to me - are you sure about this?

Best regards,

Wolfgang Denk

--
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88  Email: wd <at> denx.de
I mean, I . . . think to understand you, I just don't know  what  you
are saying ...                        - Terry Pratchett, _Soul Music_

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

Pantelis Antoniou | 1 Jun 2004 08:10
Picon
Favicon

Re: [PATCH] fix TLB handling for 8xx on linuxppc-2.5


Benjamin Herrenschmidt wrote:

>On Tue, 2004-06-01 at 00:36, Pantelis Antoniou wrote:
>
>>Hi
>>
>>The following patch fixes the problems of 8xx with the latest
>>linuxppc-2.5 tree.
>>
>>With it user space progresses properly.
>>Lots of gray areas remain and MM handling for 8xx is
>>mighty inefficient IMO.
>>
>>Dan could you please take a look?
>>
>
>Ok, looks a bit weird on the edges.
>
>
I agree :)

>>Pantelis
>>
>>
>>______________________________________________________________________
>>diff -Nur --exclude=RCS --exclude=CVS --exclude=SCCS --exclude=BitKeeper --exclude=ChangeSet
linuxppc_2.5/arch/ppc/kernel/head_8xx.S linuxppc_2.5-intracom/arch/ppc/kernel/head_8xx.S
>>--- linuxppc_2.5/arch/ppc/kernel/head_8xx.S	Mon May 31 10:52:29 2004
>>+++ linuxppc_2.5-intracom/arch/ppc/kernel/head_8xx.S	Mon May 31 17:24:05 2004
(Continue reading)

Wolfgang Denk | 1 Jun 2004 09:04
Picon
Picon
Favicon

Re: [PATCH] fix TLB handling for 8xx on linuxppc-2.5


In message <40BC1DBF.6050108 <at> intracom.gr> you wrote:
>
> Perusing the headers I came across a comment that said swap is
> broken on 8xx. For some reason I need to fix it.
> Where can I go about looking?

If a 2.4 kernel is good enough:

Index: include/asm-ppc/pgtable.h
===================================================================
RCS file: /cvsroot/linuxppc_2_4_devel/include/asm-ppc/pgtable.h,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- include/asm-ppc/pgtable.h	11 Mar 2003 19:53:02 -0000	1.6
+++ include/asm-ppc/pgtable.h	24 Aug 2003 13:58:59 -0000	1.7
 <at>  <at>  -686,11 +686,11  <at>  <at> 
  * must not include the _PAGE_PRESENT bit, or the _PAGE_HASHPTE bit
  * (if used).  -- paulus
  */
-#define SWP_TYPE(entry)			((entry).val & 0x3f)
-#define SWP_OFFSET(entry)		((entry).val >> 6)
-#define SWP_ENTRY(type, offset)		((swp_entry_t) { (type) | ((offset) << 6) })
-#define pte_to_swp_entry(pte)		((swp_entry_t) { pte_val(pte) >> 2 })
-#define swp_entry_to_pte(x)		((pte_t) { (x).val << 2 })
+#define SWP_TYPE(entry)			(((entry).val >> 1) & 0x3f)
+#define SWP_OFFSET(entry)		((entry).val >> 8)
+#define SWP_ENTRY(type, offset)		((swp_entry_t) { ((type) << 1) | ((offset) << 8) })
+#define pte_to_swp_entry(pte)		((swp_entry_t) { pte_val(pte) & ~0x81 })
(Continue reading)

Pantelis Antoniou | 1 Jun 2004 09:04
Picon
Favicon

Re: [PATCH] fix TLB handling for 8xx on linuxppc-2.5


Wolfgang Denk wrote:

>In message <40BC1DBF.6050108 <at> intracom.gr> you wrote:
>
>>Perusing the headers I came across a comment that said swap is
>>broken on 8xx. For some reason I need to fix it.
>>Where can I go about looking?
>>
>
>If a 2.4 kernel is good enough:
>
:)

Thanks

>
>Index: include/asm-ppc/pgtable.h
>===================================================================
>RCS file: /cvsroot/linuxppc_2_4_devel/include/asm-ppc/pgtable.h,v
>retrieving revision 1.6
>retrieving revision 1.7
>diff -u -r1.6 -r1.7
>--- include/asm-ppc/pgtable.h	11 Mar 2003 19:53:02 -0000	1.6
>+++ include/asm-ppc/pgtable.h	24 Aug 2003 13:58:59 -0000	1.7
> <at>  <at>  -686,11 +686,11  <at>  <at> 
>  * must not include the _PAGE_PRESENT bit, or the _PAGE_HASHPTE bit
>  * (if used).  -- paulus
>  */
>-#define SWP_TYPE(entry)			((entry).val & 0x3f)
(Continue reading)

Meriin Michael-BMM063 | 1 Jun 2004 09:28

RE: Internal Address multiplexing for MCP852


It is original code from u-boot-1.1.0,
the only one thing in SDRAM init is changed is the UPMA image.

Best Regards,
     Michael Meriin

-----Original Message-----
From: wd <at> denx.de [mailto:wd <at> denx.de]
Sent: Tuesday, June 01, 2004 02:57
To: Meriin Michael-BMM063
Cc: Estevam Fabio-R49496; Linuxppc-Embedded
Subject: Re: Internal Address multiplexing for MCP852

In message <0F48024310E5D6118D200002B3A440DB08B07A15 <at> zil01exm08.mcil.comm.mot.com> you wrote:
>
> I hope you are using U-boot as a bootloader.
> So just try this SDRAM init (see attachment).

Seemes you removed some code, including the write to the  mamr  which
enables  the  refresh? The while init sequence seams a bit simplified
to me - are you sure about this?

Best regards,

Wolfgang Denk

--
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88  Email: wd <at> denx.de
(Continue reading)

Wolfgang Denk | 1 Jun 2004 14:25
Picon
Picon
Favicon

Re: Internal Address multiplexing for MCP852


In message <0F48024310E5D6118D200002B3A440DB08B07A20 <at> zil01exm08.mcil.comm.mot.com> you wrote:
> It is original code from u-boot-1.1.0,

...which means it's obsolete.

Best regards,

Wolfgang Denk

--
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88  Email: wd <at> denx.de
"The algorithm to do that is extremely nasty. You might want  to  mug
someone with it."                   - M. Devine, Computer Science 340

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

iida | 1 Jun 2004 16:18
Picon

driver SPI for MPC5200


i am tring to find a driver SPI for MPC5200.
In  linuxppc-2.4.25-denx
there is cpm_spi.c in arch/ppc/8260_io
It can be used in mpc5200 ?
Or what i have to modify to use in mpc5200
Thanks

--
Atenciosamente,
Renato Iida
Z Tecnologia em Comunicação
www.ztec.com.br

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

Wolfgang Denk | 1 Jun 2004 19:37
Picon
Picon
Favicon

Re: driver SPI for MPC5200


In message <40BC902D.7080804 <at> ztec.com.br> you wrote:
>
> i am tring to find a driver SPI for MPC5200.
> In  linuxppc-2.4.25-denx
> there is cpm_spi.c in arch/ppc/8260_io
> It can be used in mpc5200 ?

No, it cannot. It's a driver for the MPC8260's CPM; the MPC5200  does
not have such a thing.

> Or what i have to modify to use in mpc5200

You need to write a new driver.

Best regards,

Wolfgang Denk

--
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88  Email: wd <at> denx.de
"It ain't so much the things we don't know that get  us  in  trouble.
It's  the  things  we know that ain't so." - Artemus Ward aka Charles
Farrar Brown

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

Arunachalam, Saravanan | 1 Jun 2004 19:56

Reset for MPC8245


Hi,

I am trying to do Internal Hard Reset from the kernel for MPC8245 based
custom board. I tried the Machine check stop approach but it doesn't
work. I am able to successfully do from the u-boot bootloader. The
following code generates Instruction Exception at the instruction that
turns off MMU.

msr = mfmsr();

/* Interrupts and MMU off */
__asm__ __volatile__ ("mfmsr    %0":"=r" (msr));

msr &= ~0x1030;
__asm__ __volatile__ ("mtmsr    %0"::"r" (msr)); <--- Instruction Except
addr = 0xfff00100;
((void (*)(void)) addr) ();

If anyone has a solution to this, I would greatly appreciate it.

Thanks
Arun

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

VanBaren, Gerald (AGRE | 1 Jun 2004 21:59

RE: Reset for MPC8245


> -----Original Message-----
> From: owner-linuxppc-embedded <at> lists.linuxppc.org
> [mailto:owner-linuxppc-embedded <at> lists.linuxppc.org]On Behalf Of
> Arunachalam, Saravanan
> Sent: Tuesday, June 01, 2004 1:57 PM
> To: linuxppc-embedded <at> lists.linuxppc.org
> Subject: Reset for MPC8245
>
>
>
> Hi,
>
> I am trying to do Internal Hard Reset from the kernel for
> MPC8245 based
> custom board. I tried the Machine check stop approach but it doesn't
> work. I am able to successfully do from the u-boot bootloader. The
> following code generates Instruction Exception at the instruction that
> turns off MMU.
>
> msr = mfmsr();
>
> /* Interrupts and MMU off */
> __asm__ __volatile__ ("mfmsr    %0":"=r" (msr));
>
> msr &= ~0x1030;
> __asm__ __volatile__ ("mtmsr    %0"::"r" (msr)); <---
> Instruction Except
> addr = 0xfff00100;
> ((void (*)(void)) addr) ();
(Continue reading)


Gmane