From: Richard Hughes <hughsient@gmail.com>
To: Jonathan Buzzard <jonathan@buzzard.me.uk>
Cc: Matthew Garrett <mjg59@srcf.ucam.org>,
Charles@schwieters.org, linux-acpi@vger.kernel.org,
john@neggie.net
Subject: Re: experimental patch for toshiba_acpi
Date: Thu, 26 Feb 2009 13:59:02 +0000 [thread overview]
Message-ID: <1235656742.3802.82.camel@hughsie-work.lan> (raw)
In-Reply-To: <1235654850.4770.139.camel@penguin.lifesci.dundee.ac.uk>
On Thu, 2009-02-26 at 13:27 +0000, Jonathan Buzzard wrote:
> On Thu, 2009-02-26 at 12:52 +0000, Richard Hughes wrote:
> > On Thu, 2009-02-26 at 10:34 +0000, Jonathan Buzzard wrote:
> > > Yes. You really don't understand the Toshiba Hardware Configuration
> > > Interface. It is like making a old style BIOS INT 13 call. There are
> > > potentially 2^16 possible calls, and there is no way to determine what
> > > calls are valid on what laptop models other than a large lookup table.
> >
> > You mean there's no way of using dmi matching to do subsets of models?
> > Is the A20 very much different from the A10?
>
> Potentially. Sometimes yes sometimes no. Let's face it the same model
> can have optional Bluetooth, and HCI calls have been known to brick a
> laptop.
So if I do an HCI that enables bluetooth on a model without bluetooth,
that will brick it? Sounds implausible to me.
> > Leave that to the BIOS. Just because it can be done, doesn't mean it
> > should be done.
>
> Now you are dodging the issue. Besides a whole bunch of the settings
> take effect after a suspend, why should I have to reboot?
Re-read my reply again.
> > > How do you propose to deal with the dozens of HCI calls and the hundreds
> > > of models of laptops, with not all HCI calls being valid on all models,
> > > and with the potential for a HCI call on the wrong laptop to brick it
> > > and yes this *DOES* happen?
> >
> > How many different HCI calls are there to increase the backlight
> > brightness up by one unit?
>
> Several, depends on the model in question. But we are not talking about
> the backlight, we are talking about all the other methods that you
> clearly know nothing about.
No, we're talking about sensible abstractions, rather than poking bits
of memory in a device file that happen to do stuff on specific models.
> > > Why if I install a distribution of Linux on my new Toshiba laptop should
> > > I have to install a new kernel module and keep it updated to make some
> > > change because the table specifying which HCI calls can be made is not
> > > up to date in my distro's kernel?
> >
> > Dude, that happens all the time with other kernel modules. You see a
> > patch on LKML saying "add product ID for foobuzz" and then it gets
> > picked up by downstream as a patch until a new version is released.
>
> Yes and it is sub optimal.
If there's new Toshiba hardware created, I have to update your client
program. I don't see how it's any different to updating the kernel
module.
> You also failed to explain how the supervisor, and user password setting
> was going to work from a kernel mode proc interface.
Can't you do this from the BIOS?
> > Will I?
>
> You write perfect bug free C code first time every time? You don't so
> you will introduce bugs.
No, you said "you *will* create local privilege escalation bugs" which
is very different to "introducing bugs".
> You miss entirely the point of Toshiba's HCI. We are not talking about
> backlight control here. We are talking about a bunch of other stuff.
"Bunch of other stuff". Could we not decide on a proper framework for
this functionality?
> > Well, I think the onus is on you to provide a proper kernel patch,
> > rather than just exposing userspace to /dev/toshiba, afterall, that was
> > the thing that's prompted my mail
>
> We have a proper kernel patch, the use of /dev/toshiba was excepted
> upstream a decade ago.
As was /proc/apm, /dev/pmu and all the other _obsolete_ interfaces. They
were bad then, and they would be bad now. Userspace and the kernel have
moved on from a decade ago.
> There is a range of software that supports this
> interface. The patch extends this to modern Toshiba hardware. It is a no
> brainer to anyone with any practical sense.
Maybe I have no brain.
Richard.
next prev parent reply other threads:[~2009-02-26 13:59 UTC|newest]
Thread overview: 34+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-02-25 14:54 experimental patch for toshiba_acpi Charles
2009-02-25 15:24 ` Matthew Garrett
2009-02-25 16:18 ` Jonathan Buzzard
2009-02-25 16:51 ` Matthew Garrett
2009-02-25 17:12 ` Jonathan Buzzard
2009-02-25 17:28 ` Matthew Garrett
2009-02-25 17:53 ` Jonathan Buzzard
2009-02-25 17:59 ` Matthew Garrett
2009-02-25 20:18 ` Charles
2009-02-26 0:22 ` Jonathan Buzzard
2009-02-26 8:39 ` Richard Hughes
2009-02-26 10:34 ` Jonathan Buzzard
2009-02-26 12:52 ` Richard Hughes
2009-02-26 13:27 ` Jonathan Buzzard
2009-02-26 13:59 ` Richard Hughes [this message]
2009-02-26 15:49 ` Jonathan Buzzard
2009-02-25 17:33 ` Azael Avalos
2009-02-26 13:12 ` John Belmonte
2009-02-26 14:03 ` Richard Hughes
2009-02-26 15:51 ` Jonathan Buzzard
2009-02-26 16:01 ` Matthew Garrett
2009-02-27 16:49 ` Richard Hughes
2009-02-27 17:18 ` Jonathan Buzzard
2009-02-28 15:19 ` Henrique de Moraes Holschuh
2009-03-13 1:17 ` Len Brown
2009-03-14 0:37 ` Charles
2009-03-14 7:02 ` Andrey Borzenkov
2009-03-14 12:05 ` Matthew Garrett
-- strict thread matches above, loose matches on Subject: below --
2009-02-27 21:15 Andrey Borzenkov
2009-02-27 21:31 ` Charles
2009-02-28 6:13 ` Andrey Borzenkov
2009-02-28 18:00 ` Charles
2009-03-01 7:00 ` Andrey Borzenkov
2009-03-01 10:31 ` Charles
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=1235656742.3802.82.camel@hughsie-work.lan \
--to=hughsient@gmail.com \
--cc=Charles@schwieters.org \
--cc=john@neggie.net \
--cc=jonathan@buzzard.me.uk \
--cc=linux-acpi@vger.kernel.org \
--cc=mjg59@srcf.ucam.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