Re: delays in sensors thread

2020-12-11 Thread Marcus Glocker
On Fri, Dec 11, 2020 at 10:01:35AM +0100, Alexandre Ratchov wrote: > On Fri, Dec 11, 2020 at 09:07:45AM +0100, Marcus Glocker wrote: > > > > After doing some deeper analyzes in to asmc_wait() I agree to that. > > Something seems to go fundamental wrong there. In every asmc_update() > >

Re: delays in sensors thread

2020-12-11 Thread Alexandre Ratchov
On Fri, Dec 11, 2020 at 09:07:45AM +0100, Marcus Glocker wrote: > > After doing some deeper analyzes in to asmc_wait() I agree to that. > Something seems to go fundamental wrong there. In every asmc_update() > execution, I can see asmc_wait() timeout 9 times, always on the > ASMC_ACCEPT check.

Re: delays in sensors thread

2020-12-11 Thread Marcus Glocker
On Thu, Dec 10, 2020 at 06:06:26PM -0300, Martin Pieuchot wrote: > On 10/12/20(Thu) 21:40, Alexandre Ratchov wrote: > > On Thu, Dec 10, 2020 at 05:27:16PM +0100, Marcus Glocker wrote: > > > Hi All, > > > > > > I recently started to play around with uvideo(4) and uaudio(4) on my > > > amd64

Re: delays in sensors thread

2020-12-10 Thread Martin Pieuchot
On 10/12/20(Thu) 21:40, Alexandre Ratchov wrote: > On Thu, Dec 10, 2020 at 05:27:16PM +0100, Marcus Glocker wrote: > > Hi All, > > > > I recently started to play around with uvideo(4) and uaudio(4) on my > > amd64 iMacs. There I quickly noticed regular freezes when streaming > > USB video or

Re: delays in sensors thread

2020-12-10 Thread Alexandre Ratchov
On Thu, Dec 10, 2020 at 05:27:16PM +0100, Marcus Glocker wrote: > Hi All, > > I recently started to play around with uvideo(4) and uaudio(4) on my > amd64 iMacs. There I quickly noticed regular freezes when streaming > USB video or audio. On some of those machines it was very frequent, > like

Re: delays in sensors thread

2020-12-10 Thread Martin Pieuchot
On 10/12/20(Thu) 18:47, Mark Kettenis wrote: > [...] > Sensor drivers that are "good citizens" should probably continue to > use the sensor thread. Butfor things like asmc(4) that handle a > largish bundle of sensors, a separate thread would be fine. And I > suspect that thread could run

Re: delays in sensors thread

2020-12-10 Thread Theo de Raadt
Mark Kettenis wrote: > Well, we deliberately chose not to do that since that would lead to a > gazillion of kernel threads if you have lots of sensor drivers. > > Sensor drivers that are "good citizens" should probably continue to > use the sensor thread. Butfor things like asmc(4) that handle

Re: delays in sensors thread

2020-12-10 Thread Mark Kettenis
> From: "Theo de Raadt" > Date: Thu, 10 Dec 2020 10:13:52 -0700 > > Marcus Glocker wrote: > > > Hi All, > > > > I recently started to play around with uvideo(4) and uaudio(4) on my > > amd64 iMacs. There I quickly noticed regular freezes when streaming > > USB video or audio. On some of

Re: delays in sensors thread

2020-12-10 Thread Theo de Raadt
Marcus Glocker wrote: > Hi All, > > I recently started to play around with uvideo(4) and uaudio(4) on my > amd64 iMacs. There I quickly noticed regular freezes when streaming > USB video or audio. On some of those machines it was very frequent, > like every few seconds the video or audio

delays in sensors thread

2020-12-10 Thread Marcus Glocker
Hi All, I recently started to play around with uvideo(4) and uaudio(4) on my amd64 iMacs. There I quickly noticed regular freezes when streaming USB video or audio. On some of those machines it was very frequent, like every few seconds the video or audio stream did freeze for ~1s, then resume,