public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
* acpi_memhotplug driver is not working for me. Any ideas?
@ 2005-11-07 21:44 keith
  2005-11-11  2:45 ` keith
  0 siblings, 1 reply; 20+ messages in thread
From: keith @ 2005-11-07 21:44 UTC (permalink / raw)
  To: external hotplug mem list; +Cc: naveen.b.s-ral2JQCrhuEAvxtiuMwx3w, acpi-devel

Hello,
  I have recently acquired an IBM x460 to work with.  The hardware is
completing it's hot add memory event just fine but the acpi code is
retuning errors. (I implemented some stub functions the acpi code
expects the arch to have)

My kernel is 2.6.14-get7 using x86_64...  

With acpi debugging off saw the 

" driver data not found"

with acpi debugging on I see

"acpi_bus-0072 [03] bus_get_device        : No context for object
[ffff810037e82df0]"

(in acpi_memhotplug.c)
I run  acpi_memory_get_device and fail the acpi_bus_get_device call. 

The last of the acpi function call trace output is 

Nov  7 13:24:57 elm3a153 kernel:  utalloc-0526 [09] ut_free_and_track     : ----Entry ffff81027a41d030
Nov  7 13:24:57 elm3a153 kernel:  utalloc-0686 [10] ut_remove_allocation  : ----Entry
Nov  7 13:24:57 elm3a153 kernel:      osl-0794 [11] os_wait_semaphore     : ----Entry
Nov  7 13:24:57 elm3a153 kernel:      osl-0863 [11] os_wait_semaphore     : ----Exit- AE_OK
Nov  7 13:24:57 elm3a153 kernel:      osl-0875 [11] os_signal_semaphore   : ----Entry
Nov  7 13:24:57 elm3a153 kernel:      osl-0888 [11] os_signal_semaphore   : ----Exit- AE_OK
Nov  7 13:24:57 elm3a153 kernel:  utalloc-0723 [10] ut_remove_allocation  : ----Exit- AE_OK
Nov  7 13:24:57 elm3a153 kernel:  utalloc-0553 [09] ut_free_and_track     : ----Exit-
Nov  7 13:24:57 elm3a153 kernel: dswstate-0869 [08] ds_delete_walk_state  : ----Exit-
Nov  7 13:24:57 elm3a153 kernel:  utstate-0329 [08] ut_delete_generic_stat: ----Entry
Nov  7 13:24:57 elm3a153 kernel:  utstate-0332 [08] ut_delete_generic_stat: ----Exit-
Nov  7 13:24:57 elm3a153 kernel:  psparse-0643 [07] ps_parse_aml          : ----Exit- AE_OK
Nov  7 13:24:57 elm3a153 kernel:   pswalk-0067 [07] ps_delete_parse_tree  : ----Entry ffff810279a754e0
Nov  7 13:24:57 elm3a153 kernel:   pswalk-0096 [07] ps_delete_parse_tree  : ----Exit-
Nov  7 13:24:57 elm3a153 kernel:  psxface-0246 [06] ps_execute_pass       : ----Exit- AE_OK
Nov  7 13:24:57 elm3a153 kernel:  psxface-0155 [05] ps_execute_method     : ----Exit- AE_OK
Nov  7 13:24:57 elm3a153 kernel:  exutils-0126 [05] ex_exit_interpreter   : ----Entry
Nov  7 13:24:57 elm3a153 kernel:      osl-0875 [06] os_signal_semaphore   : ----Entry
Nov  7 13:24:57 elm3a153 kernel:      osl-0888 [06] os_signal_semaphore   : ----Exit- AE_OK
Nov  7 13:24:57 elm3a153 kernel:  exutils-0133 [05] ex_exit_interpreter   : ----Exit-
Nov  7 13:24:57 elm3a153 kernel:   nseval-0414 [04] ns_execute_control_met: ----Exit- AE_OK
Nov  7 13:24:57 elm3a153 kernel:   nseval-0338 [03] ns_evaluate_by_handle : ----Exit- AE_OK
Nov  7 13:24:57 elm3a153 kernel:    evgpe-0568 [02] ev_asynch_execute_gpe_: ----Exit-
Nov  7 13:24:57 elm3a153 kernel:      osl-0633 [01] os_execute_deferred   : ----Exit-
Nov  7 13:24:57 elm3a153 kernel:      osl-0621 [01] os_execute_deferred   : ----Entry
Nov  7 13:24:57 elm3a153 kernel: acpi_bus-0461 [02] bus_notify            : ----Entry
Nov  7 13:24:57 elm3a153 kernel: acpi_bus-0062 [03] bus_get_device        : ----Entry
Nov  7 13:24:57 elm3a153 kernel:      osl-0794 [04] os_wait_semaphore     : ----Entry
Nov  7 13:24:57 elm3a153 kernel:      osl-0863 [04] os_wait_semaphore     : ----Exit- AE_OK
Nov  7 13:24:57 elm3a153 kernel:      osl-0875 [04] os_signal_semaphore   : ----Entry
Nov  7 13:24:57 elm3a153 kernel:      osl-0888 [04] os_signal_semaphore   : ----Exit- AE_OK
Nov  7 13:24:57 elm3a153 kernel: acpi_bus-0072 [03] bus_get_device        : No context for object [ffff810037e82df0]
Nov  7 13:24:57 elm3a153 kernel: acpi_bus-0073 [03] bus_get_device        : ----Exit- FFFFFFFFFFFFFFED
Nov  7 13:24:57 elm3a153 kernel: acpi_bus-0464 [02] bus_notify            : ----Exit-
Nov  7 13:24:57 elm3a153 kernel:  utstate-0329 [02] ut_delete_generic_stat: ----Entry
Nov  7 13:24:57 elm3a153 kernel:  utstate-0332 [02] ut_delete_generic_stat: ----Exit-
Nov  7 13:24:57 elm3a153 kernel:      osl-0633 [01] os_execute_deferred   : ----Exit-


This is known to work in other OS's.... 

I am not sure where to start looking.    

-- 
keith <kmannth-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>



-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php

^ permalink raw reply	[flat|nested] 20+ messages in thread
* RE: Re: [Lhms-devel] [PATCH 1/1]  patch to fix acpi_memhotplug.c
@ 2005-11-18 19:47 Moore, Robert
       [not found] ` <971FCB6690CD0E4898387DBF7552B90E0378BDDE-sBd4vmA9Se5Qxe9IK+vIArfspsVTdybXVpNB7YpNyf8@public.gmane.org>
  0 siblings, 1 reply; 20+ messages in thread
