public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
From: Henrique de Moraes Holschuh <hmh@hmh.eng.br>
To: Richard Hughes <hughsient@gmail.com>
Cc: Jonathan Buzzard <jonathan@buzzard.me.uk>,
	John Belmonte <john@neggie.net>,
	Matthew Garrett <mjg59@srcf.ucam.org>,
	Charles@schwieters.org, linux-acpi@vger.kernel.org
Subject: Re: experimental patch for toshiba_acpi
Date: Sat, 28 Feb 2009 12:19:33 -0300	[thread overview]
Message-ID: <20090228151933.GC17541@khazad-dum.debian.net> (raw)
In-Reply-To: <1235753349.5444.53.camel@localhost.localdomain>

On Fri, 27 Feb 2009, Richard Hughes wrote:
> In the meantime, you've insulted me enough for one email thread.
> 
> Len, I would agree with Matthew that the patch should not be merged, and
> that any missing functionality should be added to the existing ACPI
> driver.

FWIW, I also think the patch, as it stands, is NOT a good idea.

I will ignore the human interaction protocol screwups that happened in
the thread even if they left me with a bad taste in the mouth just
from watching from the outside.

There are strong technical reasons to not accept the patch IMHO:

1. If something can brick a box, access to it must not be provided
   unfiltered, not even kernel-side (through exported functions,
   active virtual memory regions that a bug could overwrite, etc),
   let alone to userland.  At least not as the normal operational mode
   of a driver (might-brick-something functionality hidden behind a
   developer mode accessed through a Kconfig option would be OK).

   If there isn't a safe group of functions for all models the driver
   will load at, filtering must be done by whitelisting.  It really
   doesn't matter if the table will be big, it can live in __initdata,
   in fact, if it were not for the can-brick stuff, it could be done
   through the firmware interface (easy upgrading for new models).

   If filtering is implemented, giving userspace access through
   /dev/toshiba for selected HCI functions would not be a problem.
   However, see (2) below.

2. Standard kernel functionality is to be made accessible through
   standard kernel interfaces.  This means brightness control and
   rfkill control, power supplies, thermal and fan control, hotkeys
   and generic event reporting, among others.

   Userspace could use /dev/toshiba for anything else there isn't a
   generic interface for, though.

   Access to such functionality also through /dev/toshiba should be
   provided only for backwards compatibility, with a set date for
   removal (say, one year).

-- 
  "One disk to rule them all, One disk to find them. One disk to bring
  them all and in the darkness grind them. In the Land of Redmond
  where the shadows lie." -- The Silicon Valley Tarot
  Henrique Holschuh

  parent reply	other threads:[~2009-02-28 15:20 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
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 [this message]
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=20090228151933.GC17541@khazad-dum.debian.net \
    --to=hmh@hmh.eng.br \
    --cc=Charles@schwieters.org \
    --cc=hughsient@gmail.com \
    --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