[Intel-gfx] [PATCH v28 4/6] drm/i915: Add TGL+ SAGV support

2020-05-07 Thread Stanislav Lisovskiy
) - Removed sagv_uv_wm0(Ville) - can_sagv->use_sagv_wm(Ville) Signed-off-by: Stanislav Lisovskiy --- drivers/gpu/drm/i915/display/intel_display.c | 8 +- .../drm/i915/display/intel_display_types.h| 2 + drivers/gpu/drm/i915/intel_pm.c | 118 +- 3 fi

[Intel-gfx] [PATCH v28 1/6] drm/i915: Introduce skl_plane_wm_level accessor.

2020-05-07 Thread Stanislav Lisovskiy
enum values for color plane - Do sizeof for a type what we are memset'ing - Zero out wm_uv as well(Ville Syrjälä) v5: - Fixed rebase conflict caused by COLOR_PLANE_* enum removal v6: - Do not use skl_plane_wm_level accessor in skl_allocate_pipe_ddb Signed-off-by: Stanislav

[Intel-gfx] [PATCH v7 3/7] drm/i915: Check plane configuration properly

2020-05-11 Thread Stanislav Lisovskiy
From: Stanislav Lisovskiy Checking with hweight8 if plane configuration had changed seems to be wrong as different plane configs can result in a same hamming weight. So lets check the bitmask itself. Signed-off-by: Stanislav Lisovskiy --- drivers/gpu/drm/i915/display/intel_display.c | 8

[Intel-gfx] [PATCH v7 0/7] Consider DBuf bandwidth when calculating CDCLK

2020-05-11 Thread Stanislav Lisovskiy
to call it after wm/ddb has been calculated. Stanislav Lisovskiy (7): drm/i915: Decouple cdclk calculation from modeset checks drm/i915: Extract cdclk requirements checking to separate function drm/i915: Check plane configuration properly drm/i915: Plane configuration affects CDCLK in Gen11+

[Intel-gfx] [PATCH v7 4/7] drm/i915: Plane configuration affects CDCLK in Gen11+

2020-05-11 Thread Stanislav Lisovskiy
From: Stanislav Lisovskiy So lets support it. Signed-off-by: Stanislav Lisovskiy --- drivers/gpu/drm/i915/display/intel_display.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/display/intel_display.c b/drivers/gpu/drm/i915/display/intel_display.c

[Intel-gfx] [PATCH v7 1/7] drm/i915: Decouple cdclk calculation from modeset checks

2020-05-11 Thread Stanislav Lisovskiy
to call it after wm/ddb has been calculated. v2: - Extract only intel_modeset_calc_cdclk from intel_modeset_checks (Ville Syrjälä) v3: - Clear plls after intel_modeset_calc_cdclk v4: - Added r-b from previous revision to commit message Reviewed-by: Ville Syrjälä Signed-off-by: Stanislav

[Intel-gfx] [PATCH v7 5/7] drm/i915: Introduce for_each_dbuf_slice_in_mask macro

2020-05-11 Thread Stanislav Lisovskiy
We quite often need now to iterate only particular dbuf slices in mask, whether they are active or related to particular crtc. v2: - Minor code refactoring v3: - Use enum for max slices instead of macro Let's make our life a bit easier and use a macro for that. Signed-off-by: Stan

[Intel-gfx] [PATCH v7 7/7] drm/i915: Remove unneeded hack now for CDCLK

2020-05-11 Thread Stanislav Lisovskiy
No need to bump up CDCLK now, as it is now correctly calculated, accounting for DBuf BW as BSpec says. Reviewed-by: Manasi Navare Signed-off-by: Stanislav Lisovskiy --- drivers/gpu/drm/i915/display/intel_cdclk.c | 12 1 file changed, 12 deletions(-) diff --git a/drivers/gpu/drm

[Intel-gfx] [PATCH v7 2/7] drm/i915: Extract cdclk requirements checking to separate function

2020-05-11 Thread Stanislav Lisovskiy
min cdclk, per DBuf bw can be calculated only after wm/ddb calculation is done and all required planes are added into the state. In order to keep all min_cdclk related checks in one place let's extract it into separate function, checking and modifying any_ms. Signed-off-by: Stanislav Liso

[Intel-gfx] [PATCH v7 6/7] drm/i915: Adjust CDCLK accordingly to our DBuf bw needs

2020-05-11 Thread Stanislav Lisovskiy
tes in order to prevent constant modeset blinking. We could of course not switch back at all, however this is bad from power consumption point of view. v7: - Fixed to track cdclk using bw_state, modeset will be now triggered only when CDCLK change is really needed. Signed-off-

[Intel-gfx] [PATCH v7 6/7] drm/i915: Adjust CDCLK accordingly to our DBuf bw needs

2020-05-12 Thread Stanislav Lisovskiy
lobal state if bw_state->min_cdclk is changed. - Try getting bw_state only if there are crtcs in the commit (need to have read-locked global state) Signed-off-by: Stanislav Lisovskiy --- drivers/gpu/drm/i915/display/intel_bw.c | 82 +++- drivers/gpu/drm/i915/di

[Intel-gfx] [PATCH v29 1/6] drm/i915: Introduce skl_plane_wm_level accessor.

2020-05-13 Thread Stanislav Lisovskiy
wm_uv, which is not used in skl_plane_write_wm(Ville) Signed-off-by: Stanislav Lisovskiy --- drivers/gpu/drm/i915/intel_pm.c | 23 +-- 1 file changed, 21 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/i915/intel_pm.c b/drivers/gpu/drm/i915/intel_pm.c index 416cb1a1e7cb

[Intel-gfx] [PATCH v29 3/6] drm/i915: Make active_pipes check skl specific

2020-05-13 Thread Stanislav Lisovskiy
Seems that only skl needs to have SAGV turned off for multipipe scenarios, so lets do it this way. If anything blows up - we can always revert this patch. v2: Changed if condition to look better (Ville). Signed-off-by: Stanislav Lisovskiy --- drivers/gpu/drm/i915/intel_pm.c | 13

