From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=60694 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Py7io-0002qj-Jw for qemu-devel@nongnu.org; Fri, 11 Mar 2011 14:09:59 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Py7in-0000rb-DA for qemu-devel@nongnu.org; Fri, 11 Mar 2011 14:09:58 -0500 Received: from mail-iy0-f173.google.com ([209.85.210.173]:58006) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Py7in-0000r6-9t for qemu-devel@nongnu.org; Fri, 11 Mar 2011 14:09:57 -0500 Received: by iym7 with SMTP id 7so3415730iym.4 for ; Fri, 11 Mar 2011 11:09:55 -0800 (PST) MIME-Version: 1.0 In-Reply-To: <4D796C81.5070801@gmx.net> References: <4D794489.6010903@gmx.net> <4D794C56.6020809@gmx.net> <4D796A8E.6000204@web.de> <4D796C81.5070801@gmx.net> Date: Fri, 11 Mar 2011 11:09:55 -0800 Message-ID: Subject: Re: [Qemu-devel] Re: RFC: emulation of system flash From: Jordan Justen Content-Type: text/plain; charset=ISO-8859-1 List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Carl-Daniel Hailfinger Cc: Gleb Natapov , Stefan Hajnoczi , qemu-devel , Michal Suchanek , Kevin O'Connor , Jan Kiszka , Avi Kivity On Thu, Mar 10, 2011 at 16:27, Carl-Daniel Hailfinger wrote: > Auf 11.03.2011 01:19, Jan Kiszka schrieb: >> At least it's an in-band interface, which is the better choice as we >> currently only have a PIIX3 southbridge for x86, predating even FWHs. >> > > Right, that pretty much kills the option of using SPI unless someone > wants to emulate a flash translation controller (e.g. the ITE IT8716F > Super I/O). Can be done, would work, but the IT8716F has some quirks > (max 1 MB SPI flash chips) which make it a less desirable option for > emulation. I don't much like this, but we might consider adding the SPI host controller MMIO just below the flash data. For the firmware, we usually will know the size of firmware device that we've built for. It seems SPI flash is pretty common today, and it sounds like Carl-Daniel may have some SPI emulation code. Am I understanding correctly that CFI is programmed via MMIO in the flash memory space? How difficult would it be to emulate CFI? Does CFI have the same power-of-2 size flexibility as SPI? -Jordan