]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/amd/display: Refactor mark_seamless_boot_stream()
authorMario Limonciello <mario.limonciello@amd.com>
Mon, 20 Jan 2025 19:49:03 +0000 (13:49 -0600)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 13 Feb 2025 02:02:58 +0000 (21:02 -0500)
commit16ca828617109666d23921d6568ae8b9802fe212
treef270306f43088608578c677f589e204996dd853f
parent50e30e3a0ef3a748f86fcdd95072e207879a34d0
drm/amd/display: Refactor mark_seamless_boot_stream()

mark_seamless_boot_stream() can be called multiple times to run
the more expensive checks in dc_validate_boot_timing().

Refactor the function so that if those have already passed once
the function isn't called again.

Also add a message the first time that they have passed to let
the user know the stream will be used for seamless boot.

Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Link: https://lore.kernel.org/r/20250120194903.1048811-4-superm1@kernel.org
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc_resource.c