[Intel-gfx] [PATCH v29 2/6] drm/i915: Extract skl SAGV checking

2020-05-13 Thread Stanislav Lisovskiy
specific active_pipes check to be added in the next patch(Ville) v8: - Use more generic intel_crtc_can_enable_sagv for checking(Ville) Signed-off-by: Stanislav Lisovskiy --- drivers/gpu/drm/i915/intel_pm.c | 10 -- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a

[Intel-gfx] [PATCH v29 0/6] SAGV support for Gen12+

2020-05-13 Thread Stanislav Lisovskiy
the series to prevent build failure. v28: PCode patch was merged, one patch was added, sent new series. Stanislav Lisovskiy (6): drm/i915: Introduce skl_plane_wm_level accessor. drm/i915: Extract skl SAGV checking drm/i915: Make active_pipes check skl specific drm/i915: Add TGL+ SAGV

[Intel-gfx] [PATCH v29 4/6] drm/i915: Add TGL+ SAGV support

2020-05-13 Thread Stanislav Lisovskiy
lle) - skl_print_wm_changes improvements(Ville) - Do assignment instead of memcpy in skl_pipe_wm_get_hw_state(Ville) Signed-off-by: Stanislav Lisovskiy --- drivers/gpu/drm/i915/display/intel_display.c | 8 +- .../drm/i915/display/intel_display_types.h| 2 + drivers/gpu/drm/i

[Intel-gfx] [PATCH v29 6/6] drm/i915: Enable SAGV support for Gen12

2020-05-13 Thread Stanislav Lisovskiy
Flip the switch and enable SAGV support for Gen12 also. Signed-off-by: Stanislav Lisovskiy --- drivers/gpu/drm/i915/intel_pm.c | 4 1 file changed, 4 deletions(-) diff --git a/drivers/gpu/drm/i915/intel_pm.c b/drivers/gpu/drm/i915/intel_pm.c index ce5a5262471d..cb70db0cb58b 100644 --- a

[Intel-gfx] [PATCH v29 5/6] drm/i915: Restrict qgv points which don't have enough bandwidth.

2020-05-13 Thread Stanislav Lisovskiy
ille) v21, v22, v23: - Fixed rebase conflict v24: - Changed PCode mask to use ICL_ prefix v25: - Resolved rebase conflict v26: - Removed redundant NULL checks(Ville) - Removed redundant error prints(Ville) Signed-off-by: Stanislav Lisovskiy Cc: Ville Syrjälä Cc: James Aus

[Intel-gfx] [PATCH v30 3/3] drm/i915: Enable SAGV support for Gen12

2020-05-14 Thread Stanislav Lisovskiy
Flip the switch and enable SAGV support for Gen12 also. Signed-off-by: Stanislav Lisovskiy --- drivers/gpu/drm/i915/intel_pm.c | 4 1 file changed, 4 deletions(-) diff --git a/drivers/gpu/drm/i915/intel_pm.c b/drivers/gpu/drm/i915/intel_pm.c index f34dca8b13fb..f4469d730d9b 100644 --- a

[Intel-gfx] [PATCH v30 1/3] drm/i915: Add TGL+ SAGV support

2020-05-14 Thread Stanislav Lisovskiy
in skl_pipe_wm_get_hw_state(Ville) Signed-off-by: Stanislav Lisovskiy --- drivers/gpu/drm/i915/display/intel_display.c | 8 +- .../drm/i915/display/intel_display_types.h| 2 + drivers/gpu/drm/i915/intel_pm.c | 110 +++--- 3 files changed, 101 insertions(+), 19 deleti

[Intel-gfx] [PATCH v30 0/3] SAGV support for Gen12+

2020-05-14 Thread Stanislav Lisovskiy
the series to prevent build failure. v28: PCode patch was merged, one patch was added, sent new series. v30: 3 patches merged, resending the rest with comments fixed Stanislav Lisovskiy (3): drm/i915: Add TGL+ SAGV support drm/i915: Restrict qgv points which don't have enough band

[Intel-gfx] [PATCH v30 2/3] drm/i915: Restrict qgv points which don't have enough bandwidth.

2020-05-14 Thread Stanislav Lisovskiy
eckpatch Line over 100 warns to be fixed together with existing code style. Signed-off-by: Stanislav Lisovskiy Cc: Ville Syrjälä Cc: James Ausmus --- drivers/gpu/drm/i915/display/intel_bw.c | 137 +- drivers/gpu/drm/i915/display/intel_bw.h | 9 ++ .

[Intel-gfx] [PATCH v8 0/7] Consider DBuf bandwidth when calculating CDCLK

2020-05-14 Thread Stanislav Lisovskiy
fy BW requirements, will allow us to save power when it is possible and gain additional bandwidth when it's needed - i.e boosting both our power management and perfomance capabilities. Stanislav Lisovskiy (7): drm/i915: Decouple cdclk calculation from modeset checks drm/i915: Ext

[Intel-gfx] [PATCH v8 3/7] drm/i915: Check plane configuration properly

2020-05-14 Thread Stanislav Lisovskiy
From: Stanislav Lisovskiy Checking with hweight8 if plane configuration had changed seems to be wrong as different plane configs can result in a same hamming weight. So lets check the bitmask itself. Signed-off-by: Stanislav Lisovskiy --- drivers/gpu/drm/i915/display/intel_display.c | 8

[Intel-gfx] [PATCH v8 5/7] drm/i915: Introduce for_each_dbuf_slice_in_mask macro

2020-05-14 Thread Stanislav Lisovskiy
We quite often need now to iterate only particular dbuf slices in mask, whether they are active or related to particular crtc. v2: - Minor code refactoring v3: - Use enum for max slices instead of macro Let's make our life a bit easier and use a macro for that. Signed-off-by: Stan

[Intel-gfx] [PATCH v8 4/7] drm/i915: Plane configuration affects CDCLK in Gen11+

2020-05-14 Thread Stanislav Lisovskiy
From: Stanislav Lisovskiy So lets support it. Signed-off-by: Stanislav Lisovskiy --- drivers/gpu/drm/i915/display/intel_display.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/display/intel_display.c b/drivers/gpu/drm/i915/display/intel_display.c

[Intel-gfx] [PATCH v8 6/7] drm/i915: Adjust CDCLK accordingly to our DBuf bw needs

2020-05-14 Thread Stanislav Lisovskiy
lobal state if bw_state->min_cdclk is changed. - Try getting bw_state only if there are crtcs in the commit (need to have read-locked global state) v9: - Do not do Dbuf bw check for gens < 9 - triggers WARN as ddb_size is 0. Signed-off-by: Stanislav Lisovskiy --- drivers/gp

[Intel-gfx] [PATCH v8 2/7] drm/i915: Extract cdclk requirements checking to separate function

2020-05-14 Thread Stanislav Lisovskiy
min cdclk, per DBuf bw can be calculated only after wm/ddb calculation is done and all required planes are added into the state. In order to keep all min_cdclk related checks in one place let's extract it into separate function, checking and modifying any_ms. Signed-off-by: Stanislav Liso

[Intel-gfx] [PATCH v8 1/7] drm/i915: Decouple cdclk calculation from modeset checks

2020-05-14 Thread Stanislav Lisovskiy
to call it after wm/ddb has been calculated. v2: - Extract only intel_modeset_calc_cdclk from intel_modeset_checks (Ville Syrjälä) v3: - Clear plls after intel_modeset_calc_cdclk v4: - Added r-b from previous revision to commit message Reviewed-by: Ville Syrjälä Signed-off-by: Stanislav

[Intel-gfx] [PATCH v8 7/7] drm/i915: Remove unneeded hack now for CDCLK

2020-05-14 Thread Stanislav Lisovskiy
No need to bump up CDCLK now, as it is now correctly calculated, accounting for DBuf BW as BSpec says. Reviewed-by: Manasi Navare Signed-off-by: Stanislav Lisovskiy --- drivers/gpu/drm/i915/display/intel_cdclk.c | 12 1 file changed, 12 deletions(-) diff --git a/drivers/gpu/drm

[Intel-gfx] [PATCH v8 6/7] drm/i915: Adjust CDCLK accordingly to our DBuf bw needs

2020-05-14 Thread Stanislav Lisovskiy
lobal state if bw_state->min_cdclk is changed. - Try getting bw_state only if there are crtcs in the commit (need to have read-locked global state) v9: - Do not do Dbuf bw check for gens < 9 - triggers WARN as ddb_size is 0. v10: - Lock global state for older gens as well. Signe

[Intel-gfx] [PATCH v9 3/7] drm/i915: Check plane configuration properly

2020-05-19 Thread Stanislav Lisovskiy
From: Stanislav Lisovskiy Checking with hweight8 if plane configuration had changed seems to be wrong as different plane configs can result in a same hamming weight. So lets check the bitmask itself. Reviewed-by: Manasi Navare Signed-off-by: Stanislav Lisovskiy --- drivers/gpu/drm/i915

[Intel-gfx] [PATCH v9 5/7] drm/i915: Introduce for_each_dbuf_slice_in_mask macro

2020-05-19 Thread Stanislav Lisovskiy
avare Signed-off-by: Stanislav Lisovskiy --- drivers/gpu/drm/i915/display/intel_display.h | 7 +++ drivers/gpu/drm/i915/display/intel_display_power.h | 1 + 2 files changed, 8 insertions(+) diff --git a/drivers/gpu/drm/i915/display/intel_display.h b/drivers/gpu/drm/i915/display/intel_disp

[Intel-gfx] [PATCH v9 0/7] Consider DBuf bandwidth when calculating CDCLK

2020-05-19 Thread Stanislav Lisovskiy
to call it after wm/ddb has been calculated. Stanislav Lisovskiy (7): drm/i915: Decouple cdclk calculation from modeset checks drm/i915: Extract cdclk requirements checking to separate function drm/i915: Check plane configuration properly drm/i915: Plane configuration affects CDCLK in Gen11+

[Intel-gfx] [PATCH v9 1/7] drm/i915: Decouple cdclk calculation from modeset checks

2020-05-19 Thread Stanislav Lisovskiy
to call it after wm/ddb has been calculated. v2: - Extract only intel_modeset_calc_cdclk from intel_modeset_checks (Ville Syrjälä) v3: - Clear plls after intel_modeset_calc_cdclk v4: - Added r-b from previous revision to commit message Reviewed-by: Ville Syrjälä Signed-off-by: Stanislav

[Intel-gfx] [PATCH v9 2/7] drm/i915: Extract cdclk requirements checking to separate function

2020-05-19 Thread Stanislav Lisovskiy
d-off-by: Stanislav Lisovskiy --- drivers/gpu/drm/i915/display/intel_display.c | 30 ++-- 1 file changed, 22 insertions(+), 8 deletions(-) diff --git a/drivers/gpu/drm/i915/display/intel_display.c b/drivers/gpu/drm/i915/display/intel_display.c index 005e324d0582..e93a553a344d 1

[Intel-gfx] [PATCH v9 6/7] drm/i915: Adjust CDCLK accordingly to our DBuf bw needs

2020-05-19 Thread Stanislav Lisovskiy
Define new bw_calc_min_cdclk hook, instead of using a condition(Manasi Navare) Signed-off-by: Stanislav Lisovskiy --- drivers/gpu/drm/i915/display/intel_bw.c | 118 ++- drivers/gpu/drm/i915/display/intel_bw.h | 10 ++ drivers/gpu/drm/i915/display/intel_cdclk.c

[Intel-gfx] [PATCH v9 7/7] drm/i915: Remove unneeded hack now for CDCLK

2020-05-19 Thread Stanislav Lisovskiy
No need to bump up CDCLK now, as it is now correctly calculated, accounting for DBuf BW as BSpec says. Reviewed-by: Manasi Navare Signed-off-by: Stanislav Lisovskiy --- drivers/gpu/drm/i915/display/intel_cdclk.c | 12 1 file changed, 12 deletions(-) diff --git a/drivers/gpu/drm

