linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* Problem with MPC8260 buffer descriptor
@ 2002-10-16 14:56 Dominique Letty
  2002-10-16 15:15 ` Allen Curtis
  0 siblings, 1 reply; 8+ messages in thread
From: Dominique Letty @ 2002-10-16 14:56 UTC (permalink / raw)
  To: linuxppc-embedded


I wrote an hdlc driver for a MPC860 SCC device under Linux 2.2.x Kernel and
it works without
any problem.

Now I try to port this driver under Linux 2.4.17 Kernel for a MPC8260. I
have allocated
Buffer Descriptors in DPRAM and Data Buffers in SDRAM. When I try to send a
buffer, I fill
a data buffer and the first BD registers, I think, with the correct values.
It doesn't work
anytimes. When the buffer is transmited, the sending data are correct. The
problem seems to
come from the CPM which can't access to the BD modifications in the DPRAM.

Does anyone have already meet these problems?

Thanks
Dominique


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

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

* RE: Problem with MPC8260 buffer descriptor
  2002-10-16 14:56 Problem with MPC8260 buffer descriptor Dominique Letty
@ 2002-10-16 15:15 ` Allen Curtis
  2002-10-17  7:56   ` John Nikiforos
  0 siblings, 1 reply; 8+ messages in thread
From: Allen Curtis @ 2002-10-16 15:15 UTC (permalink / raw)
  To: Dominique Letty, linuxppc-embedded


> Now I try to port this driver under Linux 2.4.17 Kernel for a MPC8260. I
> have allocated
> Buffer Descriptors in DPRAM and Data Buffers in SDRAM. When I try
> to send a
> buffer, I fill
> a data buffer and the first BD registers, I think, with the
> correct values.
> It doesn't work
> anytimes. When the buffer is transmited, the sending data are correct. The
> problem seems to
> come from the CPM which can't access to the BD modifications in the DPRAM.
>
> Does anyone have already meet these problems?

Would it be a problem to post your:

1. GSMRH & GSRM_L initialization
2. SCC Parameter RAM configuration
3. Location of your BDs in DPRAM

THX


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

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

* RE: Problem with MPC8260 buffer descriptor
  2002-10-16 15:15 ` Allen Curtis
@ 2002-10-17  7:56   ` John Nikiforos
  2002-10-17 12:36     ` Dominique Letty
  0 siblings, 1 reply; 8+ messages in thread
From: John Nikiforos @ 2002-10-17  7:56 UTC (permalink / raw)
  To: acurtis, Dominique Letty, linuxppc-embedded


 Is the ECE bit enabled?
(Cache coherency for the 8260, so that the
CPM wont get any stalled data)

                    John

 --- Allen Curtis <acurtis@onz.com> έγραψε: >
> > Now I try to port this driver under Linux 2.4.17
> Kernel for a MPC8260. I
> > have allocated
> > Buffer Descriptors in DPRAM and Data Buffers in
> SDRAM. When I try
> > to send a
> > buffer, I fill
> > a data buffer and the first BD registers, I think,
> with the
> > correct values.
> > It doesn't work
> > anytimes. When the buffer is transmited, the
> sending data are correct. The
> > problem seems to
> > come from the CPM which can't access to the BD
> modifications in the DPRAM.
> >
> > Does anyone have already meet these problems?
>
> Would it be a problem to post your:
>
> 1. GSMRH & GSRM_L initialization
> 2. SCC Parameter RAM configuration
> 3. Location of your BDs in DPRAM
>
> THX
>
>
>


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

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

