Re: [SeaBIOS] [Qemu-devel] [PATCH 2/3] target-i386: reserve RCRB mmio space in ACPI DSDT table

2015-06-01 Thread Gerd Hoffmann
On Sa, 2015-05-30 at 07:57 -0300, Paulo Alcantara wrote: > Hi Gerd, > > On Thu, 28 May 2015 09:13:35 +0200 > Gerd Hoffmann wrote: > > > > +Scope(\_SB) { > > > +OperationRegion (RCRB, SystemMemory, 0xfed1c000, 0x4000) > > > > Where does this address come from? > > This address is reserved i

Re: [SeaBIOS] [PATCH v2 1/3] ich9: add TCO interface emulation

2015-06-01 Thread Paolo Bonzini
On 31/05/2015 00:04, Paulo Alcantara wrote: > +case TCO_RLD: > +tr->timeouts_no = 0; > +if (can_start_tco_timer(tr)) { > +tr->tco.rld = tr->tco.tmr; > +tco_timer_reload(tr); > +} else { > +tr->tco.rld = val; Please mask out bits out

Re: [SeaBIOS] [PATCH v2 3/3] tests: add testcase for TCO watchdog emulation

2015-06-01 Thread Paolo Bonzini
On 31/05/2015 00:04, Paulo Alcantara wrote: > v1 -> v2: > * some cleanup > * added test for TCO_LOCK bit > > Signed-off-by: Paulo Alcantara > --- > tests/Makefile | 2 + > tests/tco-test.c | 419 > +++ > 2 files changed, 421 insertio

Re: [SeaBIOS] [Qemu-devel] [PATCH 2/3] target-i386: reserve RCRB mmio space in ACPI DSDT table

2015-06-01 Thread Paulo Alcantara
On Mon, June 1, 2015 4:16 am, Gerd Hoffmann wrote: > On Sa, 2015-05-30 at 07:57 -0300, Paulo Alcantara wrote: >> Hi Gerd, >> >> On Thu, 28 May 2015 09:13:35 +0200 >> Gerd Hoffmann wrote: >> >> > > +Scope(\_SB) { >> > > +OperationRegion (RCRB, SystemMemory, 0xfed1c000, 0x4000) >> > >> > Where

Re: [SeaBIOS] [Qemu-devel] [PATCH v2 1/3] ich9: add TCO interface emulation

2015-06-01 Thread Paulo Alcantara
On Mon, June 1, 2015 6:05 am, Paolo Bonzini wrote: > > > On 31/05/2015 00:04, Paulo Alcantara wrote: >> +case TCO_RLD: >> +tr->timeouts_no = 0; >> +if (can_start_tco_timer(tr)) { >> +tr->tco.rld = tr->tco.tmr; >> +tco_timer_reload(tr); >> +} else

Re: [SeaBIOS] [PATCH v2 1/3] Add 'measurement' code to the BIOS

2015-06-01 Thread Kevin O'Connor
On Tue, May 26, 2015 at 03:48:33PM -0400, Stefan Berger wrote: > This patch adds invocations of functions that measure various parts of the > code and data through various parts of the BIOS code. It follows TCG > specifications on what needs to be measured. It also adds the implementation > of the

Re: [SeaBIOS] [PATCH v2 2/3] Support for TPM Physical Presence Interface

2015-06-01 Thread Kevin O'Connor
On Tue, May 26, 2015 at 03:48:34PM -0400, Stefan Berger wrote: > This patch implements the specification found here: > > http://www.trustedcomputinggroup.org/resources/tcg_physical_presence_interface_specification > > It adds the necessary BIOS code so that for example an administrator can send >

Re: [SeaBIOS] [PATCH v3 2/2] Add multiboot support.

2015-06-01 Thread Kevin O'Connor
On Thu, May 21, 2015 at 12:42:21PM -0400, Kevin O'Connor wrote: > On Tue, May 19, 2015 at 08:53:05PM +0200, Vladimir 'φ-coder/phcoder' > Serbinenko wrote: > > I've been successfully using SeaBIOS as secondary bootloader. In more > > details > > I have GRUB2-as-payload in flash together with corebo

Re: [SeaBIOS] [PATCH v2 3/3] Add a menu for TPM control

2015-06-01 Thread Kevin O'Connor
On Tue, May 26, 2015 at 03:48:35PM -0400, Stefan Berger wrote: > This patch provides an addtional menu entry that enables the user to control > certain aspects of the TPM's state. > > If a working TPM has been detected, the boot menu will look like this: > > Select boot device: > > 1. ata0-1: QE

Re: [SeaBIOS] [Qemu-devel] [PATCH v2 1/3] ich9: add TCO interface emulation

2015-06-01 Thread Paulo Alcantara
On Mon, 1 Jun 2015 10:38:32 -0300 "Paulo Alcantara" wrote: > On Mon, June 1, 2015 6:05 am, Paolo Bonzini wrote: > > > > > > On 31/05/2015 00:04, Paulo Alcantara wrote: > >> +case TCO_RLD: > >> +tr->timeouts_no = 0; > >> +if (can_start_tco_timer(tr)) { > >> +tr->tco

Re: [SeaBIOS] New build warnings with GCC 5

2015-06-01 Thread Kevin O'Connor
On Sat, May 23, 2015 at 03:47:32PM +0200, Paul Menzel wrote: > Dear SeaBIOS folks, > > > building SeaBIOS commit 67643955 (make SeaBios compatible with Xen > vTPM.) for coreboot with the attached configuration with GCC 5.1.1, (CPP > 4.9) the following warnings are printed. > > $ gcc-5 --

Re: [SeaBIOS] [PATCH] Makefile: Allow to override CPP variable

2015-06-01 Thread Kevin O'Connor
On Sat, May 23, 2015 at 04:15:47PM +0200, Paul Menzel wrote: > Date: Sat, 23 May 2015 16:02:08 +0200 > > Using the conditional assignment operator `?=` [1] instead of `=` makes > it possible to override the variable `CPP` by using an environment > variable > > $ CPP=cpp-5 make > > or direc

[SeaBIOS] [PATCH v3 3/3] tests: add testcase for TCO watchdog emulation

2015-06-01 Thread Paulo Alcantara
v1 -> v2: * some cleanup * add test for TCO_LOCK bit v2 -> v3: * add tests for TCO control & status bits * fix check of SECOND_TO_STS bit (it's set in TCO2_STS reg) Signed-off-by: Paulo Alcantara --- tests/Makefile | 2 + tests/tco-test.c | 475 +++

[SeaBIOS] [PATCH v3 1/3] ich9: add TCO interface emulation

2015-06-01 Thread Paulo Alcantara
This interface provides some registers within a 32-byte range and can be acessed through PCI-to-LPC bridge interface (PMBASE + 0x60). It's commonly used as a watchdog timer to detect system lockups through SMIs that are generated -- if TCO_EN bit is set -- on every timeout. If NO_REBOOT bit is not

[SeaBIOS] [PATCH v3 2/3] target-i386: reserve RCRB mmio space in ACPI DSDT table

2015-06-01 Thread Paulo Alcantara
v1 -> v2: * s/PDRC/CCR/ for clarity and match ICH9 spec * remove unnecessary OperationRegion for RCRB Signed-off-by: Paulo Alcantara --- hw/i386/q35-acpi-dsdt.dsl | 14 ++ tests/acpi-test-data/q35/DSDT | Bin 7666 -> 7723 bytes 2 files changed, 14 insertions(+) diff --git a