[Intel-gfx] [PATCH v9 4/7] drm/i915: Plane configuration affects CDCLK in Gen11+

2020-05-19 Thread Stanislav Lisovskiy
From: Stanislav Lisovskiy So lets support it. Reviewed-by: Manasi Navare Signed-off-by: Stanislav Lisovskiy --- drivers/gpu/drm/i915/display/intel_display.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/display/intel_display.c b/drivers/gpu/drm

[Intel-gfx] [PATCH v9 6/7] drm/i915: Adjust CDCLK accordingly to our DBuf bw needs

2020-05-19 Thread Stanislav Lisovskiy
Define new bw_calc_min_cdclk hook, instead of using a condition(Manasi Navare) v12: - Fixed rebase conflict Signed-off-by: Stanislav Lisovskiy --- drivers/gpu/drm/i915/display/intel_bw.c | 119 ++- drivers/gpu/drm/i915/display/intel_bw.h | 10 ++ drivers/gpu/d

[Intel-gfx] [PATCH v9 3/7] drm/i915: Check plane configuration properly

2020-05-20 Thread Stanislav Lisovskiy
Checking with hweight8 if plane configuration had changed seems to be wrong as different plane configs can result in a same hamming weight. So lets check the bitmask itself. v2: Fixed "from" field which got corrupted for some weird reason Reviewed-by: Manasi Navare Signed-off-by:

[Intel-gfx] [PATCH v9 4/7] drm/i915: Plane configuration affects CDCLK in Gen11+

2020-05-20 Thread Stanislav Lisovskiy
So lets support it. v2: - Fixed "from" field which got corrupted for some weird reason Reviewed-by: Manasi Navare Signed-off-by: Stanislav Lisovskiy --- drivers/gpu/drm/i915/display/intel_display.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gp

[Intel-gfx] [PATCH v9 6/7] drm/i915: Adjust CDCLK accordingly to our DBuf bw needs

2020-05-20 Thread Stanislav Lisovskiy
Define new bw_calc_min_cdclk hook, instead of using a condition(Manasi Navare) v12: - Fixed rebase conflict v13: - Added spaces after declarations to make checkpatch happy. Signed-off-by: Stanislav Lisovskiy Reviewed-by: Manasi Navare --- drivers/gpu/drm/i915/

[Intel-gfx] [PATCH v1] drm/i915: Fix includes and local vars order

2020-05-22 Thread Stanislav Lisovskiy
Removed duplicate include and fixed comment > 80 chars. Signed-off-by: Stanislav Lisovskiy --- drivers/gpu/drm/i915/display/intel_bw.c| 43 -- drivers/gpu/drm/i915/display/intel_bw.h| 2 +- drivers/gpu/drm/i915/display/intel_cdclk.c | 2 +- drivers/gpu/drm/i

[Intel-gfx] [PATCH v2] drm/i915: Fix includes and local vars order

2020-05-22 Thread Stanislav Lisovskiy
Removed duplicate include and fixed comment > 80 chars. v2: Added newline after system include and between functions Reviewed-by: Chris Wilson Signed-off-by: Stanislav Lisovskiy --- drivers/gpu/drm/i915/display/intel_bw.c| 44 -- drivers/gpu/drm/i915/display/intel_b

[Intel-gfx] [PATCH v1] drm/i915: Fix wrong CDCLK adjustment changes

2020-05-26 Thread Stanislav Lisovskiy
using the issues in test, however not clear - anyway marking this as fixing the "Adjust CDCLK accordingly to our DBuf bw needs". Signed-off-by: Stanislav Lisovskiy Fixes: cd1915460861 ("Adjust CDCLK accordingly to our DBuf bw needs") --- drivers/gpu/drm/i915/dis

[Intel-gfx] [PATCH v1] drm/i915: Minor link training logic fixes for dp_mst

2020-05-27 Thread Stanislav Lisovskiy
link retraining when needed. There were some issues, when we had several problems with dp mst and at the same time the log was floode by messages about "channel eq not ok, need retraining" however the actual training seems to be never done. Signed-off-by: Stanislav Lisovskiy --- drive

[Intel-gfx] [PATCH v2] drm/i915: Fix wrong CDCLK adjustment changes

2020-06-01 Thread Stanislav Lisovskiy
using the issues in test, however not clear - anyway marking this as fixing the "Adjust CDCLK accordingly to our DBuf bw needs". v2: - s/pipe/crtc->pipe/ - save a bit of instructions by skipping inactive pipes, without getting 0 DBuf slice mask for it. Signed-off-by: S

[Intel-gfx] [PATCH] Revert "drm/i915: Remove unneeded hack now for CDCLK"

2020-06-08 Thread Stanislav Lisovskiy
This reverts commit 82ea174dc5425d4e85e25d0c4ba961a2e494392a. Signed-off-by: Stanislav Lisovskiy Fixes: cd1915460861 ("drm/i915: Adjust CDCLK accordingly to our DBuf bw needs") --- drivers/gpu/drm/i915/display/intel_cdclk.c | 12 1 file changed, 12 insertions(+) di

[Intel-gfx] [PATCH v1] drm/i915: Clamp min_cdclk to max_cdclk_freq to unblock 8K

2020-06-30 Thread Stanislav Lisovskiy
We still need "Bump up CDCLK" workaround otherwise getting underruns - however currently it blocks 8K as CDCLK = Pixel rate, in 8K case would require CDCLK to be around 1 Ghz which is not possible. Signed-off-by: Stanislav Lisovskiy --- drivers/gpu/drm/i915/display/intel_cd

[Intel-gfx] [PATCH v2] drm/i915: Clamp min_cdclk to max_cdclk_freq to unblock 8K

