Bug 6301 - Support of MT7630e on ASUS N751J
: Support of MT7630e on ASUS N751J
Status: CONFIRMED
Product: Desktop Bugs
Classification: ROSA Desktop
Component: Hardware
: unspecified
: x86_64 Linux
: Normal normal
: ---
Assigned To: Eugene Shatokhin
: Eugene Shatokhin
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2015-10-22 19:58 MSD by Eugene Budanov
Modified: 2016-01-18 12:42 MSK (History)
0 users

See Also:
RPM Package:
ISO-related:
Bad POT generating:
Upstream:


Attachments
journactl log (7.46 KB, application/octet-stream)
2015-12-30 13:41 MSK, Eugene Budanov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Eugene Budanov 2015-10-22 19:58:49 MSD
Description of problem:

On this laptop computer installed Wi-Fi card:

03:00.0 Network controller: MEDIATEK Corp. MT7630e 802.11bgn Wireless Network Adapter

This driver has no version in mainline tree of Linux kernel, but driver is exists on github. Link: https://github.com/kuba-moo/mt7630e

Main problem of this drivere - poor code quality. 

Main problems:
1. This driver work fine, but if no any VPN connections (pptp, l2tp, etc). When use any VPN it crashed. 

2. No support for kernels higher than 3.14. F.ex: on test kernel 4.1.x for ROSA Fresh it totally freeze system after connection.
Comment 1 Eugene Shatokhin 2015-10-23 11:53:11 MSD
Yes, that driver leaves much to be desired as it is now.

The issues have been reported upstream by the users of different distros:
https://github.com/kuba-moo/mt7630e/issues/18,
https://github.com/kuba-moo/mt7630e/issues/15,
https://github.com/kuba-moo/mt7630e/issues/19, etc.

No reaction so far.
Comment 2 Eugene Shatokhin 2015-12-28 17:32:06 MSK
Could you try another variation of the driver, namely https://github.com/benjarobin/MT7630E, on the kernel 4.1?

