* Re: [Lhms-devel] [PATCH] ACPI based Memory Hotplug Driver Patch Update
[not found] ` <FEB6C4E97F6CAF41978FB2059D5454180F3910-OkeUvhg1trkFyVwBAnZdSLfspsVTdybXVpNB7YpNyf8@public.gmane.org>
@ 2004-10-12 23:36 ` Dave Hansen
2004-10-12 23:38 ` Dave Hansen
` (2 subsequent siblings)
3 siblings, 0 replies; 7+ messages in thread
From: Dave Hansen @ 2004-10-12 23:36 UTC (permalink / raw)
To: S, Naveen B
Cc: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f, lhms,
Matthew E Tolentino, Brown, Len,
tokunaga.keiich-+CUm20s59erQFUHtdCDX3A
On Tue, 2004-10-12 at 16:29, S, Naveen B wrote:
> +#define ACPI_MEMORY_DEVICE_HID "PNP0C80"
> +#define ACPI_MEMORY_DEVICE_DRIVER_NAME "Hotplug Mem Driver"
> +#define ACPI_MEMORY_DEVICE_NAME "Hotplug Mem
> Device"
> +
> +#define _COMPONENT ACPI_MEMORY_DEVICE_COMPONENT
Looks whitespace mangled to me. Can you try an attachment?
-- Dave
-------------------------------------------------------
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
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Lhms-devel] [PATCH] ACPI based Memory Hotplug Driver Patch Update
[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
3 siblings, 0 replies; 7+ messages in thread
From: Dave Hansen @ 2004-10-12 23:38 UTC (permalink / raw)
To: S, Naveen B
Cc: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f, lhms,
Matthew E Tolentino, Brown, Len,
tokunaga.keiich-+CUm20s59erQFUHtdCDX3A
On Tue, 2004-10-12 at 16:29, S, Naveen B wrote:
> Attaching the updated ACPI Memory Driver Patch along with this mail.
> This implements review feedback and is ported to latest kernel
> (2.6.9-rc4-mm1). And this is tested on the real hardware with patchset
> available in http://sprucegoose.sr71.net/patches
>
> Let me know for any clarifications.
Other than the whitespace problems, this looks pretty sane to me. Would
you like me to add it to the patch set?
-- Dave
-------------------------------------------------------
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
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Lhms-devel] [PATCH] ACPI based Memory Hotplug Driver Patch Update
[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
3 siblings, 0 replies; 7+ messages in thread
From: Dave Hansen @ 2004-10-13 1:16 UTC (permalink / raw)
To: S, Naveen B
Cc: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f, lhms,
Matthew E Tolentino, Brown, Len,
tokunaga.keiich-+CUm20s59erQFUHtdCDX3A
One more thing, can you give me a short summary of what this patch does,
and maybe what kind of hardware it's useful on for the changelog?
-- Dave
-------------------------------------------------------
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
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Lhms-devel] [PATCH] ACPI based Memory Hotplug Driver Patch Update
[not found] ` <FEB6C4E97F6CAF41978FB2059D5454180F3910-OkeUvhg1trkFyVwBAnZdSLfspsVTdybXVpNB7YpNyf8@public.gmane.org>
` (2 preceding siblings ...)
2004-10-13 1:16 ` Dave Hansen
@ 2004-10-13 3:21 ` Hiroyuki KAMEZAWA
3 siblings, 0 replies; 7+ messages in thread
From: Hiroyuki KAMEZAWA @ 2004-10-13 3:21 UTC (permalink / raw)
To: S, Naveen B
Cc: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f,
lhms-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f, Tolentino, Matthew E,
Brown, Len, tokunaga.keiich-+CUm20s59erQFUHtdCDX3A
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
^ permalink raw reply [flat|nested] 7+ messages in thread
* RE: [Lhms-devel] [PATCH] ACPI based Memory Hotplug Driver Patch Update
@ 2004-10-13 6:53 S, Naveen B
[not found] ` <FEB6C4E97F6CAF41978FB2059D5454180F3916-OkeUvhg1trkFyVwBAnZdSLfspsVTdybXVpNB7YpNyf8@public.gmane.org>
0 siblings, 1 reply; 7+ messages in thread
From: S, Naveen B @ 2004-10-13 6:53 UTC (permalink / raw)
To: Hiroyuki KAMEZAWA
Cc: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f,
lhms-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f, Tolentino, Matthew E,
Brown, Len, tokunaga.keiich-+CUm20s59erQFUHtdCDX3A
> 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
Thanks Kame,
As I was mentioning earlier, my understanding from the spec that the
memory device has only range in _CRS. So I believe acpi_walk_resources
is redundant in this case. Anyway this could be changed if it is a real
concern.
Please let me know.
--Naveen
>
> 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
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Lhms-devel] [PATCH] ACPI based Memory Hotplug Driver Patch Update
[not found] ` <FEB6C4E97F6CAF41978FB2059D5454180F3916-OkeUvhg1trkFyVwBAnZdSLfspsVTdybXVpNB7YpNyf8@public.gmane.org>
@ 2004-10-13 7:04 ` Hiroyuki KAMEZAWA
2004-10-13 18:38 ` Dave Hansen
1 sibling, 0 replies; 7+ messages in thread
From: Hiroyuki KAMEZAWA @ 2004-10-13 7:04 UTC (permalink / raw)
To: S, Naveen B
Cc: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f,
lhms-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f, Tolentino, Matthew E,
Brown, Len, tokunaga.keiich-+CUm20s59erQFUHtdCDX3A
S, Naveen B wrote:
>
> Thanks Kame,
> As I was mentioning earlier, my understanding from the spec that the
> memory device has only range in _CRS. So I believe acpi_walk_resources
> is redundant in this case. Anyway this could be changed if it is a real
> concern.
> Please let me know.
>
> --Naveen
>
Okay, thanks.
Currently, I have no *real* concern.
-- 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>
>
>
>
--
--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
^ permalink raw reply [flat|nested] 7+ messages in thread
* RE: [Lhms-devel] [PATCH] ACPI based Memory Hotplug Driver Patch Update
[not found] ` <FEB6C4E97F6CAF41978FB2059D5454180F3916-OkeUvhg1trkFyVwBAnZdSLfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2004-10-13 7:04 ` Hiroyuki KAMEZAWA
@ 2004-10-13 18:38 ` Dave Hansen
1 sibling, 0 replies; 7+ messages in thread
From: Dave Hansen @ 2004-10-13 18:38 UTC (permalink / raw)
To: S, Naveen B
Cc: Hiroyuki KAMEZAWA, acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f,
lhms, Matthew E Tolentino, Brown, Len,
tokunaga.keiich-+CUm20s59erQFUHtdCDX3A
Your patch contained 63 lines with trailing whitespace. Please be
careful to strip these before submitting in the future.
-- Dave
-------------------------------------------------------
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
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2004-10-13 18:38 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-10-13 6:53 [Lhms-devel] [PATCH] ACPI based Memory Hotplug Driver Patch Update S, Naveen B
[not found] ` <FEB6C4E97F6CAF41978FB2059D5454180F3916-OkeUvhg1trkFyVwBAnZdSLfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2004-10-13 7:04 ` Hiroyuki KAMEZAWA
2004-10-13 18:38 ` Dave Hansen
-- strict thread matches above, loose matches on Subject: below --
2004-10-12 23:29 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 is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox