[Intel-gfx] [PATCH v3 1/2] drm/i915/lnl: possibility to enable FBC on first three planes

2023-09-01 Thread Vinod Govindapillai
ing register writes (Matt) - Update the subject to reflect that fbc can be enabled only in the first three planes (Matt) v3: - use icl_is_hdr_plane(), use wrapper macro for plane binding register access, comments update and patch split (Ville) Bspec: 69560 Signed-off-by: Vinod Govindapil

[Intel-gfx] [PATCH v3 0/2] fbc on any planes

2023-09-01 Thread Vinod Govindapillai
FBC can be supported in first three planes in lnl Vinod Govindapillai (2): drm/i915/lnl: possibility to enable FBC on first three planes drm/i915/lnl: FBC is supported with per pixel alpha drivers/gpu/drm/i915/display/intel_fbc.c | 6 +- drivers/gpu/drm/i915/display

[Intel-gfx] [PATCH v2 0/1] fbc on any plane

2023-09-01 Thread Vinod Govindapillai
. Vinod Govindapillai (1): drm/i915/lnl: possibility to enable FBC on first three planes drivers/gpu/drm/i915/display/intel_fbc.c | 7 ++- drivers/gpu/drm/i915/display/skl_universal_plane.c | 5 - drivers/gpu/drm/i915/i915_reg.h| 1 + 3 files changed, 11

[Intel-gfx] [PATCH v2 1/1] drm/i915/lnl: possibility to enable FBC on first three planes

2023-09-01 Thread Vinod Govindapillai
in intel_fbc_check_plane (Ville) - simplify plane binding register writes (Matt) - Update the subject to reflect that fbc can be enabled only in the first three planes (Matt) Bspec: 69560 Signed-off-by: Vinod Govindapillai --- drivers/gpu/drm/i915/display/intel_fbc.c | 7 ++- drivers/

[Intel-gfx] [PATCH v2 1/1] drm/i915/lnl: possibility to enable FBC on first three planes

2023-09-01 Thread Vinod Govindapillai
in intel_fbc_check_plane (Ville) - simplify plane binding register writes (Matt) - Update the subject to reflect that fbc can be enabled only in the first three planes (Matt) Bspec: 69560 Signed-off-by: Vinod Govindapillai --- drivers/gpu/drm/i915/display/intel_fbc.c | 7 ++- drivers/

[Intel-gfx] [PATCH v2 0/1] fbc on any plane

2023-09-01 Thread Vinod Govindapillai
. Vinod Govindapillai (1): drm/i915/lnl: possibility to enable FBC on first three planes drivers/gpu/drm/i915/display/intel_fbc.c | 7 ++- drivers/gpu/drm/i915/display/skl_universal_plane.c | 5 - drivers/gpu/drm/i915/i915_reg.h| 1 + 3 files changed, 11

[Intel-gfx] [PATCH 4/4] drm/i915/lnl: FBC is supported with per pixel alpha

2023-08-27 Thread Vinod Govindapillai
For LNL onwards, FBC can be supported on planes with per pixel alpha Bspec: 69560 Signed-off-by: Vinod Govindapillai --- drivers/gpu/drm/i915/display/intel_fbc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/display/intel_fbc.c b/drivers/gpu/drm

[Intel-gfx] [PATCH 3/4] drm/i915/lnl: support FBC on any plane

2023-08-27 Thread Vinod Govindapillai
In LNL onwards, FBC can be associated to the first three planes. The FBC will be enabled for first FBC capable visible plane until the userspace can select one of these FBC capable plane explicitly Bspec: 69560 Signed-off-by: Vinod Govindapillai --- drivers/gpu/drm/i915/display/intel_fbc.c

[Intel-gfx] [PATCH 2/4] drm/i915/lnl: update FBC debugfs to include plane information

2023-08-27 Thread Vinod Govindapillai
In future platforms, FBC can be supported on planes other than the primary plane. So update the debugfs entry for FBC status to have the plane ID included. Signed-off-by: Vinod Govindapillai --- drivers/gpu/drm/i915/display/intel_fbc.c | 14 +++--- 1 file changed, 11 insertions(+), 3

[Intel-gfx] [PATCH 1/4] drm/i915/lnl: FBC can be enabled with PSR2

2023-08-27 Thread Vinod Govindapillai
FBC restriction with PSR2 can be removed from LNL onwards Signed-off-by: Vinod Govindapillai --- drivers/gpu/drm/i915/display/intel_fbc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/i915/display/intel_fbc.c b/drivers/gpu/drm/i915/display/intel_fbc.c

[Intel-gfx] [PATCH 0/4] fbc on any plane

2023-08-27 Thread Vinod Govindapillai
In LNL, FBC can be supported in planes other than the primary planes. Vinod Govindapillai (4): drm/i915/lnl: FBC can be enabled with PSR2 drm/i915/lnl: update FBC debugfs to include plane information drm/i915/lnl: support FBC on any plane drm/i915/lnl: FBC is supported with per pixel

[Intel-gfx] [PATCH v1 2/2] drm/i915/display: configure SDP split for DP-MST

2023-08-22 Thread Vinod Govindapillai
Extend the SDP split audio config for DP-MST Signed-off-by: Vinod Govindapillai --- drivers/gpu/drm/i915/display/intel_dp.c | 2 +- drivers/gpu/drm/i915/display/intel_dp.h | 3 +++ drivers/gpu/drm/i915/display/intel_dp_mst.c | 21 - 3 files changed, 8 insertions

[Intel-gfx] [PATCH v1 1/2] drm/i915/display: update intel_dp_has_audio to support MST

2023-08-22 Thread Vinod Govindapillai
Modify intel_dp_has_audio to handle DP-MST as well. v1: fix the wrong port comparison (Jani Nikula) Signed-off-by: Vinod Govindapillai --- drivers/gpu/drm/i915/display/intel_dp.c | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/i915/display

[Intel-gfx] [PATCH v1 0/2] SDP split for DP-MST

