All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Moore, Robert" <robert.moore@intel.com>
To: David Renz <David.Renz@ruhr-uni-bochum.de>
Cc: "linux-acpi@vger.kernel.org" <linux-acpi@vger.kernel.org>,
	"acpi@linux.intel.com" <acpi@linux.intel.com>,
	"david.renz@rub.de" <david.renz@rub.de>,
	"Box, David E" <david.e.box@intel.com>,
	"Schmauss, Erik" <erik.schmauss@intel.com>,
	"linux-acpi-owner@vger.kernel.org"
	<linux-acpi-owner@vger.kernel.org>
Subject: RE: ASL issues on HP machine
Date: Tue, 29 Aug 2017 16:03:51 +0000	[thread overview]
Message-ID: <94F2FBAB4432B54E8AACC7DFDE6C92E37E6084B2@ORSMSX110.amr.corp.intel.com> (raw)
In-Reply-To: <e429849bcbe768f3de3b8d3658203a81@ruhr-uni-bochum.de>



> -----Original Message-----
> From: David Renz [mailto:David.Renz@ruhr-uni-bochum.de]
> Sent: Sunday, August 27, 2017 3:13 PM
> To: Moore, Robert <robert.moore@intel.com>
> Cc: linux-acpi@vger.kernel.org; acpi@linux.intel.com; david.renz@rub.de;
> Box, David E <david.e.box@intel.com>; Schmauss, Erik
> <erik.schmauss@intel.com>; linux-acpi-owner@vger.kernel.org
> Subject: Re: ASL issues on HP machine
> 
> Am 2017-08-25 18:43, schrieb Moore, Robert:
> > I can address a couple of these immediately.
> >
> >
> > ASL_MSG_NOT_REFERENCED
> > This is seen on the HP machine.
> >
> > FAILED [LOW] AMLAsm
> > ASL_MSG_NOT_REFERENCED: Test 1, Assembler remark in line 1141 Line |
> > AML source
> > ----------------------------------------------------------------------
> > ----------
> > 01138|             Store (Buffer (0x18) {}, Local7)
> > 01139|             CreateDWordField (Local7, 0x00, A119)
> > 01140|             CreateDWordField (Local7, 0x04, A120)
> > 01141|             CreateDWordField (Local7, 0x08, A121)
> >       |                                               ^
> >       | Remark 2089: Object is not referenced    (Name [A121] is
> within
> > a
> > method [A037])
> >
> >
> > Here is the actual disassembled A037 method, found in SSDT3:
> >
> >         Method (A037, 1, NotSerialized)
> >         {
> >
> >             ... /* Some other stuff here */
> >
> >             CreateDWordField (Local7, 0x00, A119)
> >             CreateDWordField (Local7, 0x04, A120)
> >             CreateDWordField (Local7, 0x08, A121)
> >             CreateDWordField (Local7, 0x0C, A122)
> >             CreateDWordField (Local7, 0x10, A123)
> >             CreateDWordField (Local7, 0x14, A124)
> >             A119 = Local4
> >             A125 (0x3A, Local7)
> >         }
> >
> > Not only is the symbol A121 created and not referenced, all of the
> > fields A120 through A124 are not referenced.
> >
> > These are essentially "unused variables", so they have no effect on
> > operation of the method other than consuming a tiny bit more memory
> > during the execution of the method.
> >
> >
> >
> >
> > AE_AML_BUFFER_LIMIT:
> > This is seen on the HP machine.
> >
> >> [   12.291867] ACPI Error: Field [D128] at 1152 exceeds Buffer [NULL]
> >> size 160 (bits) (20150930/dsopcode-236)
> >> [   12.291875] ACPI Error: Method parse/execution failed [\HWMC]
> (Node
> >> ffff880197cb5b30), AE_AML_BUFFER_LIMIT (20150930/psparse-542)
> >
> > All of these messages are caused by either whatever driver is calling
> > the HWMC method, or the HWMC method itself.
> 
> One should be able to narrow this down to whether a driver (and which
> driver) calling the HWMC method OR the HWMC method itself being the
> reason, isn't it? But I guess this could only be done by performing
> kernel debugging on this machine to monitor the ACPI activity / event
> taking place 'live', right?
[Moore, Robert] 

For the most part, yes. The driver may be passing in a bad argument to HWMC, or the HWMC method itself is looking beyond the end of what is in fact a well-formed argument.


> 
> 
> > The exact ASL statement
> > showing the problem is this:
> >
> >
> >         CreateField (Arg1, 0x80, 0x0400, D128)
> >
> >
> > The input buffer (Arg1) is 160 bits, but this CreateField statement is
> > attempting to create a field starting at bit offset 0x80 (bit 128) for
> > length 0x400 (1024). This in fact goes way beyond the size of the
> > input buffer (out to bit 0x480, which is decimal 1152). Of course, the
> > ACPICA interpreter detects this and appropriately aborts the method.
> >
> > I cannot speak any further to this problem because it is either a
> > firmware or a driver problem. In either case, the vendor should be
> > notified.
> 
> But this is not my task as a customer, don't you think so? The easiest
> way to shed some light on this would be to send my system's dumped ACPI
> code to HP, so that they can check whether this is the code which should
> be on my machine, isn't it? And I would assume that HP won't do that if
> some custome requests them to do so, but they surely wouldn't refuse
> this request if someone from the Intel ACPI team would approach them.
[Moore, Robert] 

We develop the ACPICA OS-independent code in our group. We are not a customer service organization, and we have little contact with HP itself. We cannot offer help in this area.

The accepted path is to report issues like this to the computer vendor, in this case HP.



> 
> 
> 
> Kinds regards
> 
> David Renz

  reply	other threads:[~2017-08-29 16:04 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-08-25 16:43 ASL issues on HP machine Moore, Robert
2017-08-27 22:12 ` David Renz
2017-08-29 16:03   ` Moore, Robert [this message]
2017-08-29 17:58     ` David Renz
2017-09-06  5:45       ` Zheng, Lv
2017-09-06  6:49     ` Zheng, Lv

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=94F2FBAB4432B54E8AACC7DFDE6C92E37E6084B2@ORSMSX110.amr.corp.intel.com \
    --to=robert.moore@intel.com \
    --cc=David.Renz@ruhr-uni-bochum.de \
    --cc=acpi@linux.intel.com \
    --cc=david.e.box@intel.com \
    --cc=david.renz@rub.de \
    --cc=erik.schmauss@intel.com \
    --cc=linux-acpi-owner@vger.kernel.org \
    --cc=linux-acpi@vger.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 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.