Re: [PATCH 00/26] Don't use stack for DMA transers on dvb-usb drivers

2016-10-11 Thread Mauro Carvalho Chehab
Em Mon, 10 Oct 2016 07:44:53 -0400 Michael Ira Krufky escreveu: > Antti makes a very good point. If we consider a situation where we > are streaming data while concurrently checking frontend status and > polling for IR codes, some locking will certainly be required in all >

Re: [PATCH 00/26] Don't use stack for DMA transers on dvb-usb drivers

2016-10-10 Thread Antti Palosaari
Hello If you use usb buffers from the state you will need add lock in order to protect concurrent access to buffer. There may have multiple concurrent operations from rc-polling/demux/frontend. Lets say you are reading ber and it sets data to buffer (state), then context switch to remote

[PATCH 00/26] Don't use stack for DMA transers on dvb-usb drivers

2016-10-07 Thread Mauro Carvalho Chehab
Sending URB control messages from stack was never supported. Yet, on x86, the stack was usually at a memory region that allows DMA transfer. So, several drivers got it wrong. On Kernel 4.9, if VMAP_STACK=y, none of those drivers will work, as the stack won't be on a DMA-able area anymore. So,