From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JIkf2-0005YO-Ki for qemu-devel@nongnu.org; Sat, 26 Jan 2008 08:01:28 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JIkf1-0005Y1-Oo for qemu-devel@nongnu.org; Sat, 26 Jan 2008 08:01:28 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JIkf1-0005Xw-Jw for qemu-devel@nongnu.org; Sat, 26 Jan 2008 08:01:27 -0500 Received: from pop-knobcone.atl.sa.earthlink.net ([207.69.195.64]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JIkf1-0005Me-5A for qemu-devel@nongnu.org; Sat, 26 Jan 2008 08:01:27 -0500 Received: from user-142h2k8.cable.mindspring.com ([72.40.138.136] helo=earthlink.net) by pop-knobcone.atl.sa.earthlink.net with esmtp (Exim 3.36 #1) id 1JIkf0-0006BI-00 for qemu-devel@nongnu.org; Sat, 26 Jan 2008 08:01:26 -0500 Message-ID: <479B2F26.2060600@earthlink.net> Date: Sat, 26 Jan 2008 08:01:26 -0500 From: Robert Reif MIME-Version: 1.0 Subject: Re: [Qemu-devel] [PATCH] hw/sun4m.c fix power addresses References: <47981D51.20100@earthlink.net> <479A4C53.3090901@earthlink.net> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Blue Swirl wrote: >On 1/25/08, Robert Reif wrote: > > >>Blue Swirl wrote: >> >> >> >>>On 1/24/08, Robert Reif wrote: >>> >>> >>> >>> >>>>diff -p -u -r1.81 sun4m.c >>>> >>>> >>>> >>>> >>>This breaks my tests, so I guess a fix is also needed for OpenBIOS. >>> >>> >>> >>> >>Probably, they were tested using ss5/170 and ss10 openboot images. >> >> > >I just noticed that we have confused the devices that OBP calls >'power' and 'power-management'. Power or Aux 2 or Software Powerdown >Control can be used to reset or power down the system. OBP trees >confirm that it is located at 0x71910000 on SS-5 and 0xff1a01000 on >SS-10/20. It does not exist on SS-600. > >Power-management a.k.a. APC is used to halt the CPU when idle. It is >located at 0x6a000000 on SS-5. It does not exist on SS-x0 or SS-600. > >So, Aux2 on SS-10/20 and APC on SS-5 should move to the correct locations. > >Now, what to do with the rest? These are motherboard devices, they >cannot be added to or removed from real life hardware. Leaving the >devices out to improve historical accuracy would mean that the system >can't be reset or powered down on SS-600, and on SS-10/20/600 Qemu >will consume 100% of host CPU even when the target is idling. This >would not be an improvement in usability for sure. > > I have a patch waiting to fix the power/aux2 and also aux1. It adds a seperate address for auxio. power and AUX2 are the same devices on ss5,10 and 20 but at different addresse/offsets. 600mp doesn't have it. auxio is AUX1 and are the sort of the same devices on an ss5 and 10/20 but at different address/offsets. 600mp doesn't have it. The AUX1 bit layout of an ss5 (SLAVIO) is also different from a 10/20 (SEC). I'm not sure how power-management fits in there other than it's an sbus device: ffd50130 power-management@4,a000000