[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v5 5/6] acpi: Add IPMI table entries
From: |
Igor Mammedov |
Subject: |
Re: [Qemu-devel] [PATCH v5 5/6] acpi: Add IPMI table entries |
Date: |
Mon, 23 May 2016 12:01:25 +0200 |
On Sat, 21 May 2016 19:28:59 -0500
Corey Minyard <address@hidden> wrote:
> Thanks for all the comments. I didn't know about stubs, as
> there's nothing that currently uses it in hw directory, but
> it's easy enough to add. I did have two comment below:
>
> On 05/20/2016 04:53 AM, Igor Mammedov wrote:
> > On Thu, 19 May 2016 10:24:01 -0500
> > address@hidden wrote:
> .
> .
> .
> >
> > + aml_append(dev, aml_name_decl("_STR", aml_string("ipmi_%s",
> > +
> > info->interface_name)));
> > + aml_append(dev, aml_name_decl("_UID", aml_int(info->uuid)));
> > + aml_append(dev, aml_name_decl("_CRS", aml_ipmi_crs(info, resource)));
> > +
> > + /*
> > + * The spec seems to require these to be methods. All the examples
> > + * show them this way and it doesn't seem to work if they are not.
> > + */
> > + method = aml_method("_IFT", 0, AML_NOTSERIALIZED);
> > + aml_append(method, aml_return(aml_int(info->interface_type)));
> > + aml_append(dev, method);
> > + method = aml_method("_SRV", 0, AML_NOTSERIALIZED);
> > + aml_append(method, aml_return(aml_int(version)));
> > + aml_append(dev, method);
> > replace these methods with aml_name_decl() as they do not contain any logic
> > except of returning static value.
>
> I'm not sure why, but what you ask doesn't work. These have to be
> methods, and that is show by the IPMI spec, as the comment above
> these says.
on linux these methods are evaluated by ACPICA core and named constant
is equivalent to a method without arguments that returns constant value.
It might be worth to investigate why it doesn't work.
> -corey
- [Qemu-devel] [PATCH v5 2/6] pc: Postpone SMBIOS table installation to post machine init, (continued)
- [Qemu-devel] [PATCH v5 2/6] pc: Postpone SMBIOS table installation to post machine init, minyard, 2016/05/19
- [Qemu-devel] [PATCH v5 3/6] smbios: Move table build tools into an include file., minyard, 2016/05/19
- [Qemu-devel] [PATCH v5 5/6] acpi: Add IPMI table entries, minyard, 2016/05/19
- Re: [Qemu-devel] [PATCH v5 5/6] acpi: Add IPMI table entries, Igor Mammedov, 2016/05/20
- Re: [Qemu-devel] [PATCH v5 5/6] acpi: Add IPMI table entries, Corey Minyard, 2016/05/21
- Re: [Qemu-devel] [PATCH v5 5/6] acpi: Add IPMI table entries, Marcel Apfelbaum, 2016/05/23
- Re: [Qemu-devel] [PATCH v5 5/6] acpi: Add IPMI table entries, Corey Minyard, 2016/05/23
- Re: [Qemu-devel] [PATCH v5 5/6] acpi: Add IPMI table entries, Marcel Apfelbaum, 2016/05/23
- Re: [Qemu-devel] [PATCH v5 5/6] acpi: Add IPMI table entries, Corey Minyard, 2016/05/23
- Re: [Qemu-devel] [PATCH v5 5/6] acpi: Add IPMI table entries,
Igor Mammedov <=
- Re: [Qemu-devel] [PATCH v5 5/6] acpi: Add IPMI table entries, Corey Minyard, 2016/05/23
- Re: [Qemu-devel] [PATCH v5 5/6] acpi: Add IPMI table entries, Igor Mammedov, 2016/05/23
- Re: [Qemu-devel] [PATCH v5 5/6] acpi: Add IPMI table entries, Paolo Bonzini, 2016/05/23
- Re: [Qemu-devel] [PATCH v5 5/6] acpi: Add IPMI table entries, Corey Minyard, 2016/05/23
- Re: [Qemu-devel] [PATCH v5 5/6] acpi: Add IPMI table entries, Paolo Bonzini, 2016/05/24
- Re: [Qemu-devel] [PATCH v5 5/6] acpi: Add IPMI table entries, Igor Mammedov, 2016/05/24
- Re: [Qemu-devel] [PATCH v5 5/6] acpi: Add IPMI table entries, Paolo Bonzini, 2016/05/24
[Qemu-devel] [PATCH v5 1/6] ipmi: rework the fwinfo to be fetched from the interface, minyard, 2016/05/19
[Qemu-devel] [PATCH v5 4/6] ipmi: Add SMBIOS table entry, minyard, 2016/05/19