From: Laszlo Ersek <lersek@redhat.com>
To: Paulo Alcantara <pcacjr@zytor.com>
Cc: pbonzini@redhat.com, edk2-devel@lists.sourceforge.net,
Paulo Alcantara <pcacjr@gmail.com>,
qemu-devel@nongnu.org, mst@redhat.com
Subject: Re: [Qemu-devel] [edk2] [PATCH v3] OvmfPkg/PlatformPei: Initialise RCBA (B0:D31:F0 0xf0) register
Date: Tue, 09 Jun 2015 01:46:18 +0200 [thread overview]
Message-ID: <5576294A.6020008@redhat.com> (raw)
In-Reply-To: <20150608203001.47345dfb@zytor.com>
On 06/09/15 01:30, Paulo Alcantara wrote:
> On Tue, 09 Jun 2015 01:09:19 +0200
> Laszlo Ersek <lersek@redhat.com> wrote:
>
>> On 06/09/15 00:49, Jordan Justen wrote:
>>> On 2015-06-08 15:07:13, Paulo Alcantara wrote:
>>>> This patch initialises root complex register block BAR in order to
>>>> support TCO watchdog emulation features (e.g. reboot upon
>>>> NO_REBOOT bit not set) on QEMU.
>>>>
>>>> Contributed-under: TianoCore Contribution Agreement 1.0
>>>> Signed-off-by: Paulo Alcantara <pcacjr@zytor.com>
>>>> ---
>>>> OvmfPkg/Include/IndustryStandard/Q35MchIch9.h | 5 +++++
>>>> OvmfPkg/PlatformPei/Platform.c | 14 +++++++++++++-
>>>> 2 files changed, 18 insertions(+), 1 deletion(-)
>>>>
>>>> diff --git a/OvmfPkg/Include/IndustryStandard/Q35MchIch9.h
>>>> b/OvmfPkg/Include/IndustryStandard/Q35MchIch9.h index
>>>> 4f59a7c..18b34a3 100644 ---
>>>> a/OvmfPkg/Include/IndustryStandard/Q35MchIch9.h +++
>>>> b/OvmfPkg/Include/IndustryStandard/Q35MchIch9.h @@ -77,6 +77,9 @@
>>>> #define ICH9_GEN_PMCON_1 0xA0
>>>> #define ICH9_GEN_PMCON_1_SMI_LOCK BIT4
>>>>
>>>> +#define ICH9_RCBA 0xF0
>>>> +#define ICH9_RCBA_EN BIT0
>>>> +
>>>> //
>>>> // IO ports
>>>> //
>>>> @@ -90,4 +93,6 @@
>>>> #define ICH9_SMI_EN_APMC_EN BIT5
>>>> #define ICH9_SMI_EN_GBL_SMI_EN BIT0
>>>>
>>>> +#define ICH9_ROOT_COMPLEX_BASE 0xFED1C000
>>>> +
>>>> #endif
>>>> diff --git a/OvmfPkg/PlatformPei/Platform.c
>>>> b/OvmfPkg/PlatformPei/Platform.c index 1126c65..3811162 100644
>>>> --- a/OvmfPkg/PlatformPei/Platform.c
>>>> +++ b/OvmfPkg/PlatformPei/Platform.c
>>>> @@ -212,13 +212,16 @@ MemMapInitialization (
>>>> // 0xFEC00000 IO-APIC 4 KB
>>>> // 0xFEC01000 gap 1020 KB
>>>> // 0xFED00000 HPET 1 KB
>>>> - // 0xFED00400 gap 1023 KB
>>>> + // 0xFED00400 gap 111 KB
>>>> + // 0xFED1C000 RCRB 16 KB
>>>
>>> Should we make this conditional?
>>> // 0xFED1C000 gap (PIIX4) / RCRB (ICH9) 16 KB
>>>
>>> ... and make mHostBridgeDevId a global var, and then conditionally
>>> add the memory io HOB?
>>
>> Good point.
>
> Good point, indeed. Unlike HPET, I/O APIC and other addresses that will
> be shared between PIIX4 and ICH9, the RCRB will be exclusive to ICH9. I
> can make these changes on top this patch, or do you guys prefer it to
> be placed in another?
I think mHostBridgeDevId should be made an extern in the first patch,
and then the second patch could be this one, also including the
conditional stuff in MemMapInitialization().
Thanks
Laszlo
next prev parent reply other threads:[~2015-06-08 23:54 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-06-06 19:10 [Qemu-devel] [PATCH] OvmfPkg/PlatformPei: Initialise RCBA (B0:D31:F0 0xf0) register Paulo Alcantara
2015-06-07 5:13 ` [Qemu-devel] [edk2] " Jordan Justen
2015-06-07 14:37 ` Paulo Alcantara
2015-06-07 15:03 ` [Qemu-devel] [PATCH v2] " Paulo Alcantara
2015-06-08 22:07 ` [Qemu-devel] [PATCH v3] " Paulo Alcantara
2015-06-08 22:29 ` Laszlo Ersek
2015-06-08 22:42 ` [Qemu-devel] [PATCH v4] " Paulo Alcantara
2015-06-08 22:46 ` Laszlo Ersek
2015-06-08 22:49 ` [Qemu-devel] [edk2] [PATCH v3] " Jordan Justen
2015-06-08 23:09 ` Laszlo Ersek
2015-06-08 23:30 ` Paulo Alcantara
2015-06-08 23:46 ` Laszlo Ersek [this message]
2015-06-08 9:06 ` [Qemu-devel] [PATCH] " Laszlo Ersek
2015-06-08 19:07 ` [Qemu-devel] [edk2] " Jordan Justen
2015-06-08 21:02 ` Laszlo Ersek
2015-06-08 21:26 ` [Qemu-devel] " Paulo Alcantara
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5576294A.6020008@redhat.com \
--to=lersek@redhat.com \
--cc=edk2-devel@lists.sourceforge.net \
--cc=mst@redhat.com \
--cc=pbonzini@redhat.com \
--cc=pcacjr@gmail.com \
--cc=pcacjr@zytor.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).