]> www.infradead.org Git - users/jedix/linux-maple.git/commit
accel/qaic: Mask out SR-IOV PCI resources
authorYoussef Samir <quic_yabdulra@quicinc.com>
Fri, 17 Jan 2025 17:09:41 +0000 (10:09 -0700)
committerJeffrey Hugo <quic_jhugo@quicinc.com>
Fri, 31 Jan 2025 17:07:49 +0000 (10:07 -0700)
commit8685520474bfc0fe4be83c3cbfe3fb3e1ca1514a
treeb78d6d9065fcf3d17592929ad85e13f8778f389b
parent0600195ec70a57c3937275e6672927ee6b3c6306
accel/qaic: Mask out SR-IOV PCI resources

During the initialization of the qaic device, pci_select_bars() is
used to fetch a bitmask of the BARs exposed by the device. On devices
that have Virtual Functions capabilities, the bitmask includes SR-IOV
BARs.

Use a mask to filter out SR-IOV BARs if they exist.

Signed-off-by: Youssef Samir <quic_yabdulra@quicinc.com>
Reviewed-by: Jeffrey Hugo <quic_jhugo@quicinc.com>
Signed-off-by: Jeffrey Hugo <quic_jhugo@quicinc.com>
Reviewed-by: Lizhi Hou <lizhi.hou@amd.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20250117170943.2643280-6-quic_jhugo@quicinc.com
drivers/accel/qaic/qaic_drv.c