All of lore.kernel.org
 help / color / mirror / Atom feed
* [BUG] mt76x0u: Probing issues on Raspberry Pi 3 B+
@ 2019-02-11 17:33 Stanislaw Gruszka
  2019-02-11 17:49 ` Alan Stern
  0 siblings, 1 reply; 110+ messages in thread
From: Stanislaw Gruszka @ 2019-02-11 17:33 UTC (permalink / raw)
  To: Alan Stern
  Cc: Lorenzo Bianconi, Stefan Wahren, Felix Fietkau, Doug Anderson,
	Minas Harutyunyan, USB list

On Mon, Feb 11, 2019 at 10:12:57AM -0500, Alan Stern wrote:
> On Mon, 11 Feb 2019, Lorenzo Bianconi wrote:
> 
> > Here it is a different issue respect to the AMD IOMMU one, dwc2 host driver
> > does not implement SG I/O so probing fails. I guess it is still useful to
> > implement a 'legacy' mode that enable mt76 on host controllers that do not implement
> > SG I/O (rpi is a very common device so it will be cool to have mt76 working on
> > it). Moreover we are not removing functionalities, user experience will remain
> > the same
> 
> Has anyone considered adding SG support to dwc2?  It shouldn't be very 
> difficult.  The corresponding change for ehci-hcd required adding no 
> more than about 30 lines of code.

That would be cool. Perhaps somebody with dwc2 hardware could do this.

However in mt76x02u we possibly would like to support other usb host
drivers with sg_tablesize = 0 . I would like to clarify what is correct
to do with such drivers.

Is ok to pass buffer via urb->sg with urb->num_sgs = 1 ? Or maybe 
urb->num_sgs should be 0 to pass buffer via urb->sg on such drivers ?
Or maybe non of above is correct and the only option that will work
in 100% is pass buffer via urb->transfer_buffer ?

Stanislaw

^ permalink raw reply	[flat|nested] 110+ messages in thread
* [BUG] mt76x0u: Probing issues on Raspberry Pi 3 B+
@ 2019-02-11 15:12 Alan Stern
  0 siblings, 0 replies; 110+ messages in thread
From: Alan Stern @ 2019-02-11 15:12 UTC (permalink / raw)
  To: Lorenzo Bianconi
  Cc: Stanislaw Gruszka, Stefan Wahren, Felix Fietkau, Doug Anderson,
	Minas Harutyunyan, USB list

On Mon, 11 Feb 2019, Lorenzo Bianconi wrote:

> Here it is a different issue respect to the AMD IOMMU one, dwc2 host driver
> does not implement SG I/O so probing fails. I guess it is still useful to
> implement a 'legacy' mode that enable mt76 on host controllers that do not implement
> SG I/O (rpi is a very common device so it will be cool to have mt76 working on
> it). Moreover we are not removing functionalities, user experience will remain
> the same

Has anyone considered adding SG support to dwc2?  It shouldn't be very 
difficult.  The corresponding change for ehci-hcd required adding no 
more than about 30 lines of code.

Alan Stern

^ permalink raw reply	[flat|nested] 110+ messages in thread
* [BUG] mt76x0u: Probing issues on Raspberry Pi 3 B+
@ 2019-02-09 12:08 Stefan Wahren
  2019-02-09 18:46 ` Lorenzo Bianconi
  0 siblings, 1 reply; 110+ messages in thread
From: Stefan Wahren @ 2019-02-09 12:08 UTC (permalink / raw)
  To: Felix Fietkau, Lorenzo Bianconi, Stanislaw Gruszka,
	Doug Anderson, Minas Harutyunyan
  Cc: linux-wireless, linux-usb

Hi,

as already reported here [1], that there are probing issues of mt76 using TP-Link Archer T2UH (wifi USB dongle) on Raspberry Pi 3 B+.

I retested it with recent linux-next 20190208 (aarch64 defconfig + enabling mt76 driver) and got the following output after plugin the wifi dongle:

