]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/i915/wm: Modify latency programmed into PKG_C_LATENCY
authorSuraj Kandpal <suraj.kandpal@intel.com>
Tue, 3 Dec 2024 08:47:05 +0000 (14:17 +0530)
committerSuraj Kandpal <suraj.kandpal@intel.com>
Thu, 5 Dec 2024 03:34:32 +0000 (09:04 +0530)
commit9aa59753afb50f3353ce33b58e3ed8788df894a9
tree38ab449e0fa91d93d68bbe2cba2971dbde7ef0c6
parent555a09d54e371ad5efc822d902720d681e66ea4e
drm/i915/wm: Modify latency programmed into PKG_C_LATENCY

Increase the latency programmed into PKG_C_LATENCY latency to be
a multiple of line time which is written into WM_LINETIME.

--v2
-Fix commit subject line [Sai Teja]
-Use individual DISPLAY_VER checks instead of range [Sai Teja]
-Initialize max_linetime [Sai Teja]

--v3
-take into account the scenario when adjusted_latency is 0 [Vinod]

--v4
-rename adjusted_latency to latency [Mitul]
-fix the condition in which dpkgc is disabled [Vinod]

--v5
-Add check to see if max_linetime is 0 [Vinod]

--v6
-Avoid nested if statements [Mitul]

WA: 22020299601
Signed-off-by: Suraj Kandpal <suraj.kandpal@intel.com>
Reviewed-by: Mitul Golani <mitulkumar.ajitkumar.golani@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20241203084706.2126189-5-suraj.kandpal@intel.com
drivers/gpu/drm/i915/display/skl_watermark.c