* RE: Problem with MPC8260 buffer descriptor
  2002-10-17  7:56   ` John Nikiforos
@ 2002-10-17 12:36     ` Dominique Letty
  2002-10-17 13:50       ` John Nikiforos
  0 siblings, 1 reply; 8+ messages in thread
From: Dominique Letty @ 2002-10-17 12:36 UTC (permalink / raw)
  To: 'John Nikiforos'; +Cc: linuxppc-embedded


I don't find any information about this ECE bit in MPC8260UM and 603eUM.
Where can I enable it?

Thinks for your help.

Dominique
-----Message d'origine-----
De : John Nikiforos [mailto:ppclinuxuser@yahoo.gr]
Envoye : jeudi 17 octobre 2002 09:57
A : acurtis@onz.com; Dominique Letty; linuxppc-embedded@lists.linuxppc.org
Objet : RE: Problem with MPC8260 buffer descriptor


 Is the ECE bit enabled?
(Cache coherency for the 8260, so that the
CPM wont get any stalled data)

                    John

 --- Allen Curtis <acurtis@onz.com> έγραψε: >
> > Now I try to port this driver under Linux 2.4.17
> Kernel for a MPC8260. I
> > have allocated
> > Buffer Descriptors in DPRAM and Data Buffers in
> SDRAM. When I try
> > to send a
> > buffer, I fill
> > a data buffer and the first BD registers, I think,
> with the
> > correct values.
> > It doesn't work
> > anytimes. When the buffer is transmited, the
> sending data are correct. The
> > problem seems to
> > come from the CPM which can't access to the BD
> modifications in the DPRAM.
> >
> > Does anyone have already meet these problems?
>
> Would it be a problem to post your:
>
> 1. GSMRH & GSRM_L initialization
> 2. SCC Parameter RAM configuration
> 3. Location of your BDs in DPRAM
>
> THX
>
>
>


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

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

* RE: Problem with MPC8260 buffer descriptor
  2002-10-17 12:36     ` Dominique Letty
@ 2002-10-17 13:50       ` John Nikiforos
  2002-10-17 14:30         ` Allen Curtis
  0 siblings, 1 reply; 8+ messages in thread
From: John Nikiforos @ 2002-10-17 13:50 UTC (permalink / raw)
  To: Dominique Letty; +Cc: linuxppc-embedded


 I don't remember if it is called ECE or ESE.
I think it is on the HID0. But I am not sure.
I currently don't have the manual handy.

                       John

 --- Dominique Letty <dletty@interfaceconcept.com>
έγραψε: >
> I don't find any information about this ECE bit in
> MPC8260UM and 603eUM.
> Where can I enable it?
>
> Thinks for your help.
>
> Dominique
> -----Message d'origine-----
> De : John Nikiforos [mailto:ppclinuxuser@yahoo.gr]
> Envoye : jeudi 17 octobre 2002 09:57
> A : acurtis@onz.com; Dominique Letty;
> linuxppc-embedded@lists.linuxppc.org
> Objet : RE: Problem with MPC8260 buffer descriptor
>
>
>  Is the ECE bit enabled?
> (Cache coherency for the 8260, so that the
> CPM wont get any stalled data)
>
>                     John
>
>  --- Allen Curtis <acurtis@onz.com> έγραψε: >
> > > Now I try to port this driver under Linux 2.4.17
> > Kernel for a MPC8260. I
> > > have allocated
> > > Buffer Descriptors in DPRAM and Data Buffers in
> > SDRAM. When I try
> > > to send a
> > > buffer, I fill
> > > a data buffer and the first BD registers, I
> think,
> > with the
> > > correct values.
> > > It doesn't work
> > > anytimes. When the buffer is transmited, the
> > sending data are correct. The
> > > problem seems to
> > > come from the CPM which can't access to the BD
> > modifications in the DPRAM.
> > >
> > > Does anyone have already meet these problems?
> >
> > Would it be a problem to post your:
> >
> > 1. GSMRH & GSRM_L initialization
> > 2. SCC Parameter RAM configuration
> > 3. Location of your BDs in DPRAM
> >
> > THX
> >
> >
> >
>
>
>


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

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