2023-08-22 Thread Vinod Govindapillai
SDP split config for DP-MST v1: Fix wrong port comparison (Jani Nikula) Vinod Govindapillai (2): drm/i915/display: update intel_dp_has_audio to support MST drm/i915/display: configure SDP split for DP-MST drivers/gpu/drm/i915/display/intel_dp.c | 12 +++- drivers/gpu/drm/i915

[Intel-gfx] [PATCH v4 4/4] drm/i915/display: configure SDP split for DP-MST

2023-08-18 Thread Vinod Govindapillai
Extend the SDP split audio config for DP-MST Signed-off-by: Vinod Govindapillai --- drivers/gpu/drm/i915/display/intel_dp.c | 2 +- drivers/gpu/drm/i915/display/intel_dp.h | 3 +++ drivers/gpu/drm/i915/display/intel_dp_mst.c | 21 - 3 files changed, 8 insertions

[Intel-gfx] [PATCH v4 3/4] drm/i915/display: update intel_dp_has_audio to support MST

2023-08-18 Thread Vinod Govindapillai
Modify intel_dp_has_audio to handle DP-MST as well. Signed-off-by: Vinod Govindapillai --- drivers/gpu/drm/i915/display/intel_dp.c | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/i915/display/intel_dp.c b/drivers/gpu/drm/i915/display/intel_dp.c

[Intel-gfx] [PATCH v4 2/4] drm/i915/display: combine DP audio compute config steps

2023-08-18 Thread Vinod Govindapillai
Combine all DP audio configs into a single function Signed-off-by: Vinod Govindapillai --- drivers/gpu/drm/i915/display/intel_dp.c | 11 +-- 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/drivers/gpu/drm/i915/display/intel_dp.c b/drivers/gpu/drm/i915/display/intel_dp.c

[Intel-gfx] [PATCH v4 1/4] drm/i915/display: remove redundant parameter from sdp split update

2023-08-18 Thread Vinod Govindapillai
The needed functionality can be performed using crtc_state here. Signed-off-by: Vinod Govindapillai Reviewed-by: Jani Nikula --- drivers/gpu/drm/i915/display/intel_audio.c | 6 +++--- drivers/gpu/drm/i915/display/intel_audio.h | 3 +-- drivers/gpu/drm/i915/display/intel_ddi.c | 2 +- 3 files

[Intel-gfx] [PATCH v4 0/4] SDP split for DP-MST

2023-08-18 Thread Vinod Govindapillai
SDP split config for DP-MST v2: Style changes and patch splits (Jani Nikula) v3: More style changes and reorder patches (Jani Nikula) v4: call sdp split register update before enable trancoder in MST Vinod Govindapillai (4): drm/i915/display: remove redundant parameter from sdp split update

[Intel-gfx] [PATCH v3 4/4] drm/i915/display: configure SDP split for DP-MST

2023-08-16 Thread Vinod Govindapillai
Extend the SDP split audio config for DP-MST Signed-off-by: Vinod Govindapillai --- drivers/gpu/drm/i915/display/intel_dp.c | 2 +- drivers/gpu/drm/i915/display/intel_dp.h | 3 +++ drivers/gpu/drm/i915/display/intel_dp_mst.c | 19 ++- 3 files changed, 6 insertions

[Intel-gfx] [PATCH v3 3/4] drm/i915/display: update intel_dp_has_audio to support MST

2023-08-16 Thread Vinod Govindapillai
Modify intel_dp_has_audio to handle DP-MST as well. Signed-off-by: Vinod Govindapillai --- drivers/gpu/drm/i915/display/intel_dp.c | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/i915/display/intel_dp.c b/drivers/gpu/drm/i915/display/intel_dp.c

[Intel-gfx] [PATCH v3 2/4] drm/i915/display: combine DP audio compute config steps

2023-08-16 Thread Vinod Govindapillai
Combine all DP audio configs into a single function Signed-off-by: Vinod Govindapillai --- drivers/gpu/drm/i915/display/intel_dp.c | 11 +-- 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/drivers/gpu/drm/i915/display/intel_dp.c b/drivers/gpu/drm/i915/display/intel_dp.c

[Intel-gfx] [PATCH v3 1/4] drm/i915/display: remove redundant parameter from sdp split update

2023-08-16 Thread Vinod Govindapillai
The needed functionality can be performed using crtc_state here. Signed-off-by: Vinod Govindapillai Reviewed-by: Jani Nikula --- drivers/gpu/drm/i915/display/intel_audio.c | 6 +++--- drivers/gpu/drm/i915/display/intel_audio.h | 3 +-- drivers/gpu/drm/i915/display/intel_ddi.c | 2 +- 3 files

[Intel-gfx] [PATCH v3 0/4] DP split for DP-MST

2023-08-16 Thread Vinod Govindapillai
SDP split config for DP-MST v2: Style changes and patch splits (Jani Nikula) v3: More style changes and reorder patches (Jani Nikula) Vinod Govindapillai (4): drm/i915/display: remove redundant parameter from sdp split update drm/i915/display: combine DP audio compute config steps drm

[Intel-gfx] [PATCH v2 4/4] drm/915/display: configure SDP split for DP-MST

2023-08-15 Thread Vinod Govindapillai
Extend the SDP split audio config for DP-MST Signed-off-by: Vinod Govindapillai --- drivers/gpu/drm/i915/display/intel_dp.c | 2 +- drivers/gpu/drm/i915/display/intel_dp.h | 4 drivers/gpu/drm/i915/display/intel_dp_mst.c | 7 +++ 3 files changed, 8 insertions(+), 5 deletions

[Intel-gfx] [PATCH v2 3/4] drm/i915/display: combine DP audio compute config steps

2023-08-15 Thread Vinod Govindapillai
Combine all DP audio configs into a single function Signed-off-by: Vinod Govindapillai --- drivers/gpu/drm/i915/display/intel_dp.c | 13 +++-- 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/drivers/gpu/drm/i915/display/intel_dp.c b/drivers/gpu/drm/i915/display/intel_dp.c

