bus/pci: pcidev access from secondary process
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)
Signed-off-by Vijaya Mohan Guvva <[email protected]>
--- drivers/bus/pci/pci_common_uio.c | 1 + 1 file changed, 1 insertion(+)
drivers/bus/pci/pci_common_uio.c +1 -0
@@ -70,6 +70,7 @@ }return -1 ; } + dev->mem_resource[i].addr = mapaddr; }return 0 ; }
Signature · 1 line
1.8.3.1
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)Signed-off-by Vijaya Mohan Guvva <[email protected]>
Reviewed-by Ferruh Yigit <[email protected]>
Applied, thanks