1. 23 4月, 2013 1 次提交
    • T
      iommu/vt-d: Disable translation if already enabled · 3a93c841
      Takao Indoh 提交于
      This patch disables translation(dma-remapping) before its initialization
      if it is already enabled.
      
      This is needed for kexec/kdump boot. If dma-remapping is enabled in the
      first kernel, it need to be disabled before initializing its page table
      during second kernel boot. Wei Hu also reported that this is needed
      when second kernel boots with intel_iommu=off.
      
      Basically iommu->gcmd is used to know whether translation is enabled or
      disabled, but it is always zero at boot time even when translation is
      enabled since iommu->gcmd is initialized without considering such a
      case. Therefor this patch synchronizes iommu->gcmd value with global
      command register when iommu structure is allocated.
      Signed-off-by: NTakao Indoh <indou.takao@jp.fujitsu.com>
      Signed-off-by: NJoerg Roedel <joro@8bytes.org>
      3a93c841
  2. 18 4月, 2013 1 次提交
    • N
      iommu/vt-d: add quirk for broken interrupt remapping on 55XX chipsets · 03bbcb2e
      Neil Horman 提交于
      A few years back intel published a spec update:
      http://www.intel.com/content/dam/doc/specification-update/5520-and-5500-chipset-ioh-specification-update.pdf
      
      For the 5520 and 5500 chipsets which contained an errata (specificially errata
      53), which noted that these chipsets can't properly do interrupt remapping, and
      as a result the recommend that interrupt remapping be disabled in bios.  While
      many vendors have a bios update to do exactly that, not all do, and of course
      not all users update their bios to a level that corrects the problem.  As a
      result, occasionally interrupts can arrive at a cpu even after affinity for that
      interrupt has be moved, leading to lost or spurrious interrupts (usually
      characterized by the message:
      kernel: do_IRQ: 7.71 No irq handler for vector (irq -1)
      
      There have been several incidents recently of people seeing this error, and
      investigation has shown that they have system for which their BIOS level is such
      that this feature was not properly turned off.  As such, it would be good to
      give them a reminder that their systems are vulnurable to this problem.  For
      details of those that reported the problem, please see:
      https://bugzilla.redhat.com/show_bug.cgi?id=887006
      
      [ Joerg: Removed CONFIG_IRQ_REMAP ifdef from early-quirks.c ]
      Signed-off-by: NNeil Horman <nhorman@tuxdriver.com>
      CC: Prarit Bhargava <prarit@redhat.com>
      CC: Don Zickus <dzickus@redhat.com>
      CC: Don Dutile <ddutile@redhat.com>
      CC: Bjorn Helgaas <bhelgaas@google.com>
      CC: Asit Mallick <asit.k.mallick@intel.com>
      CC: David Woodhouse <dwmw2@infradead.org>
      CC: linux-pci@vger.kernel.org
      CC: Joerg Roedel <joro@8bytes.org>
      CC: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
      CC: Arkadiusz Miśkiewicz <arekm@maven.pl>
      Signed-off-by: NJoerg Roedel <joro@8bytes.org>
      03bbcb2e
  3. 27 3月, 2013 1 次提交
  4. 06 3月, 2013 1 次提交
  5. 26 2月, 2013 1 次提交
  6. 23 2月, 2013 1 次提交
  7. 20 2月, 2013 1 次提交
  8. 19 2月, 2013 2 次提交
  9. 13 2月, 2013 1 次提交
  10. 08 2月, 2013 4 次提交
  11. 06 2月, 2013 5 次提交
  12. 05 2月, 2013 3 次提交
  13. 04 2月, 2013 1 次提交
  14. 03 2月, 2013 1 次提交
    • A
      x86/intel/irq_remapping: Clean up x2apic opt-out security warning mess · af8d102f
      Andy Lutomirski 提交于
      Current kernels print this on my Dell server:
      
         ------------[ cut here ]------------
         WARNING: at drivers/iommu/intel_irq_remapping.c:542
         intel_enable_irq_remapping+0x7b/0x27e()
         Hardware name: PowerEdge R620
         Your BIOS is broken and requested that x2apic be disabled
         This will leave your machine vulnerable to irq-injection attacks
         Use 'intremap=no_x2apic_optout' to override BIOS request
         [...]
         Enabled IRQ remapping in xapic mode
         x2apic not enabled, IRQ remapping is in xapic mode
      
      This is inconsistent with itself -- interrupt remapping is *on*.
      
      Fix the mess by making the warnings say what they mean and my
      making sure that compatibility format interrupts (the dangerous
      ones) are disabled if x2apic is present regardless of BIOS
      settings.
      
      With this patch applied, the output is:
      
        Your BIOS is broken and requested that x2apic be disabled.
        This will slightly decrease performance.
        Use 'intremap=no_x2apic_optout' to override BIOS request.
        Enabled IRQ remapping in xapic mode
        x2apic not enabled, IRQ remapping is in xapic mode
      
      This should make us as or more secure than we are now and
      replace a rather scary warning with a much less scary warning on
      silly but functional systems.
      Signed-off-by: NAndy Lutomirski <luto@amacapital.net>
      Cc: Suresh Siddha <suresh.b.siddha@intel.com>
      Cc: Prarit Bhargava <prarit@redhat.com>
      Cc: Gleb Natapov <gleb@redhat.com>
      Cc: Don Zickus <dzickus@redhat.com>
      Cc: Alex Williamson <alex.williamson@redhat.com>
      Link: http://lkml.kernel.org/r/2011b943a886fd7c46079eb10bc24fc130587503.1359759303.git.luto@amacapital.netSigned-off-by: NIngo Molnar <mingo@kernel.org>
      af8d102f
  15. 28 1月, 2013 16 次提交