[Intel-gfx] [PATCH v2 2/4] drm/i915/display: combine has_audio check for DP and DP-MST

2023-08-15 Thread Vinod Govindapillai
Combine has_audio check for both DP and DP-MST into a single function. Signed-off-by: Vinod Govindapillai --- drivers/gpu/drm/i915/display/intel_dp.c | 18 +- drivers/gpu/drm/i915/display/intel_dp.h | 3 +++ drivers/gpu/drm/i915/display/intel_dp_mst.c | 15

[Intel-gfx] [PATCH v2 1/4] drm/i915/display: remove redundant parameter from sdp split update

2023-08-15 Thread Vinod Govindapillai
The needed functionality can be performed using crtc_state here. Signed-off-by: Vinod Govindapillai --- drivers/gpu/drm/i915/display/intel_audio.c | 6 +++--- drivers/gpu/drm/i915/display/intel_audio.h | 3 +-- drivers/gpu/drm/i915/display/intel_ddi.c | 2 +- 3 files changed, 5 insertions

[Intel-gfx] [PATCH v2 0/4] SDP split for DP-MST

2023-08-15 Thread Vinod Govindapillai
SDP split config for DP-MST v2: Style changes and patch splits (Jani Nikula) Vinod Govindapillai (4): drm/i915/display: remove redundant parameter from sdp split update drm/i915/display: combine has_audio check for DP and DP-MST drm/i915/display: combine DP audio compute config steps drm

[Intel-gfx] [PATCH 2/2] drm/i915/display: configure SDP split for DP MST

2023-08-10 Thread Vinod Govindapillai
Extend the SDP split configuration for the DP-MST Signed-off-by: Vinod Govindapillai --- drivers/gpu/drm/i915/display/intel_dp_mst.c | 11 +++ 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/i915/display/intel_dp_mst.c b/drivers/gpu/drm/i915/display

[Intel-gfx] [PATCH 0/2] DP2.0 SDP split support for DP-MST

2023-08-10 Thread Vinod Govindapillai
Add DP2.0 SDP split support for DP-MST Vinod Govindapillai (2): drm/i915/display: streamline the dp audio config steps drm/i915/display: configure SDP split for DP MST drivers/gpu/drm/i915/display/intel_audio.c | 6 ++--- drivers/gpu/drm/i915/display/intel_audio.h | 3 +-- drivers/gpu

[Intel-gfx] [PATCH 1/2] drm/i915/display: streamline the dp audio config steps

2023-08-10 Thread Vinod Govindapillai
Combine dp audio config steps in to single a place from where intel_audio_compute_config is checked and SDP split decision is done. v2: combine different audio compute calls into one (Jani Nikula) Signed-off-by: Vinod Govindapillai --- drivers/gpu/drm/i915/display/intel_audio.c | 6

[Intel-gfx] [PATCH 2/2] drm/i915/display: support DP2.0 SDP split for DP-MST

2023-08-04 Thread Vinod Govindapillai
Extend the DP2.0 SDP split for DP-MST configurations Signed-off-by: Vinod Govindapillai --- drivers/gpu/drm/i915/display/intel_dp_mst.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/gpu/drm/i915/display/intel_dp_mst.c b/drivers/gpu/drm/i915/display/intel_dp_mst.c index

[Intel-gfx] [PATCH 1/2] drm/i915/display: optimize DP 2.0 sdp split update config

2023-08-04 Thread Vinod Govindapillai
Optimize DP 2 SDP split config update so that DP-MST code path can be supported as well. Signed-off-by: Vinod Govindapillai --- drivers/gpu/drm/i915/display/intel_audio.c | 6 +++--- drivers/gpu/drm/i915/display/intel_audio.h | 3 +-- drivers/gpu/drm/i915/display/intel_ddi.c | 3

[Intel-gfx] [PATCH 0/2] DP2.0 SDP split

2023-08-04 Thread Vinod Govindapillai
Support DP2.0 sdp split for DP-MST Vinod Govindapillai (2): drm/i915/display: optimize DP 2.0 sdp split update config drm/i915/display: support DP2.0 SDP split for DP-MST drivers/gpu/drm/i915/display/intel_audio.c | 6 +++--- drivers/gpu/drm/i915/display/intel_audio.h | 3

[Intel-gfx] [PATCH v15 7/7] drm/i915/mtl: Add support for PM DEMAND

2023-06-06 Thread Vinod Govindapillai
: Vinod Govindapillai Reviewed-by: Stanislav Lisovskiy #v4 Acked-by: Gustavo Sousa #v11 Reviewed-by: Imre Deak --- drivers/gpu/drm/i915/Makefile | 1 + drivers/gpu/drm/i915/display/intel_display.c | 14 + .../gpu/drm/i915/display/intel_display_core.h | 9 + .../drm/i915/display

[Intel-gfx] [PATCH v14 7/7] drm/i915/mtl: Add support for PM DEMAND

2023-06-06 Thread Vinod Govindapillai
Cc: Lucas De Marchi Cc: Gustavo Sousa Signed-off-by: José Roberto de Souza Signed-off-by: Radhakrishna Sripada Signed-off-by: Gustavo Sousa Signed-off-by: Mika Kahola Signed-off-by: Vinod Govindapillai Reviewed-by: Stanislav Lisovskiy Acked-by: Gustavo Sousa --- drivers/gpu/drm/i915

[Intel-gfx] [PATCH v14 6/7] drm/i915/mtl: find the best QGV point for the SAGV configuration

2023-06-06 Thread Vinod Govindapillai
hat (Imre) Bspec: 64636 Reported-by: kernel test robot Closes: https://lore.kernel.org/r/202305280253.ab8brv2w-...@intel.com/ Reported-by: Dan Carpenter Closes: https://lore.kernel.org/r/202305280253.ab8brv2w-...@intel.com/ Signed-off-by: Vinod Govindapillai Reviewed-by: Stanislav Lisovs

