Skip to contentSkip to conversation

Problem with MPC8260 buffer descriptor

DISCUSSION Dominique Letty 3 participants 8 messages Oct 16, 2002 – Oct 17, 2002

lore
Share & tools
lore
#0 lore raw

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/

#1 lore raw
Quoted 13 lines

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.

Quoted 1 line

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/

#2 lore raw

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

John

--- Allen Curtis <[email protected]> έγραψε: >

Quoted 19 lines
Quoted 1 line

Now I try to port this driver under Linux 2.4.17

Kernel for a MPC8260. I

Quoted 2 lines

have allocated
Buffer Descriptors in DPRAM and Data Buffers in

SDRAM. When I try

Quoted 3 lines

to send a
buffer, I fill
a data buffer and the first BD registers, I think,

with the

Quoted 3 lines

correct values.
It doesn't work
anytimes. When the buffer is transmited, the

sending data are correct. The

Quoted 2 lines

problem seems to
come from the CPM which can't access to the BD

modifications in the DPRAM.

Quoted 2 lines

Does anyone have already meet these problems?

Quoted 10 lines

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/

#3 lore raw

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:[email protected]]
Envoye : jeudi 17 octobre 2002 09:57
A : [email protected]; Dominique Letty; [email protected] 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 <[email protected]> έγραψε: >

Quoted 19 lines
Quoted 1 line

Now I try to port this driver under Linux 2.4.17

Kernel for a MPC8260. I

Quoted 2 lines

have allocated
Buffer Descriptors in DPRAM and Data Buffers in

SDRAM. When I try

Quoted 3 lines

to send a
buffer, I fill
a data buffer and the first BD registers, I think,

with the

Quoted 3 lines

correct values.
It doesn't work
anytimes. When the buffer is transmited, the

sending data are correct. The

Quoted 2 lines

problem seems to
come from the CPM which can't access to the BD

modifications in the DPRAM.

Quoted 2 lines

Does anyone have already meet these problems?

Quoted 10 lines

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/

#4 lore raw

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 <[email protected]>
έγραψε: >

Quoted 23 lines

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:[email protected]] Envoye : jeudi 17 octobre 2002 09:57
A : [email protected]; Dominique Letty; [email protected]
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 <[email protected]> έγραψε: >

Quoted 1 line
Quoted 1 line

Now I try to port this driver under Linux 2.4.17

Quoted 32 lines
Quoted 7 lines

Kernel for a MPC8260. I

Quoted 2 lines

have allocated
Buffer Descriptors in DPRAM and Data Buffers in

SDRAM. When I try

Quoted 3 lines

to send a
buffer, I fill
a data buffer and the first BD registers, I

think,

Quoted 21 lines

with the

Quoted 3 lines

correct values.
It doesn't work
anytimes. When the buffer is transmited, the

sending data are correct. The

Quoted 2 lines

problem seems to
come from the CPM which can't access to the BD

modifications in the DPRAM.

Quoted 2 lines

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/

#5 lore raw

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.

Quoted 68 lines

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 <[email protected]>
έγραψε: >

Quoted 55 lines

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:[email protected]] Envoye : jeudi 17 octobre 2002 09:57
A : [email protected]; Dominique Letty; [email protected]
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 <[email protected]> έγραψε: >

Quoted 8 lines
Quoted 1 line

Now I try to port this driver under Linux 2.4.17

Kernel for a MPC8260. I

Quoted 2 lines

have allocated
Buffer Descriptors in DPRAM and Data Buffers in

SDRAM. When I try

Quoted 3 lines

to send a
buffer, I fill
a data buffer and the first BD registers, I

think,

Quoted 21 lines

with the

Quoted 3 lines

correct values.
It doesn't work
anytimes. When the buffer is transmited, the

sending data are correct. The

Quoted 2 lines

problem seems to
come from the CPM which can't access to the BD

modifications in the DPRAM.

Quoted 2 lines

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/

#6 lore raw

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:[email protected]] Envoye : jeudi 17 octobre 2002 16:31
A : John Nikiforos; Dominique Letty
Cc : [email protected] 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.

Quoted 68 lines

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 <[email protected]>
έγραψε: >

Quoted 55 lines

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:[email protected]] Envoye : jeudi 17 octobre 2002 09:57
A : [email protected]; Dominique Letty; [email protected]
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 <[email protected]> έγραψε: >

Quoted 8 lines
Quoted 1 line

Now I try to port this driver under Linux 2.4.17

Kernel for a MPC8260. I

Quoted 2 lines

have allocated
Buffer Descriptors in DPRAM and Data Buffers in

SDRAM. When I try

Quoted 3 lines

to send a
buffer, I fill
a data buffer and the first BD registers, I

think,

Quoted 21 lines

with the

Quoted 3 lines

correct values.
It doesn't work
anytimes. When the buffer is transmited, the

sending data are correct. The

Quoted 2 lines

problem seems to
come from the CPM which can't access to the BD

modifications in the DPRAM.

Quoted 2 lines

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/

#7 lore raw

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 : [email protected] [mailto:[email protected]]De la part de Dominique Letty
Envoye : jeudi 17 octobre 2002 18:55
A : [email protected]
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:[email protected]] Envoye : jeudi 17 octobre 2002 16:31
A : John Nikiforos; Dominique Letty
Cc : [email protected] 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.

Quoted 68 lines

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 <[email protected]>
έγραψε: >

Quoted 55 lines

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:[email protected]] Envoye : jeudi 17 octobre 2002 09:57
A : [email protected]; Dominique Letty; [email protected]
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 <[email protected]> έγραψε: >

Quoted 8 lines
Quoted 1 line

Now I try to port this driver under Linux 2.4.17

Kernel for a MPC8260. I

Quoted 2 lines

have allocated
Buffer Descriptors in DPRAM and Data Buffers in

SDRAM. When I try

Quoted 3 lines

to send a
buffer, I fill
a data buffer and the first BD registers, I

think,

Quoted 21 lines

with the

Quoted 3 lines

correct values.
It doesn't work
anytimes. When the buffer is transmited, the

sending data are correct. The

Quoted 2 lines

problem seems to
come from the CPM which can't access to the BD

modifications in the DPRAM.

Quoted 2 lines

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/