public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Toshi Kani <toshi.kani@hp.com>
To: "Moore, Robert" <robert.moore@intel.com>
Cc: "shuahkhan@gmail.com" <shuahkhan@gmail.com>,
	"lenb@kernel.org" <lenb@kernel.org>,
	"linux-acpi@vger.kernel.org" <linux-acpi@vger.kernel.org>,
	"bhelgaas@google.com" <bhelgaas@google.com>,
	"liuj97@gmail.com" <liuj97@gmail.com>,
	"andi@firstfloor.org" <andi@firstfloor.org>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: RE: [PATCH v4 0/6] ACPI: Add _OST support for ACPI hotplug
Date: Wed, 30 May 2012 08:11:46 -0600	[thread overview]
Message-ID: <1338387106.16730.456.camel@misato.fc.hp.com> (raw)
In-Reply-To: <94F2FBAB4432B54E8AACC7DFDE6C92E346ACC6F9@ORSMSX101.amr.corp.intel.com>

On Wed, 2012-05-30 at 02:56 +0000, Moore, Robert wrote:
> It does not make any difference. Essentially, a get_handle is performed by evaluate_object anyway.
> 

Thanks Robert for the confirmation!
-Toshi


> >-----Original Message-----
> >From: Toshi Kani [mailto:toshi.kani@hp.com]
> >Sent: Tuesday, May 29, 2012 4:43 PM
> >To: shuahkhan@gmail.com
> >Cc: Moore, Robert; lenb@kernel.org; linux-acpi@vger.kernel.org;
> >bhelgaas@google.com; liuj97@gmail.com; andi@firstfloor.org; linux-
> >kernel@vger.kernel.org
> >Subject: RE: [PATCH v4 0/6] ACPI: Add _OST support for ACPI hotplug
> >
> >On Tue, 2012-05-29 at 16:44 -0600, Shuah Khan wrote:
> >> On Tue, 2012-05-29 at 22:27 +0000, Moore, Robert wrote:
> >> > > > 2. Calling acpi_get_handle() on _OST prior to executing the method.
> >> > > > This will ensure that this method only gets run if it is present
> >> > > under
> >> > > > the device in question. Coupled with what is already outlined in #1
> >> > > > above, now _OST gets executed only when it is defined under the
> >> > > device object.
> >> > > > Example case in the existing code, please see
> >> > > acpi_processor_ppc_ost()
> >> > > > implementation.
> >> > >
> >> > > Yes, I did look at acpi_processor_ppc_ost() when I implemented the
> >> > > function.  I believe calling acpi_get_handle() is redundant since
> >> > > acpi_ns_get_node() is called within acpi_evaluate_object() as well.
> >> > > acpi_evaluate_object() simply returns with AE_NOT_FOUND when _OST
> >> > > method does not exist.
> >> > >
> >> >
> >> > This is correct. If _OST does not exist, AE_NOT_FOUND will be returned
> >from evaluate_object.
> >>
> >> Yes that is correct from the ACPI Spec and implementation point of view.
> >> My thinking is that a call to acpi_get_handle() might not penalize the
> >> OS as much as acpi_evaluate_object() would on systems that don't
> >> actually implement _OST. In other words, acpi_get_handle() might not go
> >> as deep as acpi_evaluate_object() would go into the ACPI layer, hence
> >> might be a safer measure on platforms that don't actually implement this
> >> optional method under all devices included in this patch set.
> >>
> >
> >I do not think we need to worry about it.  The code difference is not
> >that much, and this _OST path is limited to ACPI hotplug operations,
> >which are infrequent events.  Automatic workload balancing can make
> >frequent use of the operations, but is not frequent enough to make any
> >difference here.  I think simpler code works fine.
> >
> >Thanks,
> >-Toshi
> 



  reply	other threads:[~2012-05-30 14:18 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-05-24  2:25 [PATCH v4 0/6] ACPI: Add _OST support for ACPI hotplug Toshi Kani
2012-05-24  2:25 ` [PATCH v4 1/6] ACPI: Add an interface to evaluate _OST Toshi Kani
2012-05-24 18:09   ` Shuah Khan
2012-05-24 20:40     ` Toshi Kani
2012-05-24  2:25 ` [PATCH v4 2/6] ACPI: Add _OST support for sysfs eject Toshi Kani
2012-05-24  2:25 ` [PATCH v4 3/6] ACPI: Add _OST support for ACPI CPU hotplug Toshi Kani
2012-05-24  2:25 ` [PATCH v4 4/6] ACPI: Add _OST support for ACPI memory hotplug Toshi Kani
2012-05-24 18:21   ` Shuah Khan
2012-05-24 20:25     ` Toshi Kani
2012-05-24  2:25 ` [PATCH v4 5/6] ACPI: Add _OST support for ACPI container hotplug Toshi Kani
2012-06-05  4:39   ` Yasuaki Ishimatsu
2012-06-05 15:36     ` Kani, Toshimitsu
2012-06-11  1:55       ` Yasuaki Ishimatsu
2012-06-11  7:12         ` Kani, Toshimitsu
2012-05-24  2:25 ` [PATCH v4 6/6] ACPI: Set hotplug _OST support bit to _OSC Toshi Kani
2012-05-24 18:27   ` Shuah Khan
2012-05-24 20:53     ` Toshi Kani
2012-05-24 17:34 ` [PATCH v4 0/6] ACPI: Add _OST support for ACPI hotplug Shuah Khan
2012-05-24 19:48   ` Toshi Kani
2012-05-29 22:27     ` Moore, Robert
2012-05-29 22:44       ` Shuah Khan
2012-05-29 23:43         ` Toshi Kani
2012-05-30  2:56           ` Moore, Robert
2012-05-30 14:11             ` Toshi Kani [this message]
2012-05-30 15:24     ` Shuah Khan
2012-05-30 17:19       ` Toshi Kani

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=1338387106.16730.456.camel@misato.fc.hp.com \
    --to=toshi.kani@hp.com \
    --cc=andi@firstfloor.org \
    --cc=bhelgaas@google.com \
    --cc=lenb@kernel.org \
    --cc=linux-acpi@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=liuj97@gmail.com \
    --cc=robert.moore@intel.com \
    --cc=shuahkhan@gmail.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