Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1646157

Re: [REGRESSION] Failed network caused by: xhci: switch to pci_alloc_irq_vectors

From Christoph Hellwig <hch@lst.de>
Newsgroups linux.kernel
Subject Re: [REGRESSION] Failed network caused by: xhci: switch to pci_alloc_irq_vectors
Date 2017-05-20 19:00 +0200
Message-ID <tJfTr-3Yx-3@gated-at.bofh.it> (permalink)
References (1 earlier) <tIIXv-60O-1@gated-at.bofh.it> <tIN18-GC-21@gated-at.bofh.it> <tIPmh-2aO-3@gated-at.bofh.it> <tIPvY-2eo-3@gated-at.bofh.it> <tJfTr-3Yx-5@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Sat, May 20, 2017 at 09:49:56AM -0700, Linus Torvalds wrote:
> Side note: why is it doing that " > 1" check, when any value _other_
> than 1 is wrong?

It's the same effect, so either one is fine with me.

> Also, to match the non-MSI implementation, wouldn't it be nicer to
> just write it that same way (and also verify "dev->irq"):
> 
>         if (flags & PCI_IRQ_LEGACY) {
>                 if (min_vecs == 1 && dev->irq)
>                         return 1;
>         }
>         return -ENOSPC;
> 
> (the exact error value probably doesn't matter in practice, but the
> CONFIG_MSI case returns ENOSPC by default and that's what
> Documentation/PCI/MSI-HOWTO.txt says too).

Sure.  Just sent the previous version to Bjorn so that he could maybe
make it for -rc2, but I'll respin it.

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Re: [REGRESSION] Failed network caused by: xhci: switch to  pci_alloc_irq_vectors Greg Kroah-Hartman <gregkh@linuxfoundation.org> - 2017-05-19 07:50 +0200
  Re: [REGRESSION] Failed network caused by: xhci: switch to  pci_alloc_irq_vectors Steven Rostedt <rostedt@goodmis.org> - 2017-05-19 12:10 +0200
    Re: [REGRESSION] Failed network caused by: xhci: switch to  pci_alloc_irq_vectors Steven Rostedt <rostedt@goodmis.org> - 2017-05-19 14:40 +0200
      Re: [REGRESSION] Failed network caused by: xhci: switch to         pci_alloc_irq_vectors Christoph Hellwig <hch@lst.de> - 2017-05-19 14:50 +0200
        Re: [REGRESSION] Failed network caused by: xhci: switch to  pci_alloc_irq_vectors Steven Rostedt <rostedt@goodmis.org> - 2017-05-19 15:50 +0200
        Re: [REGRESSION] Failed network caused by: xhci: switch to         pci_alloc_irq_vectors Christoph Hellwig <hch@lst.de> - 2017-05-20 19:00 +0200
        Re: [REGRESSION] Failed network caused by: xhci: switch to pci_alloc_irq_vectors Linus Torvalds <torvalds@linux-foundation.org> - 2017-05-20 19:00 +0200

csiph-web