From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ryan Mallon Subject: Re: [RFC PATCHv2 1/2] Export SoC info through sysfs Date: Fri, 08 Apr 2011 10:07:25 +1200 Message-ID: <4D9E359D.50502@bluewatersys.com> References: <1299846911-15782-1-git-send-email-maxime.coquelin-nonst@stericsson.com> <201103112313.16128.arnd@arndb.de> <4D9DE532.5000802@linaro.org> <201104072329.24243.arnd@arndb.de> <4D9E30AE.9080105@bluewatersys.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linux-arm-kernel-bounces@lists.infradead.org Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=m.gmane.org@lists.infradead.org To: Nicolas Pitre Cc: ext Nishanth Menon , ext Tony Lindgren , Greg KH , Linus Walleij , Ambresh , Saravana Kannan , Andrei Warkentin , Lee Jones , Rabin VINCENT , Russell King , Jonas ABERG , ext Kevin Hilman , Peter De-Schrijver , David Brown , Maxime Coquelin , Arnd Bergmann , "linux-arm-msm@vger.kernel.org" , Loic PALLARDY , Eduardo Valentin , maxime_coquelin@yahoo.fr, Linux-OMAP , linux-arm-kernel@lists. List-Id: linux-arm-msm@vger.kernel.org On 04/08/2011 10:01 AM, Nicolas Pitre wrote: > On Fri, 8 Apr 2011, Ryan Mallon wrote: > >> On 04/08/2011 09:29 AM, Arnd Bergmann wrote: >>> I'll try to capture the opinions from the other people as well, >>> hopefully this represents a consensus. Please correct me otherwise. >>> >>> I believe the uncontroversial parts are: >>> >>> * Make it not an entry but a device with certain properties. >>> * Make the naming so that you can have more than one of them. >>> * Put all devices on an SoC that uses this scheme underneath that >>> device by setting their parents to the SoC device. >>> >>> For the location of the device, I have not seen a clear consensus yet, >>> but I'm fine with eihter of these: >>> >>> /sys/devices/soc/${NAME}/ >>> /sys/devices/platform/soc${NUMBER}/ >> >> I prefer the second format here since the path is always the same which >> makes it easier to write parsing tools. The name should be an entry in >> the directory rather than the name of the directory itself. >> >> Probably SoC number should match CPU number for SMP machines right? > > Not really. SOC means System On Chip. you usually have only one SOC on > a board, and within that SOC you may have one or more CPUs. SMP > machines are still likely to have only one SOC. Ok. What is the situation where we have more than one SoC? ~Ryan -- Bluewater Systems Ltd - ARM Technology Solution Centre Ryan Mallon 5 Amuri Park, 404 Barbadoes St ryan@bluewatersys.com PO Box 13 889, Christchurch 8013 http://www.bluewatersys.com New Zealand Phone: +64 3 3779127 Freecall: Australia 1800 148 751 Fax: +64 3 3779135 USA 1800 261 2934