public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Marcin Dalecki <dalecki@evision.ag>
To: "Adam J. Richter" <adam@yggdrasil.com>
Cc: alan@lxorguk.ukuu.org.uk, martin@dalecki.de,
	linux-kernel@vger.kernel.org
Subject: Re: cli/sti removal from linux-2.5.29/drivers/ide?
Date: Tue, 30 Jul 2002 11:17:09 +0200	[thread overview]
Message-ID: <3D465995.4090100@evision.ag> (raw)
In-Reply-To: 200207292018.NAA05025@adam.yggdrasil.com

Adam J. Richter wrote:
>>>	With this change, I believe I can remove all of the
>>>cli()...restore_flags() pairs from the channel->tuneproc functions of
>>>each IDE driver.  I have also removed what appear to be some
>>
> 
>>Some tuning locks are needed because an interrupt during the magic
>>tuning sequence will break stuff
> 
> 
> 	Let me make sure I understand your statement properly.
> 
> 	Under my patch, ch->tuneproc is called with interrupts disabled and
> ch->lock held, except when when channel_probe in drivers/ide/probe.c
> is initially trying to detect IDE hardware.  The IO ports are already
> reserved at that time, so nothing else should poke at those registers,
> but interrupts are enabled.

Right.

>
> 	That said, I think all the "lock group" logic in drivers/ide
> may be useless, and it would be pretty straightforward to delete all
> that code, have ata_channel->lock be a lock rather than a pointer to one,
> and have it be initialized before that first call to ch->tuneproc, in
> which case we could just have interrupts off and ch->lock held in all
> cases when ch->tuneproc is called.  I did not want to do this in my patch,
> because I wanted to keep my patch as small as possible, but perhaps it
> would be worth doing now just to simplify the rules for calling ch->tuneproc.

Not quite. It's not that easy becouse the same lock is used by the BIO
layer to synchronize between for example master and slave devices.
There are other problems with this but right now you can hardly do 
something about it.

> 
>>For the CMD640 please see the patch I posted. It has to use pci_lock and
>>it needs other 2.4 fixes forward porting which I did
> 
> 
> 	I had looked at it.  It looked mostly indepenent of what I was
> doing, I thought that perhaps Martin [M: do you prefer Marcin?] might
> have already integrated it and it would just cause confusion for me to
> merge the patch in, but I would be happy to include your cmd640 changes
> in my patch.

Yes - next round.

> 	Now that you've made me learn what "memory write invalidate enable"
> PCI transactions are, yes, please post or send me your diff.  If you think
> I should try to integrate.  Martin, if you have a strong preference on
> whether you want this stuff as a series of small diffs or if its OK to
> merge them into a one diff, please let me know.

Please just send me a single diff against 2.5.29 + 108 + 109 just
posted. This would make me happy. Thanks.


  reply	other threads:[~2002-07-30  9:18 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-07-29 20:18 cli/sti removal from linux-2.5.29/drivers/ide? Adam J. Richter
2002-07-30  9:17 ` Marcin Dalecki [this message]
  -- strict thread matches above, loose matches on Subject: below --
2002-07-31  7:46 Adam J. Richter
2002-07-31 20:43 ` Marcin Dalecki
2002-07-30 20:10 Adam J. Richter
2002-07-31 20:12 ` Marcin Dalecki
2002-07-30 18:35 Adam J. Richter
2002-07-29 15:49 Adam J. Richter
2002-07-29 17:51 ` Alan Cox
2002-07-29  0:26 Adam J. Richter
2002-07-29 11:56 ` Alan Cox
2002-07-29 11:07   ` Marcin Dalecki
2002-07-29 12:59     ` Alan Cox

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=3D465995.4090100@evision.ag \
    --to=dalecki@evision.ag \
    --cc=adam@yggdrasil.com \
    --cc=alan@lxorguk.ukuu.org.uk \
    --cc=linux-kernel@vger.kernel.org \
    --cc=martin@dalecki.de \
    /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