Skip to contentSkip to conversation

bus/pci: pcidev access from secondary process

PATCH Applied Vijaya Mohan Guvva 2 participants 2 messages Apr 24, 2020 – Apr 25, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 bus/pci: pcidev access from secondary process

For pci devices presented through igb_uio, pcidev->mem_resource[] is not populated when the device is initialized for secondary process.

Initialize pcidev->mem_resource[] with pci-bar mapped addresses.

Fixes c752998b (pci: introduce library and driver)
---
 drivers/bus/pci/pci_common_uio.c | 1 +
 1 file changed, 1 insertion(+)
drivers/bus/pci/pci_common_uio.c +1 -0
index 7ea73db..f4dca9d 100644
@@ -70,6 +70,7 @@
 				}
 				return -1;
 			}
+			dev->mem_resource[i].addr = mapaddr;
 		}
 		return 0;
 	}
Signature · 1 line
1.8.3.1
Reviewed-by Ferruh Yigit on v1 1/1 Applied
#1 lore raw

24/04/2020 19:08, Vijaya Mohan Guvva:

Quoted 9 lines

For pci devices presented through igb_uio, pcidev->mem_resource[] is not populated when the device is initialized for secondary process.

Initialize pcidev->mem_resource[] with pci-bar mapped addresses.

Fixes c752998b (pci: introduce library and driver)

Applied, thanks