|
@@ -1831,6 +1831,14 @@ struct drm_i915_file_private {
|
|
|
|
|
|
/* Early gen2 have a totally busted CS tlb and require pinned batches. */
|
|
/* Early gen2 have a totally busted CS tlb and require pinned batches. */
|
|
#define HAS_BROKEN_CS_TLB(dev) (IS_I830(dev) || IS_845G(dev))
|
|
#define HAS_BROKEN_CS_TLB(dev) (IS_I830(dev) || IS_845G(dev))
|
|
|
|
+/*
|
|
|
|
+ * dp aux and gmbus irq on gen4 seems to be able to generate legacy interrupts
|
|
|
|
+ * even when in MSI mode. This results in spurious interrupt warnings if the
|
|
|
|
+ * legacy irq no. is shared with another device. The kernel then disables that
|
|
|
|
+ * interrupt source and so prevents the other device from working properly.
|
|
|
|
+ */
|
|
|
|
+#define HAS_AUX_IRQ(dev) (INTEL_INFO(dev)->gen >= 5)
|
|
|
|
+#define HAS_GMBUS_IRQ(dev) (INTEL_INFO(dev)->gen >= 5)
|
|
|
|
|
|
/* With the 945 and later, Y tiling got adjusted so that it was 32 128-byte
|
|
/* With the 945 and later, Y tiling got adjusted so that it was 32 128-byte
|
|
* rows, which changed the alignment requirements and fence programming.
|
|
* rows, which changed the alignment requirements and fence programming.
|