From: Paulo Alcantara <pcacjr@zytor.com>
To: "Michael S. Tsirkin" <mst@redhat.com>
Cc: pbonzini@redhat.com, seabios@seabios.org,
Paulo Alcantara <pcacjr@gmail.com>,
qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH v3 3/3] tests: add testcase for TCO watchdog emulation
Date: Wed, 17 Jun 2015 23:23:56 -0300 [thread overview]
Message-ID: <20150617232356.53f63f0b@zytor.com> (raw)
In-Reply-To: <20150617153504-mutt-send-email-mst@redhat.com>
On Wed, 17 Jun 2015 15:37:49 +0200
"Michael S. Tsirkin" <mst@redhat.com> wrote:
> On Mon, Jun 01, 2015 at 08:48:41PM -0300, Paulo Alcantara wrote:
> > 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)
>
> Changelog after -- please.
> Pls add a bit of description here.
Ok.
>
> > Signed-off-by: Paulo Alcantara <pcacjr@zytor.com>
> > ---
> > tests/Makefile | 2 +
> > tests/tco-test.c | 475
> > +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files
> > changed, 477 insertions(+) create mode 100644 tests/tco-test.c
> >
> > diff --git a/tests/Makefile b/tests/Makefile
> > index 729b969..43950d0 100644
> > --- a/tests/Makefile
> > +++ b/tests/Makefile
> > @@ -150,6 +150,7 @@ check-qtest-i386-y += tests/i440fx-test$(EXESUF)
> > check-qtest-i386-y += tests/fw_cfg-test$(EXESUF)
> > check-qtest-i386-y += tests/drive_del-test$(EXESUF)
> > check-qtest-i386-y += tests/wdt_ib700-test$(EXESUF)
> > +check-qtest-i386-y += tests/tco-test$(EXESUF)
> > gcov-files-i386-y += hw/watchdog/watchdog.c hw/watchdog/wdt_ib700.c
> > check-qtest-i386-y += $(check-qtest-pci-y)
> > gcov-files-i386-y += $(gcov-files-pci-y)
> > @@ -363,6 +364,7 @@ tests/eepro100-test$(EXESUF):
> > tests/eepro100-test.o tests/vmxnet3-test$(EXESUF):
> > tests/vmxnet3-test.o tests/ne2000-test$(EXESUF): tests/ne2000-test.o
> > tests/wdt_ib700-test$(EXESUF): tests/wdt_ib700-test.o
> > +tests/tco-test$(EXESUF): tests/tco-test.o $(libqos-pc-obj-y)
> > tests/virtio-balloon-test$(EXESUF): tests/virtio-balloon-test.o
> > tests/virtio-blk-test$(EXESUF): tests/virtio-blk-test.o
> > $(libqos-virtio-obj-y) tests/virtio-net-test$(EXESUF):
> > tests/virtio-net-test.o $(libqos-pc-obj-y) diff --git
> > a/tests/tco-test.c b/tests/tco-test.c new file mode 100644
> > index 0000000..b9acf43
> > --- /dev/null
> > +++ b/tests/tco-test.c
> > @@ -0,0 +1,475 @@
> > +/*
> > + * QEMU ICH9 TCO emulation tests
> > + *
> > + * Copyright (c) 2015 Paulo Alcantara <pcacjr@zytor.com>
> > + *
> > + * Permission is hereby granted, free of charge, to any person
> > obtaining a copy
> > + * of this software and associated documentation files (the
> > "Software"), to deal
> > + * in the Software without restriction, including without
> > limitation the rights
> > + * to use, copy, modify, merge, publish, distribute, sublicense,
> > and/or sell
> > + * copies of the Software, and to permit persons to whom the
> > Software is
> > + * furnished to do so, subject to the following conditions:
> > + *
> > + * The above copyright notice and this permission notice shall be
> > included in
> > + * all copies or substantial portions of the Software.
> > + *
> > + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
> > EXPRESS OR
> > + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
> > MERCHANTABILITY,
> > + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO
> > EVENT SHALL
> > + * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
> > DAMAGES OR OTHER
> > + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
> > ARISING FROM,
> > + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
> > DEALINGS IN
> > + * THE SOFTWARE.
> > + */
> > +#include <glib.h>
> > +#include <string.h>
> > +#include <stdio.h>
> > +#include <stdlib.h>
> > +
> > +#include "libqtest.h"
> > +#include "libqos/pci.h"
> > +#include "libqos/pci-pc.h"
> > +#include "hw/pci/pci_regs.h"
> > +#include "hw/i386/ich9.h"
> > +#include "hw/acpi/ich9.h"
> > +#include "hw/acpi/tco.h"
> > +
> > +#define PM_IO_BASE_ADDR 0xb000
> > +#define RCBA_BASE_ADDR 0xfed1c000
> > +
>
> This is duplicated in DSL. Add a macro?
Ok. I will add a macro for RCBA address.
Thanks,
Paulo
--
Paulo Alcantara, C.E.S.A.R
Speaking for myself only.
next prev parent reply other threads:[~2015-06-18 2:24 UTC|newest]
Thread overview: 83+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-05-27 0:29 [Qemu-devel] [PATCH 1/3] ich9: add TCO interface emulation Paulo Alcantara
2015-05-27 0:29 ` [Qemu-devel] [PATCH 2/3] target-i386: reserve RCRB mmio space in ACPI DSDT table Paulo Alcantara
2015-05-27 12:03 ` Paolo Bonzini
2015-05-27 17:51 ` Paulo Alcantara
2015-05-28 7:13 ` [Qemu-devel] [SeaBIOS] " Gerd Hoffmann
2015-05-30 10:57 ` Paulo Alcantara
2015-06-01 7:16 ` Gerd Hoffmann
2015-06-01 11:59 ` Paulo Alcantara
2015-05-27 0:29 ` [Qemu-devel] [PATCH 3/3] tests: add testcase for TCO watchdog emulation Paulo Alcantara
2015-05-27 11:58 ` [Qemu-devel] [PATCH 1/3] ich9: add TCO interface emulation Paolo Bonzini
2015-05-27 18:23 ` Paulo Alcantara
2015-05-30 22:04 ` [Qemu-devel] [PATCH v2 " Paulo Alcantara
2015-05-30 22:04 ` [Qemu-devel] [PATCH v2 2/3] target-i386: reserve RCRB mmio space in ACPI DSDT table Paulo Alcantara
2015-05-30 22:04 ` [Qemu-devel] [PATCH v2 3/3] tests: add testcase for TCO watchdog emulation Paulo Alcantara
2015-06-01 9:07 ` Paolo Bonzini
2015-06-01 9:05 ` [Qemu-devel] [PATCH v2 1/3] ich9: add TCO interface emulation Paolo Bonzini
2015-06-01 13:38 ` Paulo Alcantara
2015-06-01 21:37 ` Paulo Alcantara
2015-06-01 23:48 ` [Qemu-devel] [PATCH v3 " Paulo Alcantara
2015-06-01 23:48 ` [Qemu-devel] [PATCH v3 2/3] target-i386: reserve RCRB mmio space in ACPI DSDT table Paulo Alcantara
2015-06-17 13:33 ` Michael S. Tsirkin
2015-06-18 2:14 ` Paulo Alcantara
2015-06-01 23:48 ` [Qemu-devel] [PATCH v3 3/3] tests: add testcase for TCO watchdog emulation Paulo Alcantara
2015-06-17 13:37 ` Michael S. Tsirkin
2015-06-18 2:23 ` Paulo Alcantara [this message]
2015-06-10 13:17 ` [Qemu-devel] [PATCH v3 1/3] ich9: add TCO interface emulation Paulo Alcantara
2015-06-17 13:27 ` Michael S. Tsirkin
2015-06-18 2:10 ` Paulo Alcantara
2015-06-22 0:37 ` [Qemu-devel] [PATCH v4 " Paulo Alcantara
2015-06-22 0:37 ` [Qemu-devel] [PATCH v4 2/3] target-i386: reserve RCRB mmio space in ACPI DSDT table Paulo Alcantara
2015-06-22 8:40 ` Michael S. Tsirkin
2015-06-22 12:53 ` Paulo Alcantara
2015-06-23 10:38 ` [Qemu-devel] [SeaBIOS] " Igor Mammedov
2015-06-23 10:58 ` Michael S. Tsirkin
2015-06-23 12:29 ` Igor Mammedov
2015-06-23 12:37 ` Michael S. Tsirkin
2015-06-23 11:15 ` Paolo Bonzini
2015-06-23 11:18 ` Paolo Bonzini
2015-06-23 12:22 ` Michael S. Tsirkin
2015-06-22 0:37 ` [Qemu-devel] [PATCH v4 3/3] tests: add testcase for TCO watchdog emulation Paulo Alcantara
2015-06-22 8:39 ` [Qemu-devel] [PATCH v4 1/3] ich9: add TCO interface emulation Michael S. Tsirkin
2015-06-22 12:30 ` Paulo Alcantara
2015-06-22 12:32 ` Paolo Bonzini
2015-06-22 12:47 ` Michael S. Tsirkin
2015-06-22 13:04 ` Paolo Bonzini
2015-06-22 13:07 ` Michael S. Tsirkin
2015-06-22 13:19 ` Paulo Alcantara
2015-06-22 13:10 ` Markus Armbruster
2015-06-22 8:43 ` Michael S. Tsirkin
2015-06-22 9:45 ` Paolo Bonzini
2015-06-22 12:11 ` Michael S. Tsirkin
2015-06-22 12:36 ` Paulo Alcantara
2015-06-22 12:44 ` Michael S. Tsirkin
2015-06-22 12:59 ` Paolo Bonzini
2015-06-22 18:29 ` Paulo Alcantara
2015-06-22 23:10 ` [Qemu-devel] [PATCH v5 " Paulo Alcantara
2015-06-22 23:10 ` [Qemu-devel] [PATCH v5 2/3] target-i386: reserve RCRB mmio space in ACPI DSDT table Paulo Alcantara
2015-06-23 14:29 ` [Qemu-devel] [SeaBIOS] " Igor Mammedov
2015-06-23 15:33 ` Michael S. Tsirkin
2015-06-23 14:39 ` Igor Mammedov
2015-06-23 15:06 ` Michael S. Tsirkin
2015-06-23 15:12 ` Igor Mammedov
2015-06-23 15:29 ` Michael S. Tsirkin
2015-06-24 15:11 ` [Qemu-devel] " Michael S. Tsirkin
2015-06-24 16:00 ` Paulo Alcantara
2015-06-24 16:04 ` Michael S. Tsirkin
2015-06-22 23:10 ` [Qemu-devel] [PATCH v5 3/3] tests: add testcase for TCO watchdog emulation Paulo Alcantara
2015-06-23 6:39 ` [Qemu-devel] [PATCH v5 1/3] ich9: add TCO interface emulation Michael S. Tsirkin
2015-06-24 18:03 ` [Qemu-devel] [PATCH v6 1/2] " Paulo Alcantara
2015-06-24 18:03 ` [Qemu-devel] [PATCH v6 2/2] tests: add testcase for TCO watchdog emulation Paulo Alcantara
2015-06-27 17:56 ` [Qemu-devel] [PATCH v7 1/3] ich9: add TCO interface emulation Paulo Alcantara
2015-06-27 17:56 ` [Qemu-devel] [PATCH v7 2/3] tests: add testcase for TCO watchdog emulation Paulo Alcantara
2015-06-27 17:56 ` [Qemu-devel] [PATCH v7 3/3] ich9: implement strap SPKR pin logic Paulo Alcantara
2015-06-28 8:37 ` Michael S. Tsirkin
2015-06-28 16:21 ` Paulo Alcantara
2015-06-28 17:58 ` [Qemu-devel] [PATCH v8 1/3] ich9: add TCO interface emulation Paulo Alcantara
2015-06-28 17:58 ` [Qemu-devel] [PATCH v8 2/3] tests: add testcase for TCO watchdog emulation Paulo Alcantara
2015-06-28 17:58 ` [Qemu-devel] [PATCH v8 3/3] ich9: implement strap SPKR pin logic Paulo Alcantara
2015-07-01 13:18 ` Paolo Bonzini
2015-07-01 13:31 ` Michael S. Tsirkin
2015-07-01 13:34 ` Paolo Bonzini
2015-07-02 1:30 ` Paulo Alcantara
2015-07-02 6:55 ` Paolo Bonzini
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=20150617232356.53f63f0b@zytor.com \
--to=pcacjr@zytor.com \
--cc=mst@redhat.com \
--cc=pbonzini@redhat.com \
--cc=pcacjr@gmail.com \
--cc=qemu-devel@nongnu.org \
--cc=seabios@seabios.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.