Re: [PATCH v2 1/2] bus/pci: fix secondary process PCI uio resource map problem

2024-03-14 Thread Burakov, Anatoly
On 1/29/2024 10:22 AM, Chaoyong He wrote: From: Zerun Fu For the primary process, the logic loops all BARs and will skip the map of BAR with an invalid physical address (0), also will assign 'uio_res->nb_maps' with the real mapped BARs number. But for the secondary process, instead of loops all

Re: [PATCH v2 1/2] bus/pci: fix secondary process PCI uio resource map problem

2024-01-29 Thread fengchengwen
Hi, Nice to see this fix. ps: our team also founds this problem, and the bugfix is still being reviewed internally. As for this patch, I prefer not extract subfunction, because the father is simple and just need do some minor adjustment. map_idx = 0; for (i = 0;

[PATCH v2 1/2] bus/pci: fix secondary process PCI uio resource map problem

2024-01-29 Thread Chaoyong He
From: Zerun Fu For the primary process, the logic loops all BARs and will skip the map of BAR with an invalid physical address (0), also will assign 'uio_res->nb_maps' with the real mapped BARs number. But for the secondary process, instead of loops all BARs, the logic using the 'uio_res->nb_map'