From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:48354) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZJeyd-0006Zt-76 for qemu-devel@nongnu.org; Mon, 27 Jul 2015 05:45:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZJeya-0003D0-03 for qemu-devel@nongnu.org; Mon, 27 Jul 2015 05:45:43 -0400 Received: from smtp.mail.uni-mannheim.de ([134.155.96.80]:50261) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZJeyZ-0003Cq-7y for qemu-devel@nongnu.org; Mon, 27 Jul 2015 05:45:39 -0400 References: <55B535BE.60806@weilnetz.de> <55B5C669.8090702@weilnetz.de> <55B5CE9B.50008@weilnetz.de> <55B5D172.3060003@weilnetz.de> <55B5EFD4.5030105@redhat.com> <55B5FA9D.8070803@weilnetz.de> From: Stefan Weil Message-ID: <55B5FDAF.7090803@weilnetz.de> Date: Mon, 27 Jul 2015 11:45:19 +0200 MIME-Version: 1.0 In-Reply-To: <55B5FA9D.8070803@weilnetz.de> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] BIOS regression since v2.3.0 (misaligned longword i/o to address 0xffff) List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini , QEMU Developer , Gerd Hoffmann , Hannes Reinecke Am 27.07.2015 um 11:32 schrieb Stefan Weil: > Am 27.07.2015 um 10:46 schrieb Paolo Bonzini: >> On 27/07/2015 08:36, Stefan Weil wrote: >>> commit 457ba42878bd9f704e5a6c1c7bc7fcced686fe4e >>> Author: Paolo Bonzini >>> Date: Thu May 15 13:22:28 2014 +0200 >>> >>> smm: complete SMM setup >>> >>> SMI generation requires two bits to be set in PIIX4, one for APMC >>> interrupts specifically and a general one. >>> >>> For Q35 it is the same, plus it is a good thing to lock SMIs after >>> enabling them. >>> >>> Signed-off-by: Paolo Bonzini >>> >>> :040000 040000 5bfd5601430bc5263ac0a6f8a15a131f3bc8678e >>> 5e0901b1c5ae4c79ed4c34c8bd27e7daf9006086 M src >> Is this enough to fix it? >> >> --- a/src/fw/smm.c >> +++ b/src/fw/smm.c >> @@ -184,7 +184,7 @@ static void piix4_apmc_smm_setup(int isabdf, int i440_bdf) >> >> /* enable SMI generation */ >> value = inl(acpi_pm_base + PIIX_PMIO_GLBCTL); >> - outl(acpi_pm_base + PIIX_PMIO_GLBCTL, value | PIIX_PMIO_GLBCTL_SMI_EN); >> + outl(value | PIIX_PMIO_GLBCTL_SMI_EN, acpi_pm_base + PIIX_PMIO_GLBCTL); >> >> smm_relocate_and_restore(); >> >> >> Paolo > > > Yes, and the new code also looks much better for an outl function call. :-) > You may add > > Reviewed-by: Stefan Weil > > Stefan When I look at src/hw/megasas.c, I see three more outl function calls with wrong argument order. CC'ing Hannes therefore. Stefan