Skip to contentSkip to conversation

AR9380 appears as product id 0xABCD instead of 0x0030

ath9k-devel Daniel Golle 4 participants 7 messages Oct 10, 2011 – Oct 11, 2011 Qualcomm Atheros ATH9K wireless driver

lore
Share & tools
lore
#0 lore raw

Hi!
I want to use an AR9380 mini pci-e module on kirkwood. under x86 the module works fine and appears as product-id 0x0030, on kirkwood the same module shows up as product-id 0xabcd.
Anyone knows possible reasons for this to happen?
(First I suspected there could be an PCI expansion ROM executed by the x86 BIOS, that doesn't seem to be that case.)
Any hints welcome :)

Cheers

Daniel

#1 lore raw

.. sounds like another PCI bus setup/reset problem. Sigh. :)

Adrian

#2 lore raw

true its an already reported platform specific issue, usually they use this id for emulation testing. as a workaround this PID has to be added to support this card in that specific platform

Quoted 9 lines · Adrian Chadd

.. sounds like another PCI bus setup/reset problem. Sigh. :)

Adrian
_______________________________________________
ath9k-devel mailing list
ath9k-devel at lists.ath9k.org
https://lists.ath9k.org/mailman/listinfo/ath9k-devel

Signature · 1 line
shafi
#3 lore raw
In reply to Daniel Golle
Quoted 11 lines

Hi!
I want to use an AR9380 mini pci-e module on kirkwood. under x86 the module
works fine and appears as product-id 0x0030, on kirkwood the same module shows
up as product-id 0xabcd.
Anyone knows possible reasons for this to happen?
(First I suspected there could be an PCI expansion ROM executed by the x86 BIOS,
that doesn't seem to be that case.)
Any hints welcome :)

You could use sth like that in your setup.

---

drivers/net/wireless/ath/ath9k/pci.c +1 -0
Index: compat-wireless-2011-05-27/drivers/net/wireless/ath/ath9k/pci.c
===================================================================
@@ -30,6 +30,7 @@
 	{ PCI_VDEVICE(ATHEROS, 0x002D) }, /* PCI   */
 	{ PCI_VDEVICE(ATHEROS, 0x002E) }, /* PCI-E */
 	{ PCI_VDEVICE(ATHEROS, 0x0030) }, /* PCI-E  AR9300 */
+	{ PCI_VDEVICE(ATHEROS, 0xABCD) }, /* PCI-E  AR9380 */
 	{ PCI_VDEVICE(ATHEROS, 0x0032) }, /* PCI-E  AR9485 */
 	{ 0 }
 };
drivers/net/wireless/ath/ath9k/hw.c +1 -0
Index: compat-wireless-2011-05-27/drivers/net/wireless/ath/ath9k/hw.c
===================================================================
@@ -653,6 +653,7 @@
 	case AR2427_DEVID_PCIE:
 	case AR9300_DEVID_PCIE:
 	case AR9300_DEVID_AR9485_PCIE:
+	case AR9300_DEVID_AR9380_PCIE:
 	case AR9300_DEVID_AR9330:
 	case AR9300_DEVID_AR9340:
 		break;
drivers/net/wireless/ath/ath9k/hw.h +1 -1
Index: compat-wireless-2011-05-27/drivers/net/wireless/ath/ath9k/hw.h
===================================================================
@@ -44,6 +44,7 @@
 #define AR9287_DEVID_PCIE	0x002e
 #define AR9300_DEVID_PCIE	0x0030
 #define AR9300_DEVID_AR9340	0x0031
+#define AR9300_DEVID_AR9380_PCIE 0xabcd
 #define AR9300_DEVID_AR9485_PCIE 0x0032
 #define AR9300_DEVID_AR9330	0x0035
--- 

It has worked for me on kirkwood platform.

Wojtek

Quoted 9 lines

Cheers

Daniel
_______________________________________________
ath9k-devel mailing list
ath9k-devel at lists.ath9k.org
https://lists.ath9k.org/mailman/listinfo/ath9k-devel

#4 lore raw

I've seen this happen on legacy nics:

* when the nic had failed (an ar9227 nic);
* when someone changed motherboards (various ar5212 era nics).

The latter is something I'm currently digging into. There seems to be some subtle PCI reset/setup stuff going on (eg by changing some PCI parameters in the BIOS - I'm still trying to get some more accurate info from the users in question) which really need to be properly debugged and documented.

I really hate seeing things like this happen. I have no idea what other subtle implications there are :(

Adrian

#5 lore raw
In reply to Wojciech Dubowik

Sure, that's what I did already to make it work at least a bit, but run into DMA problems once there was any serious traffic (using Kernel 2.6.39 and compat-wireless 2011-06-20)
Kernel 3.0.4 with compat-wireless 2011-10-05 seems to work quite nice, at least for now... I'll continue testing that in the next days.

Quoted 67 lines · Wojciech Dubowik
Quoted 11 lines

Hi!
I want to use an AR9380 mini pci-e module on kirkwood. under x86 the module
works fine and appears as product-id 0x0030, on kirkwood the same module shows
up as product-id 0xabcd.
Anyone knows possible reasons for this to happen?
(First I suspected there could be an PCI expansion ROM executed by the x86 BIOS,
that doesn't seem to be that case.)
Any hints welcome :)

You could use sth like that in your setup.

---
Index: compat-wireless-2011-05-27/drivers/net/wireless/ath/ath9k/pci.c
===================================================================

drivers/net/wireless/ath/ath9k/pci.c +1 -0
@@ -30,6 +30,7 @@
 	{ PCI_VDEVICE(ATHEROS, 0x002D) }, /* PCI   */
 	{ PCI_VDEVICE(ATHEROS, 0x002E) }, /* PCI-E */
 	{ PCI_VDEVICE(ATHEROS, 0x0030) }, /* PCI-E  AR9300 */
+	{ PCI_VDEVICE(ATHEROS, 0xABCD) }, /* PCI-E  AR9380 */
 	{ PCI_VDEVICE(ATHEROS, 0x0032) }, /* PCI-E  AR9485 */
 	{ 0 }
 };

Index: compat-wireless-2011-05-27/drivers/net/wireless/ath/ath9k/hw.c
===================================================================

drivers/net/wireless/ath/ath9k/hw.c +1 -0
@@ -653,6 +653,7 @@
 	case AR2427_DEVID_PCIE:
 	case AR9300_DEVID_PCIE:
 	case AR9300_DEVID_AR9485_PCIE:
+	case AR9300_DEVID_AR9380_PCIE:
 	case AR9300_DEVID_AR9330:
 	case AR9300_DEVID_AR9340:
 		break;

Index: compat-wireless-2011-05-27/drivers/net/wireless/ath/ath9k/hw.h
===================================================================

drivers/net/wireless/ath/ath9k/hw.h +1 -1
@@ -44,6 +44,7 @@
 #define AR9287_DEVID_PCIE	0x002e
 #define AR9300_DEVID_PCIE	0x0030
 #define AR9300_DEVID_AR9340	0x0031
+#define AR9300_DEVID_AR9380_PCIE 0xabcd
 #define AR9300_DEVID_AR9485_PCIE 0x0032
 #define AR9300_DEVID_AR9330	0x0035
--- 

It has worked for me on kirkwood platform.

Wojtek

Quoted 9 lines

Cheers

Daniel
_______________________________________________
ath9k-devel mailing list
ath9k-devel at lists.ath9k.org
https://lists.ath9k.org/mailman/listinfo/ath9k-devel

#6 lore raw
Quoted 5 lines · Daniel Golle

Sure, that's what I did already to make it work at least a bit, but run into DMA problems once there was any serious traffic (using Kernel 2.6.39 and compat-wireless 2011-06-20)
Kernel 3.0.4 with compat-wireless 2011-10-05 seems to work quite nice, at least for now... I'll continue testing that in the next days.

