diff options
author | Andy Fiddaman <omnios@citrus-it.co.uk> | 2022-01-21 12:42:57 +0000 |
---|---|---|
committer | Andy Fiddaman <omnios@citrus-it.co.uk> | 2022-01-24 14:23:14 +0000 |
commit | 9ddf79f971e99ac9fc94da5126fe4c68c077ea6d (patch) | |
tree | fdcde778481d9d16548436ed7eff01d6d0e8d5ba /usr | |
parent | 1c53c56f27c8091f8066fb65aceeca8ee8b6df7a (diff) | |
download | illumos-gate-9ddf79f971e99ac9fc94da5126fe4c68c077ea6d.tar.gz |
14438 ppt gets width of PCIE_DEVCAP wrong
Reviewed by: Robert Mustacchi <rm+illumos@fingolfin.org>
Reviewed by: Patrick Mooney <pmooney@pfmooney.com>
Reviewed by: Toomas Soome <tsoome@me.com>
Approved by: Gordon Ross <gordon.w.ross@gmail.com>
Diffstat (limited to 'usr')
-rw-r--r-- | usr/src/uts/i86pc/io/vmm/io/ppt.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr/src/uts/i86pc/io/vmm/io/ppt.c b/usr/src/uts/i86pc/io/vmm/io/ppt.c index fcb10716a8..ce6e6eb735 100644 --- a/usr/src/uts/i86pc/io/vmm/io/ppt.c +++ b/usr/src/uts/i86pc/io/vmm/io/ppt.c @@ -754,7 +754,7 @@ ppt_max_completion_tmo_us(dev_info_t *dip) PCIE_PCIECAP_VER_MASK) < PCIE_PCIECAP_VER_2_0) goto out; - if ((PCI_CAP_GET16(hdl, 0, cap_ptr, PCIE_DEVCAP2) & + if ((PCI_CAP_GET32(hdl, 0, cap_ptr, PCIE_DEVCAP2) & PCIE_DEVCTL2_COM_TO_RANGE_MASK) == 0) goto out; @@ -782,7 +782,7 @@ ppt_flr(dev_info_t *dip, boolean_t force) if (PCI_CAP_LOCATE(hdl, PCI_CAP_ID_PCI_E, &cap_ptr) != DDI_SUCCESS) goto fail; - if ((PCI_CAP_GET16(hdl, 0, cap_ptr, PCIE_DEVCAP) & PCIE_DEVCAP_FLR) + if ((PCI_CAP_GET32(hdl, 0, cap_ptr, PCIE_DEVCAP) & PCIE_DEVCAP_FLR) == 0) goto fail; |