drm/i915: taint the kernel if unsafe module parameters are set
authorJani Nikula <jani.nikula@intel.com>
Tue, 26 Aug 2014 20:54:23 +0000 (06:24 +0930)
committerRusty Russell <rusty@rustcorp.com.au>
Wed, 27 Aug 2014 12:24:09 +0000 (21:54 +0930)
commitfc9740cebc3ab7c65f3c5f6ce0caf3e4969013ca
tree6252efe84a2a0203487e5f35b8ab3993a4b050f0
parent3baee201b06cfaff84c2c5ddc551b192bb3eaed3
drm/i915: taint the kernel if unsafe module parameters are set

Taint the kernel if the semaphores, enable_rc6, enable_fbc, or ppgtt
module parameters are modified. These module parameters are for
debugging and testing only, and should never be changed from their
platform specific default values by the users. We do not provide support
for people enabling all the experimental features. Make this clear by
tainting the kernel if the parameters are set.

Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
drivers/gpu/drm/i915/i915_params.c