]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
bus: mhi: host: pci_generic: Read SUBSYSTEM_VENDOR_ID for VF's to check status
authorVivek Pernamitta <quic_vpernami@quicinc.com>
Fri, 12 Sep 2025 12:48:06 +0000 (18:18 +0530)
committerManivannan Sadhasivam <manivannan.sadhasivam@oss.qualcomm.com>
Fri, 19 Sep 2025 05:52:58 +0000 (11:22 +0530)
commitb4d01c5b9a9d2dc39f52be22809e845cc4c46f03
treec5614cb211e9a41e3a37985df9be65d424cfc63a
parenta9e3d5a69cf8d1a73733c52f593a3f803f576391
bus: mhi: host: pci_generic: Read SUBSYSTEM_VENDOR_ID for VF's to check status

In SR-IOV enabled devices, reading the VF DEVICE/VENDOR ID register
returns `FFFFh`, as specified in section 3.4.1.1 of the PCIe SR-IOV spec.
To accurately determine device activity, read the PCIe VENDOR_ID of
the Physical Function (PF) instead.
Health check monitoring for Virtual Functions (VFs) has been disabled,
since VFs are not physical functions and lack direct hardware control.
This change prevents unnecessary CPU cycles from being consumed by VF
health checks, which are both unintended and non-functional.

Signed-off-by: Vivek Pernamitta <quic_vpernami@quicinc.com>
Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@oss.qualcomm.com>
Reviewed-by: Krishna Chaitanya Chundru <krishna.chundru@oss.qualcomm.com>
Link: https://patch.msgid.link/20250912-uevent_vdev_next-20250911-v4-2-fa2f6ccd301b@quicinc.com
drivers/bus/mhi/host/pci_generic.c