From 3687a419b4b97d21393c38b054685f1e0117b843 Mon Sep 17 00:00:00 2001 From: Takashi Iwai Date: Apr 19 2024 16:27:43 +0000 Subject: drm/amd/display: Fix nanosec stat overflow (stable-fixes). --- diff --git a/patches.suse/drm-amd-display-Fix-nanosec-stat-overflow.patch b/patches.suse/drm-amd-display-Fix-nanosec-stat-overflow.patch new file mode 100644 index 0000000..ee56d4f --- /dev/null +++ b/patches.suse/drm-amd-display-Fix-nanosec-stat-overflow.patch @@ -0,0 +1,45 @@ +From 14d68acfd04b39f34eea7bea65dda652e6db5bf6 Mon Sep 17 00:00:00 2001 +From: Aric Cyr +Date: Thu, 29 Aug 2019 11:53:52 -0400 +Subject: [PATCH] drm/amd/display: Fix nanosec stat overflow +Git-commit: 14d68acfd04b39f34eea7bea65dda652e6db5bf6 +Patch-mainline: v6.9-rc1 +References: stable-fixes + +[Why] +Nanosec stats can overflow on long running systems potentially causing +statistic logging issues. + +[How] +Use 64bit types for nanosec stats to ensure no overflow. + +Reviewed-by: Rodrigo Siqueira +Tested-by: Daniel Wheeler +Signed-off-by: Aric Cyr +Signed-off-by: Alex Deucher +Acked-by: Takashi Iwai + +--- + drivers/gpu/drm/amd/display/modules/inc/mod_stats.h | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/drivers/gpu/drm/amd/display/modules/inc/mod_stats.h b/drivers/gpu/drm/amd/display/modules/inc/mod_stats.h +index 5960dd760e91..8ce6c22e5d04 100644 +--- a/drivers/gpu/drm/amd/display/modules/inc/mod_stats.h ++++ b/drivers/gpu/drm/amd/display/modules/inc/mod_stats.h +@@ -57,10 +57,10 @@ void mod_stats_update_event(struct mod_stats *mod_stats, + unsigned int length); + + void mod_stats_update_flip(struct mod_stats *mod_stats, +- unsigned long timestamp_in_ns); ++ unsigned long long timestamp_in_ns); + + void mod_stats_update_vupdate(struct mod_stats *mod_stats, +- unsigned long timestamp_in_ns); ++ unsigned long long timestamp_in_ns); + + void mod_stats_update_freesync(struct mod_stats *mod_stats, + unsigned int v_total_min, +-- +2.43.0 + diff --git a/series.conf b/series.conf index 3c867bb..b33891c 100644 --- a/series.conf +++ b/series.conf @@ -46026,6 +46026,7 @@ patches.suse/drm-msm-dpu-improve-DSC-allocation.patch patches.suse/drm-msm-dpu-fix-the-programming-of-INTF_CFG2_DATA_HC.patch patches.suse/drm-msm-dpu-Only-enable-DSC_MODE_MULTIPLEX-if-dsc_me.patch + patches.suse/drm-amd-display-Fix-nanosec-stat-overflow.patch patches.suse/drm-amdgpu-Fix-missing-break-in-ATOM_ARG_IMM-Case-of.patch patches.suse/drm-etnaviv-Restore-some-id-values.patch patches.suse/drm-msm-dpu-add-division-of-drm_display_mode-s-hskew.patch