From: Martin Dalecki <dalecki@evision-ventures.com>
To: Linus Torvalds <torvalds@transmeta.com>
Cc: Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] 2.5.16 IDE 68
Date: Wed, 22 May 2002 17:03:30 +0200 [thread overview]
Message-ID: <3CEBB342.6060303@evision-ventures.com> (raw)
In-Reply-To: <Pine.LNX.4.44.0205220848100.7580-100000@home.transmeta.com>
Uz.ytkownik Linus Torvalds napisa?:
>
> On Wed, 22 May 2002, Martin Dalecki wrote:
>
>>- Make the different ATAPI device type drivers use a unified packet command
>> structure. We have to start to push them together.
>
>
> Good.
>
> However, I suggest you really look at the big picture, and realize that
> this is NOT an ATA-only issue.
Linus I agree fully with you!
> The unified packet command thing should be started at a higher level,
> where the command creation itself should create them into "rq->cmd[]", and
> the interfaces to the _user_ should also be unified.
Well you should have seen me already hopping between differnt
layers with stuff like this quite frequently. I'm just not going
to "jump down" (well in this case up) this cliff in one big step.
I will try to push it step but step where it belongs. OK?
> If you think it's stupid to have different packet mechanisms for IDE CD vs
> disk, imagine how stupid it is to have different packet interfaces for
> SCSI CD vs IDE CD and expose those different interfaces to user mode.
>
> This is why I think you made a mistake to move ll_10byte_cmd_build() into
> the IDE layer. We want to move the packet building _up_, not down.
No I didn't.
It's nearly always a mistake to push the methods (well functions),
before the objects (well structs) are in place.
Pushing methods before objects makes no semantical anvances, becouse
it's just tossing code lines around and obfuscating the code by adding
#include <> interdependancies.
> And you should put the command into "rq->cmd[]", _not_ into "pc->c[]" like
> the curren code does. And strive to standardize on a command set (where
Applying the same cure to struct atapi_packet_command as has been
applyed (well by me - who else) to the struct atapi_packed_command
is of course the next "cheap" goal! It has been exerciesed once in ide-cd.c
and the problems are well known. But even by way of this simple
example one can see immediately that it is better to first target
the structural part (structs) and then the code. Not the other way around.
(Next thing should be to ake rq->buffer and rq->special in line too for
example.)
> the obvious target is a very SCSI-like one - for all the same reasons
> that ATAPI commands themselves tend to look like SCSI commands).
>
> So please don't lose sight of the fact that there is more than just IDE
> out there, and _please_ get rid of the atapi-specific command. Think ahead
> a bit, and notice how you have the "scsi" parts in the
> "atapi_packet_command", and realize that you shouldn't need to have that,
> if you were just to share the same request cmd layout.
Sure I realize it. ide-cd.c should make it clean that
struct atapi_packet_comman will be "melted down" step by step
the same way the ide-cd stuff got metled down if possible :-).
I hope the "hawkeye" view layered out above makes clear why I'm
doing the stuff in the order I do and why it has more
chances to succeed. At least there are no dissagreements about
the goals. OK?
next prev parent reply other threads:[~2002-05-22 16:06 UTC|newest]
Thread overview: 131+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-05-21 5:16 Linux-2.5.17 Linus Torvalds
2002-05-21 13:58 ` Linux-2.5.17 Roman Zippel
2002-05-21 16:06 ` Linux-2.5.17 Linus Torvalds
2002-05-21 18:36 ` Linux-2.5.17 Roman Zippel
2002-05-21 18:53 ` Linux-2.5.17 Linus Torvalds
2002-05-21 23:35 ` Linux-2.5.17 Roman Zippel
2002-05-22 0:10 ` Linux-2.5.17 Linus Torvalds
2002-05-22 0:31 ` Linux-2.5.17 Roman Zippel
2002-05-22 0:54 ` Linux-2.5.17 Linus Torvalds
2002-05-22 2:17 ` Linux-2.5.17 David S. Miller
2002-05-22 2:40 ` Linux-2.5.17 Linus Torvalds
2002-05-22 2:57 ` Linux-2.5.17 David S. Miller
2002-05-22 3:21 ` Linux-2.5.17 Linus Torvalds
2002-05-22 8:06 ` Linux-2.5.17 David Lang
2002-05-22 14:14 ` Linux-2.5.17 Dave McCracken
2002-05-22 16:10 ` Linux-2.5.17 Linus Torvalds
2002-05-22 13:45 ` Linux-2.5.17 Roman Zippel
2002-05-22 16:08 ` Linux-2.5.17 Linus Torvalds
2002-05-21 15:32 ` [PATCH] 2.5.17 IDE 65 Martin Dalecki
2002-05-21 16:59 ` Linus Torvalds
2002-05-21 16:35 ` Martin Dalecki
2002-05-21 17:56 ` Linus Torvalds
2002-05-21 18:49 ` Alan Cox
2002-05-21 20:08 ` Vojtech Pavlik
2002-05-21 23:28 ` Linus Torvalds
2002-05-22 6:53 ` Martin Dalecki
2002-05-23 7:01 ` Kai Henningsen
2002-05-22 7:16 ` [PATCH] 2.5.17 IDE 66 Martin Dalecki
2002-05-22 7:19 ` [PATCH] 2.5.17 IDE 67 Martin Dalecki
2002-05-22 17:13 ` Tom Rini
2002-05-22 16:21 ` Martin Dalecki
2002-05-22 17:31 ` Tom Rini
2002-05-22 16:40 ` Martin Dalecki
2002-05-22 18:47 ` Tom Rini
2002-05-23 6:08 ` Martin Dalecki
2002-05-23 15:26 ` Tom Rini
2002-05-23 14:32 ` Martin Dalecki
2002-05-23 15:40 ` Tom Rini
2002-05-22 7:23 ` [PATCH] 2.5.16 IDE 68 Martin Dalecki
2002-05-22 10:48 ` Juan Quintela
2002-05-22 9:45 ` Martin Dalecki
2002-05-22 15:55 ` Linus Torvalds
2002-05-22 15:03 ` Martin Dalecki [this message]
2002-05-22 9:05 ` [PATCH] 2.5.17 /dev/ports Martin Dalecki
2002-05-22 10:42 ` Paul Mackerras
2002-05-22 9:46 ` Martin Dalecki
2002-05-22 10:54 ` David S. Miller
2002-05-22 10:13 ` Martin Dalecki
2002-05-22 11:26 ` Russell King
2002-05-22 10:40 ` Martin Dalecki
2002-05-22 11:58 ` Richard B. Johnson
2002-05-22 12:36 ` Russell King
2002-05-22 13:23 ` Alan Cox
2002-05-22 12:31 ` Martin Dalecki
2002-05-22 12:44 ` Alan Cox
2002-05-22 12:32 ` Martin Dalecki
2002-05-22 15:05 ` Alan Cox
2002-05-22 13:05 ` Alan Cox
2002-05-22 12:38 ` Martin Dalecki
2002-05-22 15:04 ` Alan Cox
2002-05-22 13:53 ` Martin Dalecki
2002-05-22 15:03 ` Lars Marowsky-Bree
2002-05-22 15:07 ` Padraig Brady
2002-05-22 14:07 ` Martin Dalecki
2002-05-22 15:21 ` Dave Jones
2002-05-22 15:19 ` Dave Jones
2002-05-22 15:31 ` Alan Cox
2002-05-27 9:04 ` Pavel Machek
2002-05-22 14:54 ` Alexander Viro
2002-05-22 15:24 ` Alan Cox
2002-05-22 15:10 ` Alexander Viro
2002-07-22 12:20 ` Ruth Ivimey-Cook
2002-05-23 7:30 ` Rusty Russell
2002-05-23 6:44 ` Martin Dalecki
2002-05-23 8:26 ` Rusty Russell
2002-05-22 13:16 ` Padraig Brady
2002-05-22 12:30 ` Martin Dalecki
2002-05-22 13:50 ` Sebastian Droege
2002-05-22 13:52 ` Alan Cox
2002-05-22 13:49 ` Vojtech Pavlik
2002-05-22 12:51 ` Martin Dalecki
2002-05-22 13:56 ` Vojtech Pavlik
2002-05-22 14:58 ` Alan Cox
2002-05-22 13:49 ` Martin Dalecki
2002-05-22 14:42 ` Vojtech Pavlik
2002-05-22 13:59 ` Alexander Viro
2002-05-22 13:12 ` Martin Dalecki
2002-05-22 14:33 ` Alexander Viro
2002-05-22 13:40 ` Martin Dalecki
2002-05-22 13:16 ` Martin Dalecki
2002-05-22 14:34 ` Alexander Viro
2002-05-22 16:31 ` James Simmons
2002-05-22 14:12 ` Vojtech Pavlik
2002-05-27 9:07 ` Pavel Machek
2002-05-22 15:00 ` Alan Cox
2002-05-22 14:43 ` Vojtech Pavlik
2002-05-22 16:28 ` Linus Torvalds
2002-05-22 17:22 ` Alan Cox
2002-05-22 16:17 ` Martin Dalecki
2002-05-22 17:30 ` Russell King
2002-05-22 16:36 ` Martin Dalecki
2002-05-22 17:36 ` Alexander Viro
2002-05-22 17:46 ` Alan Cox
2002-05-26 13:53 ` Riley Williams
2002-05-26 15:28 ` Vojtech Pavlik
2002-05-26 15:39 ` Riley Williams
2002-05-23 10:10 ` Martin Diehl
2002-05-22 10:54 ` Linux-2.5.17 Martin Dalecki
2002-05-22 12:04 ` Linux-2.5.17 Alexander Viro
2002-05-22 13:07 ` Linux-2.5.17 Martin Dalecki
2002-05-22 14:38 ` Linux-2.5.17 Alexander Viro
2002-05-22 13:42 ` Linux-2.5.17 Martin Dalecki
2002-05-22 16:55 ` Linux-2.5.17 Jan Kara
2002-05-22 12:14 ` Linux-2.5.17 Russell King
2002-05-22 12:36 ` Linux-2.5.17 Martin Dalecki
2002-05-22 16:02 ` Linux-2.5.17 Linus Torvalds
2002-05-22 15:04 ` Linux-2.5.17 Martin Dalecki
2002-05-22 16:58 ` Linux-2.5.17 Jan Kara
2002-05-22 16:08 ` Linux-2.5.17 Martin Dalecki
2002-05-22 17:56 ` Linux-2.5.17 Jan Kara
2002-05-22 16:56 ` Linux-2.5.17 Martin Dalecki
2002-05-22 18:17 ` Linux-2.5.17 Jan Kara
2002-05-22 18:36 ` Linux-2.5.17 Russell King
2002-05-22 13:06 ` Linux-2.5.17 Alan Cox
2002-05-22 11:19 ` Linux-2.5.17 Russell King
2002-05-22 11:27 ` Linux-2.5.17 David S. Miller
2002-05-22 16:23 ` Linux-2.5.17 Linus Torvalds
2002-05-22 17:31 ` [PATCH] 2.5.17 IDE 69 Martin Dalecki
2002-05-23 7:32 ` [PATCH] 2.5.17 sysvipc (AKA: spoiling oil in to the flames) Martin Dalecki
2002-05-24 13:59 ` Linux-2.5.17 Martin Dalecki
2002-05-24 14:23 ` [PATCH] 2.5.17 IDE 70 Martin Dalecki
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=3CEBB342.6060303@evision-ventures.com \
--to=dalecki@evision-ventures.com \
--cc=linux-kernel@vger.kernel.org \
--cc=torvalds@transmeta.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.