Skip to contentSkip to conversation

ath5k: don't enable MSI, we cannot handle it yet

PATCH Superseded Pavel Roskin 6 participants 8 messages Jul 18, 2008 Networking drivers (wireless)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ath5k: don't enable MSI, we cannot handle it yet

This fixes support for AR5006 chipset, which supports MSI
---

 drivers/net/wireless/ath5k/base.c |    5 -----
 1 files changed, 0 insertions(+), 5 deletions(-)
drivers/net/wireless/ath5k/base.c +0 -5
index 635b9ac..e57905c 100644
@@ -487,9 +487,6 @@ ath5k_pci_probe(struct pci_dev *pdev,
 	/* Set private data */
 	pci_set_drvdata(pdev, hw);
 
-	/* Enable msi for devices that support it */
-	pci_enable_msi(pdev);
-
 	/* Setup interrupt handler */
 	ret = request_irq(pdev->irq, ath5k_intr, IRQF_SHARED, "ath", sc);
 	if (ret) {
@@ -567,7 +564,6 @@ err_ah:
 err_irq:
 	free_irq(pdev->irq, sc);
 err_free:
-	pci_disable_msi(pdev);
 	ieee80211_free_hw(hw);
 err_map:
 	pci_iounmap(pdev, mem);
@@ -589,7 +585,6 @@ ath5k_pci_remove(struct pci_dev *pdev)
 	ath5k_detach(pdev, hw);
 	ath5k_hw_detach(sc->ah);
 	free_irq(pdev->irq, sc);
-	pci_disable_msi(pdev);
 	pci_iounmap(pdev, sc->iobase);
 	pci_release_region(pdev, 0);
 	pci_disable_device(pdev);
#1 lore raw
Quoted 1 line · Pavel Roskin

This fixes support for AR5006 chipset, which supports MSI

Sorry, I found Documentation/stable_kernel_rules.txt minutes after sending the patch. We need to get it to the Linus' tree first, then to the stable tree. I hope it won't take long.

To preempt possible questions: MSI is a nice thing, but we cannot enable it without changing the interrupt handler. If we do it, we break MSI capable hardware.

Signature · 2 lines
Regards,
Pavel Roskin
#2 lore raw
Quoted 10 lines · On Friday 18 July 2008 18:44:47 Pavel Roskin wrote:
Quoted 1 line · Pavel Roskin

This fixes support for AR5006 chipset, which supports MSI

Sorry, I found Documentation/stable_kernel_rules.txt minutes after sending the patch. We need to get it to the Linus' tree first, then to the stable tree. I hope it won't take long.

To preempt possible questions: MSI is a nice thing, but we cannot enable it without changing the interrupt handler. If we do it, we break MSI capable hardware.

Please include this into the patch changelog. It's highly confusing otherwise ;)

Signature · 1 line
Greetings Michael.
#3 lore raw

PATCH v2 1/1 ath5k: don't enable MSI, we cannot handle it yet

MSI is a nice thing, but we cannot enable it without changing the interrupt handler. If we do it, we break MSI capable hardware, specifically AR5006 chipset.

---

 drivers/net/wireless/ath5k/base.c |    5 -----
 1 files changed, 0 insertions(+), 5 deletions(-)
drivers/net/wireless/ath5k/base.c +0 -5
index 635b9ac..e57905c 100644
@@ -487,9 +487,6 @@ ath5k_pci_probe(struct pci_dev *pdev,
 	/* Set private data */
 	pci_set_drvdata(pdev, hw);
 
-	/* Enable msi for devices that support it */
-	pci_enable_msi(pdev);
-
 	/* Setup interrupt handler */
 	ret = request_irq(pdev->irq, ath5k_intr, IRQF_SHARED, "ath", sc);
 	if (ret) {
@@ -567,7 +564,6 @@ err_ah:
 err_irq:
 	free_irq(pdev->irq, sc);
 err_free:
-	pci_disable_msi(pdev);
 	ieee80211_free_hw(hw);
 err_map:
 	pci_iounmap(pdev, mem);
@@ -589,7 +585,6 @@ ath5k_pci_remove(struct pci_dev *pdev)
 	ath5k_detach(pdev, hw);
 	ath5k_hw_detach(sc->ah);
 	free_irq(pdev->irq, sc);
-	pci_disable_msi(pdev);
 	pci_iounmap(pdev, sc->iobase);
 	pci_release_region(pdev, 0);
 	pci_disable_device(pdev);
Signature · 2 lines
Regards,
Pavel Roskin
Acked-by on v2 1/1
#4 lore raw

2008/7/18 Pavel Roskin <[email protected]>:

Quoted 43 lines

MSI is a nice thing, but we cannot enable it without changing the interrupt handler. If we do it, we break MSI capable hardware, specifically AR5006 chipset.

---

 drivers/net/wireless/ath5k/base.c |    5 -----
 1 files changed, 0 insertions(+), 5 deletions(-)
drivers/net/wireless/ath5k/base.c +0 -6
index 635b9ac..e57905c 100644
@@ -487,9 +487,6 @@ ath5k_pci_probe(struct pci_dev *pdev,
       /* Set private data */
       pci_set_drvdata(pdev, hw);
 
-       /* Enable msi for devices that support it */
-       pci_enable_msi(pdev);
-
       /* Setup interrupt handler */
       ret = request_irq(pdev->irq, ath5k_intr, IRQF_SHARED, "ath", sc);
       if (ret) {
@@ -567,7 +564,6 @@ err_ah:
 err_irq:
       free_irq(pdev->irq, sc);
 err_free:
-       pci_disable_msi(pdev);
       ieee80211_free_hw(hw);
 err_map:
       pci_iounmap(pdev, mem);
@@ -589,7 +585,6 @@ ath5k_pci_remove(struct pci_dev *pdev)
       ath5k_detach(pdev, hw);
       ath5k_hw_detach(sc->ah);
       free_irq(pdev->irq, sc);
-       pci_disable_msi(pdev);
       pci_iounmap(pdev, sc->iobase);
       pci_release_region(pdev, 0);
       pci_disable_device(pdev);
 
 
--
Quoted 3 lines

Regards,
Pavel Roskin

This is needed for all pci-e devices since enabling msi results no interrupts...

Signature · 3 lines
GPG ID: 0xD21DB2DB
As you read this post global entropy rises. Have Fun ;-)
Nick
#5 lore raw
Quoted 6 lines · Nick Kossifidis

2008/7/18 Pavel Roskin <[email protected]>:

Quoted 5 lines

MSI is a nice thing, but we cannot enable it without changing the interrupt handler. If we do it, we break MSI capable hardware, specifically AR5006 chipset.

[...]

Quoted 1 line

So that they will pick it up automatically when it hits mainline, and it also serves as an in-band documentation that it is something that needs to go/went to -stable.

Signature · 4 lines
  "One disk to rule them all, One disk to find them. One disk to bring
  them all and in the darkness grind them. In the Land of Redmond
  where the shadows lie." -- The Silicon Valley Tarot
  Henrique Holschuh
#6 lore raw
In reply to Nick Kossifidis
Quoted 10 lines · Nick Kossifidis
Quoted 5 lines

MSI is a nice thing, but we cannot enable it without changing the interrupt handler. If we do it, we break MSI capable hardware, specifically AR5006 chipset.

This is needed for all pci-e devices since enabling msi results no interrupts...

This is likely caused by a bug being discussed on linux-pci right now. Basically the way we're masking MSI can result in INTn interrupts getting turned back on, with no handler attached.

http://marc.info/?t=121430463700001&r=1&w=2

regards, Kyle

#7 lore raw
In reply to Michael Buesch
Quoted 8 lines · Michael Buesch
Quoted 7 lines · On Friday 18 July 2008 18:44:47 Pavel Roskin wrote:
Quoted 1 line · Pavel Roskin

This fixes support for AR5006 chipset, which supports MSI

Sorry, I found Documentation/stable_kernel_rules.txt minutes after sending the patch. We need to get it to the Linus' tree first, then to the stable tree. I hope it won't take long.

Quoted 5 lines
Quoted 3 lines

To preempt possible questions: MSI is a nice thing, but we cannot enable it without changing the interrupt handler. If we do it, we break MSI capable hardware.

Please include this into the patch changelog. It's highly confusing otherwise ;)

I agree.

Also, to get stuff into -stable easily, just add:
Cc: stable <[email protected]>
to the signed-off-by area in the patch and then when it goes into Linus's tree, it will automatically be sent to us for inclusion.

Much easier on you and everyone else that way.

thanks,

greg k-h