All of lore.kernel.org
 help / color / mirror / Atom feed
From: Alan Cox <alan@lxorguk.ukuu.org.uk>
To: Shem Multinymous <multinymous@gmail.com>
Cc: linux kernel mailing list <linux-kernel@vger.kernel.org>,
	Jeff Garzik <jgarzik@pobox.com>, Rovert Love <rlove@rlove.org>,
	Jens Axboe <axboe@suse.de>
Subject: Re: tp_smapi conflict with IDE, hdaps
Date: Tue, 13 Dec 2005 15:03:22 +0000	[thread overview]
Message-ID: <1134486203.11732.60.camel@localhost.localdomain> (raw)
In-Reply-To: <41840b750512130635p45591633ya1df731f24a87658@mail.gmail.com>

On Maw, 2005-12-13 at 16:35 +0200, Shem Multinymous wrote:
> Evidently, the SMAPI BIOS sends some ATA command to the drive. If the
> kernel is accessing the drive at the same time (e.g., an ongoing "cat
> /dev/scd0"), the machine hangs. The ideal solution would be to figure
> out the relevant ATA commands and add them to libata/ata_piix/ide, but
> it's not clear how to do that. So tp_smapi needs to obtain some lock
> guaranteeing there is no access (or ongoing transaction) to that ATA
> device.

You will need to find out the command. Trying to arbitrate libata access
with unknown bios behaviour isn't going to have a sane resolution. There
are standard commands for this so they ought to work. If not we need to
know why, who makes the drive used etc

> with the recently added HDAPS accelerometer driver. Both drivers read
> their data from the same ports (0x1604-0x161F), which implement a
> query-reponse transaction interface, so both drivers talking to the
> hardware simultaneously will wreak havoc. Some synchronization is
> needed, and a way to address the request_region conflict.
> 
> What is standard procedure for resolving such conflicts?

You probably want a low level driver that just arbitrates the interface
and implements the basic query/response transaction interface and
locking and then is called by both HDAPS and your driver (and no doubt
other future drivers talking to that controller). It can thene export
the interface to both drivers.


  parent reply	other threads:[~2005-12-13 15:03 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-12-13 14:35 tp_smapi conflict with IDE, hdaps Shem Multinymous
2005-12-13 14:43 ` Shem Multinymous
2005-12-13 15:03 ` Alan Cox [this message]
2005-12-13 15:29   ` Shem Multinymous
2005-12-13 15:38     ` Alan Cox
2005-12-13 16:04       ` Shem Multinymous
2005-12-13 16:16         ` Alan Cox
2005-12-14 16:32           ` Shem Multinymous
2005-12-13 18:41     ` Shem Multinymous
2005-12-13 19:18       ` Alan Cox
2005-12-14 15:03         ` Shem Multinymous
2005-12-15  3:05           ` Mark Lord
2005-12-13 15:14 ` Robert Love
2005-12-13 15:43   ` Shem Multinymous

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=1134486203.11732.60.camel@localhost.localdomain \
    --to=alan@lxorguk.ukuu.org.uk \
    --cc=axboe@suse.de \
    --cc=jgarzik@pobox.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=multinymous@gmail.com \
    --cc=rlove@rlove.org \
    /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.