All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ACHI: Attempt to enable a single MSI if block enable fails
@ 2014-02-03 20:39 Michael Marley
  2014-02-03 20:46 ` Tejun Heo
  0 siblings, 1 reply; 4+ messages in thread
From: Michael Marley @ 2014-02-03 20:39 UTC (permalink / raw)
  To: tj; +Cc: linux-ide

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

From: Michael Marley <michael@michaelmarley.com>

Commit 7b92b4f61ec49cb1a5813298f35258bd7ecd3667 ("PCI/MSI: Remove
pci_enable_msi_block_auto()") causes the AHCI driver to immediately
switch to INTx mode if the pci_enable_msi_block() call fails to
allocate the requested number of MSIs. This behavior causes some
systems (for example, the Lenovo ThinkCentre m57p) to begin using
INTx when they worked fine in single MSI mode before.  This patch
makes the driver try to enable a single MSI if the
pci_enable_msi_block() call fails instead of switching directly
to INTx.

Signed-off-by: Michael Marley <michael@michaelmarley.com>

- ---

- --- drivers/ata/ahci.c.orig	2014-02-03 20:00:04.834008843 +0000
+++ drivers/ata/ahci.c	2014-02-03 19:34:53.737257483 +0000
@@ -1171,7 +1171,7 @@ static int ahci_init_interrupts(struct p
 	nvec = rc;
 	rc = pci_enable_msi_block(pdev, nvec);
 	if (rc)
- -		goto intx;
+		goto single_msi;

 	return nvec;

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBAgAGBQJS7/5/AAoJEANTUn3blhEaLo8P/31AEbD9b61h2zFAcGlqZmN/
OEp69smHl9DbciaL0nQGIY4TRUpjA2XVxT/ZC3Fdz0huqX226g2D2G7/LLk299r3
m/GC89640FBRaVqNTASNKvIANlq0t2vgdOXGsgLXCD3EAigMdCVLiKNvdDYpUdXo
uaUg7WTVM12U+bWCrTB0RVgU7kKqkPSWb59kUPFaInjrTWzZ4jf4SZEzOr1b6mB0
Ihn/BsMf76q9rzGEwTaKPV+BrS/QZY5oz23r8+Pqw+lNVgtnmCQ7UkRJ40MI3roS
lU68syoG/CjI6imO/TQcr54eHMTBRl55Ut4VO/iLYaJKhXGGsuP43oPrJM0LZzpi
jjwzgz4Bij0Hi5Wx7AS0sDNEERi+w4At/+eKQmUkjA6qUblzIKCpMMCmp0CvodXH
8J9TU9CqcnQs2hgGy990nFxdmiLh+Ee5NFBfKxpTGxv4eAjuK6RbxMLfndF6rRXO
MpMoFMK3BdFnQoi6We5er7HKPcbqOpR2hrw8mALhWDxgv+N2pq1J5uG69mc5vwxJ
YV7N0tnCtVTyxGavtMP669YCNH0KvRzXJvzJRE1TuuTvNu+oudMWJinilyhPnYJk
U5DYzLWj4t42qEsGr3QjFBEv90DG/LNc5YavI9XOfepjGFbdlcGQPAe3HnaE86KD
s9JiFcvAixL295414PRN
=f6LE
-----END PGP SIGNATURE-----

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

end of thread, other threads:[~2014-02-04 16:41 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-02-03 20:39 [PATCH] ACHI: Attempt to enable a single MSI if block enable fails Michael Marley
2014-02-03 20:46 ` Tejun Heo
2014-02-04  6:01   ` Alexander Gordeev
2014-02-04 16:40     ` Bjorn Helgaas

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.