From owner-freebsd-acpi@FreeBSD.ORG Fri Jul 12 20:51:42 2013 Return-Path: Delivered-To: freebsd-acpi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 5DA50528 for ; Fri, 12 Jul 2013 20:51:42 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from bigwig.baldwin.cx (bigwig.baldwin.cx [IPv6:2001:470:1f11:75::1]) by mx1.freebsd.org (Postfix) with ESMTP id 3605C1E40 for ; Fri, 12 Jul 2013 20:51:42 +0000 (UTC) Received: from jhbbsd.localnet (unknown [209.249.190.124]) by bigwig.baldwin.cx (Postfix) with ESMTPSA id A8E73B96E; Fri, 12 Jul 2013 16:51:40 -0400 (EDT) From: John Baldwin To: freebsd-acpi@freebsd.org Subject: Re: ACPI MADT BSP Details Date: Fri, 12 Jul 2013 16:50:41 -0400 User-Agent: KMail/1.13.5 (FreeBSD/8.2-CBSD-20110714-p25; KDE/4.5.5; amd64; ; ) References: In-Reply-To: MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201307121650.41701.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.7 (bigwig.baldwin.cx); Fri, 12 Jul 2013 16:51:40 -0400 (EDT) Cc: Rohit Athavale X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 Jul 2013 20:51:42 -0000 On Wednesday, July 10, 2013 7:48:42 pm Rohit Athavale wrote: > Hi Folks, > > I have two questions about discovering the processors from the MADT table. > > Firstly, > Can we find out which processor is the BSP from the MADT tables? > When comparing the userland mptable binary's output versus acpidump's > output I noticed that mptable informs us about which processor is the BSP > and which are AP's . > However I did not see this in the MADT tables. > Is there a way to find out which processor is the BSP by means of any of > the ACPI tables. Nope. You can read the local APIC ID of the current CPU during your bootstrap though. > Secondly, > Can we write into /dev/mem to say update the contents of MPTable with > values that are non -default. I plan to read some values from the ACPI > tables and update the MP tables. > Is the /dev/mem/ file composed of physical addresses for user space memory > ? I know this may not qualify as the correct place to ask,but I guess acpi > list might have an answer to this. Yes, you can likely do this. -- John Baldwin