Let us see if they work better on that hardware now. If so, I can prepare the dkms package for it.
Comment 3 Eugene Budanov 2015-12-30 13:41:18 MSK
Created attachment 4338 [details]
journactl log
Comment 4 Eugene Budanov 2015-12-30 13:43:30 MSK
(In reply to comment #2)
> Could you try another variation of the driver, namely
> https://github.com/benjarobin/MT7630E, on the kernel 4.1?
> 
> Let us see if they work better on that hardware now. If so, I can prepare
> the dkms package for it.

This driver a bit better, than kuba-moo, because not hang my system after boot on 4.1.15 kernel, but it working a couple minutes after boot. Then card can't connect at all if not reboot the system. Journalctl log is attached.
Comment 5 Eugene Budanov 2015-12-30 13:47:27 MSK
hwprobe logs for this driver: http://hw.rosalinux.ru/index.php?probe=2ddeb1ec38
Comment 6 Eugene Shatokhin 2015-12-30 16:02:43 MSK
(In reply to comment #5)
> hwprobe logs for this driver:
> http://hw.rosalinux.ru/index.php?probe=2ddeb1ec38

Thanks for testing! 

Could you also check if this one works OK: https://github.com/neurobin/MT7630E ? Some of our users claim it does but who knows.
Comment 7 Eugene Budanov 2015-12-31 13:06:36 MSK
(In reply to comment #6)
> (In reply to comment #5)
> > hwprobe logs for this driver:
> > http://hw.rosalinux.ru/index.php?probe=2ddeb1ec38
> 
> Thanks for testing! 
> 
> Could you also check if this one works OK:
> https://github.com/neurobin/MT7630E ? Some of our users claim it does but
> who knows.

Test driver from neurobin git repo. Same situation as above. I.e. not hang my system after boot on 4.1.15 kernel, but it working about 5-8 minutes after boot. Then card can't connect at all if not reboot the system. Logs for this drivers: http://hw.rosalinux.ru/index.php?probe=05cb7a263c
Comment 8 Eugene Shatokhin 2015-12-31 17:14:35 MSK
(In reply to comment #7)
> Test driver from neurobin git repo. Same situation as above. I.e. not hang
> my system after boot on 4.1.15 kernel, but it working about 5-8 minutes
> after boot. Then card can't connect at all if not reboot the system. Logs
> for this drivers: http://hw.rosalinux.ru/index.php?probe=05cb7a263c

Thanks again! This info is valuable.

As for the errors, I see the following in the log (listing it here to simplify searching):
--------------------------
dmar: DRHD: handling fault status reg 2
dmar: DMAR:[DMA Read] Request device [03:00.0] fault addr fffae000 
                                    DMAR:[fault reason 06] PTE Read access is not set
===>rt2800_sta_remove:MT7630
BtAFHCtl: COEX AFH Start Ch = 0, AFH End Ch = 0, Channel = 3, CentralChannel = 3
SendAndesAFH: -->
SendAndesAFH: LinkStatus = 2, BW = 1, Channel = 3, BssHashID = 1, PktLength = 20
AsicSendCmdToAndes not need  Rsp!!!
PCIKickOutCmd (TxCpuIdx = 12)
SendAndesAFH: <--
===>rt2800_sta_remove:MT7630   0x80100 = 0x0
===>rt2800_sta_remove:MT7630   0x80100 = 0x0
ieee80211 phy0: rt2x00queue_flush_queue: Warning - Queue 0 failed to flush
дек 31 12:01:08 jarnvidr NetworkManager[2867]: <warn>  Connection disconnected (reason -4)
ieee80211 phy0: rt2x00queue_flush_queue: Warning - Queue 2 failed to flush
--------------------------

I think, I will report it to the author of the driver.
Comment 9 Eugene Shatokhin 2016-01-03 23:42:54 MSK
I have built the slightly modified driver from https://github.com/benjarobin/MT7630E to Contrib.

The package is dkms-mt7630e. 

Could you check, if it works well for you? Please remove all previously installed drivers for MT7630E first, of course.
Comment 10 Eugene Budanov 2016-01-04 00:07:41 MSK
I can test it after new year holidays only. :(
Comment 11 Eugene Budanov 2016-01-12 14:36:01 MSK
Just as planned. Tested new DMKS module for this card. Same situation as above. Working a couple minutes and then connection is failed and module not working if not reboot machine.

journalctl -k filled by this:

янв 12 13:10:54 jarnvidr kernel: wlan0: direct probe to 00:0c:42:8d:b3:92 (try 1/3)
янв 12 13:10:54 jarnvidr kernel: wlan0: direct probe to 00:0c:42:8d:b3:92 (try 2/3)
янв 12 13:10:54 jarnvidr kernel: wlan0: direct probe to 00:0c:42:8d:b3:92 (try 3/3)
янв 12 13:10:54 jarnvidr kernel: wlan0: authentication with 00:0c:42:8d:b3:92 timed out
янв 12 13:10:54 jarnvidr kernel: ieee80211 phy0: rt2x00queue_write_tx_frame: Error - Arrived at non-free entry in the non-full queue 0
                                    Please file bug report to http://rt2x00.serialmonkey.com
янв 12 13:10:55 jarnvidr kernel: ieee80211 phy0: rt2x00queue_write_tx_frame: Error - Arrived at non-free entry in the non-full queue 0
                                    Please file bug report to http://rt2x00.serialmonkey.com
янв 12 13:10:56 jarnvidr kernel: wlan0: authenticate with 04:18:d6:82:df:0b
янв 12 13:10:56 jarnvidr kernel: ieee80211 phy0: rt2x00queue_write_tx_frame: Error - Arrived at non-free entry in the non-full queue 0
                                    Please file bug report to http://rt2x00.serialmonkey.com
янв 12 13:10:56 jarnvidr kernel: wlan0: direct probe to 04:18:d6:82:df:0b (try 1/3)
янв 12 13:10:56 jarnvidr kernel: wlan0: direct probe to 04:18:d6:82:df:0b (try 2/3)
янв 12 13:10:56 jarnvidr kernel: wlan0: direct probe to 04:18:d6:82:df:0b (try 3/3)
янв 12 13:10:57 jarnvidr kernel: wlan0: authentication with 04:18:d6:82:df:0b timed out
янв 12 13:10:57 jarnvidr kernel: ieee80211 phy0: rt2x00queue_write_tx_frame: Error - Arrived at non-free entry in the non-full queue 0
                                    Please file bug report to http://rt2x00.serialmonkey.com
янв 12 13:11:07 jarnvidr kernel: ieee80211 phy0: rt2x00queue_write_tx_frame: Error - Arrived at non-free entry in the non-full queue 0
                                    Please file bug report to http://rt2x00.serialmonkey.com
янв 12 13:11:07 jarnvidr kernel: wlan0: authenticate with 00:0c:42:8d:b3:92
янв 12 13:11:07 jarnvidr kernel: ieee80211 phy0: rt2x00queue_write_tx_frame: Error - Arrived at non-free entry in the non-full queue 0
                                    Please file bug report to http://rt2x00.serialmonkey.com
янв 12 13:11:07 jarnvidr kernel: wlan0: direct probe to 00:0c:42:8d:b3:92 (try 1/3)
янв 12 13:11:07 jarnvidr kernel: wlan0: direct probe to 00:0c:42:8d:b3:92 (try 2/3)
янв 12 13:11:07 jarnvidr kernel: wlan0: direct probe to 00:0c:42:8d:b3:92 (try 3/3)
янв 12 13:11:07 jarnvidr kernel: wlan0: authentication with 00:0c:42:8d:b3:92 timed out
янв 12 13:11:07 jarnvidr kernel: ieee80211 phy0: rt2x00queue_write_tx_frame: Error - Arrived at non-free entry in the non-full queue 0
                                    Please file bug report to http://rt2x00.serialmonkey.com
янв 12 13:11:14 jarnvidr kernel: ieee80211 phy0: rt2x00queue_write_tx_frame: Error - Arrived at non-free entry in the non-full queue 0
                                    Please file bug report to http://rt2x00.serialmonkey.com
янв 12 13:11:15 jarnvidr kernel: ieee80211 phy0: rt2x00queue_write_tx_frame: Error - Arrived at non-free entry in the non-full queue 0
                                    Please file bug report to http://rt2x00.serialmonkey.com
янв 12 13:11:17 jarnvidr kernel: ieee80211 phy0: rt2x00queue_write_tx_frame: Error - Arrived at non-free entry in the non-full queue 0
                                    Please file bug report to http://rt2x00.serialmonkey.com
янв 12 13:11:18 jarnvidr kernel: ieee80211 phy0: rt2x00queue_write_tx_frame: Error - Arrived at non-free entry in the non-full queue 0
                                    Please file bug report to http://rt2x00.serialmonkey.com

hw-probe with this loaded dkms module logs you can see here:
http://hw.rosalinux.ru/index.php?probe=612d99aa59
Comment 12 Eugene Shatokhin 2016-01-18 12:42:46 MSK
I found another issue with this variant of the driver:
https://github.com/benjarobin/MT7630E/issues/5

Same as for other variants.