2020-07-02 Thread Stanislav Lisovskiy
le Syrjälä) - Use type specific min_t, max_t(Ville Syrjälä) Signed-off-by: Stanislav Lisovskiy --- drivers/gpu/drm/i915/display/intel_cdclk.c | 11 +-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/i915/display/intel_cdclk.c b/drivers/gpu/drm/i915/display/int

[Intel-gfx] [PATCH v16 4/7] drm/i915: Refactor intel_can_enable_sagv

2020-02-19 Thread Stanislav Lisovskiy
if bw_state hasn't changed. Signed-off-by: Stanislav Lisovskiy Cc: Ville Syrjälä Cc: James Ausmus --- drivers/gpu/drm/i915/display/intel_bw.h | 18 + drivers/gpu/drm/i915/display/intel_display.c | 22 +- .../drm/i915/display/intel_display_types.h| 2 + .../gpu/drm/i915

[Intel-gfx] [PATCH v17 5/7] drm/i915: Added required new PCode commands

2020-02-20 Thread Stanislav Lisovskiy
We need a new PCode request commands and reply codes to be added as a prepartion patch for QGV points restricting for new SAGV support. v2: - Extracted those changes into separate patch (Ville Syrjälä) Signed-off-by: Stanislav Lisovskiy --- drivers/gpu/drm/i915/i915_reg.h | 4

[Intel-gfx] [PATCH v17 4/7] drm/i915: Refactor intel_can_enable_sagv

2020-02-20 Thread Stanislav Lisovskiy
if bw_state hasn't changed. Signed-off-by: Stanislav Lisovskiy Cc: Ville Syrjälä Cc: James Ausmus --- drivers/gpu/drm/i915/display/intel_bw.h | 18 + drivers/gpu/drm/i915/display/intel_display.c | 22 +- .../drm/i915/display/intel_display_types.h| 2 + .../gpu/drm/i915

[Intel-gfx] [PATCH v17 2/7] drm/i915: Introduce skl_plane_wm_level accessor.

2020-02-20 Thread Stanislav Lisovskiy
is will be changed in next coming patches from this series. v2: - plane_id -> plane->id(Ville Syrjälä) - Moved wm_level var to have more local scope (Ville Syrjälä) - Renamed yuv to color_plane(Ville Syrjälä) in skl_plane_wm_level Signed-off-by: Stanislav Lisovskiy ---

[Intel-gfx] [PATCH v17 3/7] drm/i915: Init obj state in intel_atomic_get_old/new_global_obj_state

2020-02-20 Thread Stanislav Lisovskiy
intel_atomic_get_old_global_obj_state and intel_atomic_get_new_global_obj_state v2: - Fixed typo in function call Signed-off-by: Stanislav Lisovskiy --- drivers/gpu/drm/i915/display/intel_bw.c | 28 - drivers/gpu/drm/i915/display/intel_bw.h | 9 2 files changed, 36

[Intel-gfx] [PATCH v17 6/7] drm/i915: Restrict qgv points which don't have enough bandwidth.

2020-02-20 Thread Stanislav Lisovskiy
bw state in a wrong way. v15: - Added TODO comment for near atomic global state locking in bw code. Signed-off-by: Stanislav Lisovskiy Cc: Ville Syrjälä Cc: James Ausmus --- drivers/gpu/drm/i915/display/intel_bw.c | 177 ++- drivers/gpu/drm/i915/display/intel_bw

[Intel-gfx] [PATCH v17 7/7] drm/i915: Enable SAGV support for Gen12

2020-02-20 Thread Stanislav Lisovskiy
Flip the switch and enable SAGV support for Gen12 also. Signed-off-by: Stanislav Lisovskiy --- drivers/gpu/drm/i915/intel_pm.c | 4 1 file changed, 4 deletions(-) diff --git a/drivers/gpu/drm/i915/intel_pm.c b/drivers/gpu/drm/i915/intel_pm.c index 2aafd2b07e4a..6d4240f260a9 100644 --- a

[Intel-gfx] [PATCH v17 0/7] Refactor Gen11+ SAGV support

2020-02-20 Thread Stanislav Lisovskiy
intel_can_enable_sagv function, as current seems to be outdated and using skl specific workarounds, also not following BSpec for Gen11+. v17: Had to rebase the whole series. Stanislav Lisovskiy (7): drm/i915: Start passing latency as parameter drm/i915: Introduce skl_plane_wm_level accessor. drm

[Intel-gfx] [PATCH v17 1/7] drm/i915: Start passing latency as parameter

2020-02-20 Thread Stanislav Lisovskiy
We need to start passing memory latency as a parameter when calculating plane wm levels, as latency can get changed in different circumstances(for example with or without SAGV). So we need to be more flexible on that matter. Signed-off-by: Stanislav Lisovskiy --- drivers/gpu/drm/i915/intel_pm.c

[Intel-gfx] [PATCH v1] drm/i915: Use intel_plane_data_rate for min_cdclk calculation

2020-02-20 Thread Stanislav Lisovskiy
ata_rate as a basis from there as well. Signed-off-by: Stanislav Lisovskiy --- .../gpu/drm/i915/display/intel_atomic_plane.c | 16 ++- drivers/gpu/drm/i915/display/intel_sprite.c | 46 +++ 2 files changed, 41 insertions(+), 21 deletions(-) diff --git a/drivers/gpu/drm

[Intel-gfx] [PATCH v2] drm/i915: Use intel_plane_data_rate for min_cdclk calculation

2020-02-20 Thread Stanislav Lisovskiy
ata_rate as a basis from there as well. v2: - Don't use 64 division if not needed(Ville Syrjälä) - Now use intel_plane_pixel_rate as a basis for calculations both at intel_plane_data_rate and skl_plane_min_cdclk(Ville Syrjälä) Signed-off-by: Stanislav Lisovskiy --- .../gp

[Intel-gfx] [PATCH v17 4/7] drm/i915: Refactor intel_can_enable_sagv

2020-02-21 Thread Stanislav Lisovskiy
sagv function. Fix that by just analyzing the current global bw_state object - because we simply have no other objects related to that. Signed-off-by: Stanislav Lisovskiy Cc: Ville Syrjälä Cc: James Ausmus --- drivers/gpu/drm/i915/display/intel_bw.h | 18 + drivers/gpu/drm

