drm/i915: Move a bunch of workaround-related code to its own file
authorOscar Mateo <oscar.mateo@intel.com>
Tue, 10 Apr 2018 16:12:46 +0000 (09:12 -0700)
committerChris Wilson <chris@chris-wilson.co.uk>
Wed, 11 Apr 2018 21:47:01 +0000 (22:47 +0100)
commit7d3c425fefb91da7e984a43ba27dff6cdd53758a
treed323829a482b08f44eef90acbf9ffb1368a06ed3
parent15c83c436424adf3fe0365e9085a82da1190c95e
drm/i915: Move a bunch of workaround-related code to its own file

This has grown to be a sizable amount of code, so move it to
its own file before we try to refactor anything. For the moment,
we are leaving behind the WA BB code and the WAs that get applied
(incorrectly) in init_clock_gating, but we will deal with it later.

v2: Use intel_ prefix for code that deals with the hardware (Chris)
v3: Rebased
v4:
  - Rebased
  - New license header
v5:
  - Rebased
  - Added some organisational notes to the file (Chris)
v6: Include DOC section in the documentation build (Jani)

Signed-off-by: Oscar Mateo <oscar.mateo@intel.com>
Cc: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Cc: Jani Nikula <jani.nikula@intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
[ickle: appease checkpatch, mostly]
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: https://patchwork.freedesktop.org/patch/msgid/1523376767-18480-1-git-send-email-oscar.mateo@intel.com
Documentation/gpu/i915.rst
drivers/gpu/drm/i915/Makefile
drivers/gpu/drm/i915/intel_engine_cs.c
drivers/gpu/drm/i915/intel_lrc.c
drivers/gpu/drm/i915/intel_ringbuffer.c
drivers/gpu/drm/i915/intel_ringbuffer.h
drivers/gpu/drm/i915/intel_workarounds.c [new file with mode: 0644]
drivers/gpu/drm/i915/intel_workarounds.h [new file with mode: 0644]