public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
From: Hiroyuki KAMEZAWA <kamezawa.hiroyu-+CUm20s59erQFUHtdCDX3A@public.gmane.org>
To: "S, Naveen B" <naveen.b.s-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
Cc: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org,
	lhms-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org,
	"Tolentino,
	Matthew E"
	<matthew.e.tolentino-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>,
	"Brown, Len" <len.brown-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>,
	tokunaga.keiich-+CUm20s59erQFUHtdCDX3A@public.gmane.org
Subject: Re: [Lhms-devel] [PATCH] ACPI based Memory Hotplug Driver Patch Update
Date: Wed, 13 Oct 2004 12:21:52 +0900	[thread overview]
Message-ID: <416C9F50.901@jp.fujitsu.com> (raw)
In-Reply-To: <FEB6C4E97F6CAF41978FB2059D5454180F3910-OkeUvhg1trkFyVwBAnZdSLfspsVTdybXVpNB7YpNyf8@public.gmane.org>


as Bjohn said.
> I'm not sure you should assume the range will be the only item in _CRS
> (i.e., you may need to iterate over all items using acpi_walk_resources()).

I think you should use acpi_walk_resources(), like below.

By the way,a _CRS cannot contain plural address information ?

Kame <kamezawa.hiroyu-+CUm20s59erQFUHtdCDX3A@public.gmane.org>

S, Naveen B wrote:
+static int
+acpi_memory_enable_device(struct acpi_memory_device *mem_device)
+{
+	int result;
+	
+	ACPI_FUNCTION_TRACE("acpi_memory_enable_device");
+
+	/* Get the range from the _CRS */
+	result = acpi_memory_get_device_resources(mem_device);

result = acpi_walk_resources(mem_device->handle, METHOD_NAME_CRS,
                              acpi_memory_get_device_resources, mem_device);

+	if (result) {
+		ACPI_DEBUG_PRINT((ACPI_DB_ERROR,
+			"\nget_device_resources failed\n"));
+		mem_device->state = MEMORY_INVALID_STATE;		
+		return result;
+	}

-- 
--the clue is these footmarks leading to the door.--
KAMEZAWA Hiroyuki <kamezawa.hiroyu-+CUm20s59erQFUHtdCDX3A@public.gmane.org>



-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl

  parent reply	other threads:[~2004-10-13  3:21 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-10-12 23:29 [PATCH] ACPI based Memory Hotplug Driver Patch Update S, Naveen B
     [not found] ` <FEB6C4E97F6CAF41978FB2059D5454180F3910-OkeUvhg1trkFyVwBAnZdSLfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2004-10-12 23:36   ` [Lhms-devel] " Dave Hansen
2004-10-12 23:38   ` Dave Hansen
2004-10-13  1:16   ` Dave Hansen
2004-10-13  3:21   ` Hiroyuki KAMEZAWA [this message]
2004-10-13  6:02   ` Keiichiro Tokunaga
  -- strict thread matches above, loose matches on Subject: below --
2004-10-13  6:53 [Lhms-devel] " S, Naveen B
     [not found] ` <FEB6C4E97F6CAF41978FB2059D5454180F3916-OkeUvhg1trkFyVwBAnZdSLfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2004-10-13  7:04   ` Hiroyuki KAMEZAWA
2004-10-13 18:38   ` Dave Hansen

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=416C9F50.901@jp.fujitsu.com \
    --to=kamezawa.hiroyu-+cum20s59erqfuhtdcdx3a@public.gmane.org \
    --cc=acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org \
    --cc=len.brown-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org \
    --cc=lhms-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org \
    --cc=matthew.e.tolentino-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org \
    --cc=naveen.b.s-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org \
    --cc=tokunaga.keiich-+CUm20s59erQFUHtdCDX3A@public.gmane.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