public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Damir Perisa <damir.perisa@solnet.ch>
To: Bill Davidsen <davidsen@tmr.com>
Cc: Richard Purdie <rpurdie@rpsys.net>,
	Alan Cox <alan@lxorguk.ukuu.org.uk>,
	linux-kernel@vger.kernel.org, akpm@osdl.org,
	Kay Sievers <kay.sievers@vrfy.org>
Subject: Re: [patch] Re: 2.6.14-rc5-mm1 - ide-cs broken!
Date: Wed, 9 Nov 2005 22:48:17 +0100	[thread overview]
Message-ID: <200511092248.23331.damir.perisa@solnet.ch> (raw)
In-Reply-To: <43726269.7020600@tmr.com>

[-- Attachment #1: Type: text/plain, Size: 3441 bytes --]

Le Wednesday 09 November 2005 21:56, Bill Davidsen a écrit :
 | There are, at minimum, three possible hardware attach cases, each of
 | which may be on a distribution which uses udev or not. I'm assuming
 | that if this is a udev problem is would be fixed at the udev level,
 | but your comment on "userspace hacks" does sound like fixes to
 | userspace bugs.
 
udev+hotplug interaction causing loops is only a bug, because the CF 
(ide-cs) is detected as removable, but it is not. (at least that's how i 
understand it) of course, one can start arguing, that such looping should 
be somehow inhibited by udev or hotplug and i'm not very much used to the 
procedures there that may have possibilities for such an inhibition for 
looping, but it sounds to me like fighting symptoms. curing the patient 
(sorry for this analogy) is in almost all cases better and this means 
here --- as long i understand it --- to have a proper handling of CF in 
the kernel, so that the userspace tools do not get the chance to mess 
with procedures. :P

redhat and a lot of other distributions have udev workaround lines in 
their udev.rules to hinder it looping, but in the end, this are only 
workarounds and not solid solutions. (assigning "no_volume_id" to 
something is not a really nice way)

 | The three attach methods are pcmcia, direct plugin slots (laptops only
 | AFAIK), and USB devices.
 
on the macroscopic scale, you are right. but as far i know (i'm no kernel 
coder), a USB-CF reader is identified as usb-storage device and the 
controler in the CF itself is not used by the kernel but by the reader 
itself. the kernel does not communicate with the CF card but with the 
reader and thinks of it as a removable device (where the CF is the 
medium). firewire-CF readers work in the same way using sbp2 driver 
instead of usb-storage. the kernel thinks, it addresses just another 
usb-storage or sbp2 device. 

i think that's also the reason, why my girlfriend's fw-CF reader is 
echo'ing this lines, if connected to the computer:
	sda: asking for cache data failed
	sda: assuming drive cache: write through
but that's another story...

the pcmcia attach method is different to the usb/fw-reader one. the CF is 
directly accessed by the kernel and its controler directly communicating 
with ide-cs. how this happens in detail, i don't know in detail, but the 
difference is that the controler is directly addressed by the kernel and 
is therefore the device. the media is in fact just the chips in the CF 
inside in this case. (whereas in usb/fw-reader, the "media" is the whole 
CF card) so in this case, you cannot remove the media if the CF is 
plugged into your pcmcia slot. (except if you are very good at hardware 
surgery and have money for new CF's ;)

so as summary:
there are at least four methods (usb reader, fw reader, direct slot, 
pcmcia-cf) -- or 2 basically different ones (indirect (reader=device 
cf=media) and direct (cf=device with media inside))

now i hope that i didn't make a mistake here, because i'm no expert; only 
longterm linux user with experience from 2.0-2.6 kernels. i try to use as 
little workarounds as possible, because cure is always better than 
fighting symptoms. :D

greetings,
Damir

-- 
Youth is when you blame all your troubles on your parents; maturity is
when you learn that everything is the fault of the younger generation.

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

  parent reply	other threads:[~2005-11-09 21:51 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20051103220305.77620d8f.akpm@osdl.org>
2005-11-04  7:19 ` 2.6.14-rc5-mm1 - ide-cs broken! Greg KH
2005-11-04 15:14   ` Alan Cox
2005-11-04 16:37     ` Greg KH
2005-11-09 10:17       ` [patch] " Richard Purdie
2005-11-09 12:08         ` Alan Cox
2005-11-09 16:41         ` Bill Davidsen
2005-11-09 17:27           ` Richard Purdie
2005-11-09 20:56             ` Bill Davidsen
2005-11-09 21:37               ` Richard Purdie
2005-11-09 22:55                 ` Bill Davidsen
2005-11-09 23:02                   ` Damir Perisa
2005-11-09 21:48               ` Damir Perisa [this message]
2005-11-10 14:57         ` Mark Lord
2005-11-10 15:03           ` Richard Purdie
2005-11-04 23:22   ` ide-cs broken / udev magic Damir Perisa
2005-11-04 23:28     ` Greg KH
2005-11-05  2:06       ` Richard Purdie
2005-11-05 12:36         ` Damir Perisa

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=200511092248.23331.damir.perisa@solnet.ch \
    --to=damir.perisa@solnet.ch \
    --cc=akpm@osdl.org \
    --cc=alan@lxorguk.ukuu.org.uk \
    --cc=davidsen@tmr.com \
    --cc=kay.sievers@vrfy.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=rpurdie@rpsys.net \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox