drm/i915: Add g4x watermark tracepoint
Add a tracepoint for watermark programming on g4x, similar to what we have on vlv/chv. Should help in debugging watermark programming sequence issues. Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Link: http://patchwork.freedesktop.org/patch/msgid/20170421181432.15216-15-ville.syrjala@linux.intel.com Reviewed-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
This commit is contained in:
@@ -913,6 +913,11 @@ static int g4x_tlb_miss_wa(int fifo_size, int width, int cpp)
|
||||
static void g4x_write_wm_values(struct drm_i915_private *dev_priv,
|
||||
const struct g4x_wm_values *wm)
|
||||
{
|
||||
enum pipe pipe;
|
||||
|
||||
for_each_pipe(dev_priv, pipe)
|
||||
trace_g4x_wm(intel_get_crtc_for_pipe(dev_priv, pipe), wm);
|
||||
|
||||
I915_WRITE(DSPFW1,
|
||||
FW_WM(wm->sr.plane, SR) |
|
||||
FW_WM(wm->pipe[PIPE_B].plane[PLANE_CURSOR], CURSORB) |
|
||||
|
Reference in New Issue
Block a user