drm/amdgpu and drm/radeon: a slew of small fixes
Subsystems (3)
cover drm/amdgpu and drm/radeon: a slew of small fixes
This series goes from fixing typos in amdgpu and radeon to renaming functions in DCE11.0 so it follows the convention of using a DCE/DCN version prefix for naming functions.
Alexandre Demers (6):
drm/amdgpu: rename function to follow naming convention in dce110 drm/amdgpu: add missing parameter name in dce110_clk_src_construct()
declaration
drm/amdgpu: fix typo in atombios.h
drm/radeon: fix typo in atombios.h
drm/amdgpu: fix duplicated value setting in
dce100_resource_construct()
drm/amdgpu: fix typo in bios_parser.c
drivers/gpu/drm/amd/display/dc/bios/bios_parser.c | 4 ++-- drivers/gpu/drm/amd/display/dc/dce/dce_clock_source.h | 2 +- drivers/gpu/drm/amd/display/dc/hwss/dce110/dce110_hwseq.c | 8 ++++---- .../drm/amd/display/dc/resource/dce100/dce100_resource.c | 2 +- drivers/gpu/drm/amd/include/atombios.h | 2 +- drivers/gpu/drm/radeon/atombios.h | 5 ++--- 6 files changed, 11 insertions(+), 12 deletions(-)
Signature · 1 line
2.49.0
PATCH 1/6 drm/amdgpu: rename function to follow naming convention in dce110
The prefix dce110 is used on all functions, but init_pipes() and init_hw(). Under DCN, these sames functions are prefixed.
Let's keep thing coherent.
--- drivers/gpu/drm/amd/display/dc/hwss/dce110/dce110_hwseq.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
drivers/gpu/drm/amd/display/dc/hwss/dce110/dce110_hwseq.c +4 -4
@@ -2761,12 +2761,12 @@ static void dce110_enable_per_frame_crtc_position_reset( } -static void init_pipes (struct dc *dc,struct dc_state *context) +static void dce110_init_pipes (struct dc *dc,struct dc_state *context) {// Do nothing } -static void init_hw (struct dc *dc) +static void dce110_init_hw (struct dc *dc) {int i;struct dc_bios *bp;
@@ -3325,7 +3325,7 @@ void dce110_disable_link_output(struct dc_link *link,static const struct hw_sequencer_funcs dce110_funcs = { .program_gamut_remap = program_gamut_remap, .program_output_csc = program_output_csc, - .init_hw = init_hw, + .init_hw = dce110_init_hw, .apply_ctx_to_hw = dce110_apply_ctx_to_hw, .apply_ctx_for_surface = dce110_apply_ctx_for_surface, .post_unlock_program_front_end = dce110_post_unlock_program_front_end,
@@ -3368,7 +3368,7 @@ static const struct hw_sequencer_funcs dce110_funcs = { };static const struct hwseq_private_funcs dce110_private_funcs = { - .init_pipes = init_pipes, + .init_pipes = dce110_init_pipes, .set_input_transfer_func = dce110_set_input_transfer_func, .set_output_transfer_func = dce110_set_output_transfer_func, .power_down = dce110_power_down,
Signature · 1 line
2.49.0
PATCH 2/6 drm/amdgpu: add missing parameter name in dce110_clk_src_construct() declaration
In reply to Alexandre DemersWhile not needed per speaking, all the other parameters have names but this one.
--- drivers/gpu/drm/amd/display/dc/dce/dce_clock_source.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/display/dc/dce/dce_clock_source.h +1 -1
@@ -257,7 +257,7 @@ bool dce110_clk_src_construct(struct dce110_clk_src *clk_src, struct dc_context *ctx, struct dc_bios *bios, - enum clock_source_id, + enum clock_source_id id, const struct dce110_clk_src_regs *regs, const struct dce110_clk_src_shift *cs_shift, const struct dce110_clk_src_mask *cs_mask);
Signature · 1 line
2.49.0
PATCH 3/6 drm/amdgpu: fix typo in atombios.h
In reply to Alexandre Demers"aligned" not "aligend"
--- drivers/gpu/drm/amd/include/atombios.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/include/atombios.h +1 -1
@@ -4308,7 +4308,7 @@ typedef struct _ATOM_DPCD_INFO// note2: From RV770, the memory is more than 32bit addressable, so we will change // ucTableFormatRevision=1,ucTableContentRevision=4, the strcuture remains // exactly same as 1.1 and 1.2 (1.3 is never in use), but ulStartAddrUsedByFirmware -// (in offset to start of memory address) is KB aligned instead of byte aligend. +// (in offset to start of memory address) is KB aligned instead of byte aligned. // Note3: /* If we change usReserved to "usFBUsedbyDrvInKB", then to VBIOS this usFBUsedbyDrvInKB is a predefined, unchanged constant across VGA or non VGA adapter,
Signature · 1 line
2.49.0
PATCH 4/6 drm/radeon: fix typo in atombios.h
In reply to Alexandre Demers"aligned" not "aligend"
--- drivers/gpu/drm/radeon/atombios.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-)
drivers/gpu/drm/radeon/atombios.h +2 -3
@@ -421,8 +421,8 @@ typedef struct _COMPUTE_MEMORY_ENGINE_PLL_PARAMETERS_V2USHORT usFbDiv;//return Feedback value to be written to register UCHAR ucPostDiv;//return post div to be written to register }COMPUTE_MEMORY_ENGINE_PLL_PARAMETERS_V2 ; -#define COMPUTE_MEMORY_ENGINE_PLL_PARAMETERS_PS_ALLOCATION COMPUTE_MEMORY_ENGINE_PLL_PARAMETERS +#define COMPUTE_MEMORY_ENGINE_PLL_PARAMETERS_PS_ALLOCATION COMPUTE_MEMORY_ENGINE_PLL_PARAMETERS#define SET_CLOCK_FREQ_MASK 0x00FFFFFF //Clock change tables only take bit [23:0] as the requested clock value#define USE_NON_BUS_CLOCK_MASK 0x01000000 //Applicable to both memory and engine clock change, when set, it uses another clock as the temporary clock (engine uses memory and vice versa)
@@ -3825,8 +3825,7 @@ typedef struct _ATOM_DPCD_INFO// note2: From RV770, the memory is more than 32bit addressable, so we will change // ucTableFormatRevision=1,ucTableContentRevision=4, the structure remains // exactly same as 1.1 and 1.2 (1.3 is never in use), but ulStartAddrUsedByFirmware -// (in offset to start of memory address) is KB aligned instead of byte aligend. -/***********************************************************************************/ +// (in offset to start of memory address) is KB aligned instead of byte aligned. // Note3: /* If we change usReserved to "usFBUsedbyDrvInKB", then to VBIOS this usFBUsedbyDrvInKB is a predefined, unchanged constant across VGA or non VGA adapter, for CAIL, The size of FB access area is known, only thing missing is the Offset of FB Access area, so we can have:
Signature · 1 line
2.49.0
PATCH 5/6 drm/amdgpu: fix duplicated value setting in dce100_resource_construct()
In reply to Alexandre Demersi2c_speed_in_khz was set twice with the same values. Looking at other DCE versions, we probably wanted to set the value for i2c_speed_in_khz_hdcp.
--- .../gpu/drm/amd/display/dc/resource/dce100/dce100_resource.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/display/dc/resource/dce100/dce100_resource.c +1 -1
@@ -1069,7 +1069,7 @@ static bool dce100_resource_construct( pool->base.timing_generator_count = pool->base.res_cap->num_timing_generator; dc->caps.max_downscale_ratio =200 ; dc->caps.i2c_speed_in_khz =40 ; - dc->caps.i2c_speed_in_khz =40 ; + dc->caps.i2c_speed_in_khz_hdcp =40 ; dc->caps.max_cursor_size =128 ; dc->caps.min_horizontal_blanking_period =80 ; dc->caps.dual_link_dvi = true;
Signature · 1 line
2.49.0
PATCH 6/6 drm/amdgpu: fix typo in bios_parser.c
In reply to Alexandre DemersProbably a cut and paste error from using get_integrated_info_v8's comment. This has to be get_integrated_info_v9
--- drivers/gpu/drm/amd/display/dc/bios/bios_parser.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/gpu/drm/amd/display/dc/bios/bios_parser.c +2 -2
@@ -2384,10 +2384,10 @@ static enum bp_result get_integrated_info_v8( }/* -* get_integrated_info_v8 +* get_integrated_info_v9 * * @brief -* Get V8 integrated BIOS information +* Get V9 integrated BIOS information * * @param * bios_parser *bp - [in]BIOS parser handler to get master data table
Signature · 1 line
2.49.0
Alex Deucher
AppliedRe: [PATCH 6/6] drm/amdgpu: fix typo in bios_parser.c
Applied the series. Thanks.
Alex
Quoted 29 lines · Alexandre Demers
Probably a cut and paste error from using get_integrated_info_v8's comment. This has to be
get_integrated_info_v9Signed-off-by Alexandre Demers <[email protected]>--- drivers/gpu/drm/amd/display/dc/bios/bios_parser.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)drivers/gpu/drm/amd/display/dc/bios/bios_parser.c +2
-3@@ -2384,10 +2384,10 @@ static enum bp_result get_integrated_info_v8( }/* -* get_integrated_info_v8 +* get_integrated_info_v9 * * @brief -* Get V8 integrated BIOS information +* Get V9 integrated BIOS information * * @param * bios_parser *bp - [in]BIOS parser handler to get master data table -- 2.49.0
I should get used to add Alex Deucher's email in CC.
Quoted 26 lines · Alexandre Demers
This series goes from fixing typos in amdgpu and radeon to renaming functions in DCE11.0 so it follows the convention of using a DCE/DCN version prefix for naming functions.
Alexandre Demers (6):
drm/amdgpu: rename function to follow naming convention in dce110 drm/amdgpu: add missing parameter name indce110_clk_src_construct()
declaration
drm/amdgpu: fix typo inatombios.h
drm/radeon: fix typo inatombios.h
drm/amdgpu: fix duplicated value setting indce100_resource_construct()drm/amdgpu: fix typo in
bios_parser.cdrivers/gpu/drm/amd/display/dc/bios/bios_parser.c | 4 ++-- drivers/gpu/drm/amd/display/dc/dce/dce_clock_source.h | 2 +- drivers/gpu/drm/amd/display/dc/hwss/dce110/dce110_hwseq.c | 8 ++++---- .../drm/amd/display/dc/resource/dce100/dce100_resource.c | 2 +- drivers/gpu/drm/amd/include/atombios.h | 2 +- drivers/gpu/drm/radeon/atombios.h | 5 ++--- 6 files changed, 11 insertions(+), 12 deletions(-)--
2.49.0