From 9ddf79f971e99ac9fc94da5126fe4c68c077ea6d Mon Sep 17 00:00:00 2001 From: Andy Fiddaman Date: Fri, 21 Jan 2022 12:42:57 +0000 Subject: 14438 ppt gets width of PCIE_DEVCAP wrong Reviewed by: Robert Mustacchi Reviewed by: Patrick Mooney Reviewed by: Toomas Soome Approved by: Gordon Ross --- usr/src/uts/i86pc/io/vmm/io/ppt.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'usr') 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; -- cgit v1.2.3