[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <Pine.LNX.4.58.0709191527120.27377@shell4.speakeasy.net>
Date: Wed, 19 Sep 2007 15:34:42 -0700 (PDT)
From: Trent Piepho <xyzzy@...akeasy.org>
To: Jonathan Corbet <corbet@....net>
cc: Andres Salomon <dilinger@...ued.net>, linux-kernel@...r.kernel.org,
v4l-dvb-maintainer@...uxtv.org, video4linux-list@...hat.com,
akpm@...ux-foundation.org, mchehab@...radead.org
Subject: Re: [v4l-dvb-maintainer] [PATCH] cafe_ccic: default to allocating
DMA buffers at probe time
On Wed, 19 Sep 2007, Jonathan Corbet wrote:
> Andres Salomon <dilinger@...ued.net> wrote:
> > This patch makes DMA buffer allocation happen during device probe by
> > default, and changes the parameter to 'alloc_bufs_at_read'. The
> > camera hardware is there, if the cafe_ccic driver is enabled/loaded it
> > should do its best to ensure that the camera is actually usable;
> > delaying DMA buffer allocation saves an insignicant amount of memory,
> > and causes the driver to be much less useful.
>
> The amount of memory isn't quite "insignificant" (three 640x480x2
> buffers), but the OLPC people clearly need things to work this way.
> There are, as far as I know, no other systems out there using the CAFE
> controller. Making things work by default for the one user (with a fair
> number of deployed systems!) makes sense to me. So...
>
> Acked-by: Jonathan Corbet <corbet@....net>
>
> That said, I do prefer the original name for the parameter.
Changing the parameter name will break the configuration of anyone who was
using the existing parameter. It also means everyone who has multiple
kernels installed and uses this parameter will need to have one
configuration for old kernels and a different configuration for new
kernels.
In the default really needs to be changed (what's so hard about setting
alloc_bufs_at_load in /etc/modprobe{.d,.config}?) then just change the
default of the existing parameter. That avoids the whole problem with
different configration files for different module versions.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists