Re: [PATCH] bus/pci: don't open uio device in secondary process

2024-10-10 Thread David Marchand
On Fri, Oct 11, 2024 at 8:38 AM Konrad Sztyber wrote: > > On 10/9/24 17:12, Stephen Hemminger wrote: > > That is what tap, and xdp are doing. > > Thanks for the info. I'll take a look and will send a next rev doing > something similar in uio. My two cents. net/tap uses the rte_mp_* infrastructure

Re: [PATCH] bus/pci: don't open uio device in secondary process

2024-10-10 Thread Konrad Sztyber
On 10/9/24 17:12, Stephen Hemminger wrote: That is what tap, and xdp are doing. Thanks for the info. I'll take a look and will send a next rev doing something similar in uio. Konrad

Re: [PATCH] bus/pci: don't open uio device in secondary process

2024-10-09 Thread Stephen Hemminger
On Wed, 9 Oct 2024 12:11:32 +0200 Konrad Sztyber wrote: > On 10/7/24 19:49, Stephen Hemminger wrote: > > On Wed, 28 Aug 2024 12:40:02 +0200 > > Konrad Sztyber wrote: > > > >> The uio_pci_generic driver clears the bus master bit when the device > >> file is closed. So, when the secondary proc

Re: [PATCH] bus/pci: don't open uio device in secondary process

2024-10-09 Thread Konrad Sztyber
On 10/7/24 19:49, Stephen Hemminger wrote: On Wed, 28 Aug 2024 12:40:02 +0200 Konrad Sztyber wrote: The uio_pci_generic driver clears the bus master bit when the device file is closed. So, when the secondary process terminates after probing a device, that device becomes unusable in the primar

Re: [PATCH] bus/pci: don't open uio device in secondary process

2024-10-07 Thread Stephen Hemminger
On Wed, 28 Aug 2024 12:40:02 +0200 Konrad Sztyber wrote: > The uio_pci_generic driver clears the bus master bit when the device > file is closed. So, when the secondary process terminates after probing > a device, that device becomes unusable in the primary process. > > To avoid that, the devic

Re: [PATCH] bus/pci: don't open uio device in secondary process

2024-08-29 Thread Chenbo Xia
> On Aug 28, 2024, at 18:40, Konrad Sztyber wrote: > > External email: Use caution opening links or attachments > > > The uio_pci_generic driver clears the bus master bit when the device > file is closed. So, when the secondary process terminates after probing Should be one space before ‘So

RE: [PATCH] bus/pci: don't open uio device in secondary process

2024-08-28 Thread Chaoyong He
> > The uio_pci_generic driver clears the bus master bit when the device file is > closed. So, when the secondary process terminates after probing a device, > that device becomes unusable in the primary process. > > To avoid that, the device file is now opened only in the primary process. The >

[PATCH] bus/pci: don't open uio device in secondary process

2024-08-28 Thread Konrad Sztyber
The uio_pci_generic driver clears the bus master bit when the device file is closed. So, when the secondary process terminates after probing a device, that device becomes unusable in the primary process. To avoid that, the device file is now opened only in the primary process. The commit that in