* RE: Problem with MPC8260 buffer descriptor
  2002-10-17 13:50       ` John Nikiforos
@ 2002-10-17 14:30         ` Allen Curtis
  2002-10-17 16:54           ` Dominique Letty
  0 siblings, 1 reply; 8+ messages in thread
From: Allen Curtis @ 2002-10-17 14:30 UTC (permalink / raw)
  To: John Nikiforos, Dominique Letty; +Cc: linuxppc-embedded


There are 2 bits in the rfcr & tfcr fields of parameter RAM that are very
important.

1. GBL - I believe that this is the cache coherency bit you are looking for
2. DTB - this determines which RAM are the data buffers that the BD
structures point to are located

Hint, if you are using local RAM for your buffers you do not need GBL. Your
buffer descriptors must reside in DP RAM. If you want help, post the
information I requested before, otherwise this is a guessing game.

>
>  I don't remember if it is called ECE or ESE.
> I think it is on the HID0. But I am not sure.
> I currently don't have the manual handy.
>
>                        John
>
>  --- Dominique Letty <dletty@interfaceconcept.com>
> έγραψε: >
> > I don't find any information about this ECE bit in
> > MPC8260UM and 603eUM.
> > Where can I enable it?
> >
> > Thinks for your help.
> >
> > Dominique
> > -----Message d'origine-----
> > De : John Nikiforos [mailto:ppclinuxuser@yahoo.gr]
> > Envoye : jeudi 17 octobre 2002 09:57
> > A : acurtis@onz.com; Dominique Letty;
> > linuxppc-embedded@lists.linuxppc.org
> > Objet : RE: Problem with MPC8260 buffer descriptor
> >
> >
> >  Is the ECE bit enabled?
> > (Cache coherency for the 8260, so that the
> > CPM wont get any stalled data)
> >
> >                     John
> >
> >  --- Allen Curtis <acurtis@onz.com> έγραψε: >
> > > > Now I try to port this driver under Linux 2.4.17
> > > Kernel for a MPC8260. I
> > > > have allocated
> > > > Buffer Descriptors in DPRAM and Data Buffers in
> > > SDRAM. When I try
> > > > to send a
> > > > buffer, I fill
> > > > a data buffer and the first BD registers, I
> > think,
> > > with the
> > > > correct values.
> > > > It doesn't work
> > > > anytimes. When the buffer is transmited, the
> > > sending data are correct. The
> > > > problem seems to
> > > > come from the CPM which can't access to the BD
> > > modifications in the DPRAM.
> > > >
> > > > Does anyone have already meet these problems?
> > >
> > > Would it be a problem to post your:
> > >
> > > 1. GSMRH & GSRM_L initialization
> > > 2. SCC Parameter RAM configuration
> > > 3. Location of your BDs in DPRAM
> > >
> > > THX
> > >
> > >
> > >
> >
> >
> >
>
>
>
>


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

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

* RE: Problem with MPC8260 buffer descriptor
  2002-10-17 14:30         ` Allen Curtis
@ 2002-10-17 16:54           ` Dominique Letty
  2002-10-17 17:08             ` Dominique Letty
  0 siblings, 1 reply; 8+ messages in thread
From: Dominique Letty @ 2002-10-17 16:54 UTC (permalink / raw)
  To: acurtis


Hi Allen,

