qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Jan Kiszka <jan.kiszka@web.de>
To: "Michael S. Tsirkin" <mst@redhat.com>
Cc: qemu-devel <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] [PATCH v2 9/9] msi: Move PCI_MSI_PENDING_32/64 into pci_regs.h
Date: Wed, 08 Jun 2011 22:44:58 +0200	[thread overview]
Message-ID: <4DEFDF4A.1010501@web.de> (raw)
In-Reply-To: <20110608194845.GC30805@redhat.com>

[-- Attachment #1: Type: text/plain, Size: 1688 bytes --]

On 2011-06-08 21:48, Michael S. Tsirkin wrote:
> On Wed, Jun 08, 2011 at 06:21:52PM +0200, Jan Kiszka wrote:
>> Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
> 
> pci_regs.h from linux does not have these
> this is why we keep them in msi.c
> 
> [mst@tuck linux-2.6]$ grep PCI_MSI_ include/linux/pci_regs.h 
> #define PCI_MSI_FLAGS           2       /* Various flags */
> #define  PCI_MSI_FLAGS_64BIT    0x80    /* 64-bit addresses allowed */
> #define  PCI_MSI_FLAGS_QSIZE    0x70    /* Message queue size configured
> */
> #define  PCI_MSI_FLAGS_QMASK    0x0e    /* Maximum queue size available
> */
> #define  PCI_MSI_FLAGS_ENABLE   0x01    /* MSI feature enabled */
> #define  PCI_MSI_FLAGS_MASKBIT  0x100   /* 64-bit mask bits allowed */
> #define PCI_MSI_RFU             3       /* Rest of capability flags */
> #define PCI_MSI_ADDRESS_LO      4       /* Lower 32 bits */
> #define PCI_MSI_ADDRESS_HI      8       /* Upper 32 bits (if
> PCI_MSI_FLAGS_64BIT set) */
> #define PCI_MSI_DATA_32         8       /* 16 bits of data for 32-bit
> devices */
> #define PCI_MSI_MASK_32         12      /* Mask bits register for 32-bit
> devices */
> #define PCI_MSI_DATA_64         12      /* 16 bits of data for 64-bit
> devices */
> #define PCI_MSI_MASK_64         16      /* Mask bits register for 64-bit
> devices */
> 
> 
> If you want to move them, please send them upstream we'll merge when
> they are there.

In fact, both defines are already in libpci. Since 3.0.0. Released 5
years ago. OK, I'll send a header resync patch against a more recent
release.

Then we should just lack something like PCI_MSIX_CTRL. I will have a look.

Jan


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 259 bytes --]

  reply	other threads:[~2011-06-08 20:45 UTC|newest]

Thread overview: 30+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-06-08 16:21 [Qemu-devel] [PATCH v2 0/9] msi: Small cleanups and fixes Jan Kiszka
2011-06-08 16:21 ` [Qemu-devel] [PATCH v2 1/9] msi: Fix copy&paste mistake in msi_uninit Jan Kiszka
2011-06-08 16:21 ` [Qemu-devel] [PATCH v2 2/9] msi: Guard msi/msix_write_config with msi_present Jan Kiszka
2011-06-08 16:21 ` [Qemu-devel] [PATCH v2 3/9] msi: Guard msi_reset " Jan Kiszka
2011-06-08 16:21 ` [Qemu-devel] [PATCH v2 4/9] msi: Use msi/msix_present more consistently Jan Kiszka
2011-06-08 16:21 ` [Qemu-devel] [PATCH v2 5/9] msi: Invoke msi/msix_reset from PCI core Jan Kiszka
2011-06-08 19:59   ` Michael S. Tsirkin
2011-06-08 20:47     ` Jan Kiszka
2011-06-08 16:21 ` [Qemu-devel] [PATCH v2 6/9] msi: Invoke msi/msix_write_config " Jan Kiszka
2011-06-08 16:21 ` [Qemu-devel] [PATCH v2 7/9] msi: Invoke msi/msix_uninit " Jan Kiszka
2011-06-08 16:21 ` [Qemu-devel] [PATCH v2 8/9] msix: Align MSI-X constants to libpci definitions and extend them Jan Kiszka
2011-06-08 19:46   ` Michael S. Tsirkin
2011-06-08 19:53   ` Michael S. Tsirkin
2011-06-08 20:48     ` Jan Kiszka
2011-06-08 21:00       ` Michael S. Tsirkin
2011-06-08 21:02         ` Jan Kiszka
2011-06-08 21:09           ` Michael S. Tsirkin
2011-06-08 21:11             ` Jan Kiszka
2011-06-08 21:15               ` Michael S. Tsirkin
2011-06-08 16:21 ` [Qemu-devel] [PATCH v2 9/9] msi: Move PCI_MSI_PENDING_32/64 into pci_regs.h Jan Kiszka
2011-06-08 19:48   ` Michael S. Tsirkin
2011-06-08 20:44     ` Jan Kiszka [this message]
2011-06-08 20:56       ` Michael S. Tsirkin
2011-06-08 20:57         ` Jan Kiszka
2011-06-08 21:01           ` Michael S. Tsirkin
2011-06-08 21:03             ` Jan Kiszka
2011-06-08 21:14               ` Michael S. Tsirkin
2011-06-08 21:18                 ` Jan Kiszka
2011-06-08 21:24                   ` Jan Kiszka
2011-06-08 21:30                   ` 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=4DEFDF4A.1010501@web.de \
    --to=jan.kiszka@web.de \
    --cc=mst@redhat.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).