hpsa.c (35d697c451678c3bf3f8a24f8e2b3918d1731bc5) hpsa.c (f89439bc2e12a0eab57f15411e668525dc7e61ec)
1/*
2 * Disk Array driver for HP Smart Array SAS controllers
3 * Copyright 2000, 2014 Hewlett-Packard Development Company, L.P.
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; version 2 of the License.
8 *

--- 6150 unchanged lines hidden (view full) ---

6159
6160 /* Some boards advertise MSI but don't really support it */
6161 if ((h->board_id == 0x40700E11) || (h->board_id == 0x40800E11) ||
6162 (h->board_id == 0x40820E11) || (h->board_id == 0x40830E11))
6163 goto default_int_mode;
6164 if (pci_find_capability(h->pdev, PCI_CAP_ID_MSIX)) {
6165 dev_info(&h->pdev->dev, "MSIX\n");
6166 h->msix_vector = MAX_REPLY_QUEUES;
1/*
2 * Disk Array driver for HP Smart Array SAS controllers
3 * Copyright 2000, 2014 Hewlett-Packard Development Company, L.P.
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; version 2 of the License.
8 *

--- 6150 unchanged lines hidden (view full) ---

6159
6160 /* Some boards advertise MSI but don't really support it */
6161 if ((h->board_id == 0x40700E11) || (h->board_id == 0x40800E11) ||
6162 (h->board_id == 0x40820E11) || (h->board_id == 0x40830E11))
6163 goto default_int_mode;
6164 if (pci_find_capability(h->pdev, PCI_CAP_ID_MSIX)) {
6165 dev_info(&h->pdev->dev, "MSIX\n");
6166 h->msix_vector = MAX_REPLY_QUEUES;
6167 if (h->msix_vector > num_online_cpus())
6168 h->msix_vector = num_online_cpus();
6167 err = pci_enable_msix(h->pdev, hpsa_msix_entries,
6168 h->msix_vector);
6169 if (err > 0) {
6170 dev_warn(&h->pdev->dev, "only %d MSI-X vectors "
6171 "available\n", err);
6172 h->msix_vector = err;
6173 err = pci_enable_msix(h->pdev, hpsa_msix_entries,
6174 h->msix_vector);

--- 1478 unchanged lines hidden ---
6169 err = pci_enable_msix(h->pdev, hpsa_msix_entries,
6170 h->msix_vector);
6171 if (err > 0) {
6172 dev_warn(&h->pdev->dev, "only %d MSI-X vectors "
6173 "available\n", err);
6174 h->msix_vector = err;
6175 err = pci_enable_msix(h->pdev, hpsa_msix_entries,
6176 h->msix_vector);

--- 1478 unchanged lines hidden ---