All of lore.kernel.org
 help / color / mirror / Atom feed
From: George Dunlap <george.dunlap@eu.citrix.com>
To: xen-devel@lists.xensource.com
Cc: wei.wang2@amd.com
Subject: [PATCH 0 of 3] Avoid sharing vectors within a device when using an AMD IOMMU
Date: Tue, 26 Jul 2011 17:33:31 +0100	[thread overview]
Message-ID: <patchbomb.1311698011@elijah> (raw)

The interrupt remapping tables on AMD IOMMUs index by vector only.
This means that if two MSIs go through the table that are destined for
different cpus, but they share the same vector, they will be
redirected to the same place.  (E.g., one interrupt on p5 vector 67,
another interrupt on p7 vector 67; both will be redirected to the same
place.)

Introducing per-device interrupt mappings reduces the problem, but
does not solve it completely if the same device can have multiple IRQs
assigned to it, because you can get the same issue -- two different
IRQs from the same device can be assigned the same vector on different
cpus.  This causes one of the IRQs to activated when either interrupt
is triggered, and the other IRQ to never receive any interrupts.

This series consists of three patches:

1: Introduce infrastructure to allow irqs to share vector maps.  Any
IRQs sharing the same vector map will never have vector collisions.

2: Introduce option to have per-device vector maps for MSI IRQs.

3: Automatically enable per-device vector maps when running on an AMD
system with the IOMMU enabled, unless otherwise specified.

             reply	other threads:[~2011-07-26 16:33 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-07-26 16:33 George Dunlap [this message]
2011-07-26 16:33 ` [PATCH 1 of 3] xen: Infrastructure to allow irqs to share vector maps George Dunlap
2011-07-26 16:33 ` [PATCH 2 of 3] xen: Option to allow per-device vector maps for MSI IRQs George Dunlap
2011-07-26 16:33 ` [PATCH 3 of 3] xen: AMD IOMMU: Automatically enable per-device vector maps George Dunlap
2011-07-26 17:01 ` [PATCH 0 of 3] Avoid sharing vectors within a device when using an AMD IOMMU Keir Fraser
2011-07-26 17:17   ` George Dunlap

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=patchbomb.1311698011@elijah \
    --to=george.dunlap@eu.citrix.com \
    --cc=wei.wang2@amd.com \
    --cc=xen-devel@lists.xensource.com \
    /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.