Skip to contentSkip to conversation

MP8xx: not initialized CPM RAM crash

DISCUSSION [email protected] 2 participants 3 messages May 3, 2002

lore
Share & tools
lore
#0 lore raw

Hi,

I found in ./drivers/i2c/i2c-rpx.c in rpx_iic_init the structure member ii->iic_rpbase != 0. Very likely because ppcboot uses this area as initial stack. This causes the kernel to get a machine check during i2c init. Should the CPM RAM not be zero'd somewhere during kernel boot?

Regards,
Bart

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

#1 lore raw
Quoted 5 lines · In message <[email protected]> you wrote:

I found in ./drivers/i2c/i2c-rpx.c in rpx_iic_init the structure member ii->iic_rpbase != 0. Very likely because ppcboot uses this area as initial stack. This causes the kernel to get a machine check during i2c init. Should the CPM RAM not be zero'd somewhere during kernel boot?

Which kernel version are you talking about?

I think we fixed this in our version of the 8xx I2C driver long ago.

I don't think that the whole CPM RAM should be zeroed; it's sufficient to correctly initialize the necessary fields.

Wolfgang Denk

--
Software Engineering: Embedded and Realtime Systems, Embedded Linux
Phone: (+49)-8142-4596-87 Fax: (+49)-8142-4596-88 Email: [email protected] They weren't that important. They were merely at the top. The people who really run organizations are usually found several levels down, where it's still possible to get things done.
- Terry Pratchett, _Small Gods_

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

#2 lore raw
Quoted 10 lines · Wolfgang Denk
Quoted 5 lines · In message <[email protected]> you wrote:

I found in ./drivers/i2c/i2c-rpx.c in rpx_iic_init the structure member ii->iic_rpbase != 0. Very likely because ppcboot uses this area as initial stack. This causes the kernel to get a machine check during i2c init. Should the CPM RAM not be zero'd somewhere during kernel boot?

Which kernel version are you talking about?

2.4.2 MontaVista HH linux

Quoted 2 lines

I think we fixed this in our version of the 8xx I2C driver long ago.

Thanks, I'll check out a newer kernel.

Bart

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