[Intel-gfx] [PATCH v3] drm/i915: Use intel_plane_data_rate for min_cdclk calculation

2020-02-21 Thread Stanislav Lisovskiy
rate to pixel_rate at intel_plane_pixel_rate callsites Signed-off-by: Stanislav Lisovskiy --- .../gpu/drm/i915/display/intel_atomic_plane.c | 22 +- .../gpu/drm/i915/display/intel_atomic_plane.h | 3 +++ drivers/gpu/drm/i915/display/intel_sprite.c | 23 +-

[Intel-gfx] [PATCH v18 1/8] drm/i915: Start passing latency as parameter

2020-02-24 Thread Stanislav Lisovskiy
We need to start passing memory latency as a parameter when calculating plane wm levels, as latency can get changed in different circumstances(for example with or without SAGV). So we need to be more flexible on that matter. Signed-off-by: Stanislav Lisovskiy --- drivers/gpu/drm/i915/intel_pm.c

[Intel-gfx] [PATCH v18 2/8] drm/i915: Introduce skl_plane_wm_level accessor.

2020-02-24 Thread Stanislav Lisovskiy
is will be changed in next coming patches from this series. v2: - plane_id -> plane->id(Ville Syrjälä) - Moved wm_level var to have more local scope (Ville Syrjälä) - Renamed yuv to color_plane(Ville Syrjälä) in skl_plane_wm_level Signed-off-by: Stanislav Lisovskiy ---

[Intel-gfx] [PATCH v18 0/8] Refactor Gen11+ SAGV support

2020-02-24 Thread Stanislav Lisovskiy
intel_can_enable_sagv function, as current seems to be outdated and using skl specific workarounds, also not following BSpec for Gen11+. v17: Had to rebase the whole series. v18: Resent whole series as new patch was introduced. Stanislav Lisovskiy (8): drm/i915: Start passing latency as parameter drm

[Intel-gfx] [PATCH v18 3/8] drm/i915: Add intel_bw_get_*_state helpers

2020-02-24 Thread Stanislav Lisovskiy
Add correspondent helpers to be able to get old/new bandwidth global state object. v2: - Fixed typo in function call v3: - Changed new functions naming to use convention proposed by Jani Nikula, i.e intel_bw_* in intel_bw.c file. Signed-off-by: Stanislav Lisovskiy --- drivers/gpu/drm

[Intel-gfx] [PATCH v18 6/8] drm/i915: Added required new PCode commands

2020-02-24 Thread Stanislav Lisovskiy
We need a new PCode request commands and reply codes to be added as a prepartion patch for QGV points restricting for new SAGV support. v2: - Extracted those changes into separate patch (Ville Syrjälä) Signed-off-by: Stanislav Lisovskiy --- drivers/gpu/drm/i915/i915_reg.h | 4

[Intel-gfx] [PATCH v18 4/8] drm/i915: Introduce more *_state_changed indicators

2020-02-24 Thread Stanislav Lisovskiy
hanged. active_pipe_changes just indicate whether there was some pipe added or removed. Then we evaluate if wm/ddb had been changed. Same for sagv/bw state. ddb changes may or may not affect if out bandwidth constraints have been changed. Signed-off-by: Stanislav Lisovskiy --- drivers/gpu/drm/i915/display/intel_at

[Intel-gfx] [PATCH v18 7/8] drm/i915: Restrict qgv points which don't have enough bandwidth.

2020-02-24 Thread Stanislav Lisovskiy
bw state in a wrong way. v15: - Added TODO comment for near atomic global state locking in bw code. v16: - Fixed intel_atomic_bw_* functions to be intel_bw_* as discussed with Jani Nikula. - Take bw_state_changed flag into use. Signed-off-by: Stanislav Lisovskiy Cc: Ville

[Intel-gfx] [PATCH v18 8/8] drm/i915: Enable SAGV support for Gen12

2020-02-24 Thread Stanislav Lisovskiy
Flip the switch and enable SAGV support for Gen12 also. Signed-off-by: Stanislav Lisovskiy --- drivers/gpu/drm/i915/intel_pm.c | 4 1 file changed, 4 deletions(-) diff --git a/drivers/gpu/drm/i915/intel_pm.c b/drivers/gpu/drm/i915/intel_pm.c index 853fc9e9084d..fe2873af7f4b 100644 --- a

[Intel-gfx] [PATCH v18 5/8] drm/i915: Refactor intel_can_enable_sagv

2020-02-24 Thread Stanislav Lisovskiy
.(Jani Nikula) - Taken ddb_state_changed and bw_state_changed into use. Signed-off-by: Stanislav Lisovskiy Cc: Ville Syrjälä Cc: James Ausmus --- drivers/gpu/drm/i915/display/intel_bw.h | 18 + drivers/gpu/drm/i915/display/intel_display.c | 27 +- .../drm/i915/display/intel_di

[Intel-gfx] [PATCH v18 4/8] drm/i915: Introduce more *_state_changed indicators

2020-02-25 Thread Stanislav Lisovskiy
off-by: Stanislav Lisovskiy --- drivers/gpu/drm/i915/display/intel_atomic.c | 2 ++ drivers/gpu/drm/i915/display/intel_bw.c | 28 ++-- drivers/gpu/drm/i915/display/intel_display.c | 16 ++ .../drm/i915/display/intel_display_types.h| 32 --- drivers/g

[Intel-gfx] [PATCH v18 5/8] drm/i915: Refactor intel_can_enable_sagv

2020-02-25 Thread Stanislav Lisovskiy
.(Jani Nikula) - Taken ddb_state_changed and bw_state_changed into use. v14: - total_affected_planes is no longer needed to check for ddb changes, just as active_pipe_changes. Signed-off-by: Stanislav Lisovskiy Cc: Ville Syrjälä Cc: James Ausmus --- drivers/gpu/drm/i915/displ

[Intel-gfx] [PATCH v18 7/8] drm/i915: Restrict qgv points which don't have enough bandwidth.

2020-02-25 Thread Stanislav Lisovskiy
bw state in a wrong way. v15: - Added TODO comment for near atomic global state locking in bw code. v16: - Fixed intel_atomic_bw_* functions to be intel_bw_* as discussed with Jani Nikula. - Take bw_state_changed flag into use. Signed-off-by: Stanislav Lisovskiy Cc: Ville

[Intel-gfx] [PATCH v4] drm/i915: Use intel_plane_data_rate for min_cdclk calculation

2020-02-26 Thread Stanislav Lisovskiy
rate to pixel_rate at intel_plane_pixel_rate callsites v4: - Renamed skl_plane_ratio function back(Ville Syrjälä) Signed-off-by: Stanislav Lisovskiy --- .../gpu/drm/i915/display/intel_atomic_plane.c | 28 ++- .../gpu/drm/i915/display/intel_atomic_plane.h | 3 ++ drivers/gp

[Intel-gfx] [PATCH v18 5/8] drm/i915: Refactor intel_can_enable_sagv

2020-02-27 Thread Stanislav Lisovskiy
.(Jani Nikula) - Taken ddb_state_changed and bw_state_changed into use. v14: - total_affected_planes is no longer needed to check for ddb changes, just as active_pipe_changes. v15: - Fixed stupid mistake with uninitialized crtc in skl_compute_sagv_mask. Signed-off-by: Stanislav

[Intel-gfx] [PATCH v5] drm/i915: Use intel_plane_data_rate for min_cdclk calculation

2020-02-27 Thread Stanislav Lisovskiy
g divide error. Signed-off-by: Stanislav Lisovskiy --- .../gpu/drm/i915/display/intel_atomic_plane.c | 26 ++- .../gpu/drm/i915/display/intel_atomic_plane.h | 3 +++ drivers/gpu/drm/i915/display/intel_sprite.c | 15 ++- 3 files changed, 30 insertions(+), 14 deletions(-

[Intel-gfx] [PATCH v6] drm/i915: Use intel_plane_data_rate for min_cdclk calculation

2020-02-27 Thread Stanislav Lisovskiy
using divide error. v6: - Removed useless warn in intel_plane_pixel_rate(Ville Syrjälä) - Fixed alignment in intel_plane_data_rate(Ville Syrjälä) - Changed pixel_rate type to be unsigned int in skl_plane_min_cdclk(Ville Syrjälä) Signed-off-by: Stanislav Lisovskiy --- .

[Intel-gfx] [PATCH v19 1/8] drm/i915: Start passing latency as parameter

2020-03-09 Thread Stanislav Lisovskiy
We need to start passing memory latency as a parameter when calculating plane wm levels, as latency can get changed in different circumstances(for example with or without SAGV). So we need to be more flexible on that matter. Reviewed-by: Ville Syrjälä Signed-off-by: Stanislav Lisovskiy

[Intel-gfx] [PATCH v19 4/8] drm/i915: Refactor intel_can_enable_sagv

2020-03-09 Thread Stanislav Lisovskiy
l and not possible(cursor legacy updates) Querying for bw_state object from global state is not possible as it might get swapped with other global state. So... just sticked can_sagv boolean into wm crtc state. Signed-off-by: Stanislav Lisovskiy Cc: Ville Syrjälä Cc: James Ausmus

[Intel-gfx] [PATCH v19 3/8] drm/i915: Add intel_bw_get_*_state helpers

2020-03-09 Thread Stanislav Lisovskiy
Add correspondent helpers to be able to get old/new bandwidth global state object. v2: - Fixed typo in function call v3: - Changed new functions naming to use convention proposed by Jani Nikula, i.e intel_bw_* in intel_bw.c file. Signed-off-by: Stanislav Lisovskiy --- drivers/gpu/drm

[Intel-gfx] [PATCH v19 0/8] Refactor Gen11+ SAGV support

2020-03-09 Thread Stanislav Lisovskiy
intel_can_enable_sagv function, as current seems to be outdated and using skl specific workarounds, also not following BSpec for Gen11+. v17: Had to rebase the whole series. v19: Added some new patches in between, rebased Stanislav Lisovskiy (8): drm/i915: Start passing latency as parameter drm/i915

[Intel-gfx] [PATCH v19 7/8] drm/i915: Restrict qgv points which don't have enough bandwidth.

2020-03-09 Thread Stanislav Lisovskiy
to SAGV code, as those are semantically related(Ville Syrjälä) - Renamed those into intel_sagv_(pre)|(post)_plane_update (Ville Syrjälä) Signed-off-by: Stanislav Lisovskiy Cc: Ville Syrjälä Cc: James Ausmus --- drivers/gpu/drm/i915/display/intel_bw.c | 147 ++

[Intel-gfx] [PATCH v19 6/8] drm/i915: Rename bw_state to new_bw_state

2020-03-09 Thread Stanislav Lisovskiy
That is a preparation patch before next one where we introduce old_bw_state and a bunch of other changes as well. In a review comment it was suggested to split out at least that renaming into a separate patch, what is done here. Signed-off-by: Stanislav Lisovskiy --- drivers/gpu/drm/i915

[Intel-gfx] [PATCH v19 5/8] drm/i915: Added required new PCode commands

2020-03-09 Thread Stanislav Lisovskiy
We need a new PCode request commands and reply codes to be added as a prepartion patch for QGV points restricting for new SAGV support. v2: - Extracted those changes into separate patch (Ville Syrjälä) Signed-off-by: Stanislav Lisovskiy --- drivers/gpu/drm/i915/i915_reg.h | 4

[Intel-gfx] [PATCH v19 2/8] drm/i915: Introduce skl_plane_wm_level accessor.

2020-03-09 Thread Stanislav Lisovskiy
s time for real, Ville Syrjälä) - Changed colorplane id type from boolean to int as index (Ville Syrjälä) - Moved crtc_state param so that it is first now (Ville Syrjälä) - Moved wm_level declaration to tigher scope in skl_write_plane_wm(Ville Syrjälä) Signed-off-b

