[svlug] Realtek driver problem

Giriprasad Deviprasad g_pr21 at yahoo.in
Sun Sep 11 04:08:24 PDT 2011


Hi All,

 I am currently working on the realtek driver available in http://linuxgazette.net/156/jangir.html.

 When I run the driver, pci_request_regions is erring out as :
ifconfig rtl8139 up
SIOCSIFFLAGS: Device or resource busy
[root at asdlab realtek]# dmesg | tail -50
rtl8139_get_stats is called
rtl8139_get_stats is called
rtl8139_get_stats is called
rtl8139_get_stats is called
rtl8139_get_stats is called
rtl8139_get_stats is called
pci 0000:04:03.0: PCI INT A disabled
pci 0000:04:03.0: PCI INT A -> GSI 16 (level, low) -> IRQ 16
Device enabled
----------------------------------------------------------------
Base 0  Starting Address = 9c00 End Address = 9cff  Length = 256
This Port is I/O mapped. It is NON Prefetchable.This is readable and writable.
Base 1  Starting Address = fdaff000 End Address = fdaff0ff  Length = 256
This Port is Memory mapped. It is NON Prefetchable. This is readable and writable.
rtl8139_init is called
region is Memory mapped region
rtl8139_dev is not NULL
rtl8139_get_stats is called
rtl8139_get_stats is called
rtl8139_get_stats is called
rtl8139_get_stats is called
rtl8139_get_stats is called
rtl8139_get_stats is called
rtl8139_get_stats is called
rtl8139_get_stats is called
rtl8139_get_stats is called
rtl8139_get_stats is called
rtl8139_get_stats is called
rtl8139_get_stats is called
rtl8139_open is called
IRQ handler type mismatch for IRQ 16
current handler: via at pci:0000:01:00.0
Pid: 8522, comm: ifconfig Tainted: P          2.6.27.5-117.fc10.i686 #1
 [<c04637e7>] setup_irq+0x213/0x22d
 [<f886d6c0>] ? rtl8139_interrupt+0x0/0x230 [real5]
 [<c04638ef>] request_irq+0xee/0x10c
 [<f886d4e6>] rtl8139_open+0x31/0x20b [real5]
 [<c0631062>] dev_open+0x76/0xb4
 [<c0630ae3>] dev_change_flags+0xa2/0x155
 [<c067143b>] devinet_ioctl+0x21a/0x49b
 [<c06721dc>] inet_ioctl+0x8e/0xa7
 [<c0625597>] sock_ioctl+0x1b4/0x1d8
 [<c06253e3>] ? sock_ioctl+0x0/0x1d8
 [<c049a0b6>] vfs_ioctl+0x22/0x69
 [<c049a347>] do_vfs_ioctl+0x24a/0x25d
 [<c04f7b0c>] ? selinux_file_ioctl+0x35/0x38
 [<c049a39a>] sys_ioctl+0x40/0x5a
 [<c0403c76>] syscall_call+0x7/0xb
 [<c06a007b>] ? init_intel_cacheinfo+0x0/0x421

I am attaching the code. Any clues as to why?

Thanks & Regards,
D.Giriprasad
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: real5.c
Url: http://lists.svlug.org/archives/svlug/attachments/20110911/1479b6dd/real5.c


More information about the svlug mailing list