From: Moore, Robert @ 2005-11-18 19:47 UTC (permalink / raw)
  To: KAMEZAWA Hiroyuki, keith
  Cc: Yasunori Goto, Brown, Len, S, Naveen B, acpi-devel,
	external hotplug mem list, Tolentino, Matthew E

The ACPICA code supports _OSI and will respond TRUE when shown the
"Windows 2001" string.
Bob


> -----Original Message-----
> From: acpi-devel-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org [mailto:acpi-devel-
> admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org] On Behalf Of KAMEZAWA Hiroyuki
> Sent: Thursday, November 17, 2005 6:57 PM
> To: keith
> Cc: Yasunori Goto; Brown, Len; S, Naveen B; acpi-devel; external
hotplug
> mem list; Tolentino, Matthew E
> Subject: Re: [ACPI] Re: [Lhms-devel] [PATCH 1/1] patch to fix
> acpi_memhotplug.c
> 
> keith wrote:
> >> >
> >>Could you show your AML tree around Memory ?
> >
> >
> > See attached SSDT.
> >
> Thanks, at the first look.....
> 
> >         Device (ME00)
> >         {
> <snip>
> >             Method (_STA, 0, NotSerialized)
> >             {
> >                 If (CondRefOf (_OSI, Local0))
> >                 {
> >                     If (\_OSI ("Windows 2001"))
> >                     {
> >                         If (LAnd (LEqual (BADH, EADH), LEqual (BADL,
> EADL)))
> >                         {
> >                             Or (MEID, \_SB.MEMI, \_SB.MEMI)
> >                             Return (0x00)
> >                         }
> >                         Else
> >                         {
> >                             And (Not (MEID), \_SB.MEMI, \_SB.MEMI)
> >                             Return (0x0F)
> >                         }
> >                     }
> >                 }
> >
> >                 Return (0x00)
> >             }
> It seems memory device's  _STA never returns 0xF always returns 0x0.
> (Device is online and enabled) when OS is not Windows2001.
> All PNP0C80 decvices in this SSDT has same _STA function.
> 
> So, I think why your hot add failes is _STA has no present bit.
> ==
> drivers/acpi/scan.c
> 
> acpi_add_single_object()
> <snip>
>          case ACPI_BUS_TYPE_DEVICE:
>                  result = acpi_bus_get_status(device);  in
> drivers/acpi/bus.c
>                  if (ACPI_FAILURE(result) || !device->status.present)
{ <-
> ---(*)
>                          result = -ENOENT;
>                          goto end;
>                  }
>                  break;
> ==
> 
> rewriting your DSDT would be sane approach.
> 
> -- Kame
> 
> 
> 
> 
> 
> -------------------------------------------------------
> This SF.Net email is sponsored by the JBoss Inc.  Get Certified Today
> Register for a JBoss Training Course.  Free Certification Exam
> for All Training Attendees Through End of 2005. For more info visit:
> http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click
> _______________________________________________
> Acpi-devel mailing list
> Acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
> https://lists.sourceforge.net/lists/listinfo/acpi-devel


-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.  Get Certified Today
Register for a JBoss Training Course.  Free Certification Exam
for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_idv28&alloc_id\x16845&op=click

^ permalink raw reply	[flat|nested] 20+ messages in thread
* RE: Re: [Lhms-devel] [PATCH 1/1]  patch to fix acpi_memhotplug.c
@ 2005-11-18 20:51 Moore, Robert
       [not found] ` <971FCB6690CD0E4898387DBF7552B90E0378BEE7-sBd4vmA9Se5Qxe9IK+vIArfspsVTdybXVpNB7YpNyf8@public.gmane.org>
  0 siblings, 1 reply; 20+ messages in thread
From: Moore, Robert @ 2005-11-18 20:51 UTC (permalink / raw)
  To: Moore, Robert, KAMEZAWA Hiroyuki, keith
  Cc: Yasunori Goto, Brown, Len, S, Naveen B, acpi-devel,
	external hotplug mem list, Tolentino, Matthew E

FYI, here are the strings supported:

/*
 * Strings supported by the _OSI predefined (internal) method.
 * When adding strings, be sure to update ACPI_NUM_OSI_STRINGS.
 */
const char
*AcpiGbl_ValidOsiStrings[ACPI_NUM_OSI_STRINGS] =
{
    /* Operating System Vendor Strings */

    "Linux",
    "Windows 2000",
    "Windows 2001",
    "Windows 2001.1",
    "Windows 2001 SP0",
    "Windows 2001 SP1",
    "Windows 2001 SP2",
    "Windows 2001 SP3",
    "Windows 2001 SP4",

    /* Feature Group Strings */

    "Extended Address Space Descriptor"
};

> -----Original Message-----
> From: acpi-devel-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org [mailto:acpi-devel-
> admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org] On Behalf Of Moore, Robert
> Sent: Friday, November 18, 2005 11:47 AM
> To: KAMEZAWA Hiroyuki; keith
> Cc: Yasunori Goto; Brown, Len; S, Naveen B; acpi-devel; external
hotplug
> mem list; Tolentino, Matthew E
> Subject: RE: [ACPI] Re: [Lhms-devel] [PATCH 1/1] patch to fix
> acpi_memhotplug.c
> 
> The ACPICA code supports _OSI and will respond TRUE when shown the
> "Windows 2001" string.
> Bob
> 
> 
> > -----Original Message-----
> > From: acpi-devel-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org [mailto:acpi-devel-
> > admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org] On Behalf Of KAMEZAWA Hiroyuki
> > Sent: Thursday, November 17, 2005 6:57 PM
> > To: keith
> > Cc: Yasunori Goto; Brown, Len; S, Naveen B; acpi-devel; external
> hotplug
> > mem list; Tolentino, Matthew E
> > Subject: Re: [ACPI] Re: [Lhms-devel] [PATCH 1/1] patch to fix
> > acpi_memhotplug.c
> >
> > keith wrote:
> > >> >
> > >>Could you show your AML tree around Memory ?
> > >
> > >
> > > See attached SSDT.
> > >
> > Thanks, at the first look.....
> >
> > >         Device (ME00)
> > >         {
> > <snip>
> > >             Method (_STA, 0, NotSerialized)
> > >             {
> > >                 If (CondRefOf (_OSI, Local0))
> > >                 {
> > >                     If (\_OSI ("Windows 2001"))
> > >                     {
> > >                         If (LAnd (LEqual (BADH, EADH), LEqual
(BADL,
> > EADL)))
> > >                         {
> > >                             Or (MEID, \_SB.MEMI, \_SB.MEMI)
> > >                             Return (0x00)
> > >                         }
> > >                         Else
> > >                         {
> > >                             And (Not (MEID), \_SB.MEMI, \_SB.MEMI)
> > >                             Return (0x0F)
> > >                         }
> > >                     }
> > >                 }
> > >
> > >                 Return (0x00)
> > >             }
> > It seems memory device's  _STA never returns 0xF always returns 0x0.
> > (Device is online and enabled) when OS is not Windows2001.
> > All PNP0C80 decvices in this SSDT has same _STA function.
> >
> > So, I think why your hot add failes is _STA has no present bit.
> > ==
> > drivers/acpi/scan.c
> >
> > acpi_add_single_object()
> > <snip>
> >          case ACPI_BUS_TYPE_DEVICE:
> >                  result = acpi_bus_get_status(device);  in
> > drivers/acpi/bus.c
> >                  if (ACPI_FAILURE(result) ||
!device->status.present)
> { <-
> > ---(*)
> >                          result = -ENOENT;
> >                          goto end;
> >                  }
> >                  break;
> > ==
> >
> > rewriting your DSDT would be sane approach.
> >
> > -- Kame
> >
> >
> >
> >
> >
> > -------------------------------------------------------
> > This SF.Net email is sponsored by the JBoss Inc.  Get Certified
Today
> > Register for a JBoss Training Course.  Free Certification Exam
> > for All Training Attendees Through End of 2005. For more info visit:
> > http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click
> > _______________________________________________
> > Acpi-devel mailing list
> > Acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
> > https://lists.sourceforge.net/lists/listinfo/acpi-devel
> 
> 
> -------------------------------------------------------
> This SF.Net email is sponsored by the JBoss Inc.  Get Certified Today
> Register for a JBoss Training Course.  Free Certification Exam
> for All Training Attendees Through End of 2005. For more info visit:
> http://ads.osdn.com/?ad_idv28&alloc_id\x16845&op=ick
> _______________________________________________
> Acpi-devel mailing list
> Acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
> https://lists.sourceforge.net/lists/listinfo/acpi-devel


-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.  Get Certified Today
Register for a JBoss Training Course.  Free Certification Exam
for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_idv28&alloc_id\x16845&op=click

^ permalink raw reply	[flat|nested] 20+ messages in thread

end of thread, other threads:[~2005-11-19 12:15 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-11-07 21:44 acpi_memhotplug driver is not working for me. Any ideas? keith
2005-11-11  2:45 ` keith
2005-11-12  5:03   ` [RFC][PATCH] patch to fix acpi_memhotplug.c for my hardware keith
2005-11-15  5:36     ` [PATCH 1/1] patch to fix acpi_memhotplug.c keith
2005-11-15  9:29       ` [Lhms-devel] " KAMEZAWA Hiroyuki
     [not found]         ` <4379AA86.5040901-+CUm20s59erQFUHtdCDX3A@public.gmane.org>
2005-11-15  9:33           ` KAMEZAWA Hiroyuki
2005-11-16  2:49           ` keith
2005-11-16  3:26             ` KAMEZAWA Hiroyuki
2005-11-15 10:20       ` Yasunori Goto
     [not found]         ` <20051115171221.7E99.Y-GOTO-+CUm20s59erQFUHtdCDX3A@public.gmane.org>
2005-11-17  4:18           ` keith
2005-11-17  6:08             ` KAMEZAWA Hiroyuki
     [not found]               ` <437C1E6C.6000404-+CUm20s59erQFUHtdCDX3A@public.gmane.org>
2005-11-18  2:22                 ` keith
2005-11-18  2:56                   ` KAMEZAWA Hiroyuki
     [not found]                     ` <437D42F1.6080407-+CUm20s59erQFUHtdCDX3A@public.gmane.org>
2005-11-18 18:54                       ` keith
2005-11-17  7:01             ` Yasunori Goto
  -- strict thread matches above, loose matches on Subject: below --
2005-11-18 19:47 Moore, Robert
     [not found] ` <971FCB6690CD0E4898387DBF7552B90E0378BDDE-sBd4vmA9Se5Qxe9IK+vIArfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2005-11-19 12:03   ` Kamezawa Hiroyuki
2005-11-18 20:51 Moore, Robert
     [not found] ` <971FCB6690CD0E4898387DBF7552B90E0378BEE7-sBd4vmA9Se5Qxe9IK+vIArfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2005-11-19 10:44   ` Erik Slagter
2005-11-19 12:15   ` Kamezawa Hiroyuki

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox