From: Igor Mammedov <imammedo@redhat.com>
To: gengdongjiu <gengdongjiu@huawei.com>
Cc: pbonzini@redhat.com, mst@redhat.com, zhaoshenglong@huawei.com,
peter.maydell@linaro.org, mtosatti@redhat.com, rth@twiddle.net,
ehabkost@redhat.com, james.morse@arm.com,
christoffer.dall@linaro.org, marc.zyngier@arm.com,
kvm@vger.kernel.org, qemu-devel@nongnu.org, qemu-arm@nongnu.org,
huangshaoyu@huawei.com, zhengqiang10@huawei.com,
xuwei5@hisilicon.com
Subject: Re: [Qemu-devel] [PATCH v14 7/9] ARM: ACPI: Add GPIO notification type for hardware RAS error
Date: Wed, 3 Jan 2018 14:36:18 +0100 [thread overview]
Message-ID: <20180103143618.322b1b33@redhat.com> (raw)
In-Reply-To: <fc9e6c01-3334-f79c-5416-499177234044@huawei.com>
On Wed, 3 Jan 2018 11:48:30 +0800
gengdongjiu <gengdongjiu@huawei.com> wrote:
> On 2017/12/28 22:53, Igor Mammedov wrote:
> > On Thu, 28 Dec 2017 13:54:16 +0800
> > Dongjiu Geng <gengdongjiu@huawei.com> wrote:
[...]
> >> +static void acpi_dsdt_add_error_device(Aml *scope)
> >> +{
> >> + Aml *dev = aml_device(ACPI_HARDWARE_ERROR_DEVICE);
> >> + Aml *method;
> >> +
> >> + aml_append(dev, aml_name_decl("_HID", aml_eisaid("PNP0C33")));
> >> + aml_append(dev, aml_name_decl("_UID", aml_int(0)));
> >> +
> >> + method = aml_method("_STA", 0, AML_NOTSERIALIZED);
> >> + aml_append(method, aml_return(aml_int(0x0f)));
> > no need for dummy _STA method, device is assumed to be present if there is no _STA
> Igor,
> do you mean remove above two line code as shown in [1]?
> I dump the DSDT table in my host Ubuntu PC for the error device (PNP0C33), it has the _STA, as shown in [2].
> do we not want to add the _STA for guest?
>
> [1]
> + method = aml_method("_STA", 0, AML_NOTSERIALIZED);
> + aml_append(method, aml_return(aml_int(0x0f)));
compared to host, yours method does nothing,
read ACPI6.2 "6.3.7 _STA (Status)" one more time
> [2]:
> Device (WERR)
> {
> Name (_HID, EisaId ("PNP0C33")) // _HID: Hardware ID
> Method (_STA, 0, NotSerialized) // _STA: Status
> {
> If (LGreaterEqual (OSYS, 0x07D9))
> {
> Return (0x0F)
> }
> Else
> {
> Return (Zero)
> }
> }
> }
> >
> >> + aml_append(dev, method);
> >> + aml_append(scope, dev);
> >> +}
> >> +
[...]
next prev parent reply other threads:[~2018-01-03 13:36 UTC|newest]
Thread overview: 42+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-12-28 5:54 [Qemu-devel] [PATCH v14 0/9] Add ARMv8 RAS virtualization support in QEMU Dongjiu Geng
2017-12-28 5:54 ` [Qemu-devel] [PATCH v14 1/9] ACPI: add some GHES structures and macros definition Dongjiu Geng
2017-12-28 12:29 ` Igor Mammedov
2018-01-03 10:29 ` gengdongjiu
2017-12-28 5:54 ` [Qemu-devel] [PATCH v14 2/9] ACPI: Add APEI GHES table generation and CPER record support Dongjiu Geng
2017-12-28 14:18 ` Igor Mammedov
2017-12-29 6:33 ` gengdongjiu
2018-01-03 2:21 ` gengdongjiu
2018-01-03 13:31 ` Igor Mammedov
2018-01-04 4:21 ` gengdongjiu
2018-01-09 16:51 ` Peter Maydell
2018-01-10 5:22 ` gengdongjiu
2017-12-28 5:54 ` [Qemu-devel] [PATCH v14 3/9] docs: APEI GHES generation and CPER record description Dongjiu Geng
2017-12-28 5:54 ` [Qemu-devel] [PATCH v14 4/9] ACPI: enable APEI GHES in the configure file Dongjiu Geng
2018-01-09 17:16 ` Peter Maydell
2018-01-10 12:20 ` gengdongjiu
2017-12-28 5:54 ` [Qemu-devel] [PATCH v14 5/9] target-arm: kvm64: inject synchronous External Abort Dongjiu Geng
2017-12-28 13:49 ` Igor Mammedov
2017-12-29 6:27 ` gengdongjiu
2018-01-09 17:30 ` Peter Maydell
2018-01-11 5:59 ` gengdongjiu
2018-01-11 9:53 ` [Qemu-devel] [Qemu-arm] " Peter Maydell
2018-01-11 10:33 ` gengdongjiu
2018-01-13 5:24 ` [Qemu-devel] " gengdongjiu
2018-01-13 8:27 ` gengdongjiu
2017-12-28 5:54 ` [Qemu-devel] [PATCH v14 6/9] Move related hwpoison page functions to accel/kvm/ folder Dongjiu Geng
2017-12-28 5:54 ` [Qemu-devel] [PATCH v14 7/9] ARM: ACPI: Add GPIO notification type for hardware RAS error Dongjiu Geng
2017-12-28 14:53 ` Igor Mammedov
2018-01-03 3:48 ` gengdongjiu
2018-01-03 13:36 ` Igor Mammedov [this message]
2018-01-04 4:55 ` gengdongjiu
2017-12-28 5:54 ` [Qemu-devel] [PATCH v14 8/9] hw/arm/virt: Add RAS platform version for migration Dongjiu Geng
2017-12-28 14:58 ` Igor Mammedov
2018-01-03 4:02 ` gengdongjiu
2018-01-09 15:42 ` Peter Maydell
2017-12-28 5:54 ` [Qemu-devel] [PATCH v14 9/9] target-arm: kvm64: handle SIGBUS signal from kernel or KVM Dongjiu Geng
2017-12-28 15:07 ` Igor Mammedov
2018-01-03 9:13 ` gengdongjiu
2018-01-03 13:44 ` Igor Mammedov
2018-01-04 6:31 ` gengdongjiu
2018-01-09 17:14 ` Peter Maydell
2018-01-10 11:56 ` gengdongjiu
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=20180103143618.322b1b33@redhat.com \
--to=imammedo@redhat.com \
--cc=christoffer.dall@linaro.org \
--cc=ehabkost@redhat.com \
--cc=gengdongjiu@huawei.com \
--cc=huangshaoyu@huawei.com \
--cc=james.morse@arm.com \
--cc=kvm@vger.kernel.org \
--cc=marc.zyngier@arm.com \
--cc=mst@redhat.com \
--cc=mtosatti@redhat.com \
--cc=pbonzini@redhat.com \
--cc=peter.maydell@linaro.org \
--cc=qemu-arm@nongnu.org \
--cc=qemu-devel@nongnu.org \
--cc=rth@twiddle.net \
--cc=xuwei5@hisilicon.com \
--cc=zhaoshenglong@huawei.com \
--cc=zhengqiang10@huawei.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 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).