You will find my SCC configuration below. I was thinking that my problem in
this driver was
cache and MMU configurations. But now, I'm not sure.
Dominique
        IMAP_ADDR       =       0xff000000
        scc dpram       =       0xff008000
        scc_rbase       =       0x890
        scc_tbase       =       0x8b0
        scc_rfcr        =       0x30
        scc_tfcr        =       0x30
        scc_mrblr       =       0x800
        scc_rstate      =       0x0
        scc_idp         =       0x15c006c
        scc_rbptr       =       0x890
        scc_ibc         =       0x64
        scc_rxtmp       =       0x0
        scc_tstate      =       0x0
        scc_tdp         =       0x161c068
        scc_tbptr       =       0x8b0
        scc_tbc         =       0x0
        scc_txtmp       =       0x65f00f42
        scc_rcrc        =       0x9a0ff0bd
        scc_tcrc        =       0x873759e0
        c_mask          =       0xdebb20e3
        c_pres          =       0xffffffff
        disfc           =       0x0
        crcec           =       0x0
        abtsc           =       0x0
        nmarc           =       0x0
        retrc           =       0x0
        mflr            =       0xc8
        max_cnt         =       0x60
        rfthr           =       0x1
        rfcnt           =       0x1
        hmask           =       0x0
        haddr1          =       0x0
        haddr2          =       0x0
        haddr3          =       0x0
        haddr4          =       0x0
        tmp1            =       0x0
        tmp_mb          =       0xc8
        SCC register    =       0xff011a00
        scc_gsmrl       =       0x0
        scc_gsmrh       =       0x8000
        scc_pmsr        =       0x800
        scc_todr        =       0x0
        scc_dsr         =       0x7e7e
        scc_scce        =       0x0
        scc_sccm        =       0x1b
        scc_sccs        =       0x3
        rx bd address   =       0xff000890
        tx bd address   =       0xff0008b0



-----Message d'origine-----
De : Allen Curtis [mailto:acurtis@onz.com]
Envoye : jeudi 17 octobre 2002 16:31
A : John Nikiforos; Dominique Letty
Cc : linuxppc-embedded@lists.linuxppc.org
Objet : RE: Problem with MPC8260 buffer descriptor


There are 2 bits in the rfcr & tfcr fields of parameter RAM that are very
important.

1. GBL - I believe that this is the cache coherency bit you are looking for
2. DTB - this determines which RAM are the data buffers that the BD
structures point to are located

Hint, if you are using local RAM for your buffers you do not need GBL. Your
buffer descriptors must reside in DP RAM. If you want help, post the
information I requested before, otherwise this is a guessing game.

>
>  I don't remember if it is called ECE or ESE.
> I think it is on the HID0. But I am not sure.
> I currently don't have the manual handy.
>
>                        John
>
>  --- Dominique Letty <dletty@interfaceconcept.com>
> έγραψε: >
> > I don't find any information about this ECE bit in
> > MPC8260UM and 603eUM.
> > Where can I enable it?
> >
> > Thinks for your help.
> >
> > Dominique
> > -----Message d'origine-----
> > De : John Nikiforos [mailto:ppclinuxuser@yahoo.gr]
> > Envoye : jeudi 17 octobre 2002 09:57
> > A : acurtis@onz.com; Dominique Letty;
> > linuxppc-embedded@lists.linuxppc.org
> > Objet : RE: Problem with MPC8260 buffer descriptor
> >
> >
> >  Is the ECE bit enabled?
> > (Cache coherency for the 8260, so that the
> > CPM wont get any stalled data)
> >
> >                     John
> >
> >  --- Allen Curtis <acurtis@onz.com> έγραψε: >
> > > > Now I try to port this driver under Linux 2.4.17
> > > Kernel for a MPC8260. I
> > > > have allocated
> > > > Buffer Descriptors in DPRAM and Data Buffers in
> > > SDRAM. When I try
> > > > to send a
> > > > buffer, I fill
> > > > a data buffer and the first BD registers, I
> > think,
> > > with the
> > > > correct values.
> > > > It doesn't work
> > > > anytimes. When the buffer is transmited, the
> > > sending data are correct. The
> > > > problem seems to
> > > > come from the CPM which can't access to the BD
> > > modifications in the DPRAM.
> > > >
> > > > Does anyone have already meet these problems?
> > >
> > > Would it be a problem to post your:
> > >
> > > 1. GSMRH & GSRM_L initialization
> > > 2. SCC Parameter RAM configuration
> > > 3. Location of your BDs in DPRAM
> > >
> > > THX
> > >
> > >
> > >
> >
> >
> >
>
>
>
>


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

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