[   29.778524] usb 1-1.3: new high-speed USB device number 6 using dwc2
[   31.794581] usb 1-1.3: reset high-speed USB device number 6 using dwc2
[   31.919916] mt76x0u 1-1.3:1.0: ASIC revision: 76100002 MAC revision: 76502000
[   32.304412] dwc2 3f980000.usb: dwc2_update_urb_state(): trimming xfer length
[   32.325724] dwc2 3f980000.usb: dwc2_update_urb_state(): trimming xfer length
[   32.346866] dwc2 3f980000.usb: dwc2_update_urb_state(): trimming xfer length
[   33.410559] mt76x0u 1-1.3:1.0: firmware upload timed out
[   33.435458] mt76x0u: probe of 1-1.3:1.0 failed with error -110
[   33.454829] usbcore: registered new interface driver mt76x0u

I took the firmware files from here [2].

Btw there is another issue, if i disconnect the wifi dongle during probe i'm getting a endless flood of the following output:

mt76x0u 1.1.3:1.0: rx urb failed: -71

Any chance to narrow down these issues?

[1] - https://marc.info/?l=linux-wireless&m=154875316703367
[2] - https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/tree/mediatek

^ permalink raw reply	[flat|nested] 110+ messages in thread

end of thread, other threads:[~2019-03-03 21:16 UTC | newest]

Thread overview: 110+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-02-11 17:33 [BUG] mt76x0u: Probing issues on Raspberry Pi 3 B+ Stanislaw Gruszka
2019-02-11 17:49 ` Alan Stern
2019-02-12  0:06   ` Lorenzo Bianconi
2019-02-12  0:06     ` Lorenzo Bianconi
2019-02-12  9:30     ` Stanislaw Gruszka
2019-02-12  9:30       ` Stanislaw Gruszka
2019-02-12 11:58       ` Lorenzo Bianconi
2019-02-12 11:58         ` Lorenzo Bianconi
2019-02-12 13:15         ` Stanislaw Gruszka
2019-02-12 13:15           ` Stanislaw Gruszka
2019-02-14  6:49       ` Stefan Wahren
2019-02-14  6:49         ` Stefan Wahren
2019-02-14  9:25         ` Stanislaw Gruszka
2019-02-14  9:25           ` Stanislaw Gruszka
2019-02-14  9:48           ` Stefan Wahren
2019-02-14  9:48             ` Stefan Wahren
2019-02-14  9:54             ` Stanislaw Gruszka
2019-02-14  9:54               ` Stanislaw Gruszka
2019-02-15  7:12             ` Stanislaw Gruszka
2019-02-15  7:12               ` Stanislaw Gruszka
2019-02-16 11:05               ` Stefan Wahren
2019-02-16 11:05                 ` Stefan Wahren
2019-02-16 14:07                 ` Stanislaw Gruszka
2019-02-16 14:07                   ` Stanislaw Gruszka
2019-02-16 19:17                   ` Stefan Wahren
2019-02-16 19:17                     ` Stefan Wahren
2019-02-18 13:52                     ` Stanislaw Gruszka
2019-02-18 13:52                       ` Stanislaw Gruszka
2019-02-18 14:25                       ` Lorenzo Bianconi
2019-02-18 14:25                         ` Lorenzo Bianconi
2019-02-18 14:47                         ` Stanislaw Gruszka
2019-02-18 14:47                           ` Stanislaw Gruszka
2019-02-18 14:43                       ` Felix Fietkau
2019-02-18 14:43                         ` Felix Fietkau
2019-02-18 15:03                         ` Stanislaw Gruszka
2019-02-18 15:03                           ` Stanislaw Gruszka
2019-02-18 18:52                           ` Felix Fietkau
2019-02-18 18:52                             ` Felix Fietkau
2019-02-19 10:42                             ` Stanislaw Gruszka
2019-02-19 10:42                               ` Stanislaw Gruszka
2019-02-19 12:19                               ` Felix Fietkau
2019-02-19 12:19                                 ` Felix Fietkau
2019-02-20 13:00                                 ` Stanislaw Gruszka
2019-02-20 13:00                                   ` Stanislaw Gruszka
2019-02-20 13:22                                   ` Lorenzo Bianconi
2019-02-20 13:22                                     ` Lorenzo Bianconi
2019-02-20 16:14                                     ` Stanislaw Gruszka
2019-02-20 16:14                                       ` Stanislaw Gruszka
2019-02-20 16:22                                       ` Lorenzo Bianconi
2019-02-20 16:22                                         ` Lorenzo Bianconi
2019-02-20 16:32                                         ` Stanislaw Gruszka
2019-02-20 16:32                                           ` Stanislaw Gruszka
2019-02-20 16:36                                           ` Lorenzo Bianconi
2019-02-20 16:36                                             ` Lorenzo Bianconi
2019-03-03 21:16                                           ` Stefan Wahren
2019-03-03 21:16                                             ` Stefan Wahren
2019-02-18 22:19                       ` Stefan Wahren
2019-02-18 22:19                         ` Stefan Wahren
2019-02-19 10:59                         ` Stanislaw Gruszka
2019-02-19 10:59                           ` Stanislaw Gruszka
2019-02-19 12:11                           ` Felix Fietkau
2019-02-19 12:11                             ` Felix Fietkau
2019-02-19 15:40                           ` Alan Stern
2019-02-19 15:40                             ` Alan Stern
2019-02-20 10:20                             ` Stanislaw Gruszka
2019-02-20 10:20                               ` Stanislaw Gruszka
2019-02-20 15:25                               ` Alan Stern
2019-02-20 15:25                                 ` Alan Stern
2019-02-19 17:02                           ` Stefan Wahren
2019-02-19 17:02                             ` Stefan Wahren
2019-02-12 15:27     ` Alan Stern
2019-02-12 15:27       ` Alan Stern
  -- strict thread matches above, loose matches on Subject: below --
2019-02-11 15:12 Alan Stern
2019-02-09 12:08 Stefan Wahren
2019-02-09 18:46 ` Lorenzo Bianconi
2019-02-09 20:29   ` Stefan Wahren
2019-02-09 20:33     ` Lorenzo Bianconi
2019-02-09 22:47       ` Stefan Wahren
2019-02-10  9:41     ` Stanislaw Gruszka
2019-02-10  9:41       ` Stanislaw Gruszka
2019-02-10 10:22       ` Lorenzo Bianconi
2019-02-10 10:22         ` Lorenzo Bianconi
2019-02-11  7:44         ` Stanislaw Gruszka
2019-02-11  7:44           ` Stanislaw Gruszka
2019-02-11 10:04           ` Lorenzo Bianconi
2019-02-11 10:04             ` Lorenzo Bianconi
2019-02-11 10:33             ` Stefan Wahren
2019-02-11 10:33               ` Stefan Wahren
2019-02-11 11:06               ` Lorenzo Bianconi
2019-02-11 11:06                 ` Lorenzo Bianconi
2019-02-11 14:04                 ` Stefan Wahren
2019-02-11 14:04                   ` Stefan Wahren
2019-02-11 15:10                   ` Lorenzo Bianconi
2019-02-11 15:10                     ` Lorenzo Bianconi
2019-02-11 15:27                     ` Stefan Wahren
2019-02-11 15:27                       ` Stefan Wahren
2019-02-11 15:57                       ` Lorenzo Bianconi
2019-02-11 15:57                         ` Lorenzo Bianconi
2019-02-13  7:05                         ` Stefan Wahren
2019-02-13  7:05                           ` Stefan Wahren
2019-02-11 17:22                       ` Stanislaw Gruszka
2019-02-11 17:22                         ` Stanislaw Gruszka
2019-02-10  9:29   ` Stanislaw Gruszka
2019-02-10 16:38     ` Stefan Wahren
2019-02-10 16:52       ` Lorenzo Bianconi
2019-02-10 17:39         ` Lorenzo Bianconi
2019-02-10 17:39           ` Lorenzo Bianconi
2019-02-11  7:50         ` Stanislaw Gruszka
2019-02-11  8:08           ` Stefan Wahren
2019-02-11  9:52             ` Lorenzo Bianconi

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.