On Mon, Aug 16, 2021 at 5:03 PM Fangzhi Zuo <Jerry.Zuo@xxxxxxx> wrote: > > HW Blocks: > > +--------+ +-----+ +------+ > | OPTC | | HDA | | HUBP | > +--------+ +-----+ +------+ > | | | > | | | > HPO ====|==========|========|==== > | | v | > | | +-----+ | > | | | APG | | > | | +-----+ | > | | | | > v v v v > +----------------------+ > | HPO Stream Encoder | > +----------------------+ > > Signed-off-by: Fangzhi Zuo <Jerry.Zuo@xxxxxxx> > --- > .../amd/display/dc/dcn10/dcn10_hw_sequencer.c | 35 + > drivers/gpu/drm/amd/display/dc/dcn31/Makefile | 2 +- > .../dc/dcn31/dcn31_hpo_dp_stream_encoder.c | 761 ++++++++++++++++++ > .../dc/dcn31/dcn31_hpo_dp_stream_encoder.h | 241 ++++++ > .../drm/amd/display/dc/dcn31/dcn31_resource.c | 85 ++ > .../gpu/drm/amd/display/dc/inc/core_types.h | 4 + > .../gpu/drm/amd/display/dc/inc/hw/hw_shared.h | 1 + > .../amd/display/dc/inc/hw/stream_encoder.h | 79 ++ > drivers/gpu/drm/amd/display/dc/inc/resource.h | 4 + > .../amd/display/include/grph_object_defs.h | 10 + > .../drm/amd/display/include/grph_object_id.h | 6 + > 11 files changed, 1227 insertions(+), 1 deletion(-) > create mode 100644 drivers/gpu/drm/amd/display/dc/dcn31/dcn31_hpo_dp_stream_encoder.c > create mode 100644 drivers/gpu/drm/amd/display/dc/dcn31/dcn31_hpo_dp_stream_encoder.h > > diff --git a/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c b/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c > index df8a7718a85f..cffd9e6f44b2 100644 > --- a/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c > +++ b/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c > @@ -466,6 +466,41 @@ void dcn10_log_hw_state(struct dc *dc, > > log_mpc_crc(dc, log_ctx); > > +#if defined(CONFIG_DRM_AMD_DC_DCN3_1) CONFIG_DRM_AMD_DC_DCN3_1 was merged into CONFIG_DRM_AMD_DC_DCN a while ago. This check should be removed or changed to CONFIG_DRM_AMD_DC_DCN depending on the circumstances. Alex