]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: Enable building new display engine with KCOV enabled
authorGuenter Roeck <linux@roeck-us.net>
Tue, 12 Jul 2022 22:42:47 +0000 (15:42 -0700)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 18 Jul 2022 20:42:38 +0000 (16:42 -0400)
commit2eca27b205f1828f29f232f021bb81fc20c4abe9
tree4671e8f200d5c749652c14265a3d9924373cd4e9
parent6554ca9a0081388a9cadc41065dcba5db141e761
drm/amd/display: Enable building new display engine with KCOV enabled

The new display engine uses floating point math, which is not supported
by KCOV. Commit 70bcc6a84923 ("drm/amd/display: Don't build DCN1 when kcov
is enabled") tried to work around the problem by disabling
CONFIG_DRM_AMD_DC_DCN if KCOV_INSTRUMENT_ALL and KCOV_ENABLE_COMPARISONS
are enabled. The result is that KCOV can not be enabled on systems which
require this display engine. A much simpler and less invasive solution is
to disable KCOV selectively when compiling the display enagine while
keeping it enabled for the rest of the kernel.

Fixes: 70bcc6a84923 ("drm/amd/display: Don't build DCN1 when kcov is enabled")
Cc: Arnd Bergmann <arnd@arndb.de>
Cc: Leo Li <sunpeng.li@amd.com>
Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/Kconfig
drivers/gpu/drm/amd/display/dc/Makefile