From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:35593) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yxa46-0006n4-29 for qemu-devel@nongnu.org; Wed, 27 May 2015 08:04:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Yxa42-0003Qr-ST for qemu-devel@nongnu.org; Wed, 27 May 2015 08:04:06 -0400 Received: from mail-wi0-x235.google.com ([2a00:1450:400c:c05::235]:35977) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yxa42-0003Qk-LI for qemu-devel@nongnu.org; Wed, 27 May 2015 08:04:02 -0400 Received: by wizk4 with SMTP id k4so108940391wiz.1 for ; Wed, 27 May 2015 05:04:02 -0700 (PDT) Sender: Paolo Bonzini Message-ID: <5565B2AF.4070607@redhat.com> Date: Wed, 27 May 2015 14:03:59 +0200 From: Paolo Bonzini MIME-Version: 1.0 References: <1432686576-14816-1-git-send-email-pcacjr@zytor.com> <1432686576-14816-2-git-send-email-pcacjr@zytor.com> In-Reply-To: <1432686576-14816-2-git-send-email-pcacjr@zytor.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 2/3] target-i386: reserve RCRB mmio space in ACPI DSDT table List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paulo Alcantara , qemu-devel@nongnu.org Cc: seabios@seabios.org On 27/05/2015 02:29, Paulo Alcantara wrote: > Signed-off-by: Paulo Alcantara > --- > hw/i386/acpi-dsdt-pdrc.dsl | 46 ++++++++++++++++++++++++++++++++++++++++++ Why pdrc and not e.g. ccr (chipset configuration registers)? I cannot find PDRC / PCI device resource consumption in the ICH9 spec. > hw/i386/q35-acpi-dsdt.dsl | 1 + > tests/acpi-test-data/q35/DSDT | Bin 7666 -> 7795 bytes > 3 files changed, 47 insertions(+) > create mode 100644 hw/i386/acpi-dsdt-pdrc.dsl > > diff --git a/hw/i386/acpi-dsdt-pdrc.dsl b/hw/i386/acpi-dsdt-pdrc.dsl > new file mode 100644 > index 0000000..badb410 > --- /dev/null > +++ b/hw/i386/acpi-dsdt-pdrc.dsl > @@ -0,0 +1,46 @@ > +/* > + * This program is free software; you can redistribute it and/or modify > + * it under the terms of the GNU General Public License as published by > + * the Free Software Foundation; either version 2 of the License, or > + * (at your option) any later version. > + > + * This program is distributed in the hope that it will be useful, > + * but WITHOUT ANY WARRANTY; without even the implied warranty of > + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the > + * GNU General Public License for more details. > + > + * You should have received a copy of the GNU General Public License along > + * with this program; if not, see . > + */ > + > +/**************************************************************** > + * PCI Device Resource Comsumption "Chipset configuration registers" > + ****************************************************************/ > + > +Scope(\_SB.PCI0) { > + Device (PDRC) { Device (CCR) > + Name (_HID, EISAID("PNP0C02")) > + Name (_UID, 1) > + > + Name (PDRS, ResourceTemplate() { Just use Name(_CRS, ResourceTemplate() { ... }) > + Memory32Fixed(ReadWrite, 0xfed1c000, 0x00004000) > + }) > + > + Method (_CRS, 0, Serialized) { > + Return(PDRS) > + } > + } > +} > + > +Scope(\_SB) { > + OperationRegion (RCRB, SystemMemory, 0xfed1c000, 0x4000) > + Field (RCRB, DWordAcc, Lock, Preserve) { > + Offset(0x3000), > + TCTL, 8, > + , 24, > + Offset(0x3400), > + RTCC, 32, > + HPTC, 32, > + GCSR, 32, > + } Why do you need the RCRB OperationRegion if you never access it? > +} > diff --git a/hw/i386/q35-acpi-dsdt.dsl b/hw/i386/q35-acpi-dsdt.dsl > index 16eaca3..32b680e 100644 > --- a/hw/i386/q35-acpi-dsdt.dsl > +++ b/hw/i386/q35-acpi-dsdt.dsl > @@ -114,6 +114,7 @@ DefinitionBlock ( > } > } > > +#include "acpi-dsdt-pdrc.dsl" Just include it in this file since it's not shared between i440FX and Q35. Thanks, Paolo > #include "acpi-dsdt-hpet.dsl" > > > diff --git a/tests/acpi-test-data/q35/DSDT b/tests/acpi-test-data/q35/DSDT > index 4723e5954dccb00995ccaf521b7daf6bf15cf1d4..beea54c234954c54c3b008b52e3cd167701253c7 100644 > GIT binary patch > delta 154 > zcmexl{n>`gCD z@u8kBj2uA0U_n7HzBWzI`$qHD3%!qCXat?B0-~p-O > xW^jmZQ~~jY85$TQLYzZ > delta 24 > gcmext^U0daCD