All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Gao,Shiyuan" via <qemu-devel@nongnu.org>
To: "Michael S. Tsirkin" <mst@redhat.com>
Cc: "qemu-devel@nongnu.org" <qemu-devel@nongnu.org>,
	"imammedo@redhat.com" <imammedo@redhat.com>
Subject: Re: [PATCH 1/1] hw/i386/acpi-build: add OSHP method support for SHPC driver load
Date: Mon, 24 Jun 2024 13:34:08 +0000	[thread overview]
Message-ID: <a15cb952e03845b684f5211d75dfb4ff@baidu.com> (raw)
In-Reply-To: <20240624091745-mutt-send-email-mst@kernel.org>

> > SHPC driver will be loaded fail in i440fx platform, the dmesg shows
> > that OS cannot get control of SHPC hotplug and hotplug device to
> > the PCI bridge will fail when we use SHPC Native type:
> >
> >   [3.336059] shpchp 0000:00:03.0: Requesting control of SHPC hotplug via OSHP (\_SB_.PCI0.S28_)
> >   [3.337408] shpchp 0000:00:03.0: Requesting control of SHPC hotplug via OSHP (\_SB_.PCI0)
> >   [3.338710] shpchp 0000:00:03.0: Cannot get control of SHPC hotplug
> >
> > Add OSHP method support for SHPC driver load, the hotplug device to the PCI bridge will
> > success when we use SHPC Native type.
> >
> >   [1.703975] shpchp 0000:00:03.0: Requesting control of SHPC hotplug via OSHP (\_SB_.PCI0.S18_)
> >   [1.704934] shpchp 0000:00:03.0: Requesting control of SHPC hotplug via OSHP (\_SB_.PCI0)
> >   [1.705855] shpchp 0000:00:03.0: Gained control of SHPC hotplug (\_SB_.PCI0)
> >   [1.707054] shpchp 0000:00:03.0: HPC vendor_id 1b36 device_id 1 ss_vid 0 ss_did 0
> >
> > According to the acpi_pcihp, the OSHP method don't need parameter and return value now.
> >
> >   shpc_probe
> >     --> acpi_get_hp_hw_control_from_firmware
> >       --> acpi_run_oshp
> >         --> status = acpi_evaluate_object(handle, METHOD_NAME_OSHP, NULL, NULL);
> >
> > Signed-off-by: Shiyuan Gao <gaoshiyuan@baidu.com>
> > ---
> >  hw/i386/acpi-build.c | 14 ++++++++++++++
> >  1 file changed, 14 insertions(+)
> >
> > diff --git a/hw/i386/acpi-build.c b/hw/i386/acpi-build.c
> > index f4e366f64f..79622e6939 100644
> > --- a/hw/i386/acpi-build.c
> > +++ b/hw/i386/acpi-build.c
> > @@ -1412,6 +1412,18 @@ static void build_acpi0017(Aml *table)
> >      aml_append(table, scope);
> >  }
> >
> > +static Aml *build_oshp_method(void)
> > +{
> > +    Aml *method;
> > +
> > +    /*
> > +     * Request control of SHPC hotplug via OSHP method,
> > +     * no need parameter and return value in acpi_pcihp.
> > +     */
>
> Quote spec and earliest version documenting this, please.

I cann't find document describe this, only find in the kernel code
and describe it in the commit message.

  reply	other threads:[~2024-06-24 13:34 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-06-24 13:14 [PATCH 1/1] hw/i386/acpi-build: add OSHP method support for SHPC driver load Shiyuan Gao via
2024-06-24 13:18 ` Michael S. Tsirkin
2024-06-24 13:34   ` Gao,Shiyuan via [this message]
2024-06-24 13:51     ` Michael S. Tsirkin
2024-06-24 14:40       ` Gao,Shiyuan via
2024-06-24 15:26         ` Michael S. Tsirkin

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=a15cb952e03845b684f5211d75dfb4ff@baidu.com \
    --to=qemu-devel@nongnu.org \
    --cc=gaoshiyuan@baidu.com \
    --cc=imammedo@redhat.com \
    --cc=mst@redhat.com \
    /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.