Write from mmapped buffer to O_DIRECT output file

2017-04-19 Thread Mikhail Karpenko
Hello, I have a devices which writes to a video buffer. This buffer is allocated in system memory using CMA and I want to implement streaming write from this buffer to a block device. My application opens video buffer with mmap and I would like to use O_DIRECT write to avoid page cache related ove

Re: Patch Question

2017-04-19 Thread Lino Sanfilippo
On 19.04.2017 18:46, Perry Hooker wrote: > > Understood. I'm still open to the possibility that I've made a mistake > - I don't want to re-submit the patch if my analysis is incorrect. > > Maybe I didn't make it clear (my apologies if so) - what I'm really > looking for here is help confirming

Re: What is the fastest way to build and boot a kernel

2017-04-19 Thread Code Soldier1
On Wed, Apr 19, 2017 at 3:32 AM, Tobin C. Harding wrote: > On Tue, Apr 18, 2017 at 08:59:36AM -0700, Code Soldier1 wrote: > [snip] > > Why the moniker? Why not ? unlike most people today I value my privacy. -- CS1 ___ Kernelnewbies mailing list Kerne

Re: What is the fastest way to build and boot a kernel

2017-04-19 Thread Stephen Brennan
On Tue, Apr 18, 2017 at 08:59:36AM -0700, Code Soldier1 wrote: > Can someone suggest what is the fastest way to build a minimal kernel > and boot. For example if I am working on TCP and would like to make a > small change and reboot, what is the fastest way, I rather not build > the whole kernel.

Re: How to make per process firewall ?

2017-04-19 Thread Stephen Brennan
> I would like to constrain process (by name) or group of process to specific > network interface and to specific port. This sounds like an excellent use-case for network namespaces [1]. They create an entire virtualized network stack within the kernel. This includes everything from network device

Re: Patch Question

2017-04-19 Thread Perry Hooker
Thank you for your reply. > It's _your_ responsibility to convince me that your patch is correct and > should be applied. If no one respondes after a week or so, resend it, > with your additional information in the changelog so that the same > conversation doesn't happen again. Understood. I'm s

Re: Patch Question

2017-04-19 Thread Greg KH
On Wed, Apr 19, 2017 at 09:54:33AM -0600, Perry Hooker wrote: > At this point, no one has commented on the accuracy of my analysis. > Such comments are exactly what I'm hoping for (and what I requested - > not "demanded" - in my replies). As the one responsible for actually applying this specific

Re: Patch Question

2017-04-19 Thread Perry Hooker
> Dan Carpenter is very good at what he dose. I would be hesitant to > ever call him or anyone as experienced 'flat-out incorrect'. Mr. Carpenter's first assertion that the patch "introduces bugs" was incorrect by his own admission: https://lkml.org/lkml/2017/3/22/120 Additionally, his assertion

Re: Patch Question

2017-04-19 Thread Perry Hooker
> As far as I understood Dan Carpenters (last) post in that thread, the content > in the buffer > is already in little endian order. In this case the code is correct as it is > and there is no need > for the change you propose. Yes, I believe Mr. Carpenter is mistaken - I think the data is in ho

Re: Patch Question

2017-04-19 Thread Lino Sanfilippo
Hi, On 18.04.2017 01:28, Perry Hooker wrote: > Hi everyone, > > I recently submitted a patch to the kernel mailing list: > https://lkml.org/lkml/2017/3/21/712 > > I received some feedback on the patch. After a bit of polite > back-and-forth, the respondent stopped replying when I asked for more

Re: What is the fastest way to build and boot a kernel

2017-04-19 Thread Aruna Hewapathirane
>> On Wed, Apr 19, 2017 at 6:49 AM, wrote: >> On Wed, 19 Apr 2017 20:32:31 +1000, "Tobin C. Harding" said: >> On Tue, Apr 18, 2017 at 08:59:36AM -0700, Code Soldier1 wrote: >> [snip] >> >> Why the moniker? >>Could be worse. "Code Cannon Fodder", for example And this is what happens when you

Re: What is the fastest way to build and boot a kernel

2017-04-19 Thread Aruna Hewapathirane
>> On Tue, Apr 18, 2017 at 11:59 AM, Code Soldier1 wrote: >> Hi, >> Can someone suggest what is the fastest way to build a minimal kernel >> and boot. Two ways to build a minimal kernel. Try make localmodconfig or make tinyconfig and see what fits your needs best. If this is still not what you n

Re: What is the fastest way to build and boot a kernel

2017-04-19 Thread valdis . kletnieks
On Wed, 19 Apr 2017 20:32:31 +1000, "Tobin C. Harding" said: > On Tue, Apr 18, 2017 at 08:59:36AM -0700, Code Soldier1 wrote: > [snip] > > Why the moniker? Could be worse. "Code Cannon Fodder", for example pgpv0BFLq0gT5.pgp Description: PGP signature _

Re: What is the fastest way to build and boot a kernel

2017-04-19 Thread Tobin C. Harding
On Tue, Apr 18, 2017 at 08:59:36AM -0700, Code Soldier1 wrote: [snip] Why the moniker? ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies