All of lore.kernel.org
 help / color / mirror / Atom feed
From: Takashi Iwai <tiwai@suse.de>
To: Chris Rankin <rankincj@yahoo.com>
Cc: alsa-devel@lists.sourceforge.net
Subject: Re: SoundScape driver... FIXMEs
Date: Mon, 23 Sep 2002 12:56:02 +0200	[thread overview]
Message-ID: <s5hd6r5otz1.wl@alsa2.suse.de> (raw)
In-Reply-To: <20020922190952.73991.qmail@web40607.mail.yahoo.com>

At Sun, 22 Sep 2002 20:09:52 +0100 (BST),
Chris Rankin wrote:
> 
> Hi,
> 
> I saw the SoundScape PnP driver appear in CVS today,
> along with a number of FIXMEs at the top of the file.
> I presume that these FIXMEs are a barrier to fully
> integrating the driver, and that's what you mean by
> "deadlock for alsa-kernel"?

i guess it means "the condition for the driver to be raised to
alsa-kernel (i.e. 2.5 kernel) tree"

> - a non-modular build wasn't a priority because I was
> under the impression that one of the goals for Linux
> 2.5+ was to *remove* all compiled-in drivers?

i don't think so.  more modulalization doesn't mean to remove the
ability of built-in drivers.  (and i heard that Linus still prefers
built-in drivers to modules :)

> However, I could probably provide something, if absolutely
> necessary. 

i don't see any particular part that restricts to module (except that
the driver needs firmware to be loaded via ioctl).
am i missing something?


> - I was not aware that "verify_area()" had been
> deprecated. There were no comments to this effect in
> the <asm/uaccess.h> header, and a grep through the
> 2.4.19 tree shows that it is HEAVILY used. In fact,
> verify_area() appears to be the public interface for
> the same access-checking function invoked by
> copy_from_user() and copy_to_user(). The point about
> calling verify_area() at all is to validate the entire
> DMA upload block at once, so that I can safely copy it
> piecemeal later. It seems to be more efficient to DMA
> directly from userspace rather than copying the block
> into *more* temporary storage and then DMA-ing from
> there. Is there a race condition between the
> verify_area() and the underlying __copy_from_user()?
> If so, then how is this same race resolved by
> copy_from_user()?

no race condition between them.  verify_area() is simply not necessary
if you use copy_from/to_user().
generally it's recommended to check the return value from
copy_from/to_user() at each call and to return -EFAULT, because it can
be faster.


another point:  doesn't the busy-loop in host_read/write_ctrl_unsafe
need udelay() or something to produce a certain delay length?
otherwise the timeout is very dependent on a machine.


ciao,

Takashi


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf

  reply	other threads:[~2002-09-23 10:56 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-09-22 19:09 SoundScape driver... FIXMEs Chris Rankin
2002-09-23 10:56 ` Takashi Iwai [this message]
2002-09-23 12:28   ` Chris Rankin
2002-09-23 12:51     ` Takashi Iwai
2002-09-23 19:43       ` Chris Rankin
2002-09-24 10:34         ` Takashi Iwai

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=s5hd6r5otz1.wl@alsa2.suse.de \
    --to=tiwai@suse.de \
    --cc=alsa-devel@lists.sourceforge.net \
    --cc=rankincj@yahoo.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.