Skip to contentSkip to conversation

kernel hangs after serving interrupt

DISCUSSION Omanakuttan 2 participants 2 messages Jul 7, 2003

lore
Share & tools
lore
#0 lore raw

Hi,
We are facing a strange problem in mpc8260, linux kernel 2.4.1 I have written drivers for mpc8260 MCC. We are in the process of testing them.
We are getting a machine freeze after some 40k-50k write operations. I have checked all the control paths, they are as follows.
1. Application (pppd)issue a write call, traverses through kernel ppp implementation and finally gets resolved to write() to the MCC controller.
2. As soon as the write call adds the buffer to the outgoing buffers, Tx happens.
3. Tx interrupt handler is called which frees up the written data.
4. Tx interrupt handler returns.

Rx will happen as data is recieved. Rx and Tx runs with spin locks acquired. And synchronization safe.

We traced the path using prink(). The board hangs after Tx interrupt comlete or Rx complete interrupt. i.e, after printing "returning from Tx " or "returning from Rx".
This hang is not present until some significant amount of time is passed with heavy traffic.

Anybody faced any similar problems with kernel 2.4.1? Any pointers/suggestions will be greatly apreciated. Thanks,
Om.

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

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

Anybody faced any similar problems with kernel 2.4.1?

Chances are very small that eanybody is still actively using such an ancient kernel.

Quoted 1 line

Any pointers/suggestions will be greatly apreciated.

Update to a more recent kernel version. Eventually you fight a problem that has been fixed long since.

Best regards,

Wolfgang Denk

--
Software Engineering: Embedded and Realtime Systems, Embedded Linux
Phone: (+49)-8142-4596-87 Fax: (+49)-8142-4596-88 Email: [email protected] "They that can give up essential liberty to obtain a little temporary saftey deserve neither liberty not saftey." - Benjamin Franklin, 1759

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