Skip to contentSkip to conversation

MPC8xx DPRAM : m8xx_cpm_hostalloc

DISCUSSION Christian Batt 2 participants 5 messages Sep 20, 2000

lore
Share & tools
lore
#0 lore raw

Hello

I am currently working with a MPC860 (Linux kernel 2.2.13) and I need more DPRAM space for my BD/buffers, than the space between IMMR+0x2800 - IMMR+0x2F00 (1792 bytes).

I know the 860 has 5K of DPRAM : 4K + 1K of parameter RAM.

So, I have tried to modify the value of

    CPM_DATAONLY_BASE   from 0x0800 to 0x0000
    CPM_DATAONLY_SIZE     from 0x0700 to 0x1000

but my kernel (compiled with those values) stucks early at boot time :

...
Uncompressing Linux... done.
Now booting the kernel

    -(and no more)-

Does anybody have an idea why it seems I cannot use the space between IMMR+0x2000-IMMR+0x2800 for my module ?

Thanks for any help

Regards

Christian

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

#1 lore raw

I assume the subject is m8xx_cpm_dpalloc, not m8xx_cpm_hostalloc.

Quoted 3 lines

I am currently working with a MPC860 (Linux kernel 2.2.13) and I need more DPRAM space for my BD/buffers, than the space between IMMR+0x2800 - IMMR+0x2F00 (1792 bytes).

You can place your buffers outside the DPRAM (you can use m8xx_cpm_hostalloc for that).

Quoted 5 lines

I know the 860 has 5K of DPRAM : 4K + 1K of parameter RAM.

So, I have tried to modify the value of

    CPM_DATAONLY_BASE   from 0x0800 to 0x0000
    CPM_DATAONLY_SIZE     from 0x0700 to 0x1000

These values were chosen in regard to possibly active microcode relocation patches that could reside in the DPRAM. Does your boot code / monitor program / linux kernel load and use microcode relocation patches ? If so, you should determine the area where they reside so that you know which space is left for you in DPRAM.

Quoted 6 lines

but my kernel (compiled with those values) stucks early at boot time :

...
Uncompressing Linux... done.
Now booting the kernel

    -(and no more)-

Looks like your linux console doesn't work. Which SCC/SMC are you using as console ?

Ciao - Tobias

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

#2 lore raw
Quoted 2 lines

I assume the subject is m8xx_cpm_dpalloc, not m8xx_cpm_hostalloc.

Yes, you're right. I have missed the right name when copy/pasting... : ))

Quoted 6 lines
Quoted 3 lines

I am currently working with a MPC860 (Linux kernel 2.2.13) and I need more DPRAM space for my BD/buffers, than the space between IMMR+0x2800 - IMMR+0x2F00 (1792 bytes).

You can place your buffers outside the DPRAM (you can use m8xx_cpm_hostalloc for that).

OK.

Quoted 11 lines
Quoted 5 lines

I know the 860 has 5K of DPRAM : 4K + 1K of parameter RAM.

So, I have tried to modify the value of

    CPM_DATAONLY_BASE   from 0x0800 to 0x0000
    CPM_DATAONLY_SIZE     from 0x0700 to 0x1000

These values were chosen in regard to possibly active microcode relocation patches that could reside in the DPRAM. Does your boot code / monitor program / linux kernel load and use microcode relocation patches ? If so, you should determine the area where they reside so that you know which space is left for you in DPRAM.

No, I don't use any microcode patch.

Quoted 9 lines
Quoted 6 lines

but my kernel (compiled with those values) stucks early at boot time :

...
Uncompressing Linux... done.
Now booting the kernel

    -(and no more)-

Looks like your linux console doesn't work. Which SCC/SMC are you using as console ?

I am using SMC1 as the console an SCC2 for Ethernet.

Thanks a lot ;-)

Christian

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

#3 lore raw
Quoted 5 lines
Quoted 3 lines

You can place your buffers outside the DPRAM (you can use m8xx_cpm_hostalloc for that).

OK.

Does this solve your problem ? What are you working on, e.g. which controller/protocol ? What is your HW (CPU, board) ?

Quoted 1 line

No, I don't use any microcode patch.

On my MBX board the EPPC-Bug monitor loads a patch at boot time. I ignored that for a long time; I thought I was done with disabling the microcode option in the kernel config. But I had to explicitly disable the microcode relocation to get my SPI working.

Surely it would work also with microcode enabled but then I would have to take care of all these relocation things.

Ciao - Tobias

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

#4 lore raw
Quoted 8 lines
Quoted 5 lines
Quoted 3 lines

You can place your buffers outside the DPRAM (you can use m8xx_cpm_hostalloc for that).

OK.

Does this solve your problem ? What are you working on, e.g. which controller/protocol ? What is your HW (CPU, board) ?

I am working on a utopia (ATM) module. The board is a TQM8xxL shipped with a 860SAR, Rev C1.
The buffers are stored in the host main memory, whereas the Buffer Descriptors and some other ATM tables are stored in DPRAM. That's why I need more DPRAM space ...

Quoted 9 lines
Quoted 1 line

No, I don't use any microcode patch.

On my MBX board the EPPC-Bug monitor loads a patch at boot time. I ignored that for a long time; I thought I was done with disabling the microcode option in the kernel config. But I had to explicitly disable the microcode relocation to get my SPI working.

Surely it would work also with microcode enabled but then I would have to take care of all these relocation things.

The monitor I use to run the kernel, is the one shipped with the TQboard. Just after a hard reset, I have dumped the state of the register after monitor setup : SCCR = 0 -> ERAM =0 : So, microcode program execution is disabled.

I will get a deeper look inside all that stuff ...

Thanks for your help Tobias,

Best Regards

Christian

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