[Intel-gfx] [PATCH v14 5/7] drm/i915: modify max_bw to return index to intel_bw_info

2023-06-06 Thread Vinod Govindapillai
by max_bw_index functions v3: return UINT_MAX in icl_max_bw_index in case no match found v3: check idx >= ARRAY_SIZE Signed-off-by: Vinod Govindapillai Reviewed-by: Stanislav Lisovskiy --- drivers/gpu/drm/i915/display/intel_bw.c | 27 - 1 file changed, 17 inserti

[Intel-gfx] [PATCH v14 4/7] drm/i915: extract intel_bw_check_qgv_points()

2023-06-06 Thread Vinod Govindapillai
Extract intel_bw_check_qgv_points() from intel_bw_atomic_check to facilitate future platform variations in handling SAGV configurations. Signed-off-by: Vinod Govindapillai Reviewed-by: Stanislav Lisovskiy --- drivers/gpu/drm/i915/display/intel_bw.c | 235 +--- 1 file

[Intel-gfx] [PATCH v14 3/7] drm/i915: store the peak bw per QGV point

2023-06-06 Thread Vinod Govindapillai
In MTL onwards, pcode locks the GV point based on the peak BW of a QGV point. So store the peak BW of all the QGV points. v2: use DIV_ROUND_CLOSEST() for the peakBW calculation Bspec: 64636 Signed-off-by: Vinod Govindapillai Reviewed-by: Stanislav Lisovskiy --- drivers/gpu/drm/i915/display

[Intel-gfx] [PATCH v14 2/7] drm/i915: update the QGV point frequency calculations

2023-06-06 Thread Vinod Govindapillai
nly DIV_ROUN_CLOSEST and remove divisor / 2 again Bspec: 64636 Signed-off-by: Vinod Govindapillai Reviewed-by: Stanislav Lisovskiy --- drivers/gpu/drm/i915/display/intel_bw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/display/intel_bw.c b/drivers/gpu/

[Intel-gfx] [PATCH v14 1/7] drm/i915: fix the derating percentage for MTL

2023-06-06 Thread Vinod Govindapillai
Follow the values from bspec for the percentage overhead for efficiency in MTL BW calculations. Bspec: 64631 Signed-off-by: Vinod Govindapillai Reviewed-by: Matt Roper --- drivers/gpu/drm/i915/display/intel_bw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu

[Intel-gfx] [PATCH v14 0/7] mtl: add support for pmdemand

2023-06-06 Thread Vinod Govindapillai
x27;s comments to handle non serialize cases, updates tp phys mask during sanitize calls after HW readout v14: check display version before accessig pmdemand functions Mika Kahola (1): drm/i915/mtl: Add support for PM DEMAND Vinod Govindapillai (6): drm/i915: fix the derating percentage fo

[Intel-gfx] [PATCH v13 7/7] drm/i915/mtl: Add support for PM DEMAND

2023-06-05 Thread Vinod Govindapillai
Roberto de Souza Signed-off-by: Radhakrishna Sripada Signed-off-by: Gustavo Sousa Signed-off-by: Mika Kahola Signed-off-by: Vinod Govindapillai Reviewed-by: Stanislav Lisovskiy Acked-by: Gustavo Sousa --- drivers/gpu/drm/i915/Makefile | 1 + drivers/gpu/drm/i915/display

[Intel-gfx] [PATCH v13 6/7] drm/i915/mtl: find the best QGV point for the SAGV configuration

2023-06-05 Thread Vinod Govindapillai
hat (Imre) Bspec: 64636 Reported-by: kernel test robot Closes: https://lore.kernel.org/r/202305280253.ab8brv2w-...@intel.com/ Reported-by: Dan Carpenter Closes: https://lore.kernel.org/r/202305280253.ab8brv2w-...@intel.com/ Signed-off-by: Vinod Govindapillai Reviewed-by: Stanislav Lisovs

[Intel-gfx] [PATCH v13 5/7] drm/i915: modify max_bw to return index to intel_bw_info

2023-06-05 Thread Vinod Govindapillai
by max_bw_index functions v3: return UINT_MAX in icl_max_bw_index in case no match found v3: check idx >= ARRAY_SIZE Signed-off-by: Vinod Govindapillai Reviewed-by: Stanislav Lisovskiy --- drivers/gpu/drm/i915/display/intel_bw.c | 27 - 1 file changed, 17 inserti

[Intel-gfx] [PATCH v13 4/7] drm/i915: extract intel_bw_check_qgv_points()

2023-06-05 Thread Vinod Govindapillai
Extract intel_bw_check_qgv_points() from intel_bw_atomic_check to facilitate future platform variations in handling SAGV configurations. Signed-off-by: Vinod Govindapillai Reviewed-by: Stanislav Lisovskiy --- drivers/gpu/drm/i915/display/intel_bw.c | 235 +--- 1 file

[Intel-gfx] [PATCH v13 3/7] drm/i915: store the peak bw per QGV point

2023-06-05 Thread Vinod Govindapillai
In MTL onwards, pcode locks the GV point based on the peak BW of a QGV point. So store the peak BW of all the QGV points. v2: use DIV_ROUND_CLOSEST() for the peakBW calculation Bspec: 64636 Signed-off-by: Vinod Govindapillai Reviewed-by: Stanislav Lisovskiy --- drivers/gpu/drm/i915/display

[Intel-gfx] [PATCH v13 2/7] drm/i915: update the QGV point frequency calculations

2023-06-05 Thread Vinod Govindapillai
nly DIV_ROUN_CLOSEST and remove divisor / 2 again Bspec: 64636 Signed-off-by: Vinod Govindapillai Reviewed-by: Stanislav Lisovskiy --- drivers/gpu/drm/i915/display/intel_bw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/display/intel_bw.c b/drivers/gpu/

[Intel-gfx] [PATCH v13 1/7] drm/i915: fix the derating percentage for MTL

