From: Jonathan Buzzard <jonathan@buzzard.org.uk>
To: Alan Cox <alan@lxorguk.ukuu.org.uk>
Cc: John Weber <john.weber@linux.org>, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] Toshiba Laptop Support and IRQ Locks
Date: Fri, 02 Aug 2002 20:40:25 +0100 [thread overview]
Message-ID: <E17aiHh-00034N-00@jelly.buzzard.org.uk> (raw)
In-Reply-To: Your message of "02 Aug 2002 18:55:39 BST." <1028310939.18309.93.camel@irongate.swansea.linux.org.uk>
alan@lxorguk.ukuu.org.uk said:
> Hi,
>
> Toshiba laptop support is broken. Here's my rookie attempt at fixing
> it.
Whats broken? I have not seen the patch, though I don't track the latest
2.5 kernels either.
> Looks basically sound. You probably want to use spinlock_irqsave - the
> spin locks are less overhead than the reader/writer locks and you
> don't really seem to be using it for anything else. I'm assuming we
> want the irqsave to block interrupts because the I/O cycles might have
> to happen one after another - if not they could be relaxed - perhaps
> Jonathan knows ?
Someone show me the patch and I can say for sure.
Two things to bare in mind, Toshiba have yet to do any sort of
multi processor laptop, are extremely unlikely to ever manufacture
one, and to the best of my knowledge the module only loads on Toshiba
laptops. If it loads on anything else it is broken and needs fixing
so it does not.
On this ground I always felt that use of cli() was more than justified.
Though I understand that you might want to banish this stuff from the
kernel, and use something multiprocessor safe.
Secondly bare in mind that the Toshiba laptop module for the most part
puts the processor into System Management Mode. This does its own
locking, once you are in SMM thats *everything* else on hold till it
finishes.
While I am at it, I have been recently pestered with patches to
toshiba.c to add random proc interfaces for various HCI calls. I
have personally rejected the patches as I don't believe that exposing
HCI calls in the kernel is the right thing to do. Firstly there are
over 30 calls to expose, and it makes not sense to just expose one or
two that happen to be the favourite of some random person. Secondly
everything the patches do can be achieved with a userspace program
that use the ioctl on /dev/toshiba that the module provides. Thus
avoiding any bloat to the kernel, and avoiding the need to constantly
add new proc based interfaces each time I discover a new HCI call.
If someone does propose such a patch I recommend rejecting it.
JAB.
--
Jonathan A. Buzzard Email: jonathan@buzzard.org.uk
Northumberland, United Kingdom. Tel: +44(0)1661-832195
next prev parent reply other threads:[~2002-08-02 19:37 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-08-02 16:03 John Weber
2002-08-02 17:55 ` Alan Cox
2002-08-02 19:40 ` Jonathan Buzzard [this message]
2002-08-02 19:49 ` Brian Gerst
2002-08-04 4:27 ` Jonathan Buzzard
2002-08-02 23:05 ` John Weber
2002-09-10 22:25 rwhron
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=E17aiHh-00034N-00@jelly.buzzard.org.uk \
--to=jonathan@buzzard.org.uk \
--cc=alan@lxorguk.ukuu.org.uk \
--cc=john.weber@linux.org \
--cc=linux-kernel@vger.kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®