IOMMU issues workaround (was Re: realtek r8189 driver problem on 64 bit kernel)

2013-10-14 Thread Wackojacko

On 12/10/13 16:49, Wackojacko wrote:

On 12/10/13 16:37, Gary Dale wrote:

On 12/10/13 11:03 AM, Wackojacko wrote:

On 12/10/13 15:32, Gary Dale wrote:


I had a similar problem but fixed it by enabling IOEMU in the BIOS of
my Gigabyte 970A-D3P.

I assume you mean IOMMU, I had already enabled this a few minutes 
before

you suggested it but it didn't appear to work at first. However, I have
just rebooted again and the network has come up so thankyou.

Enabling this has given me a new problem in that my usb 3.0 now doesn't
work :-( I get lots of messages like this in dmesg

AMD-Vi: Event logged [IO_PAGE_FAULT device=02:00.0 domain=0x0014
address=0xbea01740 flags=0x0010]

and lspci shows

02:00.0 USB controller: VIA Technologies, Inc. Device 3483 (rev 01)

I prefer network and no usb 3.0 but I'd like both so I'll look in the
BIOS again to see if there's anything I can change to see if it helps.

Thanks

Wackojacko



I'm having exactly the same problem. Let me know if you get it to work.


Ah ok, will do but it looks like a kernel bug in amd64 because these 
problems don't exist with 32 bit.


Thanks to Gary, and a bit of googling IOMMU issues, it appears this is 
common on Gigabyte M/B's and if a BIOS update doesn't work (none 
available in my case) then try appending iommu=soft to the kernel 
options in grub.  Using this option I have USB 3.0 and Network using the 
stock amd64 kernel.


HTH

Wackojacko


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org

Archive: http://lists.debian.org/525bc8be.5000...@sky.com



realtek r8189 driver problem on 64 bit kernel

2013-10-12 Thread Wackojacko
I have recently updated my motherboard which has resulted in me having 
an updated realtek r8168 chip (rev 6 instead of rev 3), unfortunately 
the new chip fails to get a connection via dhcp, and setting a static 
address results in 100% packet loss.


I am currently running sid amd64 and have tried various things including 
downloading the latest driver from Realtek, experimental kernel and 
numerous live CD's.  What I discovered by chance was that the NIC worked 
when using debian 32 bit distribution (confirmed with debian live cd) 
which is now installed to keep me on the go :). Interestingly it works 
whether the firmware is installed or not on 32 bit.


I have compared the output of dmesg, lspci, lshw, ethtool from both 
distributions and the only difference I found relating to the driver was


r8169 :03:00.0: can't disable ASPM; OS doesn't have ASPM control

and a different address and IRQ for the NIC.

so I tried booting with pcie_aspm=off (it was disabled anyway) and the 
warning disappeared but the NIC still didn't work.


This is the adapter on a Gigabyte 970a-dsp3 motherboard

03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. 
RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 06)


and dmesg shows on amd64

r8169 Gigabit Ethernet driver 2.3LK-NAPI loaded
r8169 :03:00.0: can't disable ASPM; OS doesn't have ASPM control
r8169 :03:00.0: irq 72 for MSI/MSI-X
r8169 :03:00.0 eth0: RTL8168evl/8111evl at 0xc9616000, (MAC 
ADDRESS), XID 0c900880 IRQ 72
r8169 :03:00.0 eth0: jumbo features [frames: 9200 bytes, tx 
checksumming: ko]

r8169 :03:00.0: firmware: agent loaded rtl_nic/rtl8168e-3.fw into memory

on 32bit

r8169 Gigabit Ethernet driver 2.3LK-NAPI loaded
r8169 :03:00.0: irq 73 for MSI/MSI-X
r8169 :03:00.0 eth0: RTL8168evl/8111evl at 0xf8274000,(MAC ADDRESS), 
XID 0c900880 IRQ 73
r8169 :03:00.0 eth0: jumbo features [frames: 9200 bytes, tx 
checksumming: ko]

r8169 :03:00.0: firmware: agent loaded rtl_nic/rtl8168e-3.fw into memory

As you can see the driver loads and eth0 comes up but no ip address from 
the router.


Any help would be aprreciated

Thanks

Wackojacko





--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org

Archive: http://lists.debian.org/52595bdb.2050...@sky.com



Re: realtek r8189 driver problem on 64 bit kernel

2013-10-12 Thread Wackojacko


Sending tot the list sorry gary



On 12/10/13 15:32, Gary Dale wrote:


I had a similar problem but fixed it by enabling IOEMU in the BIOS of
my Gigabyte 970A-D3P.


I assume you mean IOMMU, I had already enabled this a few minutes before
you suggested it but it didn't appear to work at first. However, I have
just rebooted again and the network has come up so thankyou.

Enabling this has given me a new problem in that my usb 3.0 now doesn't
work :-( I get lots of messages like this in dmesg

AMD-Vi: Event logged [IO_PAGE_FAULT device=02:00.0 domain=0x0014
address=0xbea01740 flags=0x0010]

and lspci shows

02:00.0 USB controller: VIA Technologies, Inc. Device 3483 (rev 01)

I prefer network and no usb 3.0 but I'd like both so I'll look in the
BIOS again to see if there's anything I can change to see if it helps.

Thanks

Wackojacko




--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org

Archive: http://lists.debian.org/525964ad.60...@sky.com



Re: realtek r8189 driver problem on 64 bit kernel

2013-10-12 Thread Wackojacko

On 12/10/13 16:37, Gary Dale wrote:

On 12/10/13 11:03 AM, Wackojacko wrote:

On 12/10/13 15:32, Gary Dale wrote:


I had a similar problem but fixed it by enabling IOEMU in the BIOS of
my Gigabyte 970A-D3P.


I assume you mean IOMMU, I had already enabled this a few minutes before
you suggested it but it didn't appear to work at first. However, I have
just rebooted again and the network has come up so thankyou.

Enabling this has given me a new problem in that my usb 3.0 now doesn't
work :-( I get lots of messages like this in dmesg

AMD-Vi: Event logged [IO_PAGE_FAULT device=02:00.0 domain=0x0014
address=0xbea01740 flags=0x0010]

and lspci shows

02:00.0 USB controller: VIA Technologies, Inc. Device 3483 (rev 01)

I prefer network and no usb 3.0 but I'd like both so I'll look in the
BIOS again to see if there's anything I can change to see if it helps.

Thanks

Wackojacko



I'm having exactly the same problem. Let me know if you get it to work.


Ah ok, will do but it looks like a kernel bug in amd64 because these 
problems don't exist with 32 bit.



--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org

Archive: http://lists.debian.org/52596f94.2050...@sky.com



Re: realtek r8189 driver problem on 64 bit kernel

2013-10-12 Thread Gary Dale

On 12/10/13 11:03 AM, Wackojacko wrote:

On 12/10/13 15:32, Gary Dale wrote:


I had a similar problem but fixed it by enabling IOEMU in the BIOS of
my Gigabyte 970A-D3P.


I assume you mean IOMMU, I had already enabled this a few minutes before
you suggested it but it didn't appear to work at first. However, I have
just rebooted again and the network has come up so thankyou.

Enabling this has given me a new problem in that my usb 3.0 now doesn't
work :-( I get lots of messages like this in dmesg

AMD-Vi: Event logged [IO_PAGE_FAULT device=02:00.0 domain=0x0014
address=0xbea01740 flags=0x0010]

and lspci shows

02:00.0 USB controller: VIA Technologies, Inc. Device 3483 (rev 01)

I prefer network and no usb 3.0 but I'd like both so I'll look in the
BIOS again to see if there's anything I can change to see if it helps.

Thanks

Wackojacko



I'm having exactly the same problem. Let me know if you get it to work.


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org

Archive: http://lists.debian.org/52596cb2.1070...@velcom.ca



Re: realtek r8189 driver problem on 64 bit kernel

2013-10-12 Thread Gary Dale

On 12/10/13 10:25 AM, Wackojacko wrote:

I have recently updated my motherboard which has resulted in me having
an updated realtek r8168 chip (rev 6 instead of rev 3), unfortunately
the new chip fails to get a connection via dhcp, and setting a static
address results in 100% packet loss.

I am currently running sid amd64 and have tried various things including
downloading the latest driver from Realtek, experimental kernel and
numerous live CD's. What I discovered by chance was that the NIC worked
when using debian 32 bit distribution (confirmed with debian live cd)
which is now installed to keep me on the go :). Interestingly it works
whether the firmware is installed or not on 32 bit.

I have compared the output of dmesg, lspci, lshw, ethtool from both
distributions and the only difference I found relating to the driver was

r8169 :03:00.0: can't disable ASPM; OS doesn't have ASPM control

and a different address and IRQ for the NIC.

so I tried booting with pcie_aspm=off (it was disabled anyway) and the
warning disappeared but the NIC still didn't work.

This is the adapter on a Gigabyte 970a-dsp3 motherboard

03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd.
RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 06)

and dmesg shows on amd64

r8169 Gigabit Ethernet driver 2.3LK-NAPI loaded
r8169 :03:00.0: can't disable ASPM; OS doesn't have ASPM control
r8169 :03:00.0: irq 72 for MSI/MSI-X
r8169 :03:00.0 eth0: RTL8168evl/8111evl at 0xc9616000, (MAC
ADDRESS), XID 0c900880 IRQ 72
r8169 :03:00.0 eth0: jumbo features [frames: 9200 bytes, tx
checksumming: ko]
r8169 :03:00.0: firmware: agent loaded rtl_nic/rtl8168e-3.fw into
memory

on 32bit

r8169 Gigabit Ethernet driver 2.3LK-NAPI loaded
r8169 :03:00.0: irq 73 for MSI/MSI-X
r8169 :03:00.0 eth0: RTL8168evl/8111evl at 0xf8274000,(MAC ADDRESS),
XID 0c900880 IRQ 73
r8169 :03:00.0 eth0: jumbo features [frames: 9200 bytes, tx
checksumming: ko]
r8169 :03:00.0: firmware: agent loaded rtl_nic/rtl8168e-3.fw into
memory

As you can see the driver loads and eth0 comes up but no ip address from
the router.

Any help would be aprreciated

Thanks

Wackojacko


I had a similar problem but fixed it by enabling IOEMU in the BIOS of my 
Gigabyte 970A-D3P.



--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org

Archive: http://lists.debian.org/52595d7b.7050...@velcom.ca