* RE: Problem with MPC8260 buffer descriptor
  2002-10-17 16:54           ` Dominique Letty
@ 2002-10-17 17:08             ` Dominique Letty
  0 siblings, 0 replies; 8+ messages in thread
From: Dominique Letty @ 2002-10-17 17:08 UTC (permalink / raw)
  To: 'Dominique Letty'; +Cc: acurtis


Sorry,

I forgot the last initialization instruction that enables reception and
transmission.

dominique

        IMAP_ADDR       =       0xff000000
        scc dpram       =       0xff008000
        scc_rbase       =       0x890
        scc_tbase       =       0x8b0
        scc_rfcr        =       0x30
        scc_tfcr        =       0x30
        scc_mrblr       =       0x800
        scc_rstate      =       0x0
        scc_idp         =       0x0
        scc_rbptr       =       0x890
        scc_ibc         =       0x0
        scc_rxtmp       =       0x0
        scc_tstate      =       0x0
        scc_tdp         =       0x0
        scc_tbptr       =       0x8b0
        scc_tbc         =       0x0
        scc_txtmp       =       0x0
        scc_rcrc        =       0x0
        scc_tcrc        =       0x0
        c_mask          =       0xdebb20e3
        c_pres          =       0xffffffff
        disfc           =       0x0
        crcec           =       0x0
        abtsc           =       0x0
        nmarc           =       0x0
        retrc           =       0x0
        mflr            =       0xc8
        max_cnt         =       0x0
        rfthr           =       0x1
        rfcnt           =       0x0
        hmask           =       0x0
        haddr1          =       0x0
        haddr2          =       0x0
        haddr3          =       0x0
        haddr4          =       0x0
        tmp1            =       0x0
        tmp_mb          =       0x0
        SCC register    =       0xff011a00
        scc_gsmrl       =       0x30
        scc_gsmrh       =       0x8000
        scc_pmsr        =       0x800
        scc_todr        =       0x0
        scc_dsr         =       0x7e7e
        scc_scce        =       0x0
        scc_sccm        =       0x1b
        scc_sccs        =       0x2
        rx bd address   =       0xff000890
        tx bd address   =       0xff0008b0

-----Message d'origine-----
De : owner-linuxppc-embedded@lists.linuxppc.org
[mailto:owner-linuxppc-embedded@lists.linuxppc.org]De la part de Dominique
Letty
Envoye : jeudi 17 octobre 2002 18:55
A : acurtis@onz.com
Objet : RE: Problem with MPC8260 buffer descriptor



Hi Allen,

You will find my SCC configuration below. I was thinking that my problem in
this driver was
cache and MMU configurations. But now, I'm not sure.
Dominique
        IMAP_ADDR       =       0xff000000
        scc dpram       =       0xff008000
        scc_rbase       =       0x890
        scc_tbase       =       0x8b0
        scc_rfcr        =       0x30
        scc_tfcr        =       0x30
        scc_mrblr       =       0x800
        scc_rstate      =       0x0
        scc_idp         =       0x15c006c
        scc_rbptr       =       0x890
        scc_ibc         =       0x64
        scc_rxtmp       =       0x0
        scc_tstate      =       0x0
        scc_tdp         =       0x161c068
        scc_tbptr       =       0x8b0
        scc_tbc         =       0x0
        scc_txtmp       =       0x65f00f42
        scc_rcrc        =       0x9a0ff0bd
        scc_tcrc        =       0x873759e0
        c_mask          =       0xdebb20e3
        c_pres          =       0xffffffff
        disfc           =       0x0
        crcec           =       0x0
        abtsc           =       0x0
        nmarc           =       0x0
        retrc           =       0x0
        mflr            =       0xc8
        max_cnt         =       0x60
        rfthr           =       0x1
        rfcnt           =       0x1
        hmask           =       0x0
        haddr1          =       0x0
        haddr2          =       0x0
        haddr3          =       0x0
        haddr4          =       0x0
        tmp1            =       0x0
        tmp_mb          =       0xc8
        SCC register    =       0xff011a00
        scc_gsmrl       =       0x0
        scc_gsmrh       =       0x8000
        scc_pmsr        =       0x800
        scc_todr        =       0x0
        scc_dsr         =       0x7e7e
        scc_scce        =       0x0
        scc_sccm        =       0x1b
        scc_sccs        =       0x3
        rx bd address   =       0xff000890
        tx bd address   =       0xff0008b0



