Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752458AbZK2XhV (ORCPT ); Sun, 29 Nov 2009 18:37:21 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752185AbZK2XhU (ORCPT ); Sun, 29 Nov 2009 18:37:20 -0500 Received: from mail1.radix.net ([207.192.128.31]:44829 "EHLO mail1.radix.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752093AbZK2XhT (ORCPT ); Sun, 29 Nov 2009 18:37:19 -0500 Subject: Re: [RFC] What are the goals for the architecture of an in-kernel IR system? From: Andy Walls To: Ray Lee Cc: Maxim Levitsky , Alan Cox , Jon Smirl , Krzysztof Halasa , Christoph Bartelmus , dmitry.torokhov@gmail.com, j@jannau.net, jarod@redhat.com, jarod@wilsonet.com, linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, mchehab@redhat.com, stefanr@s5r6.in-berlin.de, superm1@ubuntu.com In-Reply-To: <2c0942db0911290949p89ae64bjc3c7501c2de6930c@mail.gmail.com> References: <9e4733910911280906if1191a1jd3d055e8b781e45c@mail.gmail.com> <9e4733910911280937k37551b38g90f4a60b73665853@mail.gmail.com> <1259469121.3125.28.camel@palomino.walls.org> <20091129124011.4d8a6080@lxorguk.ukuu.org.uk> <1259515703.3284.11.camel@maxim-laptop> <2c0942db0911290949p89ae64bjc3c7501c2de6930c@mail.gmail.com> Content-Type: text/plain Date: Sun, 29 Nov 2009 18:35:32 -0500 Message-Id: <1259537732.5231.11.camel@palomino.walls.org> Mime-Version: 1.0 X-Mailer: Evolution 2.24.5 (2.24.5-2.fc10) Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1606 Lines: 40 On Sun, 2009-11-29 at 09:49 -0800, Ray Lee wrote: > On Sun, Nov 29, 2009 at 9:28 AM, Maxim Levitsky wrote: > > This has zero advantages besides good developer feeling that "My system > > has one less daemon..." > > Surely it's clear that having an unnecessary daemon is introducing > another point of failure? A failure in a userspace IR daemon is worst case loss of IR functionality. A failure in kernel space can oops or panic the machine. > Reducing complexity is not just its own > reward in a 'Developer Feel Good' way. No complexity is being reduced here. It's being shoved from one side of a fence to another. A bad part about the proposed move is that in user space, user address space is fairly isolated from other applications and separate from kernel space. Partitioning reduces complexity and the impact of failures. Moving things into kernel space just adds more to the pile of code; it should have a good reason for being there. > If decoding can *only* be sanely handled in user-space, that's one > thing. If it can be handled in kernel, then that would be better. Why does the address space in which decoding is performed make the decoding process better or worse? The in kernel infrastructre and restrictions add constraints to a decoding implementation. Userspace is much more flexible. Regards, Andy -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/