summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/display/dc/dml/Makefile
diff options
context:
space:
mode:
authorAlex Deucher <alexander.deucher@amd.com>2023-12-01 01:34:07 +0300
committerAlex Deucher <alexander.deucher@amd.com>2023-12-07 00:05:32 +0300
commit5b750b22530fe53bf7fd6a30baacd53ada26911b (patch)
tree6b497ebfcd61f6feafeb3b038eab72d6afe87b60 /drivers/gpu/drm/amd/display/dc/dml/Makefile
parentdbf3850d12baf3ba8a80c302f538d1b01940aef7 (diff)
downloadlinux-5b750b22530fe53bf7fd6a30baacd53ada26911b.tar.xz
drm/amd/display: Increase frame warning limit with KASAN or KCSAN in dml
Does the same thing as: commit 6740ec97bcdb ("drm/amd/display: Increase frame warning limit with KASAN or KCSAN in dml2") Reviewed-by: Harry Wentland <harry.wentland@amd.com> Reported-by: kernel test robot <lkp@intel.com> Closes: https://lore.kernel.org/oe-kbuild-all/202311302107.hUDXVyWT-lkp@intel.com/ Fixes: 67e38874b85b ("drm/amd/display: Increase num voltage states to 40") Signed-off-by: Alex Deucher <alexander.deucher@amd.com> Cc: Alvin Lee <alvin.lee2@amd.com> Cc: Hamza Mahfooz <hamza.mahfooz@amd.com> Cc: Samson Tam <samson.tam@amd.com> Cc: Harry Wentland <harry.wentland@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/display/dc/dml/Makefile')
-rw-r--r--drivers/gpu/drm/amd/display/dc/dml/Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/display/dc/dml/Makefile b/drivers/gpu/drm/amd/display/dc/dml/Makefile
index ea7d60f9a9b4..6042a5a6a44f 100644
--- a/drivers/gpu/drm/amd/display/dc/dml/Makefile
+++ b/drivers/gpu/drm/amd/display/dc/dml/Makefile
@@ -61,8 +61,12 @@ endif
endif
ifneq ($(CONFIG_FRAME_WARN),0)
+ifeq ($(filter y,$(CONFIG_KASAN)$(CONFIG_KCSAN)),y)
+frame_warn_flag := -Wframe-larger-than=3072
+else
frame_warn_flag := -Wframe-larger-than=2048
endif
+endif
CFLAGS_$(AMDDALPATH)/dc/dml/display_mode_lib.o := $(dml_ccflags)
CFLAGS_$(AMDDALPATH)/dc/dml/display_mode_vba.o := $(dml_ccflags)