]> git.karo-electronics.de Git - linux-beck.git/commitdiff
drm/i915: Add debug module option for VTd validation
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 1 Apr 2014 07:33:47 +0000 (09:33 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 3 Apr 2014 09:23:11 +0000 (11:23 +0200)
VTd has a few too many "outright disable the damn thing" workarounds
accumulated and for validation we want a simple knob to make sure we
disable them all.

Since this is for bdw+ validation and atm we don't have any
workarounds for bdw this option currently does nothing. So currently
this is just a placeholder to make sure reality will match with the
documented process for our validation people.

v2: Fix up param description (Jani).

v3: Actually git add ...

Cc: Jani Nikula <jani.nikula@linux.intel.com>
Cc: David Woodhouse <dwmw2@infradead.org>
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/i915_params.c

index 0c10b7bd0727b5d2013809bd512a460111c0edef..55addaaa8222010a79fb8ed31377e39a8f9e05d9 100644 (file)
@@ -1923,6 +1923,7 @@ struct i915_params {
        bool prefault_disable;
        bool reset;
        bool disable_display;
+       bool disable_vtd_wa;
 };
 extern struct i915_params i915 __read_mostly;
 
index e1027cc5f0ee5444b3104253f46cf21c9d36b7d4..d05a2afa17dc605acc294e0e15ae88ac200b5093 100644 (file)
@@ -47,6 +47,7 @@ struct i915_params i915 __read_mostly = {
        .invert_brightness = 0,
        .disable_display = 0,
        .enable_cmd_parser = 1,
+       .disable_vtd_wa = 0,
 };
 
 module_param_named(modeset, i915.modeset, int, 0400);
@@ -149,6 +150,9 @@ MODULE_PARM_DESC(invert_brightness,
 module_param_named(disable_display, i915.disable_display, bool, 0600);
 MODULE_PARM_DESC(disable_display, "Disable display (default: false)");
 
+module_param_named(disable_vtd_wa, i915.disable_vtd_wa, bool, 0600);
+MODULE_PARM_DESC(disable_vtd_wa, "Disable all VT-d workarounds (default: false)");
+
 module_param_named(enable_cmd_parser, i915.enable_cmd_parser, int, 0600);
 MODULE_PARM_DESC(enable_cmd_parser,
                 "Enable command parsing (1=enabled [default], 0=disabled)");