[Intel-gfx] [PATCH v19 8/8] drm/i915: Enable SAGV support for Gen12

2020-03-09 Thread Stanislav Lisovskiy
Flip the switch and enable SAGV support for Gen12 also. Signed-off-by: Stanislav Lisovskiy --- drivers/gpu/drm/i915/intel_pm.c | 4 1 file changed, 4 deletions(-) diff --git a/drivers/gpu/drm/i915/intel_pm.c b/drivers/gpu/drm/i915/intel_pm.c index 4ec4dbba022f..a8a01a980b8f 100644 --- a

[Intel-gfx] [PATCH xf86-video-intel v6] sna: Added AYUV format support for textured and sprite video adapters.

2018-11-02 Thread Stanislav Lisovskiy
sampling values for XVIMAGE_AYUV - Fixed sprite format checking order and images_ayuv definition. Signed-off-by: Stanislav Lisovskiy --- src/render_program/Makefile.am| 2 + .../exa_wm_src_sample_argb_ayuv.g8a | 76 .../exa_wm_src_sample_argb_ayuv.g8b

[Intel-gfx] [PATCH] drm: Check if primary mst is null

2018-11-07 Thread Stanislav Lisovskiy
mutex doesn't protect against that as it might just get assigned to NULL right before, not simultaneously. There are currently bugs 107738, 108816 bugs which crash in drm_dp_get_mst_branch_device, caused by this issue. Signed-off-by: Stanislav Lisovskiy --- drivers/gpu/drm/drm_dp_mst_top

[Intel-gfx] [PATCH v2] drm: Check if primary mst is null

2018-11-08 Thread Stanislav Lisovskiy
bug numbers(second was 108616, but not 108816) and added links. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=108616 Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=107738 Signed-off-by: Stanislav Lisovskiy --- drivers/gpu/drm/drm_dp_mst_topology.c | 3 +++ 1 file changed, 3

[Intel-gfx] [PATCH v12 0/2] Add XYUV format support

2018-11-08 Thread Stanislav Lisovskiy
Introduced new XYUV scan-in format for framebuffer and added support for it to i915(SkyLake+). Stanislav Lisovskiy (2): drm: Introduce new DRM_FORMAT_XYUV drm/i915: Adding YUV444 packed format support for skl+ drivers/gpu/drm/drm_fourcc.c | 1 + drivers/gpu/drm/i915/i915_reg.h

[Intel-gfx] [PATCH v12 1/2] drm: Introduce new DRM_FORMAT_XYUV

2018-11-08 Thread Stanislav Lisovskiy
ed-by: Alexandru Gheorghe Signed-off-by: Stanislav Lisovskiy --- drivers/gpu/drm/drm_fourcc.c | 1 + include/uapi/drm/drm_fourcc.h | 1 + 2 files changed, 2 insertions(+) diff --git a/drivers/gpu/drm/drm_fourcc.c b/drivers/gpu/drm/drm_fourcc.c index 3934527e09dc..965464e550e1 100644 --- a/drivers/gp

[Intel-gfx] [PATCH v12 2/2] drm/i915: Adding YUV444 packed format support for skl+

2018-11-08 Thread Stanislav Lisovskiy
ned-off-by: Stanislav Lisovskiy --- drivers/gpu/drm/i915/i915_reg.h | 2 +- drivers/gpu/drm/i915/intel_display.c | 12 drivers/gpu/drm/i915/intel_sprite.c | 3 +++ 3 files changed, 16 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/i915_reg.h b/drivers/gp

[Intel-gfx] [PATCH v2] drm: Check if primary mst is null

2018-11-09 Thread Stanislav Lisovskiy
bug numbers(second was 108616, but not 108816) and added links. Reviewed-by: Lyude Paul Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=108616 Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=107738 Signed-off-by: Stanislav Lisovskiy --- drivers/gpu/drm/drm_dp_mst_topology.c | 3

[Intel-gfx] [PATCH v12 0/2] Add XYUV format support

2018-11-09 Thread Stanislav Lisovskiy
Introduced new XYUV scan-in format for framebuffer and added support for it to i915(SkyLake+). Stanislav Lisovskiy (2): drm: Introduce new DRM_FORMAT_XYUV drm/i915: Adding YUV444 packed format support for skl+ drivers/gpu/drm/drm_fourcc.c | 1 + drivers/gpu/drm/i915/i915_reg.h

[Intel-gfx] [PATCH v12 1/2] drm: Introduce new DRM_FORMAT_XYUV

2018-11-09 Thread Stanislav Lisovskiy
Fixed rebase conflict, caused by added new formats to drm-tip meanwhile. Reviewed-by: Alexandru Gheorghe Signed-off-by: Stanislav Lisovskiy --- drivers/gpu/drm/drm_fourcc.c | 1 + include/uapi/drm/drm_fourcc.h | 1 + 2 files changed, 2 insertions(+) diff --git a/drivers/gpu/drm/drm_fourc

[Intel-gfx] [PATCH v12 2/2] drm/i915: Adding YUV444 packed format support for skl+

2018-11-09 Thread Stanislav Lisovskiy
ned-off-by: Stanislav Lisovskiy --- drivers/gpu/drm/i915/i915_reg.h | 2 +- drivers/gpu/drm/i915/intel_display.c | 12 drivers/gpu/drm/i915/intel_sprite.c | 3 +++ 3 files changed, 16 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/i915_reg.h b/drivers/gp

[Intel-gfx] [PATCH xf86-video-intel v7 0/2] Added AYUV format support

2018-11-09 Thread Stanislav Lisovskiy
sna/gen9+: Added AYUV format support for textured and sprite video adapters. Split out wm_kernel from the sna_composite_op flags Stanislav Lisovskiy (2): sna/gen9+: Split out wm_kernel from the sna_composite_op flags sna: Added AYUV format support for textured and sprite video adapters. src

<    1   2   3   4   5   6   7   8   9   >