On Mar 9, 2013, at 11:50 PM, Rene Hopf wrote:

> Hi,
> I would like to use a RTL8168 with rtnet. It looks like it has been already 
> discussed:
> http://www.mail-archive.com/rtnet-users@lists.sourceforge.net/msg03271.html
> 
> I tried that, and the driver fails with:
> 
> [  274.749546] *** RTnet 0.9.13 - built on Mar  9 2013 22:43:57 ***
> [  274.749549] 
> [  274.749555] RTnet: initialising real-time networking
> [  289.497345] Initializing rt_r8169 driver
> [  317.256451] rt_r8169 0000:01:00.0: PCI INT A -> GSI 16 (level, low) -> IRQ 
> 16
> [  317.256459] rt_r8169: region #1 not an MMIO resource, aborting
> 
> As far as I understand, something needs to be backported from the current 
> r8169 driver.
> 
> It dies in devinit, line 703. looks like the init needs to be done different.
> I also found a comment mentioning rtl8168 in line 1007.
> 
> I just don't know where to start looking.

looks like it has something to do with the region:
https://github.com/torvalds/linux/blob/master/drivers/net/ethernet/realtek/r8169.c#L6633
I changed the 1 into 2 in all the pci calls, and now I get this:

[ 4552.642159] Initializing rt_r8169 driver
[ 4581.264451] rt_r8169 0000:01:00.0: setting latency timer to 64
[ 4581.265483] RTnet: registered rteth0
[ 4581.265488] rteth0: Identified chip type is 'RTL8169'.
[ 4581.265497] rteth0: rt_r8169 RTnet Gigabit Ethernet driver 2.2-04 at 0x1000, 
4c:72:b9:7c:cd:a2, IRQ 16

not sure if it actually works, or if other changes are required.

> could it be in this commit?
> https://github.com/torvalds/linux/commit/c558386b836ee97762e12495101c6e373f20e69d
> 
> Thanks,
> 
> Rene
> ------------------------------------------------------------------------------
> Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester  
> Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the  
> endpoint security space. For insight on selecting the right partner to 
> tackle endpoint security challenges, access the full report. 
> http://p.sf.net/sfu/symantec-dev2dev_______________________________________________
> RTnet-users mailing list
> RTnet-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/rtnet-users

------------------------------------------------------------------------------
Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester  
Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the  
endpoint security space. For insight on selecting the right partner to 
tackle endpoint security challenges, access the full report. 
http://p.sf.net/sfu/symantec-dev2dev
_______________________________________________
RTnet-users mailing list
RTnet-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rtnet-users

Reply via email to