diff options
author | Mika Westerberg <mika.westerberg@linux.intel.com> | 2017-10-02 12:38:35 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-10-02 20:24:41 +0200 |
commit | 8c6bba10fb9262d7b3a11e86a40621d5b37810a6 (patch) | |
tree | dd1ea0a7e55932118808c6721a6da67adf044aa3 /drivers/thunderbolt/nhi_regs.h | |
parent | thunderbolt: Add support for XDomain discovery protocol (diff) | |
download | linux-8c6bba10fb9262d7b3a11e86a40621d5b37810a6.tar.xz linux-8c6bba10fb9262d7b3a11e86a40621d5b37810a6.zip |
thunderbolt: Configure interrupt throttling for all interrupts
This will keep the interrupt delivery rate reasonable. The value used
here (128 us) is a recommendation from the hardware people.
This code is based on the work done by Amir Levy and Michael Jamet.
Signed-off-by: Michael Jamet <michael.jamet@intel.com>
Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Reviewed-by: Yehezkel Bernat <yehezkel.bernat@intel.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/thunderbolt/nhi_regs.h')
-rw-r--r-- | drivers/thunderbolt/nhi_regs.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/thunderbolt/nhi_regs.h b/drivers/thunderbolt/nhi_regs.h index 09ed574e92ff..46eff69b19ad 100644 --- a/drivers/thunderbolt/nhi_regs.h +++ b/drivers/thunderbolt/nhi_regs.h @@ -95,6 +95,8 @@ struct ring_desc { #define REG_RING_INTERRUPT_BASE 0x38200 #define RING_INTERRUPT_REG_COUNT(nhi) ((31 + 2 * nhi->hop_count) / 32) +#define REG_INT_THROTTLING_RATE 0x38c00 + /* Interrupt Vector Allocation */ #define REG_INT_VEC_ALLOC_BASE 0x38c40 #define REG_INT_VEC_ALLOC_BITS 4 |