2023-06-05 Thread Vinod Govindapillai
Follow the values from bspec for the percentage overhead for efficiency in MTL BW calculations. Bspec: 64631 Signed-off-by: Vinod Govindapillai Reviewed-by: Matt Roper --- drivers/gpu/drm/i915/display/intel_bw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu

[Intel-gfx] [PATCH v13 0/7] mtl: add support for pmdemand

2023-06-05 Thread Vinod Govindapillai
x27;s comments to handle non serialize cases, updates tp phys mask during sanitize calls after HW readout Mika Kahola (1): drm/i915/mtl: Add support for PM DEMAND Vinod Govindapillai (6): drm/i915: fix the derating percentage for MTL drm/i915: update the QGV point frequency calculations

[Intel-gfx] [PATCH v12 0/7] mtl: add support for pmdemand

2023-06-01 Thread Vinod Govindapillai
/mtl: Add support for PM DEMAND Vinod Govindapillai (6): drm/i915: fix the derating percentage for MTL drm/i915: update the QGV point frequency calculations drm/i915: store the peak bw per QGV point drm/i915: extract intel_bw_check_qgv_points() drm/i915: modify max_bw to return index to

[Intel-gfx] [PATCH v12 7/7] drm/i915/mtl: Add support for PM DEMAND

2023-06-01 Thread Vinod Govindapillai
: Matt Roper Cc: Lucas De Marchi Cc: Gustavo Sousa Signed-off-by: José Roberto de Souza Signed-off-by: Radhakrishna Sripada Signed-off-by: Gustavo Sousa Signed-off-by: Mika Kahola Signed-off-by: Vinod Govindapillai Reviewed-by: Stanislav Lisovskiy Acked-by: Gustavo Sousa --- drivers/gpu/drm

[Intel-gfx] [PATCH v12 5/7] drm/i915: modify max_bw to return index to intel_bw_info

2023-06-01 Thread Vinod Govindapillai
by max_bw_index functions v3: return UINT_MAX in icl_max_bw_index in case no match found v3: check idx >= ARRAY_SIZE Signed-off-by: Vinod Govindapillai Reviewed-by: Stanislav Lisovskiy --- drivers/gpu/drm/i915/display/intel_bw.c | 27 - 1 file changed, 17 inserti

[Intel-gfx] [PATCH v12 6/7] drm/i915/mtl: find the best QGV point for the SAGV configuration

2023-06-01 Thread Vinod Govindapillai
g/r/202305280253.ab8brv2w-...@intel.com/ Reported-by: Dan Carpenter Closes: https://lore.kernel.org/r/202305280253.ab8brv2w-...@intel.com/ Signed-off-by: Vinod Govindapillai Reviewed-by: Stanislav Lisovskiy --- drivers/gpu/drm/i915/display/intel_bw.c | 87 - drivers/gpu/

[Intel-gfx] [PATCH v12 4/7] drm/i915: extract intel_bw_check_qgv_points()

2023-06-01 Thread Vinod Govindapillai
Extract intel_bw_check_qgv_points() from intel_bw_atomic_check to facilitate future platform variations in handling SAGV configurations. Signed-off-by: Vinod Govindapillai Reviewed-by: Stanislav Lisovskiy --- drivers/gpu/drm/i915/display/intel_bw.c | 235 +--- 1 file

[Intel-gfx] [PATCH v12 3/7] drm/i915: store the peak bw per QGV point

2023-06-01 Thread Vinod Govindapillai
In MTL onwards, pcode locks the GV point based on the peak BW of a QGV point. So store the peak BW of all the QGV points. v2: use DIV_ROUND_CLOSEST() for the peakBW calculation Bspec: 64636 Signed-off-by: Vinod Govindapillai Reviewed-by: Stanislav Lisovskiy --- drivers/gpu/drm/i915/display

[Intel-gfx] [PATCH v12 2/7] drm/i915: update the QGV point frequency calculations

2023-06-01 Thread Vinod Govindapillai
nly DIV_ROUN_CLOSEST and remove divisor / 2 again Bspec: 64636 Signed-off-by: Vinod Govindapillai Reviewed-by: Stanislav Lisovskiy --- drivers/gpu/drm/i915/display/intel_bw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/display/intel_bw.c b/drivers/gpu/

[Intel-gfx] [PATCH v12 1/7] drm/i915: fix the derating percentage for MTL

2023-06-01 Thread Vinod Govindapillai
Follow the values from bspec for the percentage overhead for efficiency in MTL BW calculations. Bspec: 64631 Signed-off-by: Vinod Govindapillai Reviewed-by: Matt Roper --- drivers/gpu/drm/i915/display/intel_bw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu

[Intel-gfx] [PATCH v11 7/7] drm/i915/mtl: Add support for PM DEMAND

2023-06-01 Thread Vinod Govindapillai
Sripada Signed-off-by: Gustavo Sousa Signed-off-by: Mika Kahola Signed-off-by: Vinod Govindapillai Reviewed-by: Stanislav Lisovskiy --- drivers/gpu/drm/i915/Makefile | 1 + drivers/gpu/drm/i915/display/intel_display.c | 14 + .../gpu/drm/i915/display/intel_display_core.h

[Intel-gfx] [PATCH v11 6/7] drm/i915/mtl: find the best QGV point for the SAGV configuration

2023-06-01 Thread Vinod Govindapillai
g/r/202305280253.ab8brv2w-...@intel.com/ Reported-by: Dan Carpenter Closes: https://lore.kernel.org/r/202305280253.ab8brv2w-...@intel.com/ Signed-off-by: Vinod Govindapillai Reviewed-by: Stanislav Lisovskiy --- drivers/gpu/drm/i915/display/intel_bw.c | 87 - drivers/gpu/

[Intel-gfx] [PATCH v11 5/7] drm/i915: modify max_bw to return index to intel_bw_info

