platform-driver-x86.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Azael Avalos <coproscefalo@gmail.com>
To: Arvid Norlander <lkml@vorpal.se>
Cc: Hans de Goede <hdegoede@redhat.com>,
	Platform Driver <platform-driver-x86@vger.kernel.org>,
	Sebastian Reichel <sre@kernel.org>,
	Linux PM <linux-pm@vger.kernel.org>
Subject: Re: [PATCH 0/2] [RFC] platform/x86: Fixes for Toshiba Z830
Date: Sat, 27 Aug 2022 14:05:47 -0600	[thread overview]
Message-ID: <CAGdLNWEqaONoJ0xqwPPg0+=YsTq+6yvjC_VG+JVwXoPXbeB5sQ@mail.gmail.com> (raw)
In-Reply-To: <be56c117-a62d-e0b5-db50-71fda9c04f76@vorpal.se>

Hi there

El sáb, 27 ago 2022 a la(s) 05:51, Arvid Norlander (lkml@vorpal.se) escribió:
>
> Hi,
>
> On 2022-08-25 19:00, Azael Avalos wrote:
> > Hi there
> >
> > Sorry for pinging in a bit late, been under a lot of work lately.
>
> It happens to all of us.
>
> > You can poke the Toshiba BIOS interface directly via /dev/toshiba_acpi
> > to test your findings, once it is ironed out, you can start making patches
> > for inclusion in the kernel.
>
> Interesting. I'm new to kernel development and I can't find where in
> toshiba_acpi.c this is implemented. Nor do I see any documentation for this
> interface. I would love some hints with regards to this.
>

From line 2248 onwards

Here's a link to some documents you might find interesting:
http://www.buzzard.me.uk/toshiba/docs.html

The interface was introduced to the kernel many years ago, back when
the (char) toshiba module
was used, i just added support to the toshiba_acpi via ACPI calls

> For now I have been using the out-of-tree acpi_call module:
>
> https://github.com/nix-community/acpi_call
>
> Arch Linux (which I use) packages it as a DKMS module. Handy to test with,
> but probably really easy to screw up your system using it if you don't know
> what you are doing.

The interface is pretty straight forward, you can make a small C prog to test,
basically you just need to:
- Open the (/dev/toshiba_acpi) device for R/W (make sure you have permissions)
- Fill out the SMMRegisters struct with your query and get the results
- Rinse and repeat till you find what you're looking for

WARNING: This might (or might not) set your house on fire...

>
> > I know there are a lot of areas where the driver is lacking features due to
> > hardware restrictions on the machines I had at the time, so it's good to
> > see a bit more movement here.
> >
> > Cheers
> > Azael
> >
>
> Best regards,
> Arvid Norlander
>
> <snip>

Saludos
Azael



-- 
-- El mundo apesta y vosotros apestais tambien --

  reply	other threads:[~2022-08-27 20:06 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-08-21 20:08 [PATCH 0/2] [RFC] platform/x86: Fixes for Toshiba Z830 Arvid Norlander
2022-08-21 20:08 ` [PATCH 1/2] platform/x86: Fix ECO LED control on " Arvid Norlander
2022-08-26 10:58   ` Hans de Goede
2022-08-21 20:08 ` [PATCH 2/2] platform/x86: Battery charge mode in toshiba_acpi Arvid Norlander
2022-08-24  8:48   ` Hans de Goede
2022-08-22 11:39 ` [PATCH 0/2] [RFC] platform/x86: Fixes for Toshiba Z830 Hans de Goede
2022-08-24 12:31   ` Arvid Norlander
2022-08-25 17:00     ` Azael Avalos
2022-08-27 11:51       ` Arvid Norlander
2022-08-27 20:05         ` Azael Avalos [this message]
2022-08-26 12:07     ` Hans de Goede
2022-08-27 11:42       ` Arvid Norlander
2022-08-29 14:16         ` Hans de Goede
  -- strict thread matches above, loose matches on Subject: below --
2022-08-21 19:49 lkml

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='CAGdLNWEqaONoJ0xqwPPg0+=YsTq+6yvjC_VG+JVwXoPXbeB5sQ@mail.gmail.com' \
    --to=coproscefalo@gmail.com \
    --cc=hdegoede@redhat.com \
    --cc=linux-pm@vger.kernel.org \
    --cc=lkml@vorpal.se \
    --cc=platform-driver-x86@vger.kernel.org \
    --cc=sre@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;
as well as URLs for NNTP newsgroup(s).