diff options
author | Sebastian Ott <sebott@linux.vnet.ibm.com> | 2014-10-29 19:12:04 +0100 |
---|---|---|
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2014-11-03 13:30:12 +0100 |
commit | b19148f6e2d90738ecf0c2eeeb9bdbae25c59e9b (patch) | |
tree | ed783c217e3f45029b243f615ce4e3ca239efcc7 /arch/s390/pci/pci_clp.c | |
parent | s390/cmpxchg: use compiler builtins (diff) | |
download | linux-b19148f6e2d90738ecf0c2eeeb9bdbae25c59e9b.tar.xz linux-b19148f6e2d90738ecf0c2eeeb9bdbae25c59e9b.zip |
s390/pci: improve irq number check for msix
s390s arch_setup_msi_irqs function ensures that we don't return with
more irqs than the PCI architecture allows and that a single PCI
function doesn't consume more irqs than the kernel is configured for.
At least the last check doesn't help much and should take the sum of
all irqs into account. Since that's already done by irq_alloc_desc
we can remove this check.
As for the first check we should use the value provided by the
firmware which can be less than what the PCI architecture allows.
Signed-off-by: Sebastian Ott <sebott@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'arch/s390/pci/pci_clp.c')
-rw-r--r-- | arch/s390/pci/pci_clp.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/s390/pci/pci_clp.c b/arch/s390/pci/pci_clp.c index 6e22a247de9b..d6e411ed8b1f 100644 --- a/arch/s390/pci/pci_clp.c +++ b/arch/s390/pci/pci_clp.c @@ -62,6 +62,7 @@ static void clp_store_query_pci_fngrp(struct zpci_dev *zdev, zdev->tlb_refresh = response->refresh; zdev->dma_mask = response->dasm; zdev->msi_addr = response->msia; + zdev->max_msi = response->noi; zdev->fmb_update = response->mui; switch (response->version) { |