2023-06-01 Thread Vinod Govindapillai
by max_bw_index functions v3: return UINT_MAX in icl_max_bw_index in case no match found v3: check idx >= ARRAY_SIZE Signed-off-by: Vinod Govindapillai Reviewed-by: Stanislav Lisovskiy --- drivers/gpu/drm/i915/display/intel_bw.c | 27 - 1 file changed, 17 inserti

[Intel-gfx] [PATCH v11 3/7] drm/i915: store the peak bw per QGV point

2023-06-01 Thread Vinod Govindapillai
In MTL onwards, pcode locks the GV point based on the peak BW of a QGV point. So store the peak BW of all the QGV points. v2: use DIV_ROUND_CLOSEST() for the peakBW calculation Bspec: 64636 Signed-off-by: Vinod Govindapillai Reviewed-by: Stanislav Lisovskiy --- drivers/gpu/drm/i915/display

[Intel-gfx] [PATCH v11 4/7] drm/i915: extract intel_bw_check_qgv_points()

2023-06-01 Thread Vinod Govindapillai
Extract intel_bw_check_qgv_points() from intel_bw_atomic_check to facilitate future platform variations in handling SAGV configurations. Signed-off-by: Vinod Govindapillai Reviewed-by: Stanislav Lisovskiy --- drivers/gpu/drm/i915/display/intel_bw.c | 235 +--- 1 file

[Intel-gfx] [PATCH v11 2/7] drm/i915: update the QGV point frequency calculations

2023-06-01 Thread Vinod Govindapillai
nly DIV_ROUN_CLOSEST and remove divisor / 2 again Bspec: 64636 Signed-off-by: Vinod Govindapillai Reviewed-by: Stanislav Lisovskiy --- drivers/gpu/drm/i915/display/intel_bw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/display/intel_bw.c b/drivers/gpu/

[Intel-gfx] [PATCH v11 1/7] drm/i915: fix the derating percentage for MTL

2023-06-01 Thread Vinod Govindapillai
Follow the values from bspec for the percentage overhead for efficiency in MTL BW calculations. Bspec: 64631 Signed-off-by: Vinod Govindapillai Reviewed-by: Matt Roper --- drivers/gpu/drm/i915/display/intel_bw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu

[Intel-gfx] [PATCH v11 0/7] mtl: add support for pmdemand

2023-06-01 Thread Vinod Govindapillai
DEMAND Vinod Govindapillai (6): drm/i915: fix the derating percentage for MTL drm/i915: update the QGV point frequency calculations drm/i915: store the peak bw per QGV point drm/i915: extract intel_bw_check_qgv_points() drm/i915: modify max_bw to return index to intel_bw_info drm/i915/mtl

[Intel-gfx] [PATCH v10 7/7] drm/i915/mtl: Add support for PM DEMAND

2023-05-31 Thread Vinod Govindapillai
Sousa Signed-off-by: Mika Kahola Signed-off-by: Vinod Govindapillai Reviewed-by: Stanislav Lisovskiy --- drivers/gpu/drm/i915/Makefile | 1 + drivers/gpu/drm/i915/display/intel_display.c | 14 + .../gpu/drm/i915/display/intel_display_core.h | 9 + .../drm/i915/display

[Intel-gfx] [PATCH v10 6/7] drm/i915/mtl: find the best QGV point for the SAGV configuration

2023-05-31 Thread Vinod Govindapillai
g/r/202305280253.ab8brv2w-...@intel.com/ Reported-by: Dan Carpenter Closes: https://lore.kernel.org/r/202305280253.ab8brv2w-...@intel.com/ Signed-off-by: Vinod Govindapillai Reviewed-by: Stanislav Lisovskiy --- drivers/gpu/drm/i915/display/intel_bw.c | 87 - drivers/gpu/

[Intel-gfx] [PATCH v10 5/7] drm/i915: modify max_bw to return index to intel_bw_info

2023-05-31 Thread Vinod Govindapillai
by max_bw_index functions v3: return UINT_MAX in icl_max_bw_index in case no match found v3: check idx >= ARRAY_SIZE Signed-off-by: Vinod Govindapillai Reviewed-by: Stanislav Lisovskiy --- drivers/gpu/drm/i915/display/intel_bw.c | 27 - 1 file changed, 17 inserti

[Intel-gfx] [PATCH v10 4/7] drm/i915: extract intel_bw_check_qgv_points()

2023-05-31 Thread Vinod Govindapillai
Extract intel_bw_check_qgv_points() from intel_bw_atomic_check to facilitate future platform variations in handling SAGV configurations. Signed-off-by: Vinod Govindapillai Reviewed-by: Stanislav Lisovskiy --- drivers/gpu/drm/i915/display/intel_bw.c | 235 +--- 1 file

[Intel-gfx] [PATCH v10 3/7] drm/i915: store the peak bw per QGV point

2023-05-31 Thread Vinod Govindapillai
In MTL onwards, pcode locks the GV point based on the peak BW of a QGV point. So store the peak BW of all the QGV points. v2: use DIV_ROUND_CLOSEST() for the peakBW calculation Bspec: 64636 Signed-off-by: Vinod Govindapillai Reviewed-by: Stanislav Lisovskiy --- drivers/gpu/drm/i915/display

[Intel-gfx] [PATCH v10 2/7] drm/i915: update the QGV point frequency calculations

2023-05-31 Thread Vinod Govindapillai
nly DIV_ROUN_CLOSEST and remove divisor / 2 again Bspec: 64636 Signed-off-by: Vinod Govindapillai Reviewed-by: Stanislav Lisovskiy --- drivers/gpu/drm/i915/display/intel_bw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/display/intel_bw.c b/drivers/gpu/

[Intel-gfx] [PATCH v10 1/7] drm/i915: fix the derating percentage for MTL

2023-05-31 Thread Vinod Govindapillai
Follow the values from bspec for the percentage overhead for efficiency in MTL BW calculations. Bspec: 64631 Signed-off-by: Vinod Govindapillai Reviewed-by: Matt Roper --- drivers/gpu/drm/i915/display/intel_bw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu

