Skip to content

Commit

Permalink
drm/amd/display: Add num_opp to resource_caps
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Eric Bernstein authored and Alex Deucher committed Jun 15, 2018
1 parent 1203658 commit e952230
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions drivers/gpu/drm/amd/display/dc/dcn10/dcn10_resource.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
1 change: 1 addition & 0 deletions drivers/gpu/drm/amd/display/dc/inc/resource.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit e952230

Please sign in to comment.