An error occurred fetching the project authors.
  1. 21 Aug, 2020 2 commits
  2. 26 Jun, 2020 1 commit
    • Bolarinwa Olayemi Saheed's avatar
      PCI: Convert PCIe capability PCIBIOS errors to errno · d20df83b
      Bolarinwa Olayemi Saheed authored
      The PCI config accessors (pci_read_config_word(), et al) return
      PCIBIOS_SUCCESSFUL (zero) or positive error values like
      PCIBIOS_FUNC_NOT_SUPPORTED.
      
      The PCIe capability accessors (pcie_capability_read_word(), et al)
      similarly return PCIBIOS errors, but some callers assume they return
      generic errno values like -EINVAL.
      
      For example, the Myri-10G probe function returns a positive PCIBIOS error
      if the pcie_capability_clear_and_set_word() in pcie_set_readrq() fails:
      
        myri10ge_probe
          status = pcie_set_readrq
            return pcie_capability_clear_and_set_word
          if (status)
            return status
      
      A positive return from a PCI driver probe function would cause a "Driver
      probe function unexpectedly returned" warning from local_pci_probe()
      instead of the desired probe failure.
      
      Convert PCIBIOS errors to generic errno for all callers of:
      
        pcie_capability_read_word
        pcie_capability_read_dword
        pcie_capability_write_word
        pcie_capability_write_dword
        pcie_capability_set_word
        pcie_capability_set_dword
        pcie_capability_clear_word
        pcie_capability_clear_dword
        pcie_capability_clear_and_set_word
        pcie_capability_clear_and_set_dword
      
      that check the return code for anything other than zero.
      
      [bhelgaas: commit log, squash together]
      Suggested-by: default avatarBjorn Helgaas <bjorn@helgaas.com>
      Link: https://lore.kernel.org/r/20200615073225.24061-1-refactormyself@gmail.comSigned-off-by: default avatarBolarinwa Olayemi Saheed <refactormyself@gmail.com>
      Signed-off-by: default avatarBjorn Helgaas <bhelgaas@google.com>
      d20df83b
  3. 17 Mar, 2020 1 commit
  4. 06 Jan, 2020 1 commit
  5. 09 Dec, 2019 1 commit
  6. 10 Oct, 2019 8 commits
  7. 01 Oct, 2019 3 commits
  8. 29 Aug, 2019 10 commits
  9. 05 Jun, 2019 1 commit
  10. 30 May, 2019 1 commit
    • Lianbo Jiang's avatar
      scsi: smartpqi: properly set both the DMA mask and the coherent DMA mask · 1d94f06e
      Lianbo Jiang authored
      When SME is enabled, the smartpqi driver won't work on the HP DL385 G10
      machine, which causes the failure of kernel boot because it fails to
      allocate pqi error buffer. Please refer to the kernel log:
      ....
      [    9.431749] usbcore: registered new interface driver uas
      [    9.441524] Microsemi PQI Driver (v1.1.4-130)
      [    9.442956] i40e 0000:04:00.0: fw 6.70.48768 api 1.7 nvm 10.2.5
      [    9.447237] smartpqi 0000:23:00.0: Microsemi Smart Family Controller found
               Starting dracut initqueue hook...
      [  OK  ] Started Show Plymouth Boot Scre[    9.471654] Broadcom NetXtreme-C/E driver bnxt_en v1.9.1
      en.
      [  OK  ] Started Forward Password Requests to Plymouth Directory Watch.
      [[0;[    9.487108] smartpqi 0000:23:00.0: failed to allocate PQI error buffer
      ....
      [  139.050544] dracut-initqueue[949]: Warning: dracut-initqueue timeout - starting timeout scripts
      [  139.589779] dracut-initqueue[949]: Warning: dracut-initqueue timeout - starting timeout scripts
      
      Basically, the fact that the coherent DMA mask value wasn't set caused the
      driver to fall back to SWIOTLB when SME is active.
      
      For correct operation, lets call the dma_set_mask_and_coherent() to
      properly set the mask for both streaming and coherent, in order to inform
      the kernel about the devices DMA addressing capabilities.
      Signed-off-by: default avatarLianbo Jiang <lijiang@redhat.com>
      Acked-by: default avatarDon Brace <don.brace@microsemi.com>
      Tested-by: default avatarDon Brace <don.brace@microsemi.com>
      Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
      1d94f06e
  11. 20 May, 2019 1 commit
  12. 19 Mar, 2019 1 commit
  13. 18 Mar, 2019 5 commits
  14. 06 Mar, 2019 1 commit
  15. 08 Feb, 2019 1 commit
  16. 09 Jan, 2019 1 commit
  17. 08 Jan, 2019 1 commit