1. 26 9月, 2017 2 次提交
    • T
      iommu/vt-d: Reevaluate vector configuration on activate() · d491bdff
      Thomas Gleixner 提交于
      With the upcoming reservation/management scheme, early activation will
      assign a special vector. The final activation at request_irq() assigns a
      real vector, which needs to be updated in the tables.
      
      Split out the reconfiguration code in set_affinity and use it for
      reactivation.
      Signed-off-by: NThomas Gleixner <tglx@linutronix.de>
      Tested-by: NJuergen Gross <jgross@suse.com>
      Tested-by: NYu Chen <yu.c.chen@intel.com>
      Acked-by: NJuergen Gross <jgross@suse.com>
      Cc: Boris Ostrovsky <boris.ostrovsky@oracle.com>
      Cc: Tony Luck <tony.luck@intel.com>
      Cc: Marc Zyngier <marc.zyngier@arm.com>
      Cc: Alok Kataria <akataria@vmware.com>
      Cc: Joerg Roedel <joro@8bytes.org>
      Cc: "Rafael J. Wysocki" <rjw@rjwysocki.net>
      Cc: Steven Rostedt <rostedt@goodmis.org>
      Cc: Christoph Hellwig <hch@lst.de>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Cc: iommu@lists.linux-foundation.org
      Cc: Borislav Petkov <bp@alien8.de>
      Cc: Paolo Bonzini <pbonzini@redhat.com>
      Cc: Rui Zhang <rui.zhang@intel.com>
      Cc: "K. Y. Srinivasan" <kys@microsoft.com>
      Cc: Arjan van de Ven <arjan@linux.intel.com>
      Cc: Dan Williams <dan.j.williams@intel.com>
      Cc: Len Brown <lenb@kernel.org>
      Link: https://lkml.kernel.org/r/20170913213155.853028808@linutronix.de
      d491bdff
    • T
      genirq/irqdomain: Update irq_domain_ops.activate() signature · 72491643
      Thomas Gleixner 提交于
      The irq_domain_ops.activate() callback has no return value and no way to
      tell the function that the activation is early.
      
      The upcoming changes to support a reservation scheme which allows to assign
      interrupt vectors on x86 only when the interrupt is actually requested
      requires:
      
        - A return value, so activation can fail at request_irq() time
        
        - Information that the activate invocation is early, i.e. before
          request_irq().
      Signed-off-by: NThomas Gleixner <tglx@linutronix.de>
      Tested-by: NJuergen Gross <jgross@suse.com>
      Tested-by: NYu Chen <yu.c.chen@intel.com>
      Acked-by: NJuergen Gross <jgross@suse.com>
      Cc: Boris Ostrovsky <boris.ostrovsky@oracle.com>
      Cc: Tony Luck <tony.luck@intel.com>
      Cc: Marc Zyngier <marc.zyngier@arm.com>
      Cc: Alok Kataria <akataria@vmware.com>
      Cc: Joerg Roedel <joro@8bytes.org>
      Cc: "Rafael J. Wysocki" <rjw@rjwysocki.net>
      Cc: Steven Rostedt <rostedt@goodmis.org>
      Cc: Christoph Hellwig <hch@lst.de>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Cc: Borislav Petkov <bp@alien8.de>
      Cc: Paolo Bonzini <pbonzini@redhat.com>
      Cc: Rui Zhang <rui.zhang@intel.com>
      Cc: "K. Y. Srinivasan" <kys@microsoft.com>
      Cc: Arjan van de Ven <arjan@linux.intel.com>
      Cc: Dan Williams <dan.j.williams@intel.com>
      Cc: Len Brown <lenb@kernel.org>
      Link: https://lkml.kernel.org/r/20170913213152.848490816@linutronix.de
      72491643
  2. 23 6月, 2017 2 次提交
  3. 30 5月, 2017 1 次提交
  4. 29 4月, 2017 1 次提交
    • Q
      iommu/vt-d: Don't print the failure message when booting non-kdump kernel · 8e121884
      Qiuxu Zhuo 提交于
      When booting a new non-kdump kernel, we have below failure message:
      
      [    0.004000] DMAR-IR: IRQ remapping was enabled on dmar2 but we are not in kdump mode
      [    0.004000] DMAR-IR: Failed to copy IR table for dmar2 from previous kernel
      [    0.004000] DMAR-IR: IRQ remapping was enabled on dmar1 but we are not in kdump mode
      [    0.004000] DMAR-IR: Failed to copy IR table for dmar1 from previous kernel
      [    0.004000] DMAR-IR: IRQ remapping was enabled on dmar0 but we are not in kdump mode
      [    0.004000] DMAR-IR: Failed to copy IR table for dmar0 from previous kernel
      [    0.004000] DMAR-IR: IRQ remapping was enabled on dmar3 but we are not in kdump mode
      [    0.004000] DMAR-IR: Failed to copy IR table for dmar3 from previous kernel
      
      For non-kdump case, we no need to copy IR table from previous kernel
      so it's nonthing actually failed. To be less alarming or misleading,
      do not print "DMAR-IR: Failed to copy IR table for dmar[0-9] from
      previous kernel" messages when booting non-kdump kernel.
      Signed-off-by: NQiuxu Zhuo <qiuxu.zhuo@intel.com>
      Signed-off-by: NJoerg Roedel <jroedel@suse.de>
      8e121884
  5. 14 1月, 2016 1 次提交
  6. 19 12月, 2015 1 次提交
  7. 02 11月, 2015 1 次提交
  8. 23 10月, 2015 2 次提交
  9. 15 10月, 2015 1 次提交
  10. 14 10月, 2015 1 次提交
  11. 14 8月, 2015 1 次提交
  12. 03 8月, 2015 1 次提交
  13. 16 6月, 2015 8 次提交
  14. 12 6月, 2015 5 次提交
  15. 05 5月, 2015 1 次提交
  16. 24 4月, 2015 8 次提交
  17. 25 3月, 2015 1 次提交
  18. 03 3月, 2015 1 次提交
    • Q
      iommu/vt-d: Convert non-returned local variable to boolean when relevant · 2f119c78
      Quentin Lambert 提交于
      This patch was produced using Coccinelle. A simplified version of the
      semantic patch is:
      
      @r exists@
      identifier f;
      local idexpression u8 x;
      identifier xname;
      @@
      
      f(...) {
      ...when any
      (
        x@xname = 1;
      |
        x@xname = 0;
      )
      ...when any
      }
      
      @bad exists@
      identifier r.f;
      local idexpression u8 r.x
      expression e1 != {0, 1}, e2;
      @@
      
      f(...) {
      ...when any
      (
        x = e1;
      |
        x + e2
      )
      ...when any
      }
      
      @depends on !bad@
      identifier r.f;
      local idexpression u8 r.x;
      identifier r.xname;
      @@
      
      f(...) {
      ...
      ++ bool xname;
      - int xname;
      <...
      (
        x =
      - 1
      + true
      |
        x =
      - -1
      + false
      )
      ...>
      
      }
      Signed-off-by: NQuentin Lambert <lambert.quentin@gmail.com>
      Signed-off-by: NJoerg Roedel <jroedel@suse.de>
      2f119c78
  19. 15 1月, 2015 1 次提交