linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ath5k: don't enable MSI, we cannot handle it yet
@ 2008-07-18 16:28 Pavel Roskin
  2008-07-18 16:44 ` Pavel Roskin
  0 siblings, 1 reply; 8+ messages in thread
From: Pavel Roskin @ 2008-07-18 16:28 UTC (permalink / raw)
  To: stable; +Cc: ath5k-devel, linux-wireless, linville, mickflemm

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

 drivers/net/wireless/ath5k/base.c |    5 -----
 1 files changed, 0 insertions(+), 5 deletions(-)

diff --git a/drivers/net/wireless/ath5k/base.c b/drivers/net/wireless/ath5k/base.c
index 635b9ac..e57905c 100644
--- a/drivers/net/wireless/ath5k/base.c
+++ b/drivers/net/wireless/ath5k/base.c
@@ -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);

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

* Re: [PATCH] ath5k: don't enable MSI, we cannot handle it yet
  2008-07-18 16:28 [PATCH] ath5k: don't enable MSI, we cannot handle it yet Pavel Roskin
@ 2008-07-18 16:44 ` Pavel Roskin
  2008-07-18 16:49   ` Michael Buesch
  0 siblings, 1 reply; 8+ messages in thread
From: Pavel Roskin @ 2008-07-18 16:44 UTC (permalink / raw)
  To: stable; +Cc: ath5k-devel, linux-wireless, linville, mickflemm

On Fri, 2008-07-18 at 12:28 -0400, Pavel Roskin wrote:
> 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.

-- 
Regards,
Pavel Roskin

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

* Re: [PATCH] ath5k: don't enable MSI, we cannot handle it yet
  2008-07-18 16:44 ` Pavel Roskin
@ 2008-07-18 16:49   ` Michael Buesch
  2008-07-18 16:56     ` [PATCH v2] " Pavel Roskin
  2008-07-18 20:48     ` [stable] [PATCH] " Greg KH
  0 siblings, 2 replies; 8+ messages in thread
From: Michael Buesch @ 2008-07-18 16:49 UTC (permalink / raw)
  To: Pavel Roskin; +Cc: stable, ath5k-devel, linux-wireless, linville, mickflemm

On Friday 18 July 2008 18:44:47 Pavel Roskin wrote:
> On Fri, 2008-07-18 at 12:28 -0400, Pavel Roskin wrote:
> > 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 ;)

-- 
Greetings Michael.

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

* [PATCH v2] ath5k: don't enable MSI, we cannot handle it yet
  2008-07-18 16:49   ` Michael Buesch
@ 2008-07-18 16:56     ` Pavel Roskin
  2008-07-18 17:57       ` Nick Kossifidis
  2008-07-18 20:48     ` [stable] [PATCH] " Greg KH
  1 sibling, 1 reply; 8+ messages in thread
From: Pavel Roskin @ 2008-07-18 16:56 UTC (permalink / raw)
  To: ath5k-devel, linux-wireless, linville, Nick Kossifidis

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.

Signed-off-by: Pavel Roskin <proski@gnu.org>
---

 drivers/net/wireless/ath5k/base.c |    5 -----
 1 files changed, 0 insertions(+), 5 deletions(-)

diff --git a/drivers/net/wireless/ath5k/base.c b/drivers/net/wireless/ath5k/base.c
index 635b9ac..e57905c 100644
--- a/drivers/net/wireless/ath5k/base.c
+++ b/drivers/net/wireless/ath5k/base.c
@@ -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);


-- 
Regards,
Pavel Roskin

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

* Re: [PATCH v2] ath5k: don't enable MSI, we cannot handle it yet
  2008-07-18 16:56     ` [PATCH v2] " Pavel Roskin