please try to see the DMA problems are fixed in latest compat
http://linuxwireless.org/en/users/Download#Where_to_download_bleeding_edge

Quoted 76 lines · Wojciech Dubowik
Quoted 53 lines
Quoted 11 lines

Hi!
I want to use an AR9380 mini pci-e module on kirkwood. under x86 the module
works fine and appears as product-id 0x0030, on kirkwood the same module shows
up as product-id 0xabcd.
Anyone knows possible reasons for this to happen?
(First I suspected there could be an PCI expansion ROM executed by the x86 BIOS,
that doesn't seem to be that case.)
Any hints welcome :)

You could use sth like that in your setup.

---
Index: compat-wireless-2011-05-27/drivers/net/wireless/ath/ath9k/pci.c
===================================================================

drivers/net/wireless/ath/ath9k/pci.c ? 2011-06-06 12:58:57.578412992 +0200 renamed from drivers/net/wireless/ath/ath9k/pci.c ? ? ?2011-05-31 21:02:34.000000000 +0200 +0 -0
@@ -30,6 +30,7 @@

? ? ? { PCI_VDEVICE(ATHEROS, 0x002D) }, /* PCI ? */
? ? ? { PCI_VDEVICE(ATHEROS, 0x002E) }, /* PCI-E */
? ? ? { PCI_VDEVICE(ATHEROS, 0x0030) }, /* PCI-E ?AR9300 */
+ ? ? { PCI_VDEVICE(ATHEROS, 0xABCD) }, /* PCI-E ?AR9380 */ ? ? ? { PCI_VDEVICE(ATHEROS, 0x0032) }, /* PCI-E ?AR9485 */ ? ? ? { 0 }
?};
Index: compat-wireless-2011-05-27/drivers/net/wireless/ath/ath9k/hw.c
===================================================================

drivers/net/wireless/ath/ath9k/hw.c ? ?2011-06-06 13:00:12.568412970 +0200 renamed from drivers/net/wireless/ath/ath9k/hw.c ? ? ? 2011-06-06 12:58:50.000000000 +0200 +0 -0
@@ -653,6 +653,7 @@

? ? ? case AR2427_DEVID_PCIE:
? ? ? case AR9300_DEVID_PCIE:
? ? ? case AR9300_DEVID_AR9485_PCIE:
+ ? ? case AR9300_DEVID_AR9380_PCIE:
? ? ? case AR9300_DEVID_AR9330:
? ? ? case AR9300_DEVID_AR9340:
? ? ? ? ? ? ? break;
Index: compat-wireless-2011-05-27/drivers/net/wireless/ath/ath9k/hw.h
===================================================================

drivers/net/wireless/ath/ath9k/hw.h ? ?2011-06-06 12:58:57.578412992 +0200 renamed from drivers/net/wireless/ath/ath9k/hw.h ? ? ? 2011-06-06 12:58:50.000000000 +0200 +0 -0
@@ -44,6 +44,7 @@

?#define AR9287_DEVID_PCIE ? ?0x002e
?#define AR9300_DEVID_PCIE ? ?0x0030
?#define AR9300_DEVID_AR9340 ?0x0031
+#define AR9300_DEVID_AR9380_PCIE 0xabcd
?#define AR9300_DEVID_AR9485_PCIE 0x0032
?#define AR9300_DEVID_AR9330 ?0x0035
---

Quoted 14 lines

It has worked for me on kirkwood platform.

Wojtek

Quoted 9 lines

Cheers

Daniel
_______________________________________________
ath9k-devel mailing list
ath9k-devel at lists.ath9k.org
https://lists.ath9k.org/mailman/listinfo/ath9k-devel

_______________________________________________
ath9k-devel mailing list
ath9k-devel at lists.ath9k.org
https://lists.ath9k.org/mailman/listinfo/ath9k-devel

Signature · 1 line
shafi