Linux wireless drivers development
 help / color / mirror / Atom feed
* RT5390 not working with rt2800pci
@ 2012-04-13 12:23 Anisse Astier
  2012-04-15 17:33 ` Anisse Astier
  2012-04-17 14:37 ` Anisse Astier
  0 siblings, 2 replies; 11+ messages in thread
From: Anisse Astier @ 2012-04-13 12:23 UTC (permalink / raw)
  To: linux-wireless, users, linville, RA-Shiang Tu
  Cc: Ivo van Doorn, Gertjan van Wingerde, Helmut Schaa

[-- Attachment #1: Type: text/plain, Size: 4792 bytes --]

[resent with compressed dmesg(<40k) and removed one Cc:, sorry for the spam]

Hi,

I have two[1] (seemingly) identical mini pcie RT5390 wireless cards. One
works, the other doesn't.
By "doesn't" work, I mean it can't receive any network further than 1m(at
least it's still "wireless" ;-)). Scan is empty, except if I put the AP
right next to the laptop.

I'm using the rt2800pci in-kernel driver. Support for this card was added
in 2.6.39. To make sure there was no regression, I tested the following
kernels: 2.6.39.4, 3.0.8, 3.2.5, 3.3.1 and wireless-next as of today.
I'm also using the latest firmware rt2860.bin version 34 from official
linux-firmware git tree.

Behaviour is reproduced with or without plugging the antenna. Behaviour
follows the card, if I put on another motherboard.

Markings on the chips are identical whether it's working or not:
 - Ralink RT5390RL NAF8590109 1133STA1

lspci[3] doesn't change (except mac address) whether it's working or not.
dmesg (attached) with rt2x00 debug output doesn't show anything special.

I've tried rt5390sta[2], and it doesn't help. Working card is working,
non-working is not.


Last, but not least, it works on windows. 
 - if we reboot from windows, it works
 - if we halt the hardware, and power it on, it doesn't work.
Which means that the windows driver does something that rt2800pci
doesn't, and that the state is preserved as long as we don't cut power.


Regards,

Anisse



[1] I have many of both, in RT5390(rev 1502) and RT5390F(rev 0502) models. All non working are rev 1502, even if some rev 1502 are working.
[2] https://build.opensuse.org/package/files?package=rt5390sta&project=driver%3Awireless with 2.6.38
[3] lspci -vv:
02:00.0 Network controller: Ralink corp. RT5390 Wireless 802.11n 1T/1R PCIe
	Subsystem: Ralink corp. RT5390 Wireless 802.11n 1T/1R PCIe
	Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
	Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
	Latency: 0, Cache Line Size: 32 bytes
	Interrupt: pin A routed to IRQ 17
	Region 0: Memory at febf0000 (32-bit, non-prefetchable) [size=64K]
	Capabilities: [40] Power Management version 3
		Flags: PMEClk- DSI- D1- D2- AuxCurrent=375mA PME(D0-,D1-,D2-,D3hot-,D3cold-)
		Status: D0 NoSoftRst- PME-Enable- DSel=0 DScale=0 PME-
	Capabilities: [50] MSI: Enable- Count=1/32 Maskable- 64bit+
		Address: 0000000000000000  Data: 0000
	Capabilities: [70] Express (v2) Endpoint, MSI 00
		DevCap:	MaxPayload 128 bytes, PhantFunc 0, Latency L0s <512ns, L1 unlimited
			ExtTag- AttnBtn- AttnInd- PwrInd- RBE+ FLReset-
		DevCtl:	Report errors: Correctable- Non-Fatal- Fatal- Unsupported-
			RlxdOrd+ ExtTag- PhantFunc- AuxPwr- NoSnoop-
			MaxPayload 128 bytes, MaxReadReq 512 bytes
		DevSta:	CorrErr+ UncorrErr- FatalErr- UnsuppReq+ AuxPwr- TransPend-
		LnkCap:	Port #0, Speed 2.5GT/s, Width x1, ASPM L0s L1, Latency L0 <512ns, L1 <64us
			ClockPM+ Surprise- LLActRep- BwNot-
		LnkCtl:	ASPM Disabled; RCB 64 bytes Disabled- Retrain- CommClk+
			ExtSynch- ClockPM- AutWidDis- BWInt- AutBWInt-
		LnkSta:	Speed 2.5GT/s, Width x1, TrErr- Train- SlotClk+ DLActive- BWMgmt- ABWMgmt-
		DevCap2: Completion Timeout: Not Supported, TimeoutDis+
		DevCtl2: Completion Timeout: 50us to 50ms, TimeoutDis-
		LnkCtl2: Target Link Speed: 2.5GT/s, EnterCompliance- SpeedDis-, Selectable De-emphasis: -6dB
			 Transmit Margin: Normal Operating Range, EnterModifiedCompliance- ComplianceSOS-
			 Compliance De-emphasis: -6dB
		LnkSta2: Current De-emphasis Level: -6dB
	Capabilities: [100 v1] Advanced Error Reporting
		UESta:	DLP- SDES- TLP- FCP- CmpltTO- CmpltAbrt- UnxCmplt- RxOF- MalfTLP- ECRC- UnsupReq- ACSViol-
		UEMsk:	DLP- SDES- TLP- FCP- CmpltTO- CmpltAbrt- UnxCmplt- RxOF- MalfTLP- ECRC- UnsupReq- ACSViol-
		UESvrt:	DLP+ SDES+ TLP- FCP+ CmpltTO- CmpltAbrt- UnxCmplt- RxOF+ MalfTLP+ ECRC- UnsupReq- ACSViol-
		CESta:	RxErr- BadTLP- BadDLLP- Rollover- Timeout- NonFatalErr+
		CEMsk:	RxErr- BadTLP- BadDLLP- Rollover- Timeout- NonFatalErr+
		AERCap:	First Error Pointer: 00, GenCap+ CGenEn- ChkCap+ ChkEn-
	Capabilities: [140 v1] Device Serial Number 00-00-d4-0c-02-15-c1-00
	Kernel driver in use: rt2800pci

[4] "iw phy0 info" difference:
--- iwphydump-working	2012-04-13 11:26:18.000000000 +0200
+++ iwphydump-notworking	2012-04-13 11:26:09.000000000 +0200
@@ -28,7 +28,7 @@
 			* 2457 MHz [10] (0.0 dBm)
 			* 2462 MHz [11] (0.0 dBm)
 			* 2467 MHz [12] (0.0 dBm) (passive scanning, no IBSS)
-			* 2472 MHz [13] (0.0 dBm)
+			* 2472 MHz [13] (0.0 dBm) (passive scanning, no IBSS)
 			* 2484 MHz [14] (0.0 dBm) (passive scanning, no IBSS)
 		Bitrates (non-HT):
 			* 1.0 Mbps


[-- Attachment #2: dmesg-notworking.gz --]
[-- Type: application/x-gzip, Size: 13749 bytes --]

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

end of thread, other threads:[~2012-04-17 22:59 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-04-13 12:23 RT5390 not working with rt2800pci Anisse Astier
2012-04-15 17:33 ` Anisse Astier
2012-04-15 23:38   ` Julian Calaby
2012-04-16  5:57     ` Anisse Astier
2012-04-16  6:22       ` Julian Calaby
2012-04-16  7:06         ` Anisse Astier
2012-04-16  8:40           ` Anisse Astier
2012-04-16 10:11             ` Julian Calaby
2012-04-16 10:43               ` Anisse Astier
2012-04-17 14:37 ` Anisse Astier
2012-04-17 22:59   ` Julian Calaby

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox