1. 30 11月, 2016 4 次提交
  2. 29 11月, 2016 2 次提交
    • B
      PCI: Update BARs using property bits appropriate for type · 45d004f4
      Bjorn Helgaas 提交于
      The BAR property bits (0-3 for memory BARs, 0-1 for I/O BARs) are supposed
      to be read-only, but we do save them in res->flags and include them when
      updating the BAR.
      
      Mask the I/O property bits with ~PCI_BASE_ADDRESS_IO_MASK (0x3) instead of
      PCI_REGION_FLAG_MASK (0xf) to make it obvious that we can't corrupt bits
      2-3 of I/O addresses.
      
      Use PCI_ROM_ADDRESS_MASK for ROM BARs.  This means we'll only check the top
      21 bits (instead of the 28 bits we used to check) of a ROM BAR to see if
      the update was successful.
      Signed-off-by: NBjorn Helgaas <bhelgaas@google.com>
      45d004f4
    • B
      PCI: Ignore BAR updates on virtual functions · 63880b23
      Bjorn Helgaas 提交于
      VF BARs are read-only zero, so updating VF BARs will not have any effect.
      See the SR-IOV spec r1.1, sec 3.4.1.11.
      
      We already ignore these updates because of 70675e0b ("PCI: Don't try to
      restore VF BARs"); this merely restructures it slightly to make it easier
      to split updates for standard and SR-IOV BARs.
      Signed-off-by: NBjorn Helgaas <bhelgaas@google.com>
      Reviewed-by: NGavin Shan <gwshan@linux.vnet.ibm.com>
      63880b23
  3. 24 11月, 2016 4 次提交
  4. 18 11月, 2016 1 次提交
  5. 15 10月, 2016 10 次提交
  6. 14 10月, 2016 4 次提交
  7. 13 10月, 2016 15 次提交