-----Message d'origine-----
De : Allen Curtis [mailto:acurtis@onz.com]
Envoye : jeudi 17 octobre 2002 16:31
A : John Nikiforos; Dominique Letty
Cc : linuxppc-embedded@lists.linuxppc.org
Objet : RE: Problem with MPC8260 buffer descriptor


There are 2 bits in the rfcr & tfcr fields of parameter RAM that are very
important.

1. GBL - I believe that this is the cache coherency bit you are looking for
2. DTB - this determines which RAM are the data buffers that the BD
structures point to are located

Hint, if you are using local RAM for your buffers you do not need GBL. Your
buffer descriptors must reside in DP RAM. If you want help, post the
information I requested before, otherwise this is a guessing game.

>
>  I don't remember if it is called ECE or ESE.
> I think it is on the HID0. But I am not sure.
> I currently don't have the manual handy.
>
>                        John
>
>  --- Dominique Letty <dletty@interfaceconcept.com>
> έγραψε: >
> > I don't find any information about this ECE bit in
> > MPC8260UM and 603eUM.
> > Where can I enable it?
> >
> > Thinks for your help.
> >
> > Dominique
> > -----Message d'origine-----
> > De : John Nikiforos [mailto:ppclinuxuser@yahoo.gr]
> > Envoye : jeudi 17 octobre 2002 09:57
> > A : acurtis@onz.com; Dominique Letty;
> > linuxppc-embedded@lists.linuxppc.org
> > Objet : RE: Problem with MPC8260 buffer descriptor
> >
> >
> >  Is the ECE bit enabled?
> > (Cache coherency for the 8260, so that the
> > CPM wont get any stalled data)
> >
> >                     John
> >
> >  --- Allen Curtis <acurtis@onz.com> έγραψε: >
> > > > Now I try to port this driver under Linux 2.4.17
> > > Kernel for a MPC8260. I
> > > > have allocated
> > > > Buffer Descriptors in DPRAM and Data Buffers in
> > > SDRAM. When I try
> > > > to send a
> > > > buffer, I fill
> > > > a data buffer and the first BD registers, I
> > think,
> > > with the
> > > > correct values.
> > > > It doesn't work
> > > > anytimes. When the buffer is transmited, the
> > > sending data are correct. The
> > > > problem seems to
> > > > come from the CPM which can't access to the BD
> > > modifications in the DPRAM.
> > > >
> > > > Does anyone have already meet these problems?
> > >
> > > Would it be a problem to post your:
> > >
> > > 1. GSMRH & GSRM_L initialization
> > > 2. SCC Parameter RAM configuration
> > > 3. Location of your BDs in DPRAM
> > >
> > > THX
> > >
> > >
> > >
> >
> >
> >
>
>
>
>


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

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

end of thread, other threads:[~2002-10-17 17:08 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-10-16 14:56 Problem with MPC8260 buffer descriptor Dominique Letty
2002-10-16 15:15 ` Allen Curtis
2002-10-17  7:56   ` John Nikiforos
2002-10-17 12:36     ` Dominique Letty
2002-10-17 13:50       ` John Nikiforos
2002-10-17 14:30         ` Allen Curtis
2002-10-17 16:54           ` Dominique Letty
2002-10-17 17:08             ` Dominique Letty

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