* [PATCH RESEND 0/2] : block: Use pci_enable_msix_exact()
@ 2014-04-21 15:19 Alexander Gordeev
2014-04-21 15:19 ` [PATCH RESEND 1/2] skd: Use pci_enable_msix_exact() instead of pci_enable_msix_range() Alexander Gordeev
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Alexander Gordeev @ 2014-04-21 15:19 UTC (permalink / raw)
To: linux-kernel
Cc: Alexander Gordeev, Jens Axboe, Bartlomiej Zolnierkiewicz,
Kyungmin Park, Mike Miller, iss_storagedev, linux-pci
Hi Jens,
The series is against v3.15-rc1. The patches complete converison
of block layer device drivers to the new MSI initialization API.
Thanks!
Cc: Jens Axboe <axboe@kernel.dk>
Cc: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Cc: Kyungmin Park <kyungmin.park@samsung.com>
Cc: Mike Miller <mike.miller@hp.com>
Cc: iss_storagedev@hp.com
Cc: linux-pci@vger.kernel.org
Alexander Gordeev (2):
skd: Use pci_enable_msix_exact() instead of pci_enable_msix_range()
cciss: Use pci_enable_msix_exact() instead of pci_enable_msix()
drivers/block/cciss.c | 6 +-----
drivers/block/skd_main.c | 7 +++----
2 files changed, 4 insertions(+), 9 deletions(-)
--
1.7.7.6
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH RESEND 1/2] skd: Use pci_enable_msix_exact() instead of pci_enable_msix_range()
2014-04-21 15:19 [PATCH RESEND 0/2] : block: Use pci_enable_msix_exact() Alexander Gordeev
@ 2014-04-21 15:19 ` Alexander Gordeev
2014-04-21 15:19 ` [PATCH RESEND 2/2] cciss: Use pci_enable_msix_exact() instead of pci_enable_msix() Alexander Gordeev
2014-04-22 1:02 ` [PATCH RESEND 0/2] : block: Use pci_enable_msix_exact() Jens Axboe
2 siblings, 0 replies; 4+ messages in thread
From: Alexander Gordeev @ 2014-04-21 15:19 UTC (permalink / raw)
To: linux-kernel
Cc: Alexander Gordeev, Jens Axboe, Bartlomiej Zolnierkiewicz,
Kyungmin Park, linux-pci
Function pci_enable_msix_exact() is a variation of
pci_enable_msix_range() that allows a device driver
to request a particular number of MSI-X interrupts,
rather than any number within a specified range.
Signed-off-by: Alexander Gordeev <agordeev@redhat.com>
Cc: Jens Axboe <axboe@kernel.dk>
Cc: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Cc: Kyungmin Park <kyungmin.park@samsung.com>
Cc: linux-pci@vger.kernel.org
---
drivers/block/skd_main.c | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
diff --git a/drivers/block/skd_main.c b/drivers/block/skd_main.c
index a69dd93..c244c5bc 100644
--- a/drivers/block/skd_main.c
+++ b/drivers/block/skd_main.c
@@ -3945,15 +3945,14 @@ static int skd_acquire_msix(struct skd_device *skdev)
for (i = 0; i < SKD_MAX_MSIX_COUNT; i++)
entries[i].entry = i;
- rc = pci_enable_msix_range(pdev, entries,
- SKD_MIN_MSIX_COUNT, SKD_MAX_MSIX_COUNT);
- if (rc < 0) {
+ rc = pci_enable_msix_exact(pdev, entries, SKD_MAX_MSIX_COUNT);
+ if (rc) {
pr_err("(%s): failed to enable MSI-X %d\n",
skd_name(skdev), rc);
goto msix_out;
}
- skdev->msix_count = rc;
+ skdev->msix_count = SKD_MAX_MSIX_COUNT;
skdev->msix_entries = kzalloc(sizeof(struct skd_msix_entry) *
skdev->msix_count, GFP_KERNEL);
if (!skdev->msix_entries) {
--
1.7.7.6
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH RESEND 2/2] cciss: Use pci_enable_msix_exact() instead of pci_enable_msix()
2014-04-21 15:19 [PATCH RESEND 0/2] : block: Use pci_enable_msix_exact() Alexander Gordeev
2014-04-21 15:19 ` [PATCH RESEND 1/2] skd: Use pci_enable_msix_exact() instead of pci_enable_msix_range() Alexander Gordeev
@ 2014-04-21 15:19 ` Alexander Gordeev
2014-04-22 1:02 ` [PATCH RESEND 0/2] : block: Use pci_enable_msix_exact() Jens Axboe
2 siblings, 0 replies; 4+ messages in thread
From: Alexander Gordeev @ 2014-04-21 15:19 UTC (permalink / raw)
To: linux-kernel
Cc: Alexander Gordeev, Mike Miller, iss_storagedev, Jens Axboe,
linux-pci
As result of deprecation of MSI-X/MSI enablement functions
pci_enable_msix() and pci_enable_msi_block() all drivers
using these two interfaces need to be updated to use the
new pci_enable_msi_range() or pci_enable_msi_exact()
and pci_enable_msix_range() or pci_enable_msix_exact()
interfaces.
Signed-off-by: Alexander Gordeev <agordeev@redhat.com>
Cc: Mike Miller <mike.miller@hp.com>
Cc: iss_storagedev@hp.com
Cc: Jens Axboe <axboe@kernel.dk>
Cc: linux-pci@vger.kernel.org
---
drivers/block/cciss.c | 6 +-----
1 files changed, 1 insertions(+), 5 deletions(-)
diff --git a/drivers/block/cciss.c b/drivers/block/cciss.c
index 73894ca..4595c22 100644
--- a/drivers/block/cciss.c
+++ b/drivers/block/cciss.c
@@ -4080,7 +4080,7 @@ static void cciss_interrupt_mode(ctlr_info_t *h)
goto default_int_mode;
if (pci_find_capability(h->pdev, PCI_CAP_ID_MSIX)) {
- err = pci_enable_msix(h->pdev, cciss_msix_entries, 4);
+ err = pci_enable_msix_exact(h->pdev, cciss_msix_entries, 4);
if (!err) {
h->intr[0] = cciss_msix_entries[0].vector;
h->intr[1] = cciss_msix_entries[1].vector;
@@ -4088,10 +4088,6 @@ static void cciss_interrupt_mode(ctlr_info_t *h)
h->intr[3] = cciss_msix_entries[3].vector;
h->msix_vector = 1;
return;
- }
- if (err > 0) {
- dev_warn(&h->pdev->dev,
- "only %d MSI-X vectors available\n", err);
} else {
dev_warn(&h->pdev->dev,
"MSI-X init failed %d\n", err);
--
1.7.7.6
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH RESEND 0/2] : block: Use pci_enable_msix_exact()
2014-04-21 15:19 [PATCH RESEND 0/2] : block: Use pci_enable_msix_exact() Alexander Gordeev
2014-04-21 15:19 ` [PATCH RESEND 1/2] skd: Use pci_enable_msix_exact() instead of pci_enable_msix_range() Alexander Gordeev
2014-04-21 15:19 ` [PATCH RESEND 2/2] cciss: Use pci_enable_msix_exact() instead of pci_enable_msix() Alexander Gordeev
@ 2014-04-22 1:02 ` Jens Axboe
2 siblings, 0 replies; 4+ messages in thread
From: Jens Axboe @ 2014-04-22 1:02 UTC (permalink / raw)
To: Alexander Gordeev, linux-kernel
Cc: Bartlomiej Zolnierkiewicz, Kyungmin Park, Mike Miller,
iss_storagedev, linux-pci
On 2014-04-21 09:19, Alexander Gordeev wrote:
> Hi Jens,
>
> The series is against v3.15-rc1. The patches complete converison
> of block layer device drivers to the new MSI initialization API.
Thanks, applied for 3.16.
--
Jens Axboe
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2014-04-22 1:02 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-04-21 15:19 [PATCH RESEND 0/2] : block: Use pci_enable_msix_exact() Alexander Gordeev
2014-04-21 15:19 ` [PATCH RESEND 1/2] skd: Use pci_enable_msix_exact() instead of pci_enable_msix_range() Alexander Gordeev
2014-04-21 15:19 ` [PATCH RESEND 2/2] cciss: Use pci_enable_msix_exact() instead of pci_enable_msix() Alexander Gordeev
2014-04-22 1:02 ` [PATCH RESEND 0/2] : block: Use pci_enable_msix_exact() Jens Axboe
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).