public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
From: Lin Ming <ming.m.lin@intel.com>
To: Len Brown <lenb@kernel.org>
Cc: "Moore, Robert" <robert.moore@intel.com>, linux-acpi@vger.kernel.org
Subject: RE: ACPICA branch (0 Objects with 0 Devices 0 Methods 0 Regions)
Date: Tue, 13 May 2008 13:45:22 +0800	[thread overview]
Message-ID: <1210657522.940.4.camel@minggr> (raw)
In-Reply-To: <1210054833.7447.3.camel@minggr>

Hi, Len

Please apply this patch.
Load the dynamic table under root node.

Lin Ming

Signed-off-by: Lin Ming <ming.m.lin@intel.com>
---
diff --git a/drivers/acpi/executer/exconfig.c
b/drivers/acpi/executer/exconfig.c
index 24da921..508bb0e 100644
--- a/drivers/acpi/executer/exconfig.c
+++ b/drivers/acpi/executer/exconfig.c
@@ -376,7 +376,7 @@ acpi_ex_load_op(union acpi_operand_object *obj_desc,
        }
 
        status =
-           acpi_ex_add_table(table_index,
walk_state->scope_info->scope.node,
+           acpi_ex_add_table(table_index, acpi_gbl_root_node,
                              &ddb_handle);
        if (ACPI_FAILURE(status)) {



On Tue, 2008-05-06 at 14:20 +0800, Lin Ming wrote:
> Hi, all
> 
> The root cause found, it's caused by a patch 
> which introduced in ACPICA version 20071019
> 
> commit 7f4ac9f91383a0707de559dc8fbca986fc2d302f
> Author: Bob Moore <robert.moore@intel.com>
> Date:   Thu Apr 10 19:06:39 2008 +0400
> 
>     ACPICA: Fix for Load/LoadTable to specify load location
>     
>     Fixed a problem with the Load and LoadTable operators where
>     the table location within the namespace was ignored. Instead,
>     the table was always loaded into the root or current scope.
>     
>     Signed-off-by: Bob Moore <robert.moore@intel.com>
>     Signed-off-by: Alexey Starikovskiy <astarikovskiy@suse.de>
>     Signed-off-by: Len Brown <len.brown@intel.com>
> 
> 
> For example, 
> SSDT:
> Name(\tmp0, 0)
> 
> DSDT:
> Method(m000)
> {
> 	<Load the SSDT above>
> }
> 
> Namespace walking will start at node m000, so \tmp0 will never appear at
> the namespace walking.
> 
> It seems that we should again force the table always loaded into the
> root.
> Load statement is always inside a method.
> It makes no sense to install some nodes inside a method since the nodes
> in method should all be temporary nodes that will be deleted when method
> exit.
> 
> Lin Ming
> ---
> diff --git a/drivers/acpi/executer/exconfig.c
> b/drivers/acpi/executer/exconfig.c
> index 24da921..508bb0e 100644
> --- a/drivers/acpi/executer/exconfig.c
> +++ b/drivers/acpi/executer/exconfig.c
> @@ -376,7 +376,7 @@ acpi_ex_load_op(union acpi_operand_object *obj_desc,
>         }
>  
>         status =
> -           acpi_ex_add_table(table_index,
> walk_state->scope_info->scope.node,
> +           acpi_ex_add_table(table_index, acpi_gbl_root_node,
>                               &ddb_handle);
>         if (ACPI_FAILURE(status)) {
> 
> On Wed, 2008-04-30 at 00:09 +0800, Moore, Robert wrote:
> > It looks like the tables in question are dynamically loaded:
> > 
> > >ACPI: SSDT 7D6E1B32, 02C4 (r1  PmRef  Cpu0Ist      100 INTL 20050513)
> > >Table [SSDT](id 0044) - 0 Objects with 0 Devices 0 Methods 0 Regions
> > >ACPI: SSDT 7D6E1E7B, 085E (r1  PmRef  Cpu0Cst      100 INTL 20050513)
> > >Table [SSDT](id 0045) - 0 Objects with 0 Devices 0 Methods 0 Regions
> > >ACPI: SSDT 7D6E1A6A, 00C8 (r1  PmRef  Cpu1Ist      100 INTL 20050513)
> > >Table [SSDT](id 0050) - 0 Objects with 0 Devices 0 Methods 0 Regions
> > >ACPI: SSDT 7D6E1DF6, 0085 (r1  PmRef  Cpu1Cst      100 INTL 20050513)
> > >Table [SSDT](id 0051) - 0 Objects with 0 Devices 0 Methods 0 Regions
> > 
> > What the zeroes mean is that a WalkNamespace after the table load did
> > not find any such objects created by the table.
> > 
> > Something does look wrong, it may not affect your machine, but has the
> > potential to cause problems on other machines.
> > 
> > The difference in owner IDs between the two traces might mean that there
> > is some mismatch somewhere. I would debug and determine 1) The actual
> > owner id created for the newly loaded table, and 2) what owner id is
> > passed to AcpiDsInitializeObjects after the table is loaded.
> > 
> > Bob
> > 
> > 
> > 
> > >-----Original Message-----
> > >From: Len Brown [mailto:lenb@kernel.org]
> > >Sent: Tuesday, April 29, 2008 2:05 AM
> > >To: linux-acpi@vger.kernel.org; Moore, Robert; Lin, Ming M
> > >Subject: Re: ACPICA branch (0 Objects with 0 Devices 0 Methods 0
> > Regions)
> > >
> > >Hmm, i just noticed something strange on the T61
> > >
> > >Linus' tree prints these messages:
> > >
> > >[lenb@t61 sut]$ grep -i ssdt 2.6.25-06058-ga01e035/dmesg
> > >ACPI: SSDT 7D6BB9B4, 0269 (r1 LENOVO TP-7L        2100 MSFT  3000000)
> > >ACPI: SSDT 7D6E26D9, 025F (r1 LENOVO TP-7L        2100 INTL 20050513)
> > >ACPI: SSDT 7D6E2938, 00A6 (r1 LENOVO TP-7L        2100 INTL 20050513)
> > >ACPI: SSDT 7D6E29DE, 04F7 (r1 LENOVO TP-7L        2100 INTL 20050513)
> > >ACPI: SSDT 7D6E2ED5, 01D8 (r1 LENOVO TP-7L        2100 INTL 20050513)
> > >Table [SSDT](id 0002) - 11 Objects with 0 Devices 7 Methods 0 Regions
> > >Table [SSDT](id 0003) - 7 Objects with 0 Devices 3 Methods 0 Regions
> > >Table [SSDT](id 0004) - 4 Objects with 0 Devices 3 Methods 0 Regions
> > >Table [SSDT](id 0005) - 14 Objects with 0 Devices 5 Methods 0 Regions
> > >Table [SSDT](id 0006) - 14 Objects with 1 Devices 2 Methods 0 Regions
> > >ACPI: SSDT 7D6E1B32, 02C4 (r1  PmRef  Cpu0Ist      100 INTL 20050513)
> > >Table [SSDT](id 003A) - 6 Objects with 0 Devices 4 Methods 0 Regions
> > >ACPI: SSDT 7D6E1E7B, 085E (r1  PmRef  Cpu0Cst      100 INTL 20050513)
> > >Table [SSDT](id 003B) - 16 Objects with 0 Devices 1 Methods 0 Regions
> > >ACPI: SSDT 7D6E1A6A, 00C8 (r1  PmRef  Cpu1Ist      100 INTL 20050513)
> > >Table [SSDT](id 0046) - 4 Objects with 0 Devices 4 Methods 0 Regions
> > >ACPI: SSDT 7D6E1DF6, 0085 (r1  PmRef  Cpu1Cst      100 INTL 20050513)
> > >Table [SSDT](id 0047) - 1 Objects with 0 Devices 1 Methods 0 Regions
> > >
> > >
> > >The acpi test tree prints these messages:
> > >
> > >[lenb@t61 sut]$ grep -i ssdt 2.6.25-06238-gf4e0ea3/dmesg
> > >ACPI: SSDT 7D6BB9B4, 0269 (r1 LENOVO TP-7L        2100 MSFT  3000000)
> > >ACPI: SSDT 7D6E26D9, 025F (r1 LENOVO TP-7L        2100 INTL 20050513)
> > >ACPI: SSDT 7D6E2938, 00A6 (r1 LENOVO TP-7L        2100 INTL 20050513)
> > >ACPI: SSDT 7D6E29DE, 04F7 (r1 LENOVO TP-7L        2100 INTL 20050513)
> > >ACPI: SSDT 7D6E2ED5, 01D8 (r1 LENOVO TP-7L        2100 INTL 20050513)
> > >Table [SSDT](id 0002) - 11 Objects with 0 Devices 7 Methods 0 Regions
> > >Table [SSDT](id 0003) - 7 Objects with 0 Devices 3 Methods 0 Regions
> > >Table [SSDT](id 0004) - 4 Objects with 0 Devices 3 Methods 0 Regions
> > >Table [SSDT](id 0005) - 14 Objects with 0 Devices 5 Methods 0 Regions
> > >Table [SSDT](id 0006) - 14 Objects with 1 Devices 2 Methods 0 Regions
> > >ACPI: SSDT 7D6E1B32, 02C4 (r1  PmRef  Cpu0Ist      100 INTL 20050513)
> > >Table [SSDT](id 0044) - 0 Objects with 0 Devices 0 Methods 0 Regions
> > >ACPI: SSDT 7D6E1E7B, 085E (r1  PmRef  Cpu0Cst      100 INTL 20050513)
> > >Table [SSDT](id 0045) - 0 Objects with 0 Devices 0 Methods 0 Regions
> > >ACPI: SSDT 7D6E1A6A, 00C8 (r1  PmRef  Cpu1Ist      100 INTL 20050513)
> > >Table [SSDT](id 0050) - 0 Objects with 0 Devices 0 Methods 0 Regions
> > >ACPI: SSDT 7D6E1DF6, 0085 (r1  PmRef  Cpu1Cst      100 INTL 20050513)
> > >Table [SSDT](id 0051) - 0 Objects with 0 Devices 0 Methods 0 Regions
> > >
> > >ie.  "0 Objects with 0 Devices 0 Methods 0 Regions"
> > >
> > >dunno if this is just cosmetic -- the p-states that are advertised in
> > >the SSDT's seem to be working normally, and C-states do too.
> > >
> > >-Len


      parent reply	other threads:[~2008-05-13  5:51 UTC|newest]

Thread overview: 123+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-04-12  4:24 ACPICA branch Len Brown
2008-04-12  4:24 ` [PATCH 01/73] ACPICA: Several fixes for internal method result stack Len Brown
2008-04-12  4:24   ` [PATCH 02/73] ACPICA: Removed unused code Len Brown
2008-04-12  4:24   ` [PATCH 03/73] ACPICA: Update for mutiple global lock acquisitions by same thread Len Brown
2008-04-12  4:24   ` [PATCH 04/73] ACPICA: changed order of interpretation of operand objects Len Brown
2008-04-12  4:24   ` [PATCH 05/73] ACPICA: Avoid use of invalid pointers in returned object field Len Brown
2008-04-12  4:24   ` [PATCH 06/73] ACPICA: Fixed a couple compiler warnings for extra extern statements Len Brown
2008-04-12  4:24   ` [PATCH 07/73] ACPICA: Update comments for acquire/release mutex interfaces Len Brown
2008-04-12  4:24   ` [PATCH 08/73] ACPICA: Removed extraneous code Len Brown
2008-04-12  4:24   ` [PATCH 09/73] ACPICA: Removed obsolete ACPI_NO_INTEGER64_SUPPORT define Len Brown
2008-04-12  4:24   ` [PATCH 10/73] ACPICA: Misc fixes for recent global lock code update Len Brown
2008-04-12  4:24   ` [PATCH 11/73] ACPICA: Increase maximum buffer size dumped to screen in buffer object dump Len Brown
2008-04-12  4:24   ` [PATCH 12/73] ACPICA: Fix for package reference counts Len Brown
2008-04-12  4:24   ` [PATCH 13/73] ACPICA: Update version to 20070320 Len Brown
2008-04-12  4:24   ` [PATCH 14/73] ACPICA: Fix for update of the Global Lock Handle Len Brown
2008-04-12  4:24   ` [PATCH 15/73] ACPICA: Update version to 20070508 Len Brown
2008-04-12  4:24   ` [PATCH 16/73] ACPICA: Updated error message for dynamic method serialization Len Brown
2008-04-12  4:25   ` [PATCH 17/73] ACPICA: Support for iASL - multiple files and wildcards Len Brown
2008-04-12  4:25   ` [PATCH 18/73] ACPICA: Add minimal disassembly support for the SLIC table Len Brown
2008-04-12  4:25   ` [PATCH 19/73] ACPICA: New interfaces for table event handlers Len Brown
2008-04-12  4:25   ` [PATCH 20/73] ACPICA: Fix for namespace lookup problem Len Brown
2008-04-12  4:25   ` [PATCH 21/73] ACPICA: update version number to 20070919 Len Brown
2008-04-12  4:25   ` [PATCH 22/73] ACPICA: Fix for Alias operator to see target child objects Len Brown
2008-04-12  4:25   ` [PATCH 23/73] ACPICA: Fix for fault if Load() fails Len Brown
2008-04-12  4:25   ` [PATCH 24/73] ACPICA: Fix a fault when storing DdbHandle to Debug object Len Brown
2008-04-12  4:25   ` [PATCH 25/73] ACPICA: Fix for memory leak related to DdbHandle objects Len Brown
2008-04-12  4:25   ` [PATCH 26/73] ACPICA: Add a table checksum verify for Load operator Len Brown
2008-04-12  4:25   ` [PATCH 27/73] ACPICA: Add error checks to prevent faults Len Brown
2008-04-12  4:25   ` [PATCH 28/73] ACPICA: Fix for Load/LoadTable to specify load location Len Brown
2008-04-12  4:25   ` [PATCH 29/73] ACPICA: Fixed a memory leak when Device or Thermal objects referenced in packages Len Brown
2008-04-12  4:25   ` [PATCH 30/73] ACPICA: Fix for Increment/Decrement operator, incorrect type change Len Brown
2008-04-12  4:25   ` [PATCH 31/73] ACPICA: Added additional parameter validation for LoadTable Len Brown
2008-04-12  4:25   ` [PATCH 32/73] ACPICA: Update version to 20071019 Len Brown
2008-04-12  4:25   ` [PATCH 33/73] ACPICA: Cosmetic changes only, no functional changes Len Brown
2008-04-12  4:25   ` [PATCH 34/73] " Len Brown
2008-04-12  4:25   ` [PATCH 35/73] ACPICA: Cleanup of debug output Len Brown
2008-04-12  4:25   ` [PATCH 36/73] ACPICA: Fixes a problem with control method references within packages Len Brown
2008-04-12  4:25   ` [PATCH 37/73] ACPICA: Fixed a problem with FromBCD and ToBCD with some compilers Len Brown
2008-04-12  4:25   ` [PATCH 38/73] ACPICA: Fixed a problem with Index references passed as method arguments Len Brown
2008-04-12  4:25   ` [PATCH 39/73] ACPICA: Fixed a problem with CopyObject used in conjunction with the Index operator Len Brown
2008-04-12  4:25   ` [PATCH 40/73] ACPICA: Update version to 20071114 Len Brown
2008-04-12  4:25   ` [PATCH 41/73] ACPICA: Fixed a problem with AcpiGetDevices where the search of a branch of the device tree could be terminated prematurely Len Brown
2008-04-12  4:25   ` [PATCH 42/73] ACPICA: Fixed a problem with Index Fields where the Index register was incorrectly limited to a maximum of 32 bits Len Brown
2008-04-12  4:25   ` [PATCH 43/73] ACPICA: Implemented full support for deferred execution for the TermArg string arguments for DataTableRegion Len Brown
2008-04-12  4:25   ` [PATCH 44/73] ACPICA: Undo accidental checkin of not-fully-tested mutex changes Len Brown
2008-04-12  4:25   ` [PATCH 45/73] ACPICA: Implemented full argument resolution support for the BankValue argument to BankField Len Brown
2008-04-12  4:25   ` [PATCH 46/73] ACPICA: Fixed a couple memory leaks associated with "implicit return" objects when the AML Interpreter slack mode is enabled Len Brown
2008-04-22 18:24     ` Len Brown
2008-04-12  4:25   ` [PATCH 47/73] ACPICA: Update version to 20071219 Len Brown
2008-04-12  4:25   ` [PATCH 48/73] ACPICA: Fix for SizeOf when used with Buffers and Packages Len Brown
2008-04-12  4:25   ` [PATCH 49/73] ACPICA: Methods now implicitly return 0 in slack mode Len Brown
2008-04-12  4:25   ` [PATCH 50/73] ACPICA: Fix for Load operator Len Brown
2008-04-12  4:25   ` [PATCH 51/73] ACPICA: Fix for LoadTable operator, input strings Len Brown
2008-04-12  4:25   ` [PATCH 52/73] ACPICA: Include file support for new ACPI tables Len Brown
2008-04-12  4:25   ` [PATCH 53/73] ACPICA: Bulletproof disassembler for bad " Len Brown
2008-04-12  4:25   ` [PATCH 54/73] ACPICA: Fixes for Unload and DDBHandles Len Brown
2008-04-12  4:25   ` [PATCH 55/73] ACPICA: Update version to 20080123 Len Brown
2008-04-12  4:25   ` [PATCH 56/73] ACPICA: Add va_end statements as appropriate Len Brown
2008-04-12  4:25   ` [PATCH 57/73] ACPICA: Added new error messages Len Brown
2008-04-12  4:25   ` [PATCH 58/73] ACPICA: Fix for ACPI_HIDWORD macro Len Brown
2008-04-12  4:25   ` [PATCH 59/73] ACPICA: Disassembler support for new ACPI tables Len Brown
2008-04-12  4:25   ` [PATCH 60/73] ACPICA: Additional GPE/Notify handling change Len Brown
2008-04-12  4:25   ` [PATCH 61/73] ACPICA: Fix for resource descriptor optimization issues for _CRS/_SRC Len Brown
2008-04-12  4:25   ` [PATCH 62/73] ACPICA: Update behavior of CopyObject to match ACPI spec Len Brown
2008-04-12  4:25   ` [PATCH 63/73] ACPICA: Fix for possible error when packages/buffers are passed to methods externally Len Brown
2008-04-12  4:25   ` [PATCH 64/73] ACPICA: Update ACPICA version to 20080213 Len Brown
2008-04-12  4:25   ` [PATCH 65/73] ACPICA: Fix for extraneous debug message for packages Len Brown
2008-04-15  7:09     ` Len Brown
2008-04-15  8:36       ` Alexey Starikovskiy
2008-04-15 18:46         ` Moore, Robert
2008-04-15 18:56           ` Alexey Starikovskiy
2008-04-15 20:19             ` Moore, Robert
2008-04-15 20:39               ` Alexey Starikovskiy
2008-04-15 21:01                 ` Moore, Robert
2008-04-15 21:12                   ` Alexey Starikovskiy
2008-04-15 21:29                     ` Moore, Robert
2008-04-15 21:51                       ` Alexey Starikovskiy
2008-04-15 22:27                         ` Moore, Robert
2008-04-15 22:02                       ` Tomas Carnecky
2008-04-15 21:57                         ` Alexey Starikovskiy
2008-04-15 22:20                           ` Moore, Robert
2008-04-15 21:56                 ` Tomas Carnecky
2008-04-15 21:55                   ` Alexey Starikovskiy
2008-04-22 19:23         ` Len Brown
2008-04-22 22:21           ` Moore, Robert
2008-04-22 23:22             ` Len Brown
2008-04-23  1:00               ` Moore, Robert
2008-04-12  4:25   ` [PATCH 66/73] ACPICA: Fix to handle NULL package elements correctly Len Brown
2008-04-12  4:25   ` [PATCH 67/73] ACPICA: Fixes for external Reference Objects Len Brown
2008-04-22 23:15     ` Len Brown
2008-04-12  4:25   ` [PATCH 68/73] ACPICA: Updates for Debug object output Len Brown
2008-04-12  4:25   ` [PATCH 69/73] ACPICA: Fixes for size of StartDependent resource descriptor Len Brown
2008-04-12  4:25   ` [PATCH 70/73] ACPICA: Fix to disable unknown spurious GPEs Len Brown
2008-04-23  2:57     ` Len Brown
2008-04-23  5:28       ` Alexey Starikovskiy
2008-04-23 20:35         ` Moore, Robert
2008-04-25  1:40           ` Len Brown
2008-04-25  1:53             ` Zhang Rui
2008-04-25  1:57               ` Moore, Robert
2008-04-25  2:10                 ` Alexey Starikovskiy
2008-04-25  2:28                   ` Zhang Rui
2008-04-25  2:39                     ` Alexey Starikovskiy
2008-04-25  4:18                       ` Moore, Robert
2008-05-21  8:28                 ` Zhang, Rui
2008-05-21 16:56                   ` Zhang Rui
2008-05-22  1:35                     ` Zhao Yakui
2008-05-22 16:45                     ` Moore, Robert
2008-05-22 16:55                       ` Alexey Starikovskiy
2008-05-22 17:22                         ` Moore, Robert
2008-05-28 17:40                     ` Moore, Robert
2008-05-22  1:08                   ` Zhao Yakui
2008-04-12  4:25   ` [PATCH 71/73] ACPICA: Update for new Notify values Len Brown
2008-04-12  4:25   ` [PATCH 72/73] ACPICA: Update version to 20080321 Len Brown
2008-04-12  4:25   ` [PATCH 73/73] ACPICA: Fix for some local named nodes not marked temporary and to disallow duplicates Len Brown
2008-04-12  4:41 ` ACPICA branch - first try Core revision 20080321 Len Brown
2008-04-12 20:46   ` Alexey Starikovskiy
2008-04-15  7:51     ` Len Brown
2008-04-29  9:04 ` ACPICA branch (0 Objects with 0 Devices 0 Methods 0 Regions) Len Brown
2008-04-29 16:09   ` Moore, Robert
2008-04-30 11:03     ` Lin Ming
2008-05-06  6:20     ` Lin Ming
2008-05-06 17:07       ` Moore, Robert
2008-05-13  5:45       ` Lin Ming [this message]

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=1210657522.940.4.camel@minggr \
    --to=ming.m.lin@intel.com \
    --cc=lenb@kernel.org \
    --cc=linux-acpi@vger.kernel.org \
    --cc=robert.moore@intel.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