drm/amd/display: Add DC build_id to determine build type
authorJun Lei <Jun.Lei@amd.com>
Thu, 13 Sep 2018 13:32:26 +0000 (09:32 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 9 Oct 2018 22:01:25 +0000 (17:01 -0500)
commitbe61df574256ae8c0dbd45ac148ca7260a0483c0
tree18843a6c77ea601e17a2b5948d8a70bfa442833e
parent51ef434a15b450bfbef1e06cc87ee4e98a224486
drm/amd/display: Add DC build_id to determine build type

[why]
Sometimes there are indications that the incorrect driver is being
loaded in automated tests. This change adds the ability for builds to
be tagged with a string, and picked up by the test infrastructure.

[how]
dc.c will allocate const for build id, which is init-ed with default
value, indicating production build. For test builds, build server will
find/replace this value. The test machine will then verify this value.

Signed-off-by: Jun Lei <Jun.Lei@amd.com>
Reviewed-by: Tony Cheng <Tony.Cheng@amd.com>
Acked-by: Leo Li <sunpeng.li@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc.c
drivers/gpu/drm/amd/display/dc/dc.h