bus/pci: pcidev access from secondary process
Checks
Commit Message
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)
Cc: stable@dpdk.org
Signed-off-by: Vijaya Mohan Guvva <vijay1054@gmail.com>
---
drivers/bus/pci/pci_common_uio.c | 1 +
1 file changed, 1 insertion(+)
Comments
24/04/2020 19:08, Vijaya Mohan Guvva:
> 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)
> Cc: stable@dpdk.org
>
> Signed-off-by: Vijaya Mohan Guvva <vijay1054@gmail.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
Applied, thanks
@@ -70,6 +70,7 @@
}
return -1;
}
+ dev->mem_resource[i].addr = mapaddr;
}
return 0;
}