1. 16 7月, 2014 1 次提交
    • Y
      s390/MSI: Use standard mask and unmask funtions · 8fb878c5
      Yijing Wang 提交于
      MSI irqchip in s390 has its own mask and unmask MSI irq
      functions, zpci_enable_irq() and zpci_disable_irq().
      They mask and unmask MSI irq in standard ways, no arch
      special. MSI driver provides two global standard functions
      mask_msi_irq() and unmask_msi_irq(). Local zpci_enable_irq()
      and zpci_disable_irq() are almost the same as the standard
      two. the difference is local mask/unmask functions
      read the mask status before mask and unmask everytime.
      Then change the value and rewrite to hardware. In standard
      functions, save the mask status after mask and unmask msi
      irq, and use the cached status to change the mask status.
      When we mask or unmask a MSI irq, we always cache its
      mask status except we know need not to cache it, like in
      pci_msi_shutdown. So use the standard functions to replace
      the local is safe.
      Signed-off-by: NYijing Wang <wangyijing@huawei.com>
      [sebott: fixed inverted function pointers]
      Signed-off-by: NSebastian Ott <sebott@linux.vnet.ibm.com>
      Signed-off-by: NMartin Schwidefsky <schwidefsky@de.ibm.com>
      8fb878c5
  2. 23 5月, 2014 1 次提交
  3. 20 5月, 2014 1 次提交
  4. 16 5月, 2014 1 次提交
  5. 20 3月, 2014 1 次提交
    • B
      s390/PCI: Use generic pci_enable_resources() · d7533232
      Bjorn Helgaas 提交于
      The generic pci_enable_resources() does essentially the same thing as the
      code in the s390 version of pcibios_enable_device().
      
      There are differences, but I don't think any of them are a problem.  The
      generic code:
      
        - Checks everything up to PCI_NUM_RESOURCES, not PCI_BAR_COUNT (6), so
          we'll now check the ROM resource, IOV resources, and bridge windows.
      
        - Checks for res->flags & IORESOURCE_UNSET.  The s390 code never sets
          IORESOURCE_UNSET, so this isn't a problem.
      
        - Checks res->parent.  The s390 pcibios_add_device() calls
          pci_claim_resource() on all BARs (except ROM, IOV, and bridge windows)
          so this isn't a problem either.
      Signed-off-by: NBjorn Helgaas <bhelgaas@google.com>
      Acked-by: NSebastian Ott <sebott@linux.vnet.ibm.com>
      d7533232
  6. 21 12月, 2013 2 次提交
  7. 16 12月, 2013 2 次提交
  8. 15 11月, 2013 2 次提交
  9. 24 10月, 2013 3 次提交
  10. 30 8月, 2013 5 次提交
  11. 22 8月, 2013 3 次提交
  12. 27 6月, 2013 4 次提交
  13. 10 6月, 2013 1 次提交
  14. 26 4月, 2013 1 次提交
  15. 17 4月, 2013 9 次提交
  16. 14 2月, 2013 2 次提交
  17. 08 1月, 2013 1 次提交
    • H
      s390/irq: remove split irq fields from /proc/stat · 420f42ec
      Heiko Carstens 提交于
      Now that irq sum accounting for /proc/stat's "intr" line works again we
      have the oddity that the sum field (first field) contains only the sum
      of the second (external irqs) and third field (I/O interrupts).
      The reason for that is that these two fields are already sums of all other
      fields. So if we would sum up everything we would count every interrupt
      twice.
      This is broken since the split interrupt accounting was merged two years
      ago: 052ff461 "[S390] irq: have detailed
      statistics for interrupt types".
      To fix this remove the split interrupt fields from /proc/stat's "intr"
      line again and only have them in /proc/interrupts.
      
      This restores the old behaviour, seems to be the only sane fix and mimics
      a behaviour from other architectures where /proc/interrupts also contains
      more than /proc/stat's "intr" line does.
      Signed-off-by: NHeiko Carstens <heiko.carstens@de.ibm.com>
      Signed-off-by: NMartin Schwidefsky <schwidefsky@de.ibm.com>
      420f42ec