From patchwork Fri Aug 3 16:29:05 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paolo Bonzini X-Patchwork-Id: 175015 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id DD5D92C0095 for ; Sat, 4 Aug 2012 02:29:22 +1000 (EST) Received: from localhost ([::1]:60083 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SxKka-0003mG-9k for incoming@patchwork.ozlabs.org; Fri, 03 Aug 2012 12:29:20 -0400 Received: from eggs.gnu.org ([208.118.235.92]:51793) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SxKkT-0003kQ-OK for qemu-devel@nongnu.org; Fri, 03 Aug 2012 12:29:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SxKkS-0006HS-Iw for qemu-devel@nongnu.org; Fri, 03 Aug 2012 12:29:13 -0400 Received: from mail-yw0-f45.google.com ([209.85.213.45]:50613) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SxKkS-0006HO-Eb for qemu-devel@nongnu.org; Fri, 03 Aug 2012 12:29:12 -0400 Received: by yhpp34 with SMTP id p34so1025750yhp.4 for ; Fri, 03 Aug 2012 09:29:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=Mv4WgG8e6tSzxjLp4gy3/sTfMsADGQSyn2NILJzHiFA=; b=i5Hro+IiFTAqowzPv8HvoeKiTHe0g8hm8sOn7FV2/jYxukMuuNT5ilVmdmuCQJfuPP fDWA1qPW5xv6Au3Fxv1/+z5qEC6uh9f0csWq8bgpHyU+CUYZuqH69RDv9vmwq3OmAvwg DSXzzz5owrwjHm4yWFpyhUkmgDNMwPjGloAYoQmZqBYD894pVnFyBblZYAKIc8vcd5ny aXz2C8yRz4iZf5jsFSDknkenCeJn1rnS5WibvqbrOHgRPDShMMvDOMhmEj8810UXVVzm APrZgmyU7BzoLpiJZXCkE+rw0sHTQHZgyYy6+t/Qi3+DuqKejTL+vOswjMKoG0li6QRK Iyvg== Received: by 10.50.188.233 with SMTP id gd9mr11578098igc.73.1344011351620; Fri, 03 Aug 2012 09:29:11 -0700 (PDT) Received: from yakj.usersys.redhat.com (93-34-169-1.ip50.fastwebnet.it. [93.34.169.1]) by mx.google.com with ESMTPS id wo5sm23042576igc.0.2012.08.03.09.29.08 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 03 Aug 2012 09:29:10 -0700 (PDT) Message-ID: <501BFC51.5020005@redhat.com> Date: Fri, 03 Aug 2012 18:29:05 +0200 From: Paolo Bonzini User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:13.0) Gecko/20120615 Thunderbird/13.0.1 MIME-Version: 1.0 To: Alexey Korolev References: In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.85.213.45 Cc: "qemu-devel@nongnu.org" , "kevin@koconnor.net" , "seabios@seabios.org" , Gerd Hoffmann , "mst@redhat.com" Subject: Re: [Qemu-devel] [BUG] BSOD on Win2003 Server when 64bit PCI resource is present X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Il 26/07/2012 17:38, Alexey Korolev ha scritto: > HI, > > Current version of Seabios is causing blue screen on Windows2003 when 64bit PCI resource is present and occupies high memory. > > BSOD Error code is: 0x000000A5 (0x02, 0xFFFFfADF6A446880, 0x1, 0xFFFFFADFAA34690) > > The issue is localized, it is related to presence of 64bit resource in _CRS method. > > If we disable a 64bit region from _CRS the Win2003 load normally but this doesn't allow Windows to use 64bit resources. > > At the moment I have no idea how to fix this. Please help! I wonder if Windows 2003 does not support ConcatenateResTemplate. The patch below is obviously wrong, but should let you check if this is the issue: git diff src/acpi-dsdt.dsl Paolo diff --git a/src/acpi-dsdt.dsl b/src/acpi-dsdt.dsl index 72dc7d8..11a9c92 100644 --- a/src/acpi-dsdt.dsl +++ b/src/acpi-dsdt.dsl @@ -175,9 +175,6 @@ DefinitionBlock ( 0x00000000, // Address Translation Offset 0x1EC00000, // Address Length ,, PW32, AddressRangeMemory, TypeStatic) - }) - Name (CR64, ResourceTemplate () - { QWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite, 0x00000000, // Address Space Granularity 0x8000000000, // Address Range Minimum @@ -221,20 +218,14 @@ DefinitionBlock ( Store (P0EL, PE32) Store (P0LL, PL32) - If (LAnd(LEqual(P1SL, 0x00), LEqual(P1SH, 0x00))) { - Return (CRES) - } Else { /* fixup 64bit pci io window */ - CreateQWordField (CR64,\_SB.PCI0.PW64._MIN, PS64) - CreateQWordField (CR64,\_SB.PCI0.PW64._MAX, PE64) - CreateQWordField (CR64,\_SB.PCI0.PW64._LEN, PL64) + CreateQWordField (CRES,\_SB.PCI0.PW64._MIN, PS64) + CreateQWordField (CRES,\_SB.PCI0.PW64._MAX, PE64) + CreateQWordField (CRES,\_SB.PCI0.PW64._LEN, PL64) Store (P1S, PS64) Store (P1E, PE64) Store (P1L, PL64) - /* add window and return result */ - ConcatenateResTemplate (CRES, CR64, Local0) - Return (Local0) - } + Return (CRES) } } }