diff options
Diffstat (limited to 'common/recipes-kernel/linux/linux-yocto-4.14.71/4743-drm-amd-display-Add-num_opp-to-resource_caps.patch')
-rw-r--r-- | common/recipes-kernel/linux/linux-yocto-4.14.71/4743-drm-amd-display-Add-num_opp-to-resource_caps.patch | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/common/recipes-kernel/linux/linux-yocto-4.14.71/4743-drm-amd-display-Add-num_opp-to-resource_caps.patch b/common/recipes-kernel/linux/linux-yocto-4.14.71/4743-drm-amd-display-Add-num_opp-to-resource_caps.patch new file mode 100644 index 00000000..df1be129 --- /dev/null +++ b/common/recipes-kernel/linux/linux-yocto-4.14.71/4743-drm-amd-display-Add-num_opp-to-resource_caps.patch @@ -0,0 +1,44 @@ +From 1e2717edbc9cc215ad7292966c6a150b61e96863 Mon Sep 17 00:00:00 2001 +From: Eric Bernstein <eric.bernstein@amd.com> +Date: Fri, 18 May 2018 10:49:33 -0400 +Subject: [PATCH 4743/5725] drm/amd/display: Add num_opp to resource_caps + +Number of OPPs to be instantiated is based on number +of timing generators, not number of pipes. + +Signed-off-by: Eric Bernstein <eric.bernstein@amd.com> +Reviewed-by: Tony Cheng <Tony.Cheng@amd.com> +Acked-by: Harry Wentland <harry.wentland@amd.com> +Signed-off-by: Alex Deucher <alexander.deucher@amd.com> +--- + drivers/gpu/drm/amd/display/dc/dcn10/dcn10_resource.c | 1 + + drivers/gpu/drm/amd/display/dc/inc/resource.h | 1 + + 2 files changed, 2 insertions(+) + +diff --git a/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_resource.c b/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_resource.c +index a2318ca..704acc0 100644 +--- a/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_resource.c ++++ b/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_resource.c +@@ -417,6 +417,7 @@ static const struct dce110_clk_src_mask cs_mask = { + + static const struct resource_caps res_cap = { + .num_timing_generator = 4, ++ .num_opp = 4, + .num_video_plane = 4, + .num_audio = 4, + .num_stream_encoder = 4, +diff --git a/drivers/gpu/drm/amd/display/dc/inc/resource.h b/drivers/gpu/drm/amd/display/dc/inc/resource.h +index abf42a7..5b32100 100644 +--- a/drivers/gpu/drm/amd/display/dc/inc/resource.h ++++ b/drivers/gpu/drm/amd/display/dc/inc/resource.h +@@ -38,6 +38,7 @@ enum dce_version resource_parse_asic_id( + + struct resource_caps { + int num_timing_generator; ++ int num_opp; + int num_video_plane; + int num_audio; + int num_stream_encoder; +-- +2.7.4 + |