All of lore.kernel.org
 help / color / mirror / Atom feed
From: Wolfgang Wallner <wolfgang.wallner@br-automation.com>
To: u-boot@lists.denx.de
Subject: Antwort: Re: [PATCH v1] x86: acpi: Refactor XSDT handling in acpi_add_table()
Date: Tue, 3 Mar 2020 11:00:43 +0100	[thread overview]
Message-ID: <OF6DF085F6.23F960D9-ONC1258520.00361B72-C1258520.0036FF91@br-automation.com> (raw)
In-Reply-To: <CAHp75VcU9TW0AajHMKuxJQT4Q-qHTRWczmoRyuHZYdGLU2dEGA@mail.gmail.com>

Hi Andy,

-----"U-Boot" <u-boot-bounces@lists.denx.de> schrieb: -----
>
> [snip]
> 
> > > > > P.S. Briefly looking at the last ~30 patches I can say that the idea
> > > > > looks good, implementation needs more work. For example, there is
> > > > > 'linux,name' property. Shouldn't be referred at all. Linux names and
> > > > > other type of enumerations is utterly opaque to the outside world.
> > > >
> > > > How do we add the required linux,name ACPI property into the ACPI
> > > > tables for a device?
> > >
> > > There must not be Linux device names or anything Linux related (like
> > > hardcoded GPIO numbers) in the ACPI table.
> >
> > Apparently the Intel GPIO driver requires that name. See for example here:
> >
> > https://elixir.bootlin.com/linux/latest/source/drivers/pinctrl/intel/pinctrl-broxton.c#L999
> >
> > static const struct acpi_device_id bxt_pinctrl_acpi_match[] = {
> > { "INT3452", (kernel_ulong_t)apl_pinctrl_soc_data },
> > { "INT34D1", (kernel_ulong_t)bxt_pinctrl_soc_data },
> > { }
> > };
> >
> > So we have to put INT3452 in the ACPI table.
> 
> Wait, this is not a *name*, this is ACPI _HID. ACPI _HID, of course,
> should be somewhere in board code.
> 
> I was thinking myself about some U-Boot framework that actually takes
> ACPI _HID from the driver. So, when you define in U-Boot device tree a
> compatible string (for U-Boot use), in the driver it will have in the
> class structure the callback / field / stubstructure to use when ACPI
> generate tables is enabled. It will drop duplication of compatible
> with ACPI _HID in each DTS.

There is a related discussion in another thread, here is the link:
https://lists.denx.de/pipermail/u-boot/2020-February/398856.html

I have brought that up, but I'm no expert in this area, so any feedback would
be welcome.

That discussion is not only about inferring _HID, but also about the idea of
inferring other ACPI properties from device tree (the example discussed is the
HID offset).

regards, Wolfgang

  parent reply	other threads:[~2020-03-03 10:00 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-02-27 14:00 [PATCH v1] x86: acpi: Refactor XSDT handling in acpi_add_table() Andy Shevchenko
2020-02-27 23:40 ` Simon Glass
2020-02-28  8:46   ` Andy Shevchenko
2020-03-02 19:47     ` Simon Glass
2020-03-02 20:47       ` Andy Shevchenko
2020-03-02 23:36         ` Simon Glass
2020-03-03  2:54           ` Bin Meng
2020-03-03  9:22           ` Andy Shevchenko
2020-03-04  2:47             ` Simon Glass
2020-03-05 12:17               ` Andy Shevchenko
2020-03-29  2:13                 ` Simon Glass
2020-03-29 21:00                   ` Andy Shevchenko
2020-04-08  2:57                     ` Simon Glass
2020-03-03 10:00           ` Wolfgang Wallner [this message]
2020-03-03 14:56             ` Andy Shevchenko
2020-03-25  6:48 ` Bin Meng
2020-03-25  6:54   ` Bin Meng

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=OF6DF085F6.23F960D9-ONC1258520.00361B72-C1258520.0036FF91@br-automation.com \
    --to=wolfgang.wallner@br-automation.com \
    --cc=u-boot@lists.denx.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.