diff options
author | Ding Wang <Ding.Wang@amd.com> | 2017-03-27 14:50:27 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2017-09-26 17:21:31 -0400 |
commit | 4e3133c79dc4b7dc0ff81eb884d6cfe736fc49b1 (patch) | |
tree | 781cc444a3a776e6c8545d12c346715783d3cf6a /drivers/gpu/drm/amd/display/dc/bios/bios_parser.c | |
parent | 7b779c991d9422f677dff70d701eae448c7c696a (diff) |
drm/amd/display: obtain usHBR3En bit from BP 1
ASICs using bios parser 1 don't check HBR3 capability as there is no such
a bit usHBR3En in ATOM_ENCODER_CAP_RECORDER.
Therefore, will use ATOM_ENCODER_CAP_RECORDER_V2 and thus obtain the usHBR3En
bit.
Signed-off-by: Ding Wang <ding.wang@amd.com>
Acked-by: Harry Wentland <Harry.Wentland@amd.com>
Reviewed-by: Tony Cheng <Tony.Cheng@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/display/dc/bios/bios_parser.c')
-rw-r--r-- | drivers/gpu/drm/amd/display/dc/bios/bios_parser.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/drivers/gpu/drm/amd/display/dc/bios/bios_parser.c b/drivers/gpu/drm/amd/display/dc/bios/bios_parser.c index 50163a06a653..47a467688073 100644 --- a/drivers/gpu/drm/amd/display/dc/bios/bios_parser.c +++ b/drivers/gpu/drm/amd/display/dc/bios/bios_parser.c @@ -88,7 +88,7 @@ static ATOM_HPD_INT_RECORD *get_hpd_record(struct bios_parser *bp, static struct device_id device_type_from_device_id(uint16_t device_id); static uint32_t signal_to_ss_id(enum as_signal_type signal); static uint32_t get_support_mask_for_device_id(struct device_id device_id); -static ATOM_ENCODER_CAP_RECORD *get_encoder_cap_record( +static ATOM_ENCODER_CAP_RECORD_V2 *get_encoder_cap_record( struct bios_parser *bp, ATOM_OBJECT *object); @@ -1837,7 +1837,7 @@ static enum bp_result bios_parser_get_encoder_cap_info( { struct bios_parser *bp = BP_FROM_DCB(dcb); ATOM_OBJECT *object; - ATOM_ENCODER_CAP_RECORD *record = NULL; + ATOM_ENCODER_CAP_RECORD_V2 *record = NULL; if (!info) return BP_RESULT_BADINPUT; @@ -1851,8 +1851,8 @@ static enum bp_result bios_parser_get_encoder_cap_info( if (!record) return BP_RESULT_NORECORD; - info->DP_HBR2_CAP = record->usHBR2Cap; info->DP_HBR2_EN = record->usHBR2En; + info->DP_HBR3_EN = record->usHBR3En; return BP_RESULT_OK; } @@ -1867,9 +1867,9 @@ static enum bp_result bios_parser_get_encoder_cap_info( * @return atom encoder cap record * * @note - * search all records to find the ATOM_ENCODER_CAP_RECORD record + * search all records to find the ATOM_ENCODER_CAP_RECORD_V2 record */ -static ATOM_ENCODER_CAP_RECORD *get_encoder_cap_record( +static ATOM_ENCODER_CAP_RECORD_V2 *get_encoder_cap_record( struct bios_parser *bp, ATOM_OBJECT *object) { @@ -1899,8 +1899,8 @@ static ATOM_ENCODER_CAP_RECORD *get_encoder_cap_record( if (ATOM_ENCODER_CAP_RECORD_TYPE != header->ucRecordType) continue; - if (sizeof(ATOM_ENCODER_CAP_RECORD) <= header->ucRecordSize) - return (ATOM_ENCODER_CAP_RECORD *)header; + if (sizeof(ATOM_ENCODER_CAP_RECORD_V2) <= header->ucRecordSize) + return (ATOM_ENCODER_CAP_RECORD_V2 *)header; } return NULL; |