[Intel-gfx] [PATCH v10 0/7] mtl: add support for pmdemand

2023-05-31 Thread Vinod Govindapillai
max ddiclk and active phys calculations v8: updates to active phys calcuations v9: Address styling issues v10: Updates to phys calculation, pmdemand state initialization during HW readout / sanitization Mika Kahola (1): drm/i915/mtl: Add support for PM DEMAND Vinod Govindapillai (6

[Intel-gfx] [PATCH v8 7/7] drm/i915/mtl: Add support for PM DEMAND

2023-05-26 Thread Vinod Govindapillai
: José Roberto de Souza Signed-off-by: Radhakrishna Sripada Signed-off-by: Gustavo Sousa Signed-off-by: Mika Kahola Signed-off-by: Vinod Govindapillai Reviewed-by: Stanislav Lisovskiy --- drivers/gpu/drm/i915/Makefile | 1 + drivers/gpu/drm/i915/display/intel_display.c | 14

[Intel-gfx] [PATCH v8 6/7] drm/i915/mtl: find the best QGV point for the SAGV configuration

2023-05-26 Thread Vinod Govindapillai
>From MTL onwards, we need to find the best QGV point based on the required data rate and pass the peak BW of that point to the punit to lock the corresponding QGV point. Bspec: 64636 Signed-off-by: Vinod Govindapillai Reviewed-by: Stanislav Lisovskiy --- drivers/gpu/drm/i915/disp

[Intel-gfx] [PATCH v8 5/7] drm/i915: modify max_bw to return index to intel_bw_info

2023-05-26 Thread Vinod Govindapillai
by max_bw_index functions v3: return UINT_MAX in icl_max_bw_index in case no match found Signed-off-by: Vinod Govindapillai Reviewed-by: Stanislav Lisovskiy --- drivers/gpu/drm/i915/display/intel_bw.c | 27 - 1 file changed, 17 insertions(+), 10 deletions(-) diff --git

[Intel-gfx] [PATCH v8 4/7] drm/i915: extract intel_bw_check_qgv_points()

2023-05-26 Thread Vinod Govindapillai
Extract intel_bw_check_qgv_points() from intel_bw_atomic_check to facilitate future platform variations in handling SAGV configurations. Signed-off-by: Vinod Govindapillai Reviewed-by: Stanislav Lisovskiy --- drivers/gpu/drm/i915/display/intel_bw.c | 235 +--- 1 file

[Intel-gfx] [PATCH v8 3/7] drm/i915: store the peak bw per QGV point

2023-05-26 Thread Vinod Govindapillai
In MTL onwards, pcode locks the GV point based on the peak BW of a QGV point. So store the peak BW of all the QGV points. v2: use DIV_ROUND_CLOSEST() for the peakBW calculation Bspec: 64636 Signed-off-by: Vinod Govindapillai Reviewed-by: Stanislav Lisovskiy --- drivers/gpu/drm/i915/display

[Intel-gfx] [PATCH v8 2/7] drm/i915: update the QGV point frequency calculations

2023-05-26 Thread Vinod Govindapillai
nly DIV_ROUN_CLOSEST and remove divisor / 2 again Bspec: 64636 Signed-off-by: Vinod Govindapillai Reviewed-by: Stanislav Lisovskiy --- drivers/gpu/drm/i915/display/intel_bw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/display/intel_bw.c b/drivers/gpu/

[Intel-gfx] [PATCH v8 1/7] drm/i915: fix the derating percentage for MTL

2023-05-26 Thread Vinod Govindapillai
Follow the values from bspec for the percentage overhead for efficiency in MTL BW calculations. Bspec: 64631 Signed-off-by: Vinod Govindapillai Reviewed-by: Matt Roper --- drivers/gpu/drm/i915/display/intel_bw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu

[Intel-gfx] [PATCH v8 0/7] mtl: add support for pmdemand

2023-05-26 Thread Vinod Govindapillai
max ddiclk and active phys calculations v8: updates to active phys calcuations v9: Address styling issues Mika Kahola (1): drm/i915/mtl: Add support for PM DEMAND Vinod Govindapillai (6): drm/i915: fix the derating percentage for MTL drm/i915: update the QGV point frequency calculations

[Intel-gfx] [PATCH v8 7/7] drm/i915/mtl: Add support for PM DEMAND

2023-05-24 Thread Vinod Govindapillai
: Radhakrishna Sripada Signed-off-by: Gustavo Sousa Signed-off-by: Mika Kahola Signed-off-by: Vinod Govindapillai Reviewed-by: Stanislav Lisovskiy --- drivers/gpu/drm/i915/Makefile | 1 + drivers/gpu/drm/i915/display/intel_display.c | 14 + .../gpu/drm/i915/display

[Intel-gfx] [PATCH v8 6/7] drm/i915/mtl: find the best QGV point for the SAGV configuration

2023-05-24 Thread Vinod Govindapillai
>From MTL onwards, we need to find the best QGV point based on the required data rate and pass the peak BW of that point to the punit to lock the corresponding QGV point. Bspec: 64636 Signed-off-by: Vinod Govindapillai Reviewed-by: Stanislav Lisovskiy --- drivers/gpu/drm/i915/disp

[Intel-gfx] [PATCH v8 5/7] drm/i915: modify max_bw to return index to intel_bw_info

2023-05-24 Thread Vinod Govindapillai
by max_bw_index functions v3: return UINT_MAX in icl_max_bw_index in case no match found Signed-off-by: Vinod Govindapillai Reviewed-by: Stanislav Lisovskiy --- drivers/gpu/drm/i915/display/intel_bw.c | 27 - 1 file changed, 17 insertions(+), 10 deletions(-) diff --git

[Intel-gfx] [PATCH v8 4/7] drm/i915: extract intel_bw_check_qgv_points()

2023-05-24 Thread Vinod Govindapillai
Extract intel_bw_check_qgv_points() from intel_bw_atomic_check to facilitate future platform variations in handling SAGV configurations. Signed-off-by: Vinod Govindapillai Reviewed-by: Stanislav Lisovskiy --- drivers/gpu/drm/i915/display/intel_bw.c | 235 +--- 1 file

[Intel-gfx] [PATCH v8 0/7] mtl: add support for pmdemand

2023-05-24 Thread Vinod Govindapillai
from v5 v7: Rebased and updates to max ddiclk and active phys calculations v8: updates to active phys calcuations Mika Kahola (1): drm/i915/mtl: Add support for PM DEMAND Vinod Govindapillai (6): drm/i915: fix the derating percentage for MTL drm/i915: update the QGV point frequency

[Intel-gfx] [PATCH v8 3/7] drm/i915: store the peak bw per QGV point

2023-05-24 Thread Vinod Govindapillai
In MTL onwards, pcode locks the GV point based on the peak BW of a QGV point. So store the peak BW of all the QGV points. v2: use DIV_ROUND_CLOSEST() for the peakBW calculation Bspec: 64636 Signed-off-by: Vinod Govindapillai Reviewed-by: Stanislav Lisovskiy --- drivers/gpu/drm/i915/display

[Intel-gfx] [PATCH v8 2/7] drm/i915: update the QGV point frequency calculations

2023-05-24 Thread Vinod Govindapillai
nly DIV_ROUN_CLOSEST and remove divisor / 2 again Bspec: 64636 Signed-off-by: Vinod Govindapillai Reviewed-by: Stanislav Lisovskiy --- drivers/gpu/drm/i915/display/intel_bw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/display/intel_bw.c b/drivers/gpu/

[Intel-gfx] [PATCH v8 1/7] drm/i915: fix the derating percentage for MTL

2023-05-24 Thread Vinod Govindapillai
Follow the values from bspec for the percentage overhead for efficiency in MTL BW calculations. Bspec: 64631 Signed-off-by: Vinod Govindapillai Reviewed-by: Matt Roper --- drivers/gpu/drm/i915/display/intel_bw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu

[Intel-gfx] [PATCH v7 7/7] drm/i915/mtl: Add support for PM DEMAND

2023-05-24 Thread Vinod Govindapillai
count method (Gustavo) Bspec: 66451, 64636, 64602, 64603 Cc: Matt Atwood Cc: Matt Roper Cc: Lucas De Marchi Cc: Gustavo Sousa Signed-off-by: José Roberto de Souza Signed-off-by: Radhakrishna Sripada Signed-off-by: Gustavo Sousa Signed-off-by: Mika Kahola Signed-off-by: Vinod Govindapillai

[Intel-gfx] [PATCH v7 6/7] drm/i915/mtl: find the best QGV point for the SAGV configuration

2023-05-24 Thread Vinod Govindapillai
>From MTL onwards, we need to find the best QGV point based on the required data rate and pass the peak BW of that point to the punit to lock the corresponding QGV point. Bspec: 64636 Signed-off-by: Vinod Govindapillai Reviewed-by: Stanislav Lisovskiy --- drivers/gpu/drm/i915/disp

[Intel-gfx] [PATCH v7 5/7] drm/i915: modify max_bw to return index to intel_bw_info

2023-05-24 Thread Vinod Govindapillai
by max_bw_index functions v3: return UINT_MAX in icl_max_bw_index in case no match found Signed-off-by: Vinod Govindapillai Reviewed-by: Stanislav Lisovskiy --- drivers/gpu/drm/i915/display/intel_bw.c | 27 - 1 file changed, 17 insertions(+), 10 deletions(-) diff --git

[Intel-gfx] [PATCH v7 4/7] drm/i915: extract intel_bw_check_qgv_points()

2023-05-24 Thread Vinod Govindapillai
Extract intel_bw_check_qgv_points() from intel_bw_atomic_check to facilitate future platform variations in handling SAGV configurations. Signed-off-by: Vinod Govindapillai Reviewed-by: Stanislav Lisovskiy --- drivers/gpu/drm/i915/display/intel_bw.c | 235 +--- 1 file

[Intel-gfx] [PATCH v7 3/7] drm/i915: store the peak bw per QGV point

2023-05-24 Thread Vinod Govindapillai
In MTL onwards, pcode locks the GV point based on the peak BW of a QGV point. So store the peak BW of all the QGV points. v2: use DIV_ROUND_CLOSEST() for the peakBW calculation Bspec: 64636 Signed-off-by: Vinod Govindapillai Reviewed-by: Stanislav Lisovskiy --- drivers/gpu/drm/i915/display

[Intel-gfx] [PATCH v7 2/7] drm/i915: update the QGV point frequency calculations

2023-05-24 Thread Vinod Govindapillai
nly DIV_ROUN_CLOSEST and remove divisor / 2 again Bspec: 64636 Signed-off-by: Vinod Govindapillai Reviewed-by: Stanislav Lisovskiy --- drivers/gpu/drm/i915/display/intel_bw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/display/intel_bw.c b/drivers/gpu/

[Intel-gfx] [PATCH v7 1/7] drm/i915: fix the derating percentage for MTL

2023-05-24 Thread Vinod Govindapillai
Follow the values from bspec for the percentage overhead for efficiency in MTL BW calculations. Bspec: 64631 Signed-off-by: Vinod Govindapillai Reviewed-by: Matt Roper --- drivers/gpu/drm/i915/display/intel_bw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu

[Intel-gfx] [PATCH v7 0/7] mtl: add support for pmdemand

2023-05-24 Thread Vinod Govindapillai
from v5 v7: Rebased and updates to max ddiclk and acvit phys calculatoins Mika Kahola (1): drm/i915/mtl: Add support for PM DEMAND Vinod Govindapillai (6): drm/i915: fix the derating percentage for MTL drm/i915: update the QGV point frequency calculations drm/i915: store the peak bw per QGV

<    1   2   3   4   >