LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer
User Name
Password
Linux - Embedded & Single-board computer This forum is for the discussion of Linux on both embedded devices and single-board computers (such as the Raspberry Pi, BeagleBoard and PandaBoard). Discussions involving Arduino, plug computers and other micro-controller like devices are also welcome.

Notices


Reply
  Search this Thread
Old 04-25-2012, 05:03 AM   #1
canbumanikandan
LQ Newbie
 
Registered: Nov 2009
Posts: 2

Rep: Reputation: 0
ethernet driver enabled the interrupts in poll (warning issue)


Dear all,
I am facing the below mentioned warning issue in 3.0-RT(Real Time kernel) due to the following
commit.

{{{
commit 79b1bee888d43b14cf0c08fb8e5aa6
cb161e48f8
Author: Dongdong Deng <dongdong.deng@windriver.com>
Date: Fri Aug 21 03:33:36 2009 +0000

netpoll: warning for ndo_start_xmit returns with interrupts enabled

WARN_ONCE for ndo_start_xmit() enable interrupts in
netpoll_send_skb(),
because the NETPOLL API requires that interrupts remain disabled in
netpoll_send_skb().
Signed-off-by: Dongdong Deng <dongdong.deng@windriver.com>
Acked-by: Matt Mackall <mpm@selenic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
}}}

But I am using netpoll feature and as part of it, the data transfer happens
between host and target board through net poll interface. And of course it uses
smsc911x driver as part of this communication.

The following warning backtrace is observed on my ARM Target board(CortexA9 SMP Dual core Board)
The board boots fine but following warning message is observed on console
after some time.
This happens only with 3.0-RT(Real time) kernel.
{{{
------------[ cut here ]------------
WARNING: at net/core/netpoll.c:346 netpoll_send_skb_on_dev+0x178/
0x228()
netpoll_send_skb(): eth0 enabled interrupts in poll
(smsc911x_hard_start_xmit+0x0/
0x21c)

Modules linked in:
Backtrace:
[<8001151c>] (dump_backtrace+0x0/0x114) from [<80382254>]
(dump_stack+0x20/0x24)
r6:804848ff r5:0000015a r4:9f365da8 r3:00000000
[<80382234>] (dump_stack+0x0/0x24) from [<8002df98>]
(warn_slowpath_common+0x5c/0x74)

[<8002df3c>] (warn_slowpath_common+0x0/0x74) from [<8002e06c>]
(warn_slowpath_fmt+0x40/0x48)
r8:000000c8 r7:80c33000 r6:9f237000 r5:9f188200 r4:9f356600
r3:00000009
[<8002e02c>] (warn_slowpath_fmt+0x0/0x48) from [<802cb5b0>]
(netpoll_send_skb_on_dev+0x178/0x228)

r3:9f237000 r2:80484912
[<802cb438>] (netpoll_send_skb_on_dev+0x0/0x228) from [<802cb8a8>]
(netpoll_send_udp+0x248/0x250)
[<802cb660>] (netpoll_send_udp+0x0/0x250) from [<801e0a80>]
....
}}}

I understood from the backtrace message is that driver transmit code enables the interrupt in poll.

If anyone have inputs, Please let me know.

Thanks for your help in advance.

Cheers,
Anbu
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] rkhunter Checking for enabled inetd services [ Warning ] daz__ Slackware 5 02-15-2012 08:20 PM
No eth0, driver for ethernet controller issue ? SG86- Linux - Networking 4 07-03-2011 03:41 PM
How interrupts and polling works for napi ethernet driver? sarvesh Linux - Kernel 2 04-21-2010 11:12 PM
Interrupts and precedence in an Ethernet driver TX/RX? Tasklets? 2 drivers 1 device? AustinMarton Linux - Kernel 2 12-09-2008 04:11 PM
[FC9]Unknown ethernet adapter (Marvell) / driver issue mudmansm Fedora 1 07-27-2008 05:02 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer

All times are GMT -5. The time now is 07:02 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration