[Intel-gfx] [RFC 2/5] Rename skl_plane_id to wm_plane_id

2016-06-01 Thread chix . ding
From: Chi Ding This function will be used not only by SKL but also VLV/CHV. Therefore it's renamed. Signed-off-by: Chi Ding cc: Ville Syrjälä cc: matthew.d.ro...@intel.com cc: yetundex.adeb...@intel.com --- drivers/gpu/drm/i915/intel_pm.c | 59 + 1 fil

[Intel-gfx] [RFC 4/5] Add optimal field in intel_crtc_wm_state for VLV

2016-06-01 Thread chix . ding
From: Maarten Lankhorst This patch prepares for two-level watermark support in the next commit Change the code to use the optimal field This patch adds optimal field, but doesn't change the code to use two-level watermark yet The patch is based on Maarten Lankhorst's code and created by Chi Di

[Intel-gfx] [RFC 5/5] Add intermediate field in intel_crtc_wm_state and handlers for two-level watermark for VLV/CHV

2016-06-01 Thread chix . ding
From: Maarten Lankhorst Rename vlv_compute_wm to vlv_compute_pipe_wm to compute optimal watermark Add vlv_compute_intermediate_wm to computer intermediate watermark Add vlv_initial_watermarks to write intermediate watermark into hardware Add vlv_optimize_watermarks to write optimal watermark into

[Intel-gfx] [RFC 3/5] Move fifo_size from intel_plane_wm_parameters to vlv_wm_state

2016-06-01 Thread chix . ding
From: Maarten Lankhorst This patch doesn't change the code to use two-level watermark yet, With this patch the watermarks are saved for each plane and the wm state, instead of previously only for the plane The patch is based on Maarten Lankhorst's work and created by Chi Ding Signed-off-by: Maa

[Intel-gfx] [RFC 1/5] Remove unused parameters from intel_plane_wm_parameters

2016-06-01 Thread chix . ding
From: Chi Ding Everything except fifo_size is unused and therefore removed This is the first patch of two-level watermark for VLV/CHV v2: Split the first patch of v1 into the following patches - Remove unused parameters from intel_plane_wm_parameters. - Rename skl_plane_id to wm_plane_id. - Mov

[Intel-gfx] Atomic and two-level watermark support for VLV and CHV

2016-06-01 Thread chix . ding
[RFC 1/5] Remove unused parameters from intel_plane_wm_parameters [RFC 2/5] Rename skl_plane_id to wm_plane_id [RFC 3/5] Move fifo_size from intel_plane_wm_parameters to [RFC 4/5] Add optimal field in intel_crtc_wm_state for VLV [RFC 5/5] Add intermediate field in intel_crtc_wm_state and handlers