Received: from eggs.gnu.org ([2001:4830:134:3::10]:39797) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W3Sxs-0006SR-Pb for qemu-devel@nongnu.org; Wed, 15 Jan 2014 11:05:20 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W3Sxi-0002hB-7Z for qemu-devel@nongnu.org; Wed, 15 Jan 2014 11:05:12 -0500 Received: from mail-qa0-f53.google.com ([209.85.216.53]:57275) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W3Sxi-0002fV-4B for qemu-devel@nongnu.org; Wed, 15 Jan 2014 11:05:02 -0500 Received: by mail-qa0-f53.google.com with SMTP id cm18so1023963qab.40 for ; Wed, 15 Jan 2014 08:05:01 -0800 (PST) Date: Wed, 15 Jan 2014 11:04:55 -0500 From: Kevin O'Connor Message-ID: <20140115160455.GA9300@morn.localdomain> References: <1389788406-13333-1-git-send-email-marcel.a@redhat.com> <1389788680.29856.16.camel@localhost.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1389788680.29856.16.camel@localhost.localdomain> Subject: Re: [Qemu-devel] [Seabios] [PATCH v2] seabios: restore piix pm config registers after resume List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: marcel.a@redhat.com Cc: mst@redhat.com, ghammer@redhat.com, seabios@seabios.org, qemu-devel@nongnu.org, kraxel@redhat.com, lersek@redhat.com On Wed, Jan 15, 2014 at 02:24:40PM +0200, Marcel Apfelbaum wrote: > On Wed, 2014-01-15 at 14:20 +0200, Marcel Apfelbaum wrote: > > On resume, the OS queries the power management event that > > caused it. In order to complete this task, it executes some > > reads to the piix pm io space. This all happens before the > > OS has a chance to restore the PCI config space for devices, > > so it is bios's responsibility to make sure the pm IO space > > is configured correctly. (During suspend, the piix pm > > configuration space is lost). > > > > Note: For 'ordinary' pci devices the config space is > > saved by the OS on sleep and restored on resume. > > > > Signed-off-by: Marcel Apfelbaum > > Ooops! I put a [Qemu-devel] prefix, it is going to be a problem? I fixed it up. The patch also had two header files declaring pci_resume() - I fixed that up as well. It's been committed. Thanks. -Kevin