@ 2008-07-18 17:57       ` Nick Kossifidis
  2008-07-18 18:29         ` Henrique de Moraes Holschuh
  2008-07-18 23:38         ` Kyle McMartin
  0 siblings, 2 replies; 8+ messages in thread
From: Nick Kossifidis @ 2008-07-18 17:57 UTC (permalink / raw)
  To: Pavel Roskin; +Cc: ath5k-devel, linux-wireless, linville

2008/7/18 Pavel Roskin <proski@gnu.org>:
> 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.
>
> Signed-off-by: Pavel Roskin <proski@gnu.org>
> ---
>
>  drivers/net/wireless/ath5k/base.c |    5 -----
>  1 files changed, 0 insertions(+), 5 deletions(-)
>
> diff --git a/drivers/net/wireless/ath5k/base.c b/drivers/net/wireless/ath5k/base.c
> index 635b9ac..e57905c 100644
> --- a/drivers/net/wireless/ath5k/base.c
> +++ b/drivers/net/wireless/ath5k/base.c
> @@ -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);
>
>
> --
> Regards,
> Pavel Roskin
>

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

Acked-by: Nick Kossifidis <mickflemm@gmail.com>

-- 
GPG ID: 0xD21DB2DB
As you read this post global entropy rises. Have Fun ;-)
Nick

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

* Re: [PATCH v2] ath5k: don't enable MSI, we cannot handle it yet
  2008-07-18 17:57       ` Nick Kossifidis
@ 2008-07-18 18:29         ` Henrique de Moraes Holschuh
  2008-07-18 23:38         ` Kyle McMartin
  1 sibling, 0 replies; 8+ messages in thread
From: Henrique de Moraes Holschuh @ 2008-07-18 18:29 UTC (permalink / raw)
  To: Nick Kossifidis; +Cc: Pavel Roskin, ath5k-devel, linux-wireless, linville

On Fri, 18 Jul 2008, Nick Kossifidis wrote:
> 2008/7/18 Pavel Roskin <proski@gnu.org>:
> > 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.
> >
> > Signed-off-by: Pavel Roskin <proski@gnu.org>
[...]
> Acked-by: Nick Kossifidis <mickflemm@gmail.com>
Cc: stable@kernel.org

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.

-- 
  "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

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

* Re: [stable] [PATCH] ath5k: don't enable MSI, we cannot handle it yet
  2008-07-18 16:49   ` Michael Buesch
  2008-07-18 16:56     ` [PATCH v2] " Pavel Roskin
@ 2008-07-18 20:48     ` Greg KH
  1 sibling, 0 replies; 8+ messages in thread
From: Greg KH @ 2008-07-18 20:48 UTC (permalink / raw)
  To: Michael Buesch
  Cc: Pavel Roskin, mickflemm, linux-wireless, stable, linville,
	ath5k-devel

On Fri, Jul 18, 2008 at 06:49:24PM +0200, Michael Buesch wrote:
> On Friday 18 July 2008 18:44:47 Pavel Roskin wrote:
> > On Fri, 2008-07-18 at 12:28 -0400, Pavel Roskin wrote:
> > > 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 ;)

I agree.

Also, to get stuff into -stable easily, just add:
	Cc: stable <stable@kernel.org>
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

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

* Re: [PATCH v2] ath5k: don't enable MSI, we cannot handle it yet
  2008-07-18 17:57       ` Nick Kossifidis
  2008-07-18 18:29         ` Henrique de Moraes Holschuh
@ 2008-07-18 23:38         ` Kyle McMartin
  1 sibling, 0 replies; 8+ messages in thread
From: Kyle McMartin @ 2008-07-18 23:38 UTC (permalink / raw)
  To: Nick Kossifidis; +Cc: Pavel Roskin, ath5k-devel, linux-wireless, linville

On Fri, Jul 18, 2008 at 08:57:39PM +0300, Nick Kossifidis wrote:
> > 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.
> >
> > Signed-off-by: Pavel Roskin <proski@gnu.org>
> 
> This is needed for all pci-e devices since enabling msi results no interrupts...
> 
> Acked-by: Nick Kossifidis <mickflemm@gmail.com>
> 

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

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

end of thread, other threads:[~2008-07-18 23:49 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-18 16:28 [PATCH] ath5k: don't enable MSI, we cannot handle it yet Pavel Roskin
2008-07-18 16:44 ` Pavel Roskin
2008-07-18 16:49   ` Michael Buesch
2008-07-18 16:56     ` [PATCH v2] " Pavel Roskin
2008-07-18 17:57       ` Nick Kossifidis
2008-07-18 18:29         ` Henrique de Moraes Holschuh
2008-07-18 23:38         ` Kyle McMartin
2008-07-18 20:48     ` [stable] [PATCH] " Greg KH

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).