public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
From: Joel Schopp <jschopp-V7BBcbaFuwjMbYB6QlFGEg@public.gmane.org>
To: Dave Hansen <haveblue-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
Cc: Keiichiro Tokunaga
	<tokunaga.keiich-+CUm20s59erQFUHtdCDX3A@public.gmane.org>,
	naveen.b.s-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org,
	Matthew E Tolentino
	<matthew.e.tolentino-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>,
	acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org,
	lhms
	<lhms-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org>
Subject: Re: [Lhms-devel] Re: [PATCH] ACPI based Memory Hotplug	Driver Patch
Date: Tue, 14 Sep 2004 11:21:37 -0500	[thread overview]
Message-ID: <41471A91.5020004@austin.ibm.com> (raw)
In-Reply-To: <1095135104.10726.8.camel@localhost>

> Although, I do wonder if we can have memory laid out in the firmware/
> directory in some kind of firmware-agnostic way.  
> 
> What I want is to make sure that any hotplug memory application that is
> written can use the same directories no matter whether it is a ppc
> machine using OpenFirmware or an x86/ia64 machine using ACPI.  

Noble goal, here is what we represent on ppc64 for a logical memory block.

bigbirdlp2:/proc/device-tree # ls ./memory\@10000000/
.  ..  device_type  ibm,my-drc-index  linux,phandle  name  reg
bigbirdlp2:/proc/device-tree/memory@10000000 # xxd ./reg
0000000: 0000 0000 1000 0000 0000 0000 1000 0000  ................
bigbirdlp2:/proc/device-tree/memory@10000000 # cat ./device_type
memory
bigbirdlp2:/proc/device-tree/memory@10000000 # xxd ./ibm,my-drc-index
0000000: 0000 0001                                ....
bigbirdlp2:/proc/device-tree/memory@10000000 # cat name
memory

I'm pretty sure the reg property is just a starting address, size pair. 
  The device type and name are pretty boring.  The drc-index is not 
guaranteed to correspond to anything (though it usually is start address 
/ size), you could call it arch-identifier or something.

> 
> Instead of just laying thing out in firmware/acpi, can we have another
> directory that mirrors this information in the system/devices/
> directory, but is identical across architectures?  

I'd do something like this for each LMB:

start-addr
size
arch-identifier


-------------------------------------------------------
This SF.Net email is sponsored by: thawte's Crypto Challenge Vl
Crack the code and win a Sony DCRHC40 MiniDV Digital Handycam
Camcorder. More prizes in the weekly Lunch Hour Challenge.
Sign up NOW http://ad.doubleclick.net/clk;10740251;10262165;m

  parent reply	other threads:[~2004-09-14 16:21 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-09-09 10:54 [PATCH] ACPI based Memory Hotplug Driver Patch S, Naveen B
     [not found] ` <FEB6C4E97F6CAF41978FB2059D5454180F37E8-OkeUvhg1trkFyVwBAnZdSLfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2004-09-09 13:11   ` Dmitry Torokhov
2004-09-09 15:50   ` [Lhms-devel] " Dave Hansen
2004-09-09 15:52   ` Bjorn Helgaas
2004-09-10 13:45   ` Keiichiro Tokunaga
     [not found]     ` <20040910224510.7f78b1b5.tokunaga.keiich-+CUm20s59erQFUHtdCDX3A@public.gmane.org>
2004-09-11  6:08       ` [Lhms-devel] " Hirokazu Takahashi
     [not found]         ` <20040911.150854.71102255.taka-jCdQPDEk3idL9jVzuh4AOg@public.gmane.org>
2004-09-11  7:14           ` Dave Hansen
2004-09-10 14:02   ` Keiichiro Tokunaga
     [not found]     ` <20040910230200.73eb0374.tokunaga.keiich-+CUm20s59erQFUHtdCDX3A@public.gmane.org>
2004-09-10 17:32       ` [Lhms-devel] " Dave Hansen
2004-09-13  8:23         ` Keiichiro Tokunaga
     [not found]           ` <20040913172318.791db349.tokunaga.keiich-+CUm20s59erQFUHtdCDX3A@public.gmane.org>
2004-09-13  8:41             ` Dave Hansen
2004-09-14  2:58               ` Keiichiro Tokunaga
     [not found]                 ` <20040914115844.1e12203d.tokunaga.keiich-+CUm20s59erQFUHtdCDX3A@public.gmane.org>
2004-09-14  4:11                   ` Dave Hansen
2004-09-14  9:29                     ` Keiichiro Tokunaga
     [not found]                       ` <20040914182956.49c9381d.tokunaga.keiich-+CUm20s59erQFUHtdCDX3A@public.gmane.org>
2004-09-14 17:12                         ` Dave Hansen
2004-09-15  0:08                           ` Keiichiro Tokunaga
     [not found]                             ` <20040915090827.7f86a54f.tokunaga.keiich-+CUm20s59erQFUHtdCDX3A@public.gmane.org>
2004-09-15  0:17                               ` Dave Hansen
2004-09-16  2:51                                 ` Keiichiro Tokunaga
2004-09-14 16:21                     ` Joel Schopp [this message]
2004-09-16 10:47       ` [PATCH] /sys/firmware/acpi/memory/ for showing info of ACPI memory object Keiichiro Tokunaga
     [not found]         ` <20040916194725.562b50f0.tokunaga.keiich-+CUm20s59erQFUHtdCDX3A@public.gmane.org>
2004-09-24  8:46           ` Keiichiro Tokunaga

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=41471A91.5020004@austin.ibm.com \
    --to=jschopp-v7bbcbafuwjmbyb6qlfgeg@public.gmane.org \
    --cc=acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org \
    --cc=haveblue-r/Jw6+rmf7HQT0dZR+AlfA@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