From: Michael Tokarev <mjt@tls.msk.ru>
To: BALATON Zoltan <balaton@eik.bme.hu>, qemu-devel@nongnu.org
Cc: qemu-trivial@nongnu.org, Paolo Bonzini <pbonzini@redhat.com>,
Gerd Hoffmann <kraxel@redhat.com>,
"Michael S. Tsirkin" <mst@redhat.com>
Subject: Re: [Qemu-trivial] [PATCH v2] serial-pci: Set prog interface field of pci config to 16550 compatible
Date: Thu, 08 May 2014 21:55:25 +0400 [thread overview]
Message-ID: <536BC50D.4000409@msgid.tls.msk.ru> (raw)
In-Reply-To: <20140507100818.C714A196A9@mono.eik.bme.hu>
27.02.2014 05:05, BALATON Zoltan wrote:
Shoudl we actually make it machine-specific, to keep even prog-if value
of these things the same as before for older machine types? I dunno.
mst says we should, I think this is not a very important property to keep.
Thanks,
/mjt
> v2: resubmission after pc-2.1 is added with the multiport case
>
> hw/char/serial-pci.c | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/hw/char/serial-pci.c b/hw/char/serial-pci.c
> index 991c99f..f3f5e07 100644
> --- a/hw/char/serial-pci.c
> +++ b/hw/char/serial-pci.c
> @@ -60,6 +60,7 @@ static int serial_pci_init(PCIDevice *dev)
> return -1;
> }
>
> + pci->dev.config[PCI_CLASS_PROG] = 0x02; /* 16550 compatible */
> pci->dev.config[PCI_INTERRUPT_PIN] = 0x01;
> s->irq = pci_allocate_irq(&pci->dev);
>
> @@ -101,6 +102,7 @@ static int multi_serial_pci_init(PCIDevice *dev)
> assert(pci->ports > 0);
> assert(pci->ports <= PCI_SERIAL_MAX_PORTS);
>
> + pci->dev.config[PCI_CLASS_PROG] = 0x02; /* 16550 compatible */
> pci->dev.config[PCI_INTERRUPT_PIN] = 0x01;
> memory_region_init(&pci->iobar, OBJECT(pci), "multiserial", 8 * pci->ports);
> pci_register_bar(&pci->dev, 0, PCI_BASE_ADDRESS_SPACE_IO, &pci->iobar);
>
WARNING: multiple messages have this Message-ID (diff)
From: Michael Tokarev <mjt@tls.msk.ru>
To: BALATON Zoltan <balaton@eik.bme.hu>, qemu-devel@nongnu.org
Cc: qemu-trivial@nongnu.org, Paolo Bonzini <pbonzini@redhat.com>,
Gerd Hoffmann <kraxel@redhat.com>,
"Michael S. Tsirkin" <mst@redhat.com>
Subject: Re: [Qemu-devel] [Qemu-trivial] [PATCH v2] serial-pci: Set prog interface field of pci config to 16550 compatible
Date: Thu, 08 May 2014 21:55:25 +0400 [thread overview]
Message-ID: <536BC50D.4000409@msgid.tls.msk.ru> (raw)
In-Reply-To: <20140507100818.C714A196A9@mono.eik.bme.hu>
27.02.2014 05:05, BALATON Zoltan wrote:
Shoudl we actually make it machine-specific, to keep even prog-if value
of these things the same as before for older machine types? I dunno.
mst says we should, I think this is not a very important property to keep.
Thanks,
/mjt
> v2: resubmission after pc-2.1 is added with the multiport case
>
> hw/char/serial-pci.c | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/hw/char/serial-pci.c b/hw/char/serial-pci.c
> index 991c99f..f3f5e07 100644
> --- a/hw/char/serial-pci.c
> +++ b/hw/char/serial-pci.c
> @@ -60,6 +60,7 @@ static int serial_pci_init(PCIDevice *dev)
> return -1;
> }
>
> + pci->dev.config[PCI_CLASS_PROG] = 0x02; /* 16550 compatible */
> pci->dev.config[PCI_INTERRUPT_PIN] = 0x01;
> s->irq = pci_allocate_irq(&pci->dev);
>
> @@ -101,6 +102,7 @@ static int multi_serial_pci_init(PCIDevice *dev)
> assert(pci->ports > 0);
> assert(pci->ports <= PCI_SERIAL_MAX_PORTS);
>
> + pci->dev.config[PCI_CLASS_PROG] = 0x02; /* 16550 compatible */
> pci->dev.config[PCI_INTERRUPT_PIN] = 0x01;
> memory_region_init(&pci->iobar, OBJECT(pci), "multiserial", 8 * pci->ports);
> pci_register_bar(&pci->dev, 0, PCI_BASE_ADDRESS_SPACE_IO, &pci->iobar);
>
next prev parent reply other threads:[~2014-05-08 17:55 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-05-07 10:08 [Qemu-trivial] [PATCH v2] serial-pci: Set prog interface field of pci config to 16550 compatible BALATON Zoltan
2014-05-07 10:16 ` [Qemu-devel] " BALATON Zoltan
2014-05-08 17:55 ` Michael Tokarev [this message]
2014-05-08 17:55 ` [Qemu-devel] [Qemu-trivial] " Michael Tokarev
2014-05-13 23:39 ` BALATON Zoltan
2014-05-13 23:39 ` [Qemu-devel] " BALATON Zoltan
2014-05-14 3:28 ` Michael S. Tsirkin
2014-05-14 3:28 ` [Qemu-devel] " Michael S. Tsirkin
2014-05-14 10:59 ` BALATON Zoltan
2014-05-14 10:59 ` [Qemu-devel] " BALATON Zoltan
2014-05-14 11:06 ` Paolo Bonzini
2014-05-14 11:06 ` [Qemu-devel] " Paolo Bonzini
2014-05-14 11:08 ` Michael S. Tsirkin
2014-05-14 11:08 ` [Qemu-devel] " Michael S. Tsirkin
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=536BC50D.4000409@msgid.tls.msk.ru \
--to=mjt@tls.msk.ru \
--cc=balaton@eik.bme.hu \
--cc=kraxel@redhat.com \
--cc=mst@redhat.com \
--cc=pbonzini@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=qemu-trivial@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 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.