From: Andreas Mohr <andi@lisas.de>
To: Robert Hancock <hancockr@shaw.ca>
Cc: Matthew Garrett <mjg59@srcf.ucam.org>,
Andrew Morton <akpm@linux-foundation.org>,
Andreas Mohr <andi@lisas.de>, "Rafael J. Wysocki" <rjw@sisk.pl>,
LKML <linux-kernel@vger.kernel.org>,
Linus Torvalds <torvalds@linux-foundation.org>,
Ingo Molnar <mingo@elte.hu>,
linux-ide@vger.kernel.org, Tejun Heo <htejun@gmail.com>,
Len Brown <lenb@kernel.org>,
linux-acpi@vger.kernel.org
Subject: Re: 2.6.24-rc4-git5: Reported regressions from 2.6.23
Date: Sun, 9 Dec 2007 22:36:42 +0100 [thread overview]
Message-ID: <20071209213642.GA27096@rhlx01.hs-esslingen.de> (raw)
In-Reply-To: <475AE150.9050306@shaw.ca>
Hi,
[ACPI _GTM suspend issue sorta fixed, read below]
On Sat, Dec 08, 2007 at 12:24:16PM -0600, Robert Hancock wrote:
> Matthew Garrett wrote:
>> On Sat, Dec 08, 2007 at 02:20:01AM -0800, Andrew Morton wrote:
>>> On Sat, 8 Dec 2007 11:12:57 +0100 Andreas Mohr <andi@lisas.de> wrote:
>>>> ACPI Exception (exoparg2-0442): AE_AML_PACKAGE_LIMIT, Index (0FFFFFFFF) is beyond end of object [20070126]
>>>> ACPI Error (psparse-0537): Method parse/execution failed [\_SB_.PCI0.IDE0.GTF_] (Node c180b990), AE_AML_PACKAGE_LIMIT
>>>> ACPI Error (psparse-0537): Method parse/execution failed [\_SB_.PCI0.IDE0.CHN0.DRV1._GTF] (Node c180b888), AE_AML_PACKAGE_LIMIT
>>>> ata1.01: _GTF evaluation failed (AE 0x300d)
>>
>> 037f6bb79f753c014bc84bca0de9bf98bb5ab169 ought to have fixed this?
>>
>
> I should think it should have.
Yup, the _GTF problem is certainly fixed, but this is a dead-end
since I showed the -rc1 vs. -rc2 behaviour, whereas I still have
failing suspend in -rc4 with this patch confirmed to be applied
(source does contain the changes) and confirmed to apparently be working
(no errors in dmesg any more).
IOW, what I'm concerned about is not a _GTF error on boot any more,
but a seemingly fatally handled _GTM error on suspend.
...OK, dug some more into this, and now I managed to get it to work,
and it was indeed _GTM which broke my whole suspend:
Since _GTM is failing on me (and the point is, it's failing
catastrophically, not "normally"!), ata_acpi_on_suspend()
calling ata_acpi_gtm() fails with -EINVAL instead of -ENOENT,
however ata_acpi_on_suspend() has the following correction only:
if (rc == -ENOENT)
rc = 0;
to make sure a suspend doesn't get aborted (fatal error) when
_GTM is simply empty.
Changing this into
if ((rc == -ENOENT) || (rc == -EINVAL))
rc = 0;
to additionally account for _invalid_ _GTM execution makes my suspend
(and resume!) work again on -rc4.
Now the question is whether this error code correction is ok, or whether a
catastrophically failing _GTM should have been truly registered on boot
already (where it does gtm to fetch cable timings) to subsequently avoid
doing any ATA ACPI things on suspend at all.
And the second, possibly much more lucrative, question would be
whether we're actually doing something wrong with our ACPI _GTM execution
which triggers the AE_AML_PACKAGE_LIMIT problem.
This might help here, perhaps (relevant snippets of AML dump):
Device (CHN0)
{
Name (_ADR, 0x00)
Method (_GTM, 0, NotSerialized)
{
Return (GTM (PMPT, PMUE, PMUT, PSPT, PSUE, PSUT))
}
Method (_STM, 3, NotSerialized)
{
Store (Arg0, TMD0)
Store (PMPT, GMPT)
Store (PMUE, GMUE)
Store (PMUT, GMUT)
Store (PSPT, GSPT)
Store (PSUE, GSUE)
Store (PSUT, GSUT)
STM ()
Store (GMPT, PMPT)
Store (GMUE, PMUE)
Store (GMUT, PMUT)
Store (GSPT, PSPT)
Store (GSUE, PSUE)
Store (GSUT, PSUT)
}
Device (CHN1)
{
Name (_ADR, 0x01)
Method (_GTM, 0, NotSerialized)
{
Return (GTM (SMPT, SMUE, SMUT, SSPT, SSUE, SSUT))
}
Method (_STM, 3, NotSerialized)
{
Store (Arg0, TMD0)
Store (SMPT, GMPT)
Store (SMUE, GMUE)
Store (SMUT, GMUT)
Store (SSPT, GSPT)
Store (SSUE, GSUE)
Store (SSUT, GSUT)
STM ()
Store (GMPT, SMPT)
Store (GMUE, SMUE)
Store (GMUT, SMUT)
Store (GSPT, SSPT)
Store (GSUE, SSUE)
Store (GSUT, SSUT)
}
Method (GTM, 6, Serialized)
{
Store (Ones, PIO0)
Store (Ones, PIO1)
Store (Ones, DMA0)
Store (Ones, DMA1)
Store (0x10, CHNF)
If (REGF) {}
Else
{
Return (TMD0)
}
Store (Match (DerefOf (Index (TIM0, 0x01)), MEQ, Arg0, MTR,
0x00, 0x00), Local6)
Store (DerefOf (Index (DerefOf (Index (TIM0, 0x00)), Local6)
),
Local7)
Store (Local7, DMA0)
Store (Local7, PIO0)
Store (Match (DerefOf (Index (TIM0, 0x01)), MEQ, Arg3, MTR,
0x00, 0x00), Local6)
Store (DerefOf (Index (DerefOf (Index (TIM0, 0x00)), Local6)
),
Local7)
Store (Local7, DMA1)
Store (Local7, PIO1)
If (Arg1)
{
If (A133 ())
{
Store (DerefOf (Index (DerefOf (Index (TIM0, 0x0D)),
Arg2)),
Local5)
}
Else
{
Store (DerefOf (Index (DerefOf (Index (TIM0, 0x0A)),
Arg2)),
Local5)
}
If (A133 ())
{
Store (DerefOf (Index (DerefOf (Index (TIM0, 0x0C)),
Local5)),
DMA0)
}
Else
{
Store (DerefOf (Index (DerefOf (Index (TIM0, 0x04)),
Local5)),
DMA0)
}
Or (CHNF, 0x01, CHNF)
}
If (Arg4)
{
If (A133 ())
{
Store (DerefOf (Index (DerefOf (Index (TIM0, 0x0D)), Arg5)),
Local5)
}
Else
{
Store (DerefOf (Index (DerefOf (Index (TIM0, 0x0A)), Arg5)),
Local5)
}
If (A133 ())
{
Store (DerefOf (Index (DerefOf (Index (TIM0, 0x0C)), Local5)),
DMA1)
}
Else
{
Store (DerefOf (Index (DerefOf (Index (TIM0, 0x04)), Local5)),
DMA1)
}
Or (CHNF, 0x04, CHNF)
}
Return (TMD0)
}
Reminder: issue tracked at #9530.
Thanks,
Andreas Mohr
next prev parent reply other threads:[~2007-12-09 21:36 UTC|newest]
Thread overview: 74+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <fa.qQhD8aJpiTOFaZqjRYwoaG7YT1c@ifi.uio.no>
[not found] ` <fa.yaP86AixGhz5Q7eXSu04pIQp6ho@ifi.uio.no>
[not found] ` <fa.c3k8VKWAx4HIo9zXWbL5Ek0oSBw@ifi.uio.no>
[not found] ` <fa.C8ACnOhs8bXB++vmugf5F34JcJg@ifi.uio.no>
[not found] ` <fa.5o6E6S0UWnARbQPxLe30TvLQIiY@ifi.uio.no>
2007-12-08 18:24 ` Robert Hancock
2007-12-09 5:59 ` Tejun Heo
2007-12-09 21:36 ` Andreas Mohr [this message]
2007-12-10 0:04 ` Andreas Mohr
2007-12-10 0:49 ` Andreas Mohr
2007-12-10 1:28 ` Robert Hancock
2007-12-10 2:25 ` Tejun Heo
2007-12-10 3:20 ` Robert Hancock
2007-12-10 2:20 ` Tejun Heo
2007-12-08 2:40 Rafael J. Wysocki
2007-12-08 6:53 ` Fabio Comolli
2007-12-08 8:28 ` Ingo Molnar
2007-12-08 9:23 ` Andrew Morton
2007-12-08 22:11 ` Rafael J. Wysocki
2007-12-08 9:29 ` Andrew Morton
2007-12-08 22:17 ` Rafael J. Wysocki
2007-12-08 9:36 ` Andrew Morton
2007-12-08 10:12 ` Andreas Mohr
2007-12-08 10:20 ` Andrew Morton
2007-12-08 10:28 ` Matthew Garrett
2007-12-08 10:55 ` Andreas Mohr
2007-12-09 15:46 ` Tejun Heo
2007-12-09 19:59 ` Andreas Mohr
2007-12-09 6:52 ` Tejun Heo
2007-12-09 14:20 ` Rafael J. Wysocki
2007-12-09 15:11 ` Tejun Heo
2007-12-08 9:42 ` Andrew Morton
2007-12-08 18:57 ` Roland Dreier
2007-12-08 19:40 ` Theodore Tso
2007-12-08 19:55 ` Ingo Molnar
2007-12-08 22:30 ` Rafael J. Wysocki
2007-12-09 2:15 ` Theodore Tso
2007-12-13 10:49 ` Takashi Iwai
2007-12-20 15:42 ` Takashi Iwai
2007-12-08 9:46 ` Andrew Morton
2007-12-08 15:49 ` Alan Stern
2007-12-08 9:52 ` Andrew Morton
2007-12-09 7:00 ` Tejun Heo
2007-12-09 13:42 ` Alan Cox
2007-12-09 15:09 ` Tejun Heo
2007-12-09 15:25 ` Alan Cox
2007-12-09 15:39 ` Tejun Heo
2007-12-09 18:36 ` Linus Torvalds
2007-12-09 21:54 ` Alan Cox
2007-12-09 18:41 ` Linus Torvalds
2007-12-09 22:01 ` Alan Cox
2007-12-09 22:51 ` Ray Lee
2007-12-10 1:57 ` Linus Torvalds
2007-12-10 3:28 ` Alan Cox
2007-12-10 3:38 ` Alan Cox
2007-12-10 15:38 ` Linus Torvalds
2007-12-10 8:21 ` Ingo Molnar
2007-12-10 8:27 ` Tejun Heo
2007-12-10 8:41 ` Ingo Molnar
2007-12-08 10:44 ` Richard Purdie
2007-12-08 22:32 ` Rafael J. Wysocki
2007-12-09 11:54 ` Andrew Morton
2007-12-09 12:05 ` Ingo Molnar
2007-12-09 14:24 ` Rafael J. Wysocki
2007-12-10 20:42 ` Ingo Molnar
2007-12-10 20:57 ` Guillaume Chazarain
2007-12-10 20:59 ` Andrew Morton
2007-12-10 22:45 ` Ingo Molnar
2007-12-10 23:04 ` Ingo Molnar
2007-12-10 23:34 ` Stefano Brivio
2007-12-10 23:53 ` Guillaume Chazarain
2007-12-11 8:48 ` Ingo Molnar
2007-12-10 23:56 ` Arjan van de Ven
2007-12-11 0:01 ` Guillaume Chazarain
2007-12-11 1:06 ` Arjan van de Ven
2007-12-11 8:43 ` Ingo Molnar
2007-12-11 9:01 ` Ingo Molnar
2007-12-11 21:10 ` Stefano Brivio
2007-12-19 0:58 ` Stefano Brivio
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=20071209213642.GA27096@rhlx01.hs-esslingen.de \
--to=andi@lisas.de \
--cc=akpm@linux-foundation.org \
--cc=hancockr@shaw.ca \
--cc=htejun@gmail.com \
--cc=lenb@kernel.org \
--cc=linux-acpi@vger.kernel.org \
--cc=linux-ide@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@elte.hu \
--cc=mjg59@srcf.ucam.org \
--cc=rjw@sisk.pl \
--cc=torvalds@linux-foundation.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®