Rid W=1 warnings from GPU
Subsystems (8)
cover Rid W=1 warnings from GPU
This set is part of a larger effort attempting to clean-up W=1 kernel builds, which are currently overwhelmingly riddled with niggly little warnings.
300 out of 5000 left!
Lee Jones (40):
drm/nouveau/nvkm/subdev/bios/init: Demote obvious abuse of kernel-doc drm/nouveau/dispnv50/disp: Remove unused variable 'ret' drm/msm/dp/dp_display: Remove unused variable 'hpd' drm/amd/amdgpu/amdgpu_ih: Update 'amdgpu_ih_decode_iv_helper()'s
function header
drm/amd/amdgpu/vega20_ih: Add missing descriptions for 'ih' and fix
spelling error
drm/amd/pm/powerplay/hwmgr/process_pptables_v1_0: Provide description
of 'call_back_func'
drm/amd/pm/powerplay/hwmgr/ppatomctrl: Fix documentation for
'mpll_param'
drm/amd/pm/powerplay/hwmgr/vega12_hwmgr: Fix legacy function header
formatting
drm/amd/pm/powerplay/hwmgr/vega20_hwmgr: Fix legacy function header
formatting
drm/amd/pm/powerplay/hwmgr/smu7_hwmgr: Fix formatting and spelling
issues
drm/amd/pm/powerplay/hwmgr/hwmgr: Move prototype into shared header drm/amd/pm/powerplay/hwmgr/vega10_hwmgr: Fix a bunch of kernel-doc
formatting issues
drm/amd/display/dc/basics/conversion: Demote obvious kernel-doc abuse drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs: Demote non-kernel-doc
comment blocks
drm/amd/display/dc/bios/command_table_helper: Fix kernel-doc
formatting
drm/amd/display/dc/bios/command_table_helper2: Fix legacy formatting
problems
drm/amd/display/dc/bios/bios_parser: Make local functions static drm/amd/display/dc/bios/bios_parser: Fix a whole bunch of legacy doc
formatting
drm/amd/display/dc/bios/command_table: Remove unused variable
include: drm: drm_atomic: Make use of 'new_plane_state' drm/amd/display/dc/calcs/dce_calcs: Remove unused variables
'v_filter_init_mode' and 'sclk_lvl'
drm/amd/display/dc/bios/bios_parser2: Fix some formatting issues and
missing parameter docs
drm/amd/display/dc/dce/dce_audio: Make function invoked by reference
static
drm/amd/display/dc/dce/dce_stream_encoder: Remove unused variable
'regval'
drm/amd/display/dc/dce/dce_link_encoder: Make functions invoked by
reference static
drm/amd/display/dc/dce/dce_clock_source: Fix formatting/spelling of
worthy function headers
drm/amd/pm/powerplay/hwmgr/vega10_hwmgr: Fix worthy function headers,
demote barely documented one
drm/amd/display/dc/dce/dce_transform: Remove 3 unused/legacy variables drm/amd/display/dc/dce/dce_dmcu: Staticify local function call
'dce_dmcu_load_iram'
drm/amd/display/dc/dce/dce_dmcu: Move 'abm_gain_stepsize' to only
source file it's used in
drm/amd/display/dc/dce/dce_opp: Make local functions and ones invoked
by reference static
drm/amd/display/dc/dce/dce_aux: Remove unused function
'get_engine_type'
drm/nouveau/nvkm/subdev/volt/gk20a: Demote non-conformant kernel-doc
headers
drm/amd/display/dc/bios/bios_parser: Fix misspelling of function
parameter
drm/amd/display/dc/bios/command_table: Remove unused variable and
associated comment
drm/amd/display/dc/dce/dce_i2c_hw: Make functions called by reference
static
drm/amd/display/dc/dce/dce_i2c_sw: Make a bunch of local functions
static
drm/amd/display/dc/dce/dce_panel_cntl: Remove unused variables
'bl_pwm_cntl' and 'pwm_period_cntl'
drm/amd/display/dc/dce/dmub_psr: Demote non-conformant kernel-doc
headers
drm/amd/display/dc/gpio/hw_factory: Delete unused function
'dal_hw_factory_destroy'
drivers/gpu/drm/amd/amdgpu/amdgpu_ih.c | 2 + drivers/gpu/drm/amd/amdgpu/vega20_ih.c | 5 +- .../amd/display/amdgpu_dm/amdgpu_dm_debugfs.c | 4 +- .../drm/amd/display/dc/basics/conversion.c | 9 +- .../gpu/drm/amd/display/dc/bios/bios_parser.c | 119 +++++----- .../drm/amd/display/dc/bios/bios_parser2.c | 29 ++- .../drm/amd/display/dc/bios/command_table.c | 16 +- .../display/dc/bios/command_table_helper.c | 20 +- .../display/dc/bios/command_table_helper2.c | 20 +- .../gpu/drm/amd/display/dc/calcs/dce_calcs.c | 8 +- .../gpu/drm/amd/display/dc/dce/dce_audio.c | 2 +- drivers/gpu/drm/amd/display/dc/dce/dce_aux.c | 6 - .../drm/amd/display/dc/dce/dce_clock_source.c | 57 +++-- drivers/gpu/drm/amd/display/dc/dce/dce_dmcu.c | 6 +- drivers/gpu/drm/amd/display/dc/dce/dce_dmcu.h | 2 - .../gpu/drm/amd/display/dc/dce/dce_i2c_hw.c | 4 +- .../gpu/drm/amd/display/dc/dce/dce_i2c_sw.c | 9 +- .../drm/amd/display/dc/dce/dce_link_encoder.c | 6 +- drivers/gpu/drm/amd/display/dc/dce/dce_opp.c | 8 +- .../drm/amd/display/dc/dce/dce_panel_cntl.c | 8 +- .../amd/display/dc/dce/dce_stream_encoder.c | 3 +- .../drm/amd/display/dc/dce/dce_transform.c | 13 -- drivers/gpu/drm/amd/display/dc/dce/dmub_psr.c | 22 +- .../gpu/drm/amd/display/dc/gpio/hw_factory.c | 14 -- .../gpu/drm/amd/pm/powerplay/hwmgr/hwmgr.c | 2 +- .../drm/amd/pm/powerplay/hwmgr/ppatomctrl.c | 4 +- .../powerplay/hwmgr/process_pptables_v1_0.c | 1 + .../drm/amd/pm/powerplay/hwmgr/smu7_hwmgr.c | 4 +- .../drm/amd/pm/powerplay/hwmgr/vega10_hwmgr.c | 137 ++++++------ .../drm/amd/pm/powerplay/hwmgr/vega10_hwmgr.h | 1 + .../drm/amd/pm/powerplay/hwmgr/vega12_hwmgr.c | 11 +- .../drm/amd/pm/powerplay/hwmgr/vega20_hwmgr.c | 11 +- drivers/gpu/drm/msm/dp/dp_display.c | 3 - drivers/gpu/drm/nouveau/dispnv50/disp.c | 3 +- .../gpu/drm/nouveau/nvkm/subdev/bios/init.c | 204 ++++++------------ .../gpu/drm/nouveau/nvkm/subdev/volt/gk20a.c | 4 +- include/drm/drm_atomic.h | 3 +- 37 files changed, 325 insertions(+), 455 deletions(-)
Signature · 6 lines
2.25.1 _______________________________________________ Freedreno mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/freedreno
PATCH 1/40 drm/nouveau/nvkm/subdev/bios/init: Demote obvious abuse of kernel-doc
Fixes the following W=1 kernel build warning(s):
drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c:584: warning: Function parameter or member 'init' not described in 'init_reserved' drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c:611: warning: Function parameter or member 'init' not described in 'init_done' drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c:622: warning: Function parameter or member 'init' not described in 'init_io_restrict_prog' drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c:659: warning: Function parameter or member 'init' not described in 'init_repeat' drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c:685: warning: Function parameter or member 'init' not described in 'init_io_restrict_pll' drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c:725: warning: Function parameter or member 'init' not described in 'init_end_repeat'
NB: Trimmed for brevity (lots of these!)
--- .../gpu/drm/nouveau/nvkm/subdev/bios/init.c | 204 ++++++------------ 1 file changed, 68 insertions(+), 136 deletions(-)
drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c +68 -136
@@ -575,9 +575,8 @@ init_tmds_reg(struct nvbios_init *init, u8 tmds)* init opcode handlers *****************************************************************************/ -/** +/* * init_reserved - stub for various unknown/unused single-byte opcodes -* */ static void init_reserved (struct nvbios_init *init)
@@ -602,9 +601,8 @@ init_reserved(struct nvbios_init *init) init->offset += length; } -/** +/* * INIT_DONE - opcode 0x71 -* */ static void init_done (struct nvbios_init *init)
@@ -613,9 +611,8 @@ init_done(struct nvbios_init *init) init->offset =0x0000 ; } -/** +/* * INIT_IO_RESTRICT_PROG - opcode 0x32 -* */ static void init_io_restrict_prog (struct nvbios_init *init)
@@ -650,9 +647,8 @@ init_io_restrict_prog(struct nvbios_init *init)trace ("}]\n" ); } -/** +/* * INIT_REPEAT - opcode 0x33 -* */ static void init_repeat (struct nvbios_init *init)
@@ -676,9 +672,8 @@ init_repeat(struct nvbios_init *init) init->repeat = repeat; } -/** +/* * INIT_IO_RESTRICT_PLL - opcode 0x34 -* */ static void init_io_restrict_pll (struct nvbios_init *init)
@@ -716,9 +711,8 @@ init_io_restrict_pll(struct nvbios_init *init)trace ("}]\n" ); } -/** +/* * INIT_END_REPEAT - opcode 0x36 -* */ static void init_end_repeat (struct nvbios_init *init)
@@ -732,9 +726,8 @@ init_end_repeat(struct nvbios_init *init) } } -/** +/* * INIT_COPY - opcode 0x37 -* */ static void init_copy (struct nvbios_init *init)
@@ -759,9 +752,8 @@ init_copy(struct nvbios_init *init)init_wrvgai (init, port, index, data); } -/** +/* * INIT_NOT - opcode 0x38 -* */ static void init_not (struct nvbios_init *init)
@@ -771,9 +763,8 @@ init_not(struct nvbios_init *init)init_exec_inv (init); } -/** +/* * INIT_IO_FLAG_CONDITION - opcode 0x39 -* */ static void init_io_flag_condition (struct nvbios_init *init)
@@ -788,9 +779,8 @@ init_io_flag_condition(struct nvbios_init *init)init_exec_set (init, false); } -/** +/* * INIT_GENERIC_CONDITION - opcode 0x3a -* */ static void init_generic_condition (struct nvbios_init *init)
@@ -840,9 +830,8 @@ init_generic_condition(struct nvbios_init *init) } } -/** +/* * INIT_IO_MASK_OR - opcode 0x3b -* */ static void init_io_mask_or (struct nvbios_init *init)
@@ -859,9 +848,8 @@ init_io_mask_or(struct nvbios_init *init)init_wrvgai (init,0x03d4 , index, data &= ~(1 << or)); } -/** +/* * INIT_IO_OR - opcode 0x3c -* */ static void init_io_or (struct nvbios_init *init)
@@ -878,9 +866,8 @@ init_io_or(struct nvbios_init *init)init_wrvgai (init,0x03d4 , index, data | (1 << or)); } -/** +/* * INIT_ANDN_REG - opcode 0x47 -* */ static void init_andn_reg (struct nvbios_init *init)
@@ -895,9 +882,8 @@ init_andn_reg(struct nvbios_init *init)init_mask (init, reg, mask,0 ); } -/** +/* * INIT_OR_REG - opcode 0x48 -* */ static void init_or_reg (struct nvbios_init *init)
@@ -912,9 +898,8 @@ init_or_reg(struct nvbios_init *init)init_mask (init, reg,0 , mask); } -/** +/* * INIT_INDEX_ADDRESS_LATCHED - opcode 0x49 -* */ static void init_idx_addr_latched (struct nvbios_init *init)
@@ -942,9 +927,8 @@ init_idx_addr_latched(struct nvbios_init *init) } } -/** +/* * INIT_IO_RESTRICT_PLL2 - opcode 0x4a -* */ static void init_io_restrict_pll2 (struct nvbios_init *init)
@@ -977,9 +961,8 @@ init_io_restrict_pll2(struct nvbios_init *init)trace ("}]\n" ); } -/** +/* * INIT_PLL2 - opcode 0x4b -* */ static void init_pll2 (struct nvbios_init *init)
@@ -994,9 +977,8 @@ init_pll2(struct nvbios_init *init)init_prog_pll (init, reg, freq); } -/** +/* * INIT_I2C_BYTE - opcode 0x4c -* */ static void init_i2c_byte (struct nvbios_init *init)
@@ -1025,9 +1007,8 @@ init_i2c_byte(struct nvbios_init *init) } } -/** +/* * INIT_ZM_I2C_BYTE - opcode 0x4d -* */ static void init_zm_i2c_byte (struct nvbios_init *init)
@@ -1051,9 +1032,8 @@ init_zm_i2c_byte(struct nvbios_init *init) } } -/** +/* * INIT_ZM_I2C - opcode 0x4e -* */ static void init_zm_i2c (struct nvbios_init *init)
@@ -1085,9 +1065,8 @@ init_zm_i2c(struct nvbios_init *init) } } -/** +/* * INIT_TMDS - opcode 0x4f -* */ static void init_tmds (struct nvbios_init *init)
@@ -1111,9 +1090,8 @@ init_tmds(struct nvbios_init *init)init_wr32 (init, reg +0 , addr); } -/** +/* * INIT_ZM_TMDS_GROUP - opcode 0x50 -* */ static void init_zm_tmds_group (struct nvbios_init *init)
@@ -1138,9 +1116,8 @@ init_zm_tmds_group(struct nvbios_init *init) } } -/** +/* * INIT_CR_INDEX_ADDRESS_LATCHED - opcode 0x51 -* */ static void init_cr_idx_adr_latch (struct nvbios_init *init)
@@ -1168,9 +1145,8 @@ init_cr_idx_adr_latch(struct nvbios_init *init)init_wrvgai (init,0x03d4 , addr0, save0); } -/** +/* * INIT_CR - opcode 0x52 -* */ static void init_cr (struct nvbios_init *init)
@@ -1188,9 +1164,8 @@ init_cr(struct nvbios_init *init)init_wrvgai (init,0x03d4 , addr, val | data); } -/** +/* * INIT_ZM_CR - opcode 0x53 -* */ static void init_zm_cr (struct nvbios_init *init)
@@ -1205,9 +1180,8 @@ init_zm_cr(struct nvbios_init *init)init_wrvgai (init,0x03d4 , addr, data); } -/** +/* * INIT_ZM_CR_GROUP - opcode 0x54 -* */ static void init_zm_cr_group (struct nvbios_init *init)
@@ -1229,9 +1203,8 @@ init_zm_cr_group(struct nvbios_init *init) } } -/** +/* * INIT_CONDITION_TIME - opcode 0x56 -* */ static void init_condition_time (struct nvbios_init *init)
@@ -1256,9 +1229,8 @@ init_condition_time(struct nvbios_init *init)init_exec_set (init, false); } -/** +/* * INIT_LTIME - opcode 0x57 -* */ static void init_ltime (struct nvbios_init *init)
@@ -1273,9 +1245,8 @@ init_ltime(struct nvbios_init *init)mdelay (msec); } -/** +/* * INIT_ZM_REG_SEQUENCE - opcode 0x58 -* */ static void init_zm_reg_sequence (struct nvbios_init *init)
@@ -1298,9 +1269,8 @@ init_zm_reg_sequence(struct nvbios_init *init) } } -/** +/* * INIT_PLL_INDIRECT - opcode 0x59 -* */ static void init_pll_indirect (struct nvbios_init *init)
@@ -1317,9 +1287,8 @@ init_pll_indirect(struct nvbios_init *init)init_prog_pll (init, reg, freq); } -/** +/* * INIT_ZM_REG_INDIRECT - opcode 0x5a -* */ static void init_zm_reg_indirect (struct nvbios_init *init)
@@ -1336,9 +1305,8 @@ init_zm_reg_indirect(struct nvbios_init *init)init_wr32 (init, addr, data); } -/** +/* * INIT_SUB_DIRECT - opcode 0x5b -* */ static void init_sub_direct (struct nvbios_init *init)
@@ -1362,9 +1330,8 @@ init_sub_direct(struct nvbios_init *init) init->offset +=3 ; } -/** +/* * INIT_JUMP - opcode 0x5c -* */ static void init_jump (struct nvbios_init *init)
@@ -1380,9 +1347,8 @@ init_jump(struct nvbios_init *init) init->offset +=3 ; } -/** +/* * INIT_I2C_IF - opcode 0x5e -* */ static void init_i2c_if (struct nvbios_init *init)
@@ -1407,9 +1373,8 @@ init_i2c_if(struct nvbios_init *init)init_exec_force (init, false); } -/** +/* * INIT_COPY_NV_REG - opcode 0x5f -* */ static void init_copy_nv_reg (struct nvbios_init *init)
@@ -1433,9 +1398,8 @@ init_copy_nv_reg(struct nvbios_init *init)init_mask (init, dreg, ~dmask, (data & smask) ^ sxor); } -/** +/* * INIT_ZM_INDEX_IO - opcode 0x62 -* */ static void init_zm_index_io (struct nvbios_init *init)
@@ -1451,9 +1415,8 @@ init_zm_index_io(struct nvbios_init *init)init_wrvgai (init, port, index, data); } -/** +/* * INIT_COMPUTE_MEM - opcode 0x63 -* */ static void init_compute_mem (struct nvbios_init *init)
@@ -1469,9 +1432,8 @@ init_compute_mem(struct nvbios_init *init)init_exec_force (init, false); } -/** +/* * INIT_RESET - opcode 0x65 -* */ static void init_reset (struct nvbios_init *init)
@@ -1496,9 +1458,8 @@ init_reset(struct nvbios_init *init)init_exec_force (init, false); } -/** +/* * INIT_CONFIGURE_MEM - opcode 0x66 -* */ static u16 init_configure_mem_clk (struct nvbios_init *init)
@@ -1555,9 +1516,8 @@ init_configure_mem(struct nvbios_init *init)init_exec_force (init, false); } -/** +/* * INIT_CONFIGURE_CLK - opcode 0x67 -* */ static void init_configure_clk (struct nvbios_init *init)
@@ -1589,9 +1549,8 @@ init_configure_clk(struct nvbios_init *init)init_exec_force (init, false); } -/** +/* * INIT_CONFIGURE_PREINIT - opcode 0x68 -* */ static void init_configure_preinit (struct nvbios_init *init)
@@ -1615,9 +1574,8 @@ init_configure_preinit(struct nvbios_init *init)init_exec_force (init, false); } -/** +/* * INIT_IO - opcode 0x69 -* */ static void init_io (struct nvbios_init *init)
@@ -1655,9 +1613,8 @@ init_io(struct nvbios_init *init)init_wrport (init, port, data | value); } -/** +/* * INIT_SUB - opcode 0x6b -* */ static void init_sub (struct nvbios_init *init)
@@ -1682,9 +1639,8 @@ init_sub(struct nvbios_init *init) init->offset +=2 ; } -/** +/* * INIT_RAM_CONDITION - opcode 0x6d -* */ static void init_ram_condition (struct nvbios_init *init)
@@ -1701,9 +1657,8 @@ init_ram_condition(struct nvbios_init *init)init_exec_set (init, false); } -/** +/* * INIT_NV_REG - opcode 0x6e -* */ static void init_nv_reg (struct nvbios_init *init)
@@ -1719,9 +1674,8 @@ init_nv_reg(struct nvbios_init *init)init_mask (init, reg, ~mask, data); } -/** +/* * INIT_MACRO - opcode 0x6f -* */ static void init_macro (struct nvbios_init *init)
@@ -1743,9 +1697,8 @@ init_macro(struct nvbios_init *init) init->offset +=2 ; } -/** +/* * INIT_RESUME - opcode 0x72 -* */ static void init_resume (struct nvbios_init *init)
@@ -1755,9 +1708,8 @@ init_resume(struct nvbios_init *init)init_exec_set (init, true); } -/** +/* * INIT_STRAP_CONDITION - opcode 0x73 -* */ static void init_strap_condition (struct nvbios_init *init)
@@ -1773,9 +1725,8 @@ init_strap_condition(struct nvbios_init *init)init_exec_set (init, false); } -/** +/* * INIT_TIME - opcode 0x74 -* */ static void init_time (struct nvbios_init *init)
@@ -1794,9 +1745,8 @@ init_time(struct nvbios_init *init) } } -/** +/* * INIT_CONDITION - opcode 0x75 -* */ static void init_condition (struct nvbios_init *init)
@@ -1811,9 +1761,8 @@ init_condition(struct nvbios_init *init)init_exec_set (init, false); } -/** +/* * INIT_IO_CONDITION - opcode 0x76 -* */ static void init_io_condition (struct nvbios_init *init)
@@ -1828,9 +1777,8 @@ init_io_condition(struct nvbios_init *init)init_exec_set (init, false); } -/** +/* * INIT_ZM_REG16 - opcode 0x77 -* */ static void init_zm_reg16 (struct nvbios_init *init)
@@ -1845,9 +1793,8 @@ init_zm_reg16(struct nvbios_init *init)init_wr32 (init, addr, data); } -/** +/* * INIT_INDEX_IO - opcode 0x78 -* */ static void init_index_io (struct nvbios_init *init)
@@ -1867,9 +1814,8 @@ init_index_io(struct nvbios_init *init)init_wrvgai (init, port, index, data | value); } -/** +/* * INIT_PLL - opcode 0x79 -* */ static void init_pll (struct nvbios_init *init)
@@ -1884,9 +1830,8 @@ init_pll(struct nvbios_init *init)init_prog_pll (init, reg, freq); } -/** +/* * INIT_ZM_REG - opcode 0x7a -* */ static void init_zm_reg (struct nvbios_init *init)
@@ -1904,9 +1849,8 @@ init_zm_reg(struct nvbios_init *init)init_wr32 (init, addr, data); } -/** +/* * INIT_RAM_RESTRICT_PLL - opcde 0x87 -* */ static void init_ram_restrict_pll (struct nvbios_init *init)
@@ -1934,9 +1878,8 @@ init_ram_restrict_pll(struct nvbios_init *init) } } -/** +/* * INIT_RESET_BEGUN - opcode 0x8c -* */ static void init_reset_begun (struct nvbios_init *init)
@@ -1945,9 +1888,8 @@ init_reset_begun(struct nvbios_init *init) init->offset +=1 ; } -/** +/* * INIT_RESET_END - opcode 0x8d -* */ static void init_reset_end (struct nvbios_init *init)
@@ -1956,9 +1898,8 @@ init_reset_end(struct nvbios_init *init) init->offset +=1 ; } -/** +/* * INIT_GPIO - opcode 0x8e -* */ static void init_gpio (struct nvbios_init *init)
@@ -1972,9 +1913,8 @@ init_gpio(struct nvbios_init *init)nvkm_gpio_reset (gpio,DCB_GPIO_UNUSED ); } -/** +/* * INIT_RAM_RESTRICT_ZM_GROUP - opcode 0x8f -* */ static void init_ram_restrict_zm_reg_group (struct nvbios_init *init)
@@ -2010,9 +1950,8 @@ init_ram_restrict_zm_reg_group(struct nvbios_init *init) } } -/** +/* * INIT_COPY_ZM_REG - opcode 0x90 -* */ static void init_copy_zm_reg (struct nvbios_init *init)
@@ -2027,9 +1966,8 @@ init_copy_zm_reg(struct nvbios_init *init)init_wr32 (init, dreg,init_rd32 (init, sreg)); } -/** +/* * INIT_ZM_REG_GROUP - opcode 0x91 -* */ static void init_zm_reg_group (struct nvbios_init *init)
@@ -2049,9 +1987,8 @@ init_zm_reg_group(struct nvbios_init *init) } } -/** +/* * INIT_XLAT - opcode 0x96 -* */ static void init_xlat (struct nvbios_init *init)
@@ -2077,9 +2014,8 @@ init_xlat(struct nvbios_init *init)init_mask (init, daddr, ~dmask, data); } -/** +/* * INIT_ZM_MASK_ADD - opcode 0x97 -* */ static void init_zm_mask_add (struct nvbios_init *init)
@@ -2098,9 +2034,8 @@ init_zm_mask_add(struct nvbios_init *init)init_wr32 (init, addr, data); } -/** +/* * INIT_AUXCH - opcode 0x98 -* */ static void init_auxch (struct nvbios_init *init)
@@ -2122,9 +2057,8 @@ init_auxch(struct nvbios_init *init) } } -/** +/* * INIT_AUXCH - opcode 0x99 -* */ static void init_zm_auxch (struct nvbios_init *init)
@@ -2144,9 +2078,8 @@ init_zm_auxch(struct nvbios_init *init) } } -/** +/* * INIT_I2C_LONG_IF - opcode 0x9a -* */ static void init_i2c_long_if (struct nvbios_init *init)
@@ -2183,9 +2116,8 @@ init_i2c_long_if(struct nvbios_init *init)init_exec_set (init, false); } -/** +/* * INIT_GPIO_NE - opcode 0xa9 -* */ static void init_gpio_ne (struct nvbios_init *init)
Signature · 1 line
2.25.1
PATCH 2/40 drm/nouveau/dispnv50/disp: Remove unused variable 'ret'
In reply to Lee JonesFixes the following W=1 kernel build warning(s):
drivers/gpu/drm/nouveau/dispnv50/disp.c:1381:6: warning: variable ‘ret’ set but not used [-Wunused-but-set-variable]
--- drivers/gpu/drm/nouveau/dispnv50/disp.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/gpu/drm/nouveau/dispnv50/disp.c +1 -2
@@ -1378,10 +1378,9 @@ nv50_mstm_prepare(struct nv50_mstm *mstm) {struct nouveau_drm *drm =nouveau_drm (mstm->outp->base.base.dev);struct drm_encoder *encoder; -int ret;NV_ATOMIC (drm,"%s: mstm prepare\n" , mstm->outp->base.base.name); - ret =drm_dp_update_payload_part1 (&mstm->mgr); +drm_dp_update_payload_part1 (&mstm->mgr);drm_for_each_encoder (encoder, mstm->outp->base.base.dev) {if (encoder->encoder_type ==DRM_MODE_ENCODER_DPMST ) {
Signature · 1 line
2.25.1
PATCH 3/40 drm/msm/dp/dp_display: Remove unused variable 'hpd'
In reply to Lee JonesFixes the following W=1 kernel build warning(s):
drivers/gpu/drm/msm/dp/dp_display.c: In function ‘dp_display_usbpd_attention_cb’:
drivers/gpu/drm/msm/dp/dp_display.c:496:19: warning: variable ‘hpd’ set but not used [-Wunused-but-set-variable]
--- drivers/gpu/drm/msm/dp/dp_display.c | 3 --- 1 file changed, 3 deletions(-)
drivers/gpu/drm/msm/dp/dp_display.c +0 -3
@@ -493,7 +493,6 @@ static int dp_display_usbpd_attention_cb(struct device *dev)int rc =0 ;u32 sink_request;struct dp_display_private *dp; -struct dp_usbpd *hpd;if (!dev) {DRM_ERROR ("invalid dev\n" );
@@ -507,8 +506,6 @@ static int dp_display_usbpd_attention_cb(struct device *dev)return -ENODEV ; } - hpd = dp->usbpd; -/* check for any test request issued by sink */ rc =dp_link_process_request (dp->link);if (!rc) {
Signature · 6 lines
2.25.1 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
PATCH 4/40 drm/amd/amdgpu/amdgpu_ih: Update 'amdgpu_ih_decode_iv_helper()'s function header
In reply to Lee JonesFixes the following W=1 kernel build warning(s):
drivers/gpu/drm/amd/amdgpu/amdgpu_ih.c:220: warning: Function parameter or member 'ih' not described in 'amdgpu_ih_decode_iv_helper' drivers/gpu/drm/amd/amdgpu/amdgpu_ih.c:220: warning: Function parameter or member 'entry' not described in 'amdgpu_ih_decode_iv_helper'
--- drivers/gpu/drm/amd/amdgpu/amdgpu_ih.c | 2 ++ 1 file changed, 2 insertions(+)
drivers/gpu/drm/amd/amdgpu/amdgpu_ih.c +2 -0
@@ -209,6 +209,8 @@ int amdgpu_ih_process(struct amdgpu_device *adev, struct amdgpu_ih_ring *ih)* amdgpu_ih_decode_iv_helper - decode an interrupt vector * * @adev: amdgpu_device pointer +* @ih: ih ring to process +* @entry: IV entry * * Decodes the interrupt vector at the current rptr * position and also advance the position for for Vega10
Signature · 6 lines
2.25.1 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Alex Deucher
AppliedRe: [PATCH 04/40] drm/amd/amdgpu/amdgpu_ih: Update 'amdgpu_ih_decode_iv_helper()'s function header
Quoted 6 lines · Lee Jones
Fixes the following W=1 kernel build warning(s):
drivers/gpu/drm/amd/amdgpu/amdgpu_ih.c:220: warning: Function parameter or member 'ih' not described in 'amdgpu_ih_decode_iv_helper'drivers/gpu/drm/amd/amdgpu/amdgpu_ih.c:220: warning: Function parameter or member 'entry' not described in 'amdgpu_ih_decode_iv_helper'
Quoted 8 lines
Cc Alex Deucher <[email protected]>Cc "Christian König" <[email protected]>Cc David Airlie <[email protected]>Cc Daniel Vetter <[email protected]>Cc Felix Kuehling <[email protected]>Signed-off-by Lee Jones <[email protected]>
Applied. Thanks!
Alex
Quoted 20 lines
--- drivers/gpu/drm/amd/amdgpu/amdgpu_ih.c | 2 ++ 1 file changed, 2 insertions(+)drivers/gpu/drm/amd/amdgpu/amdgpu_ih.c +2
-1@@ -209,6 +209,8 @@ int amdgpu_ih_process(struct amdgpu_device *adev, struct amdgpu_ih_ring *ih)* amdgpu_ih_decode_iv_helper - decode an interrupt vector * * @adev: amdgpu_device pointer +* @ih: ih ring to process +* @entry: IV entry * * Decodes the interrupt vector at the current rptr * position and also advance the position for for Vega10 -- 2.25.1
Quoted 4 lines
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
PATCH 5/40 drm/amd/amdgpu/vega20_ih: Add missing descriptions for 'ih' and fix spelling error
In reply to Lee JonesFixes the following W=1 kernel build warning(s):
drivers/gpu/drm/amd/amdgpu/vega20_ih.c:378: warning: Function parameter or member 'ih' not described in 'vega20_ih_get_wptr' drivers/gpu/drm/amd/amdgpu/vega20_ih.c:421: warning: Function parameter or member 'ih' not described in 'vega20_ih_irq_rearm' drivers/gpu/drm/amd/amdgpu/vega20_ih.c:447: warning: Function parameter or member 'ih' not described in 'vega20_ih_set_rptr'
--- drivers/gpu/drm/amd/amdgpu/vega20_ih.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/vega20_ih.c +4 -1
@@ -88,7 +88,7 @@ static void vega20_ih_init_register_offset(struct amdgpu_device *adev)* vega20_ih_toggle_ring_interrupts - toggle the interrupt ring buffer * * @adev: amdgpu_device pointer -* @ih: amdgpu_ih_ring pointet +* @ih: amdgpu_ih_ring pointer * @enable: true - enable the interrupts, false - disable the interrupts * * Toggle the interrupt ring buffer (VEGA20)
@@ -367,6 +367,7 @@ static void vega20_ih_irq_disable(struct amdgpu_device *adev)* vega20_ih_get_wptr - get the IH ring buffer wptr * * @adev: amdgpu_device pointer +* @ih: amdgpu_ih_ring pointer * * Get the IH ring buffer wptr from either the register * or the writeback memory buffer (VEGA20). Also check for
@@ -414,6 +415,7 @@ static u32 vega20_ih_get_wptr(struct amdgpu_device *adev,* vega20_ih_irq_rearm - rearm IRQ if lost * * @adev: amdgpu_device pointer +* @ih: amdgpu_ih_ring pointer * */ static void vega20_ih_irq_rearm(struct amdgpu_device *adev,
@@ -439,6 +441,7 @@ static void vega20_ih_irq_rearm(struct amdgpu_device *adev,* vega20_ih_set_rptr - set the IH ring buffer rptr * * @adev: amdgpu_device pointer +* @ih: amdgpu_ih_ring pointer * * Set the IH ring buffer rptr. */
Signature · 6 lines
2.25.1 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Alex Deucher
AppliedRe: [PATCH 05/40] drm/amd/amdgpu/vega20_ih: Add missing descriptions for 'ih' and fix spelling error
Quoted 7 lines · Lee Jones
Fixes the following W=1 kernel build warning(s):
drivers/gpu/drm/amd/amdgpu/vega20_ih.c:378: warning: Function parameter or member 'ih' not described in 'vega20_ih_get_wptr'drivers/gpu/drm/amd/amdgpu/vega20_ih.c:421: warning: Function parameter or member 'ih' not described in 'vega20_ih_irq_rearm'drivers/gpu/drm/amd/amdgpu/vega20_ih.c:447: warning: Function parameter or member 'ih' not described in 'vega20_ih_set_rptr'
Quoted 9 lines
Cc Alex Deucher <[email protected]>Cc "Christian König" <[email protected]>Cc David Airlie <[email protected]>Cc Daniel Vetter <[email protected]>Cc Hawking Zhang <[email protected]>Cc Feifei Xu <[email protected]>Signed-off-by Lee Jones <[email protected]>
Applied. Thanks!
Alex
Quoted 44 lines
--- drivers/gpu/drm/amd/amdgpu/vega20_ih.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)drivers/gpu/drm/amd/amdgpu/vega20_ih.c +4
-2@@ -88,7 +88,7 @@ static void vega20_ih_init_register_offset(struct amdgpu_device *adev)* vega20_ih_toggle_ring_interrupts - toggle the interrupt ring buffer * * @adev: amdgpu_device pointer -* @ih: amdgpu_ih_ring pointet +* @ih: amdgpu_ih_ring pointer * @enable: true - enable the interrupts, false - disable the interrupts * * Toggle the interrupt ring buffer (VEGA20) @@ -367,6 +367,7 @@ static void vega20_ih_irq_disable(struct amdgpu_device *adev)* vega20_ih_get_wptr - get the IH ring buffer wptr * * @adev: amdgpu_device pointer +* @ih: amdgpu_ih_ring pointer * * Get the IH ring buffer wptr from either the register * or the writeback memory buffer (VEGA20). Also check for @@ -414,6 +415,7 @@ static u32 vega20_ih_get_wptr(struct amdgpu_device *adev,* vega20_ih_irq_rearm - rearm IRQ if lost * * @adev: amdgpu_device pointer +* @ih: amdgpu_ih_ring pointer * */ static void vega20_ih_irq_rearm(struct amdgpu_device *adev,@@ -439,6 +441,7 @@ static void vega20_ih_irq_rearm(struct amdgpu_device *adev,* vega20_ih_set_rptr - set the IH ring buffer rptr * * @adev: amdgpu_device pointer +* @ih: amdgpu_ih_ring pointer * * Set the IH ring buffer rptr. */ --2.25.1
Quoted 4 lines
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
PATCH 6/40 drm/amd/pm/powerplay/hwmgr/process_pptables_v1_0: Provide description of 'call_back_func'
In reply to Lee JonesFixes the following W=1 kernel build warning(s):
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/process_pptables_v1_0.c:1371: warning: Function parameter or member 'call_back_func' not described in 'get_powerplay_table_entry_v1_0'
--- drivers/gpu/drm/amd/pm/powerplay/hwmgr/process_pptables_v1_0.c | 1 + 1 file changed, 1 insertion(+)
drivers/gpu/drm/amd/pm/powerplay/hwmgr/process_pptables_v1_0.c +1 -0
@@ -1362,6 +1362,7 @@ static int ppt_get_vce_state_table_entry_v1_0(struct pp_hwmgr *hwmgr, uint32_t i* @hwmgr: Pointer to the hardware manager. * @entry_index: The index of the entry to be extracted from the table. * @power_state: The address of the PowerState instance being created. +* @call_back_func: The function to call into to fill power state * Return: -1 if the entry cannot be retrieved. */ int get_powerplay_table_entry_v1_0(struct pp_hwmgr *hwmgr,
Signature · 6 lines
2.25.1 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Alex Deucher
AppliedRe: [PATCH 06/40] drm/amd/pm/powerplay/hwmgr/process_pptables_v1_0: Provide description of 'call_back_func'
Quoted 5 lines · Lee Jones
Fixes the following W=1 kernel build warning(s):
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/process_pptables_v1_0.c:1371: warning: Function parameter or member 'call_back_func' not described in 'get_powerplay_table_entry_v1_0'
Quoted 8 lines
Cc Evan Quan <[email protected]>Cc Alex Deucher <[email protected]>Cc "Christian König" <[email protected]>Cc David Airlie <[email protected]>Cc Daniel Vetter <[email protected]>Signed-off-by Lee Jones <[email protected]>
Applied. Thanks!
Alex
Quoted 19 lines
--- drivers/gpu/drm/amd/pm/powerplay/hwmgr/process_pptables_v1_0.c | 1 + 1 file changed, 1 insertion(+)drivers/gpu/drm/amd/pm/powerplay/hwmgr/process_pptables_v1_0.c +1
-1@@ -1362,6 +1362,7 @@ static int ppt_get_vce_state_table_entry_v1_0(struct pp_hwmgr *hwmgr, uint32_t i* @hwmgr: Pointer to the hardware manager. * @entry_index: The index of the entry to be extracted from the table. * @power_state: The address of the PowerState instance being created. +* @call_back_func: The function to call into to fill power state * Return: -1 if the entry cannot be retrieved. */ int get_powerplay_table_entry_v1_0(struct pp_hwmgr *hwmgr, --2.25.1
Quoted 4 lines
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
PATCH 7/40 drm/amd/pm/powerplay/hwmgr/ppatomctrl: Fix documentation for 'mpll_param'
In reply to Lee JonesFixes the following W=1 kernel build warning(s):
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/ppatomctrl.c:290: warning: Function parameter or member 'mpll_param' not described in 'atomctrl_get_memory_pll_dividers_si' drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/ppatomctrl.c:290: warning: Excess function parameter 'dividers' description in 'atomctrl_get_memory_pll_dividers_si' drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/ppatomctrl.c:339: warning: Function parameter or member 'mpll_param' not described in 'atomctrl_get_memory_pll_dividers_vi' drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/ppatomctrl.c:339: warning: Excess function parameter 'dividers' description in 'atomctrl_get_memory_pll_dividers_vi'
--- drivers/gpu/drm/amd/pm/powerplay/hwmgr/ppatomctrl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/gpu/drm/amd/pm/powerplay/hwmgr/ppatomctrl.c +2 -2
@@ -279,7 +279,7 @@ static const ATOM_VOLTAGE_OBJECT_V3 *atomctrl_lookup_voltage_type_v3(* * @hwmgr: input parameter: pointer to HwMgr * @clock_value: input parameter: memory clock -* @dividers: output parameter: memory PLL dividers +* @mpll_param: output parameter: memory clock parameters * @strobe_mode: input parameter: 1 for strobe mode, 0 for performance mode */ int atomctrl_get_memory_pll_dividers_si(
@@ -332,7 +332,7 @@ int atomctrl_get_memory_pll_dividers_si(* * @hwmgr: input parameter: pointer to HwMgr * @clock_value: input parameter: memory clock -* @dividers: output parameter: memory PLL dividers +* @mpll_param: output parameter: memory clock parameters */ int atomctrl_get_memory_pll_dividers_vi (struct pp_hwmgr *hwmgr,uint32_t clock_value,pp_atomctrl_memory_clock_param *mpll_param)
Signature · 6 lines
2.25.1 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Alex Deucher
AppliedRe: [PATCH 07/40] drm/amd/pm/powerplay/hwmgr/ppatomctrl: Fix documentation for 'mpll_param'
Quoted 8 lines · Lee Jones
Fixes the following W=1 kernel build warning(s):
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/ppatomctrl.c:290: warning: Function parameter or member 'mpll_param' not described in 'atomctrl_get_memory_pll_dividers_si'drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/ppatomctrl.c:290: warning: Excess function parameter 'dividers' description in 'atomctrl_get_memory_pll_dividers_si'drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/ppatomctrl.c:339: warning: Function parameter or member 'mpll_param' not described in 'atomctrl_get_memory_pll_dividers_vi'drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/ppatomctrl.c:339: warning: Excess function parameter 'dividers' description in 'atomctrl_get_memory_pll_dividers_vi'
Quoted 8 lines
Cc Evan Quan <[email protected]>Cc Alex Deucher <[email protected]>Cc "Christian König" <[email protected]>Cc David Airlie <[email protected]>Cc Daniel Vetter <[email protected]>Signed-off-by Lee Jones <[email protected]>
Applied. Thanks!
Alex
Quoted 29 lines
--- drivers/gpu/drm/amd/pm/powerplay/hwmgr/ppatomctrl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)drivers/gpu/drm/amd/pm/powerplay/hwmgr/ppatomctrl.c +2
-3@@ -279,7 +279,7 @@ static const ATOM_VOLTAGE_OBJECT_V3 *atomctrl_lookup_voltage_type_v3(* * @hwmgr: input parameter: pointer to HwMgr * @clock_value: input parameter: memory clock -* @dividers: output parameter: memory PLL dividers +* @mpll_param: output parameter: memory clock parameters * @strobe_mode: input parameter: 1 for strobe mode, 0 for performance mode */ int atomctrl_get_memory_pll_dividers_si(@@ -332,7 +332,7 @@ int atomctrl_get_memory_pll_dividers_si(* * @hwmgr: input parameter: pointer to HwMgr * @clock_value: input parameter: memory clock -* @dividers: output parameter: memory PLL dividers +* @mpll_param: output parameter: memory clock parameters */ int atomctrl_get_memory_pll_dividers_vi (struct pp_hwmgr *hwmgr,uint32_t clock_value,pp_atomctrl_memory_clock_param *mpll_param) --2.25.1
Quoted 4 lines
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
PATCH 8/40 drm/amd/pm/powerplay/hwmgr/vega12_hwmgr: Fix legacy function header formatting
In reply to Lee JonesFixes the following W=1 kernel build warning(s):
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/vega12_hwmgr.c:728: warning: Function parameter or member 'hwmgr' not described in 'vega12_init_smc_table'
--- drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega12_hwmgr.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-)
drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega12_hwmgr.c +5 -6
@@ -718,12 +718,11 @@ static int vega12_save_default_power_profile(struct pp_hwmgr *hwmgr)#endif /** -* Initializes the SMC table and uploads it -* -* @param hwmgr the address of the powerplay hardware manager. -* @param pInput the pointer to input data (PowerState) -* @return always 0 -*/ +* Initializes the SMC table and uploads it +* +* @hwmgr: the address of the powerplay hardware manager. +* return: always 0 +*/ static int vega12_init_smc_table (struct pp_hwmgr *hwmgr) {int result;
Signature · 6 lines
2.25.1 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Alex Deucher
AppliedRe: [PATCH 08/40] drm/amd/pm/powerplay/hwmgr/vega12_hwmgr: Fix legacy function header formatting
Quoted 5 lines · Lee Jones
Fixes the following W=1 kernel build warning(s):
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/vega12_hwmgr.c:728: warning: Function parameter or member 'hwmgr' not described in 'vega12_init_smc_table'
Quoted 8 lines
Cc Evan Quan <[email protected]>Cc Alex Deucher <[email protected]>Cc "Christian König" <[email protected]>Cc David Airlie <[email protected]>Cc Daniel Vetter <[email protected]>Signed-off-by Lee Jones <[email protected]>
Applied. Thanks!
Alex
Quoted 29 lines
--- drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega12_hwmgr.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-)drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega12_hwmgr.c +5
-7@@ -718,12 +718,11 @@ static int vega12_save_default_power_profile(struct pp_hwmgr *hwmgr)#endif /** -* Initializes the SMC table and uploads it -* -* @param hwmgr the address of the powerplay hardware manager. -* @param pInput the pointer to input data (PowerState) -* @return always 0 -*/ +* Initializes the SMC table and uploads it +* +* @hwmgr: the address of the powerplay hardware manager. +* return: always 0 +*/ static int vega12_init_smc_table (struct pp_hwmgr *hwmgr) {int result; --2.25.1
Quoted 4 lines
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
PATCH 9/40 drm/amd/pm/powerplay/hwmgr/vega20_hwmgr: Fix legacy function header formatting
In reply to Lee JonesFixes the following W=1 kernel build warning(s):
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/vega20_hwmgr.c:781: warning: Function parameter or member 'hwmgr' not described in 'vega20_init_smc_table'
--- drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega20_hwmgr.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-)
drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega20_hwmgr.c +5 -6
@@ -771,12 +771,11 @@ static int vega20_setup_default_dpm_tables(struct pp_hwmgr *hwmgr) }/** -* Initializes the SMC table and uploads it -* -* @param hwmgr the address of the powerplay hardware manager. -* @param pInput the pointer to input data (PowerState) -* @return always 0 -*/ +* Initializes the SMC table and uploads it +* +* @hwmgr: the address of the powerplay hardware manager. +* return: always 0 +*/ static int vega20_init_smc_table (struct pp_hwmgr *hwmgr) {int result;
Signature · 6 lines
2.25.1 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Alex Deucher
AppliedRe: [PATCH 09/40] drm/amd/pm/powerplay/hwmgr/vega20_hwmgr: Fix legacy function header formatting
Quoted 5 lines · Lee Jones
Fixes the following W=1 kernel build warning(s):
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/vega20_hwmgr.c:781: warning: Function parameter or member 'hwmgr' not described in 'vega20_init_smc_table'
Quoted 8 lines
Cc Evan Quan <[email protected]>Cc Alex Deucher <[email protected]>Cc "Christian König" <[email protected]>Cc David Airlie <[email protected]>Cc Daniel Vetter <[email protected]>Signed-off-by Lee Jones <[email protected]>
Applied. Thanks!
Alex
Quoted 29 lines
--- drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega20_hwmgr.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-)drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega20_hwmgr.c +5
-7@@ -771,12 +771,11 @@ static int vega20_setup_default_dpm_tables(struct pp_hwmgr *hwmgr) }/** -* Initializes the SMC table and uploads it -* -* @param hwmgr the address of the powerplay hardware manager. -* @param pInput the pointer to input data (PowerState) -* @return always 0 -*/ +* Initializes the SMC table and uploads it +* +* @hwmgr: the address of the powerplay hardware manager. +* return: always 0 +*/ static int vega20_init_smc_table (struct pp_hwmgr *hwmgr) {int result; --2.25.1
Quoted 4 lines
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
PATCH 10/40 drm/amd/pm/powerplay/hwmgr/smu7_hwmgr: Fix formatting and spelling issues
In reply to Lee JonesFixes the following W=1 kernel build warning(s):
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/smu7_hwmgr.c:242: warning: Function parameter or member 'hwmgr' not described in 'smu7_enable_smc_voltage_controller' drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/smu7_hwmgr.c:4508: warning: Function parameter or member 'us_max_fan_rpm' not described in 'smu7_set_max_fan_rpm_output' drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/smu7_hwmgr.c:4508: warning: Excess function parameter 'usMaxFanRpm' description in 'smu7_set_max_fan_rpm_output'
--- drivers/gpu/drm/amd/pm/powerplay/hwmgr/smu7_hwmgr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/gpu/drm/amd/pm/powerplay/hwmgr/smu7_hwmgr.c +2 -2
@@ -235,7 +235,7 @@ static int smu7_get_current_pcie_lane_number(struct pp_hwmgr *hwmgr)/** * smu7_enable_smc_voltage_controller - Enable voltage control * -* @hwmgr the address of the powerplay hardware manager. +* @hwmgr: the address of the powerplay hardware manager. * Return: always PP_Result_OK */ static int smu7_enable_smc_voltage_controller (struct pp_hwmgr *hwmgr)
@@ -4501,7 +4501,7 @@ static int smu7_display_configuration_changed_task(struct pp_hwmgr *hwmgr)* smu7_set_max_fan_rpm_output - Set maximum target operating fan output RPM * * @hwmgr: the address of the powerplay hardware manager. -* @usMaxFanRpm: max operating fan RPM value. +* @us_max_fan_rpm: max operating fan RPM value. * Return: The response that came from the SMC. */ static int smu7_set_max_fan_rpm_output (struct pp_hwmgr *hwmgr,uint16_t us_max_fan_rpm)
Signature · 6 lines
2.25.1 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Alex Deucher
AppliedRe: [PATCH 10/40] drm/amd/pm/powerplay/hwmgr/smu7_hwmgr: Fix formatting and spelling issues
Quoted 7 lines · Lee Jones
Fixes the following W=1 kernel build warning(s):
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/smu7_hwmgr.c:242: warning: Function parameter or member 'hwmgr' not described in 'smu7_enable_smc_voltage_controller'drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/smu7_hwmgr.c:4508: warning: Function parameter or member 'us_max_fan_rpm' not described in 'smu7_set_max_fan_rpm_output'drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/smu7_hwmgr.c:4508: warning: Excess function parameter 'usMaxFanRpm' description in 'smu7_set_max_fan_rpm_output'
Quoted 8 lines
Cc Evan Quan <[email protected]>Cc Alex Deucher <[email protected]>Cc "Christian König" <[email protected]>Cc David Airlie <[email protected]>Cc Daniel Vetter <[email protected]>Signed-off-by Lee Jones <[email protected]>
Applied. Thanks!
Alex
Quoted 29 lines
--- drivers/gpu/drm/amd/pm/powerplay/hwmgr/smu7_hwmgr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)drivers/gpu/drm/amd/pm/powerplay/hwmgr/smu7_hwmgr.c +2
-3@@ -235,7 +235,7 @@ static int smu7_get_current_pcie_lane_number(struct pp_hwmgr *hwmgr)/** * smu7_enable_smc_voltage_controller - Enable voltage control * -* @hwmgr the address of the powerplay hardware manager. +* @hwmgr: the address of the powerplay hardware manager. * Return: always PP_Result_OK */ static int smu7_enable_smc_voltage_controller (struct pp_hwmgr *hwmgr)@@ -4501,7 +4501,7 @@ static int smu7_display_configuration_changed_task(struct pp_hwmgr *hwmgr)* smu7_set_max_fan_rpm_output - Set maximum target operating fan output RPM * * @hwmgr: the address of the powerplay hardware manager. -* @usMaxFanRpm: max operating fan RPM value. +* @us_max_fan_rpm: max operating fan RPM value. * Return: The response that came from the SMC. */ static int smu7_set_max_fan_rpm_output (struct pp_hwmgr *hwmgr,uint16_t us_max_fan_rpm) --2.25.1
Quoted 4 lines
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
PATCH 11/40 drm/amd/pm/powerplay/hwmgr/hwmgr: Move prototype into shared header
In reply to Lee JonesFixes the following W=1 kernel build warning(s):
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/vega10_hwmgr.c:5474:5: warning: no previous prototype for ‘vega10_hwmgr_init’ [-Wmissing-prototypes]
--- drivers/gpu/drm/amd/pm/powerplay/hwmgr/hwmgr.c | 2 +- drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega10_hwmgr.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-)
drivers/gpu/drm/amd/pm/powerplay/hwmgr/hwmgr.c +1 -1
@@ -33,6 +33,7 @@#include "ppsmc.h" #include "amd_acpi.h" #include "pp_psm.h" +#include "vega10_hwmgr.h" extern const struct pp_smumgr_func ci_smu_funcs;extern const struct pp_smumgr_func smu8_smu_funcs;
@@ -46,7 +47,6 @@ extern const struct pp_smumgr_func vega12_smu_funcs;extern const struct pp_smumgr_func smu10_smu_funcs;extern const struct pp_smumgr_func vega20_smu_funcs; -extern int vega10_hwmgr_init (struct pp_hwmgr *hwmgr);extern int smu10_init_function_pointers (struct pp_hwmgr *hwmgr);static int polaris_set_asic_special_caps (struct pp_hwmgr *hwmgr);
drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega10_hwmgr.h +1 -0
@@ -442,5 +442,6 @@ int vega10_update_uvd_dpm(struct pp_hwmgr *hwmgr, bool bgate);int vega10_update_samu_dpm (struct pp_hwmgr *hwmgr,bool bgate);int vega10_update_acp_dpm (struct pp_hwmgr *hwmgr,bool bgate);int vega10_enable_disable_vce_dpm (struct pp_hwmgr *hwmgr,bool enable); +int vega10_hwmgr_init (struct pp_hwmgr *hwmgr);#endif /* _VEGA10_HWMGR_H_ */
Signature · 6 lines
2.25.1 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Alex Deucher
AppliedRe: [PATCH 11/40] drm/amd/pm/powerplay/hwmgr/hwmgr: Move prototype into shared header
Quoted 5 lines · Lee Jones
Fixes the following W=1 kernel build warning(s):
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/vega10_hwmgr.c:5474:5: warning: no previous prototype for ‘vega10_hwmgr_init’ [-Wmissing-prototypes]
Quoted 8 lines
Cc Evan Quan <[email protected]>Cc Alex Deucher <[email protected]>Cc "Christian König" <[email protected]>Cc David Airlie <[email protected]>Cc Daniel Vetter <[email protected]>Signed-off-by Lee Jones <[email protected]>
Applied. Thanks!
Alex
Quoted 39 lines
--- drivers/gpu/drm/amd/pm/powerplay/hwmgr/hwmgr.c | 2 +- drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega10_hwmgr.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-)drivers/gpu/drm/amd/pm/powerplay/hwmgr/hwmgr.c +1
-1@@ -33,6 +33,7 @@#include "ppsmc.h" #include "amd_acpi.h" #include "pp_psm.h" +#include "vega10_hwmgr.h" extern const struct pp_smumgr_func ci_smu_funcs;extern const struct pp_smumgr_func smu8_smu_funcs;@@ -46,7 +47,6 @@ extern const struct pp_smumgr_func vega12_smu_funcs;extern const struct pp_smumgr_func smu10_smu_funcs;extern const struct pp_smumgr_func vega20_smu_funcs; -extern int vega10_hwmgr_init (struct pp_hwmgr *hwmgr);extern int smu10_init_function_pointers (struct pp_hwmgr *hwmgr);static int polaris_set_asic_special_caps (struct pp_hwmgr *hwmgr);drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega10_hwmgr.h +1
-1@@ -442,5 +442,6 @@ int vega10_update_uvd_dpm(struct pp_hwmgr *hwmgr, bool bgate);int vega10_update_samu_dpm (struct pp_hwmgr *hwmgr,bool bgate);int vega10_update_acp_dpm (struct pp_hwmgr *hwmgr,bool bgate);int vega10_enable_disable_vce_dpm (struct pp_hwmgr *hwmgr,bool enable); +int vega10_hwmgr_init (struct pp_hwmgr *hwmgr);#endif /* _VEGA10_HWMGR_H_ */ --2.25.1
Quoted 4 lines
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
PATCH 12/40 drm/amd/pm/powerplay/hwmgr/vega10_hwmgr: Fix a bunch of kernel-doc formatting issues
In reply to Lee JonesFixes the following W=1 kernel build warning(s):
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/vega10_hwmgr.c:5474:5: warning: no previous prototype for ‘vega10_hwmgr_init’ [-Wmissing-prototypes] drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/vega10_hwmgr.c:551: warning: Function parameter or member 'hwmgr' not described in 'vega10_get_evv_voltages' drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/vega10_hwmgr.c:609: warning: Function parameter or member 'hwmgr' not described in 'vega10_patch_with_vdd_leakage' drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/vega10_hwmgr.c:609: warning: Function parameter or member 'voltage' not described in 'vega10_patch_with_vdd_leakage' drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/vega10_hwmgr.c:609: warning: Function parameter or member 'leakage_table' not described in 'vega10_patch_with_vdd_leakage' drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/vega10_hwmgr.c:637: warning: Function parameter or member 'hwmgr' not described in 'vega10_patch_lookup_table_with_leakage' drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/vega10_hwmgr.c:637: warning: Function parameter or member 'lookup_table' not described in 'vega10_patch_lookup_table_with_leakage' drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/vega10_hwmgr.c:637: warning: Function parameter or member 'leakage_table' not described in 'vega10_patch_lookup_table_with_leakage' drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/vega10_hwmgr.c:1013: warning: Function parameter or member 'hwmgr' not described in 'vega10_trim_voltage_table' drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/vega10_hwmgr.c:1013: warning: Function parameter or member 'vol_table' not described in 'vega10_trim_voltage_table' drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/vega10_hwmgr.c:1160: warning: Function parameter or member 'hwmgr' not described in 'vega10_construct_voltage_tables' drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/vega10_hwmgr.c:1558: warning: Function parameter or member 'hwmgr' not described in 'vega10_populate_single_gfx_level' drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/vega10_hwmgr.c:1558: warning: Function parameter or member 'gfx_clock' not described in 'vega10_populate_single_gfx_level' drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/vega10_hwmgr.c:1558: warning: Function parameter or member 'current_gfxclk_level' not described in 'vega10_populate_single_gfx_level' drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/vega10_hwmgr.c:1558: warning: Function parameter or member 'acg_freq' not described in 'vega10_populate_single_gfx_level' drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/vega10_hwmgr.c:1613: warning: Cannot understand * @brief Populates single SMC SOCCLK structure using the provided clock. drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/vega10_hwmgr.c:1667: warning: Function parameter or member 'hwmgr' not described in 'vega10_populate_all_graphic_levels' drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/vega10_hwmgr.c:1750: warning: Cannot understand * @brief Populates single SMC GFXCLK structure using the provided clock. drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/vega10_hwmgr.c:1811: warning: Cannot understand * @brief Populates all SMC MCLK levels' structure based on the trimmed allowed dpm memory clock states. drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/vega10_hwmgr.c:2496: warning: Function parameter or member 'hwmgr' not described in 'vega10_init_smc_table' drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/vega10_hwmgr.c:2867: warning: Cannot understand * @brief Tell SMC to enabled the supported DPMs.
--- .../drm/amd/pm/powerplay/hwmgr/vega10_hwmgr.c | 133 +++++++++--------- 1 file changed, 65 insertions(+), 68 deletions(-)
drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega10_hwmgr.c +65 -68
@@ -542,11 +542,11 @@ static int vega10_get_socclk_for_voltage_evv(struct pp_hwmgr *hwmgr,#define ATOM_VIRTUAL_VOLTAGE_ID0 0xff01/** -* Get Leakage VDDC based on leakage ID. -* -* @param hwmgr the address of the powerplay hardware manager. -* @return always 0. -*/ +* Get Leakage VDDC based on leakage ID. +* +* @hwmgr: the address of the powerplay hardware manager. +* return: always 0. +*/ static int vega10_get_evv_voltages (struct pp_hwmgr *hwmgr) {struct vega10_hwmgr *data = hwmgr->backend;
@@ -600,9 +600,9 @@ static int vega10_get_evv_voltages(struct pp_hwmgr *hwmgr)/** * Change virtual leakage voltage to actual value. * -* @param hwmgr the address of the powerplay hardware manager. -* @param pointer to changing voltage -* @param pointer to leakage table +* @hwmgr: the address of the powerplay hardware manager. +* @voltage: pointer to changing voltage +* @leakage_table: pointer to leakage table */ static void vega10_patch_with_vdd_leakage (struct pp_hwmgr *hwmgr,uint16_t *voltage,struct vega10_leakage_voltage *leakage_table)
@@ -624,13 +624,13 @@ static void vega10_patch_with_vdd_leakage(struct pp_hwmgr *hwmgr, }/** -* Patch voltage lookup table by EVV leakages. -* -* @param hwmgr the address of the powerplay hardware manager. -* @param pointer to voltage lookup table -* @param pointer to leakage table -* @return always 0 -*/ +* Patch voltage lookup table by EVV leakages. +* +* @hwmgr: the address of the powerplay hardware manager. +* @lookup_table: pointer to voltage lookup table +* @leakage_table: pointer to leakage table +* return: always 0 +*/ static int vega10_patch_lookup_table_with_leakage (struct pp_hwmgr *hwmgr,phm_ppt_v1_voltage_lookup_table *lookup_table,struct vega10_leakage_voltage *leakage_table)
@@ -1001,13 +1001,12 @@ static int vega10_setup_asic_task(struct pp_hwmgr *hwmgr) }/** -* Remove repeated voltage values and create table with unique values. -* -* @param hwmgr the address of the powerplay hardware manager. -* @param vol_table the pointer to changing voltage table -* @return 0 in success -*/ - +* Remove repeated voltage values and create table with unique values. +* +* @hwmgr: the address of the powerplay hardware manager. +* @vol_table: the pointer to changing voltage table +* return: 0 in success +*/ static int vega10_trim_voltage_table (struct pp_hwmgr *hwmgr,struct pp_atomfwctrl_voltage_table *vol_table) {
@@ -1151,11 +1150,11 @@ static void vega10_trim_voltage_table_to_fit_state_table( }/** -* Create Voltage Tables. -* -* @param hwmgr the address of the powerplay hardware manager. -* @return always 0 -*/ +* Create Voltage Tables. +* +* @hwmgr: the address of the powerplay hardware manager. +* return: always 0 +*/ static int vega10_construct_voltage_tables (struct pp_hwmgr *hwmgr) {struct vega10_hwmgr *data = hwmgr->backend;
@@ -1212,11 +1211,11 @@ static int vega10_construct_voltage_tables(struct pp_hwmgr *hwmgr) }/* -* @fn vega10_init_dpm_state -* @brief Function to initialize all Soft Min/Max and Hard Min/Max to 0xff. +* vega10_init_dpm_state +* Function to initialize all Soft Min/Max and Hard Min/Max to 0xff. * -* @param dpm_state - the address of the DPM Table to initiailize. -* @return None. +* @dpm_state: - the address of the DPM Table to initiailize. +* return: None. */ static void vega10_init_dpm_state (struct vega10_dpm_state *dpm_state) {
@@ -1460,11 +1459,11 @@ static int vega10_setup_default_dpm_tables(struct pp_hwmgr *hwmgr) }/* -* @fn vega10_populate_ulv_state -* @brief Function to provide parameters for Utral Low Voltage state to SMC. +* vega10_populate_ulv_state +* Function to provide parameters for Utral Low Voltage state to SMC. * -* @param hwmgr - the address of the hardware manager. -* @return Always 0. +* @hwmgr: - the address of the hardware manager. +* return: Always 0. */ static int vega10_populate_ulv_state (struct pp_hwmgr *hwmgr) {
@@ -1545,13 +1544,12 @@ static int vega10_populate_smc_link_levels(struct pp_hwmgr *hwmgr) }/** -* Populates single SMC GFXSCLK structure using the provided engine clock -* -* @param hwmgr the address of the hardware manager -* @param gfx_clock the GFX clock to use to populate the structure. -* @param current_gfxclk_level location in PPTable for the SMC GFXCLK structure. -*/ - +* Populates single SMC GFXSCLK structure using the provided engine clock +* +* @hwmgr: the address of the hardware manager +* @gfx_clock: the GFX clock to use to populate the structure. +* @current_gfxclk_level: location in PPTable for the SMC GFXCLK structure. +*/ static int vega10_populate_single_gfx_level (struct pp_hwmgr *hwmgr,uint32_t gfx_clock,PllSetting_t *current_gfxclk_level,uint32_t *acg_freq)
@@ -1610,12 +1608,12 @@ static int vega10_populate_single_gfx_level(struct pp_hwmgr *hwmgr, }/** -* @brief Populates single SMC SOCCLK structure using the provided clock. +* Populates single SMC SOCCLK structure using the provided clock. * -* @param hwmgr - the address of the hardware manager. -* @param soc_clock - the SOC clock to use to populate the structure. -* @param current_socclk_level - location in PPTable for the SMC SOCCLK structure. -* @return 0 on success.. +* @hwmgr: the address of the hardware manager. +* @soc_clock: the SOC clock to use to populate the structure. +* @current_socclk_level: location in PPTable for the SMC SOCCLK structure. +* return: 0 on success */ static int vega10_populate_single_soc_level(struct pp_hwmgr *hwmgr, uint32_t soc_clock, uint8_t *current_soc_did,
@@ -1659,10 +1657,10 @@ static int vega10_populate_single_soc_level(struct pp_hwmgr *hwmgr, }/** -* Populates all SMC SCLK levels' structure based on the trimmed allowed dpm engine clock states -* -* @param hwmgr the address of the hardware manager -*/ +* Populates all SMC SCLK levels' structure based on the trimmed allowed dpm engine clock states +* +* @hwmgr: the address of the hardware manager +*/ static int vega10_populate_all_graphic_levels (struct pp_hwmgr *hwmgr) {struct vega10_hwmgr *data = hwmgr->backend;
@@ -1747,11 +1745,11 @@ static void vega10_populate_vddc_soc_levels(struct pp_hwmgr *hwmgr) }/** -* @brief Populates single SMC GFXCLK structure using the provided clock. +* Populates single SMC GFXCLK structure using the provided clock. * -* @param hwmgr - the address of the hardware manager. -* @param mem_clock - the memory clock to use to populate the structure. -* @return 0 on success.. +* @hwmgr: the address of the hardware manager. +* @mem_clock: the memory clock to use to populate the structure. +* return: 0 on success.. */ static int vega10_populate_single_memory_level(struct pp_hwmgr *hwmgr, uint32_t mem_clock, uint8_t *current_mem_vid,
@@ -1808,10 +1806,10 @@ static int vega10_populate_single_memory_level(struct pp_hwmgr *hwmgr, }/** -* @brief Populates all SMC MCLK levels' structure based on the trimmed allowed dpm memory clock states. +* Populates all SMC MCLK levels' structure based on the trimmed allowed dpm memory clock states. * -* @param pHwMgr - the address of the hardware manager. -* @return PP_Result_OK on success. +* @hwmgr: the address of the hardware manager. +* return: PP_Result_OK on success. */ static int vega10_populate_all_memory_levels (struct pp_hwmgr *hwmgr) {
@@ -2486,12 +2484,11 @@ static void vega10_check_dpm_table_updated(struct pp_hwmgr *hwmgr) }/** -* Initializes the SMC table and uploads it -* -* @param hwmgr the address of the powerplay hardware manager. -* @param pInput the pointer to input data (PowerState) -* @return always 0 -*/ +* Initializes the SMC table and uploads it +* +* @hwmgr: the address of the powerplay hardware manager. +* return: always 0 +*/ static int vega10_init_smc_table (struct pp_hwmgr *hwmgr) {int result;
@@ -2864,11 +2861,11 @@ static int vega10_stop_dpm(struct pp_hwmgr *hwmgr, uint32_t bitmap) }/** -* @brief Tell SMC to enabled the supported DPMs. +* Tell SMC to enabled the supported DPMs. * -* @param hwmgr - the address of the powerplay hardware manager. -* @Param bitmap - bitmap for the features to enabled. -* @return 0 on at least one DPM is successfully enabled. +* @hwmgr: the address of the powerplay hardware manager. +* @bitmap bitmap for the features to enabled. +* return: 0 on at least one DPM is successfully enabled. */ static int vega10_start_dpm (struct pp_hwmgr *hwmgr,uint32_t bitmap) {
Signature · 6 lines
2.25.1 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Alex Deucher
AppliedRe: [PATCH 12/40] drm/amd/pm/powerplay/hwmgr/vega10_hwmgr: Fix a bunch of kernel-doc formatting issues
Quoted 25 lines · Lee Jones
Fixes the following W=1 kernel build warning(s):
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/vega10_hwmgr.c:5474:5: warning: no previous prototype for ‘vega10_hwmgr_init’ [-Wmissing-prototypes]drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/vega10_hwmgr.c:551: warning: Function parameter or member 'hwmgr' not described in 'vega10_get_evv_voltages'drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/vega10_hwmgr.c:609: warning: Function parameter or member 'hwmgr' not described in 'vega10_patch_with_vdd_leakage'drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/vega10_hwmgr.c:609: warning: Function parameter or member 'voltage' not described in 'vega10_patch_with_vdd_leakage'drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/vega10_hwmgr.c:609: warning: Function parameter or member 'leakage_table' not described in 'vega10_patch_with_vdd_leakage'drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/vega10_hwmgr.c:637: warning: Function parameter or member 'hwmgr' not described in 'vega10_patch_lookup_table_with_leakage'drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/vega10_hwmgr.c:637: warning: Function parameter or member 'lookup_table' not described in 'vega10_patch_lookup_table_with_leakage'drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/vega10_hwmgr.c:637: warning: Function parameter or member 'leakage_table' not described in 'vega10_patch_lookup_table_with_leakage'drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/vega10_hwmgr.c:1013: warning: Function parameter or member 'hwmgr' not described in 'vega10_trim_voltage_table'drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/vega10_hwmgr.c:1013: warning: Function parameter or member 'vol_table' not described in 'vega10_trim_voltage_table'drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/vega10_hwmgr.c:1160: warning: Function parameter or member 'hwmgr' not described in 'vega10_construct_voltage_tables'drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/vega10_hwmgr.c:1558: warning: Function parameter or member 'hwmgr' not described in 'vega10_populate_single_gfx_level'drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/vega10_hwmgr.c:1558: warning: Function parameter or member 'gfx_clock' not described in 'vega10_populate_single_gfx_level'drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/vega10_hwmgr.c:1558: warning: Function parameter or member 'current_gfxclk_level' not described in 'vega10_populate_single_gfx_level'drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/vega10_hwmgr.c:1558: warning: Function parameter or member 'acg_freq' not described in 'vega10_populate_single_gfx_level'drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/vega10_hwmgr.c:1613: warning: Cannot understand * @brief Populates single SMC SOCCLK structure using the provided clock.drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/vega10_hwmgr.c:1667: warning: Function parameter or member 'hwmgr' not described in 'vega10_populate_all_graphic_levels'drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/vega10_hwmgr.c:1750: warning: Cannot understand * @brief Populates single SMC GFXCLK structure using the provided clock.drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/vega10_hwmgr.c:1811: warning: Cannot understand * @brief Populates all SMC MCLK levels' structure based on the trimmed allowed dpm memory clock states.drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/vega10_hwmgr.c:2496: warning: Function parameter or member 'hwmgr' not described in 'vega10_init_smc_table'drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/vega10_hwmgr.c:2867: warning: Cannot understand * @brief Tell SMC to enabled the supported DPMs.
Quoted 8 lines
Cc Evan Quan <[email protected]>Cc Alex Deucher <[email protected]>Cc "Christian König" <[email protected]>Cc David Airlie <[email protected]>Cc Daniel Vetter <[email protected]>Signed-off-by Lee Jones <[email protected]>
Applied. Thanks!
Alex
Quoted 248 lines
--- .../drm/amd/pm/powerplay/hwmgr/vega10_hwmgr.c | 133 +++++++++--------- 1 file changed, 65 insertions(+), 68 deletions(-)drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega10_hwmgr.c +65
-69@@ -542,11 +542,11 @@ static int vega10_get_socclk_for_voltage_evv(struct pp_hwmgr *hwmgr,#define ATOM_VIRTUAL_VOLTAGE_ID0 0xff01/** -* Get Leakage VDDC based on leakage ID. -* -* @param hwmgr the address of the powerplay hardware manager. -* @return always 0. -*/ +* Get Leakage VDDC based on leakage ID. +* +* @hwmgr: the address of the powerplay hardware manager. +* return: always 0. +*/ static int vega10_get_evv_voltages (struct pp_hwmgr *hwmgr) {struct vega10_hwmgr *data = hwmgr->backend;@@ -600,9 +600,9 @@ static int vega10_get_evv_voltages(struct pp_hwmgr *hwmgr)/** * Change virtual leakage voltage to actual value. * -* @param hwmgr the address of the powerplay hardware manager. -* @param pointer to changing voltage -* @param pointer to leakage table +* @hwmgr: the address of the powerplay hardware manager. +* @voltage: pointer to changing voltage +* @leakage_table: pointer to leakage table */ static void vega10_patch_with_vdd_leakage (struct pp_hwmgr *hwmgr,uint16_t *voltage,struct vega10_leakage_voltage *leakage_table)@@ -624,13 +624,13 @@ static void vega10_patch_with_vdd_leakage(struct pp_hwmgr *hwmgr, }/** -* Patch voltage lookup table by EVV leakages. -* -* @param hwmgr the address of the powerplay hardware manager. -* @param pointer to voltage lookup table -* @param pointer to leakage table -* @return always 0 -*/ +* Patch voltage lookup table by EVV leakages. +* +* @hwmgr: the address of the powerplay hardware manager. +* @lookup_table: pointer to voltage lookup table +* @leakage_table: pointer to leakage table +* return: always 0 +*/ static int vega10_patch_lookup_table_with_leakage (struct pp_hwmgr *hwmgr,phm_ppt_v1_voltage_lookup_table *lookup_table,struct vega10_leakage_voltage *leakage_table)@@ -1001,13 +1001,12 @@ static int vega10_setup_asic_task(struct pp_hwmgr *hwmgr) }/** -* Remove repeated voltage values and create table with unique values. -* -* @param hwmgr the address of the powerplay hardware manager. -* @param vol_table the pointer to changing voltage table -* @return 0 in success -*/ - +* Remove repeated voltage values and create table with unique values. +* +* @hwmgr: the address of the powerplay hardware manager. +* @vol_table: the pointer to changing voltage table +* return: 0 in success +*/ static int vega10_trim_voltage_table (struct pp_hwmgr *hwmgr,struct pp_atomfwctrl_voltage_table *vol_table) {@@ -1151,11 +1150,11 @@ static void vega10_trim_voltage_table_to_fit_state_table( }/** -* Create Voltage Tables. -* -* @param hwmgr the address of the powerplay hardware manager. -* @return always 0 -*/ +* Create Voltage Tables. +* +* @hwmgr: the address of the powerplay hardware manager. +* return: always 0 +*/ static int vega10_construct_voltage_tables (struct pp_hwmgr *hwmgr) {struct vega10_hwmgr *data = hwmgr->backend;@@ -1212,11 +1211,11 @@ static int vega10_construct_voltage_tables(struct pp_hwmgr *hwmgr) }/* -* @fn vega10_init_dpm_state -* @brief Function to initialize all Soft Min/Max and Hard Min/Max to 0xff. +* vega10_init_dpm_state +* Function to initialize all Soft Min/Max and Hard Min/Max to 0xff. * -* @param dpm_state - the address of the DPM Table to initiailize. -* @return None. +* @dpm_state: - the address of the DPM Table to initiailize. +* return: None. */ static void vega10_init_dpm_state (struct vega10_dpm_state *dpm_state) {@@ -1460,11 +1459,11 @@ static int vega10_setup_default_dpm_tables(struct pp_hwmgr *hwmgr) }/* -* @fn vega10_populate_ulv_state -* @brief Function to provide parameters for Utral Low Voltage state to SMC. +* vega10_populate_ulv_state +* Function to provide parameters for Utral Low Voltage state to SMC. * -* @param hwmgr - the address of the hardware manager. -* @return Always 0. +* @hwmgr: - the address of the hardware manager. +* return: Always 0. */ static int vega10_populate_ulv_state (struct pp_hwmgr *hwmgr) {@@ -1545,13 +1544,12 @@ static int vega10_populate_smc_link_levels(struct pp_hwmgr *hwmgr) }/** -* Populates single SMC GFXSCLK structure using the provided engine clock -* -* @param hwmgr the address of the hardware manager -* @param gfx_clock the GFX clock to use to populate the structure. -* @param current_gfxclk_level location in PPTable for the SMC GFXCLK structure. -*/ - +* Populates single SMC GFXSCLK structure using the provided engine clock +* +* @hwmgr: the address of the hardware manager +* @gfx_clock: the GFX clock to use to populate the structure. +* @current_gfxclk_level: location in PPTable for the SMC GFXCLK structure. +*/ static int vega10_populate_single_gfx_level (struct pp_hwmgr *hwmgr,uint32_t gfx_clock,PllSetting_t *current_gfxclk_level,uint32_t *acg_freq)@@ -1610,12 +1608,12 @@ static int vega10_populate_single_gfx_level(struct pp_hwmgr *hwmgr, }/** -* @brief Populates single SMC SOCCLK structure using the provided clock. +* Populates single SMC SOCCLK structure using the provided clock. * -* @param hwmgr - the address of the hardware manager. -* @param soc_clock - the SOC clock to use to populate the structure. -* @param current_socclk_level - location in PPTable for the SMC SOCCLK structure. -* @return 0 on success.. +* @hwmgr: the address of the hardware manager. +* @soc_clock: the SOC clock to use to populate the structure. +* @current_socclk_level: location in PPTable for the SMC SOCCLK structure. +* return: 0 on success */ static int vega10_populate_single_soc_level(struct pp_hwmgr *hwmgr, uint32_t soc_clock, uint8_t *current_soc_did,@@ -1659,10 +1657,10 @@ static int vega10_populate_single_soc_level(struct pp_hwmgr *hwmgr, }/** -* Populates all SMC SCLK levels' structure based on the trimmed allowed dpm engine clock states -* -* @param hwmgr the address of the hardware manager -*/ +* Populates all SMC SCLK levels' structure based on the trimmed allowed dpm engine clock states +* +* @hwmgr: the address of the hardware manager +*/ static int vega10_populate_all_graphic_levels (struct pp_hwmgr *hwmgr) {struct vega10_hwmgr *data = hwmgr->backend;@@ -1747,11 +1745,11 @@ static void vega10_populate_vddc_soc_levels(struct pp_hwmgr *hwmgr) }/** -* @brief Populates single SMC GFXCLK structure using the provided clock. +* Populates single SMC GFXCLK structure using the provided clock. * -* @param hwmgr - the address of the hardware manager. -* @param mem_clock - the memory clock to use to populate the structure. -* @return 0 on success.. +* @hwmgr: the address of the hardware manager. +* @mem_clock: the memory clock to use to populate the structure. +* return: 0 on success.. */ static int vega10_populate_single_memory_level(struct pp_hwmgr *hwmgr, uint32_t mem_clock, uint8_t *current_mem_vid,@@ -1808,10 +1806,10 @@ static int vega10_populate_single_memory_level(struct pp_hwmgr *hwmgr, }/** -* @brief Populates all SMC MCLK levels' structure based on the trimmed allowed dpm memory clock states. +* Populates all SMC MCLK levels' structure based on the trimmed allowed dpm memory clock states. * -* @param pHwMgr - the address of the hardware manager. -* @return PP_Result_OK on success. +* @hwmgr: the address of the hardware manager. +* return: PP_Result_OK on success. */ static int vega10_populate_all_memory_levels (struct pp_hwmgr *hwmgr) {@@ -2486,12 +2484,11 @@ static void vega10_check_dpm_table_updated(struct pp_hwmgr *hwmgr) }/** -* Initializes the SMC table and uploads it -* -* @param hwmgr the address of the powerplay hardware manager. -* @param pInput the pointer to input data (PowerState) -* @return always 0 -*/ +* Initializes the SMC table and uploads it +* +* @hwmgr: the address of the powerplay hardware manager. +* return: always 0 +*/ static int vega10_init_smc_table (struct pp_hwmgr *hwmgr) {int result;@@ -2864,11 +2861,11 @@ static int vega10_stop_dpm(struct pp_hwmgr *hwmgr, uint32_t bitmap) }/** -* @brief Tell SMC to enabled the supported DPMs. +* Tell SMC to enabled the supported DPMs. * -* @param hwmgr - the address of the powerplay hardware manager. -* @Param bitmap - bitmap for the features to enabled. -* @return 0 on at least one DPM is successfully enabled. +* @hwmgr: the address of the powerplay hardware manager. +* @bitmap bitmap for the features to enabled. +* return: 0 on at least one DPM is successfully enabled. */ static int vega10_start_dpm (struct pp_hwmgr *hwmgr,uint32_t bitmap) { --2.25.1
Quoted 4 lines
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
PATCH 13/40 drm/amd/display/dc/basics/conversion: Demote obvious kernel-doc abuse
In reply to Lee JonesFixes the following W=1 kernel build warning(s):
drivers/gpu/drm/amd/amdgpu/../display/dc/basics/conversion.c:86: warning: Function parameter or member 'matrix' not described in 'convert_float_matrix' drivers/gpu/drm/amd/amdgpu/../display/dc/basics/conversion.c:86: warning: Function parameter or member 'flt' not described in 'convert_float_matrix' drivers/gpu/drm/amd/amdgpu/../display/dc/basics/conversion.c:86: warning: Function parameter or member 'buffer_size' not described in 'convert_float_matrix' drivers/gpu/drm/amd/amdgpu/../display/dc/basics/conversion.c:86: warning: Excess function parameter 'param' description in 'convert_float_matrix'
--- drivers/gpu/drm/amd/display/dc/basics/conversion.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-)
drivers/gpu/drm/amd/display/dc/basics/conversion.c +3 -6
@@ -73,12 +73,9 @@ uint16_t fixed_point_to_int_frac(return result; } -/** -* convert_float_matrix -* This converts a double into HW register spec defined format S2D13. -* @param : -* @return None -*/ +/* +* convert_float_matrix - This converts a double into HW register spec defined format S2D13. +*/ void convert_float_matrix( uint16_t *matrix, struct fixed31_32 *flt,
Signature · 6 lines
2.25.1 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Alex Deucher
AppliedRe: [PATCH 13/40] drm/amd/display/dc/basics/conversion: Demote obvious kernel-doc abuse
Quoted 8 lines · Lee Jones
Fixes the following W=1 kernel build warning(s):
drivers/gpu/drm/amd/amdgpu/../display/dc/basics/conversion.c:86: warning: Function parameter or member 'matrix' not described in 'convert_float_matrix'drivers/gpu/drm/amd/amdgpu/../display/dc/basics/conversion.c:86: warning: Function parameter or member 'flt' not described in 'convert_float_matrix'drivers/gpu/drm/amd/amdgpu/../display/dc/basics/conversion.c:86: warning: Function parameter or member 'buffer_size' not described in 'convert_float_matrix'drivers/gpu/drm/amd/amdgpu/../display/dc/basics/conversion.c:86: warning: Excess function parameter 'param' description in 'convert_float_matrix'
Quoted 10 lines
Cc Harry Wentland <[email protected]>Cc Leo Li <[email protected]>Cc Alex Deucher <[email protected]>Cc "Christian König" <[email protected]>Cc David Airlie <[email protected]>Cc Daniel Vetter <[email protected]>Cc Lee Jones <[email protected]>Signed-off-by Lee Jones <[email protected]>
Applied. Thanks!
Alex
Quoted 27 lines
--- drivers/gpu/drm/amd/display/dc/basics/conversion.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-)drivers/gpu/drm/amd/display/dc/basics/conversion.c +3
-7@@ -73,12 +73,9 @@ uint16_t fixed_point_to_int_frac(return result; } -/** -* convert_float_matrix -* This converts a double into HW register spec defined format S2D13. -* @param : -* @return None -*/ +/* +* convert_float_matrix - This converts a double into HW register spec defined format S2D13. +*/ void convert_float_matrix( uint16_t *matrix, struct fixed31_32 *flt, --2.25.1
Quoted 4 lines
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
PATCH 14/40 drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs: Demote non-kernel-doc comment blocks
In reply to Lee JonesFixes the following W=1 kernel build warning(s):
drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_debugfs.c:699: warning: Function parameter or member 'm' not described in 'dmub_tracebuffer_show' drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_debugfs.c:699: warning: Function parameter or member 'data' not described in 'dmub_tracebuffer_show' drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_debugfs.c:743: warning: Function parameter or member 'm' not described in 'dmub_fw_state_show' drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_debugfs.c:743: warning: Function parameter or member 'data' not described in 'dmub_fw_state_show'
--- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c +2 -2
@@ -691,7 +691,7 @@ static ssize_t dp_phy_test_pattern_debugfs_write(struct file *f, const char __usreturn size; } -/** +/* * Returns the DMCUB tracebuffer contents. * Example usage: cat /sys/kernel/debug/dri/0/amdgpu_dm_dmub_tracebuffer */
@@ -735,7 +735,7 @@ static int dmub_tracebuffer_show(struct seq_file *m, void *data)return 0 ; } -/** +/* * Returns the DMCUB firmware state contents. * Example usage: cat /sys/kernel/debug/dri/0/amdgpu_dm_dmub_fw_state */
Signature · 6 lines
2.25.1 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Alex Deucher
AppliedRe: [PATCH 14/40] drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs: Demote non-kernel-doc comment blocks
Quoted 8 lines · Lee Jones
Fixes the following W=1 kernel build warning(s):
drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_debugfs.c:699: warning: Function parameter or member 'm' not described in 'dmub_tracebuffer_show'drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_debugfs.c:699: warning: Function parameter or member 'data' not described in 'dmub_tracebuffer_show'drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_debugfs.c:743: warning: Function parameter or member 'm' not described in 'dmub_fw_state_show'drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_debugfs.c:743: warning: Function parameter or member 'data' not described in 'dmub_fw_state_show'
Quoted 11 lines
Cc Harry Wentland <[email protected]>Cc Leo Li <[email protected]>Cc Alex Deucher <[email protected]>Cc "Christian König" <[email protected]>Cc David Airlie <[email protected]>Cc Daniel Vetter <[email protected]>Cc Mikita Lipski <[email protected]>Cc Eryk Brol <[email protected]>Signed-off-by Lee Jones <[email protected]>
Applied. Thanks!
Alex
Quoted 29 lines
--- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c +2
-3@@ -691,7 +691,7 @@ static ssize_t dp_phy_test_pattern_debugfs_write(struct file *f, const char __usreturn size; } -/** +/* * Returns the DMCUB tracebuffer contents. * Example usage: cat /sys/kernel/debug/dri/0/amdgpu_dm_dmub_tracebuffer */ @@ -735,7 +735,7 @@ static int dmub_tracebuffer_show(struct seq_file *m, void *data)return 0 ; } -/** +/* * Returns the DMCUB firmware state contents. * Example usage: cat /sys/kernel/debug/dri/0/amdgpu_dm_dmub_fw_state */ --2.25.1
Quoted 4 lines
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
PATCH 15/40 drm/amd/display/dc/bios/command_table_helper: Fix kernel-doc formatting
In reply to Lee JonesFixes the following W=1 kernel build warning(s):
drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table_helper.c:131: warning: Function parameter or member 't' not described in 'dal_cmd_table_helper_transmitter_bp_to_atom'
--- .../display/dc/bios/command_table_helper.c | 20 ++++++++----------- 1 file changed, 8 insertions(+), 12 deletions(-)
drivers/gpu/drm/amd/display/dc/bios/command_table_helper.c +8 -12
@@ -114,18 +114,14 @@ bool dal_cmd_table_helper_controller_id_to_atom( }/** -* translate_transmitter_bp_to_atom -* -* @brief -* Translate the Transmitter to the corresponding ATOM BIOS value -* -* @param -* input transmitter -* output digitalTransmitter -* // =00: Digital Transmitter1 ( UNIPHY linkAB ) -* // =01: Digital Transmitter2 ( UNIPHY linkCD ) -* // =02: Digital Transmitter3 ( UNIPHY linkEF ) -*/ +* translate_transmitter_bp_to_atom - Translate the Transmitter to the +* corresponding ATOM BIOS value +* @t: transmitter +* returns: output digitalTransmitter +* // =00: Digital Transmitter1 ( UNIPHY linkAB ) +* // =01: Digital Transmitter2 ( UNIPHY linkCD ) +* // =02: Digital Transmitter3 ( UNIPHY linkEF ) +*/ uint8_t dal_cmd_table_helper_transmitter_bp_to_atom (enum transmitter t) {
Signature · 6 lines
2.25.1 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Alex Deucher
AppliedRe: [PATCH 15/40] drm/amd/display/dc/bios/command_table_helper: Fix kernel-doc formatting
Applied. Thanks!
Alex
Quoted 53 lines · Lee Jones
Fixes the following W=1 kernel build warning(s):
drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table_helper.c:131: warning: Function parameter or member 't' not described in 'dal_cmd_table_helper_transmitter_bp_to_atom'Cc Harry Wentland <[email protected]>Cc Leo Li <[email protected]>Cc Alex Deucher <[email protected]>Cc "Christian König" <[email protected]>Cc David Airlie <[email protected]>Cc Daniel Vetter <[email protected]>Cc Mauro Rossi <[email protected]>Signed-off-by Lee Jones <[email protected]>--- .../display/dc/bios/command_table_helper.c | 20 ++++++++----------- 1 file changed, 8 insertions(+), 12 deletions(-)drivers/gpu/drm/amd/display/dc/bios/command_table_helper.c +8
-13@@ -114,18 +114,14 @@ bool dal_cmd_table_helper_controller_id_to_atom( }/** -* translate_transmitter_bp_to_atom -* -* @brief -* Translate the Transmitter to the corresponding ATOM BIOS value -* -* @param -* input transmitter -* output digitalTransmitter -* // =00: Digital Transmitter1 ( UNIPHY linkAB ) -* // =01: Digital Transmitter2 ( UNIPHY linkCD ) -* // =02: Digital Transmitter3 ( UNIPHY linkEF ) -*/ +* translate_transmitter_bp_to_atom - Translate the Transmitter to the +* corresponding ATOM BIOS value +* @t: transmitter +* returns: output digitalTransmitter +* // =00: Digital Transmitter1 ( UNIPHY linkAB ) +* // =01: Digital Transmitter2 ( UNIPHY linkCD ) +* // =02: Digital Transmitter3 ( UNIPHY linkEF ) +*/ uint8_t dal_cmd_table_helper_transmitter_bp_to_atom (enum transmitter t) { --2.25.1
Quoted 4 lines
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
PATCH 16/40 drm/amd/display/dc/bios/command_table_helper2: Fix legacy formatting problems
In reply to Lee JonesFixes the following W=1 kernel build warning(s):
drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table_helper2.c:145: warning: Function parameter or member 't' not described in 'dal_cmd_table_helper_transmitter_bp_to_atom2'
--- .../display/dc/bios/command_table_helper2.c | 20 ++++++++----------- 1 file changed, 8 insertions(+), 12 deletions(-)
drivers/gpu/drm/amd/display/dc/bios/command_table_helper2.c +8 -12
@@ -128,18 +128,14 @@ bool dal_cmd_table_helper_controller_id_to_atom2( }/** -* translate_transmitter_bp_to_atom -* -* @brief -* Translate the Transmitter to the corresponding ATOM BIOS value -* -* @param -* input transmitter -* output digitalTransmitter -* // =00: Digital Transmitter1 ( UNIPHY linkAB ) -* // =01: Digital Transmitter2 ( UNIPHY linkCD ) -* // =02: Digital Transmitter3 ( UNIPHY linkEF ) -*/ +* translate_transmitter_bp_to_atom2 - Translate the Transmitter to the +* corresponding ATOM BIOS value +* @t: transmitter +* returns: digitalTransmitter +* // =00: Digital Transmitter1 ( UNIPHY linkAB ) +* // =01: Digital Transmitter2 ( UNIPHY linkCD ) +* // =02: Digital Transmitter3 ( UNIPHY linkEF ) +*/ uint8_t dal_cmd_table_helper_transmitter_bp_to_atom2 (enum transmitter t) {
Signature · 6 lines
2.25.1 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Alex Deucher
AppliedRe: [PATCH 16/40] drm/amd/display/dc/bios/command_table_helper2: Fix legacy formatting problems
Applied. Thanks!
Alex
Quoted 52 lines · Lee Jones
Fixes the following W=1 kernel build warning(s):
drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table_helper2.c:145: warning: Function parameter or member 't' not described in 'dal_cmd_table_helper_transmitter_bp_to_atom2'Cc Harry Wentland <[email protected]>Cc Leo Li <[email protected]>Cc Alex Deucher <[email protected]>Cc "Christian König" <[email protected]>Cc David Airlie <[email protected]>Cc Daniel Vetter <[email protected]>Signed-off-by Lee Jones <[email protected]>--- .../display/dc/bios/command_table_helper2.c | 20 ++++++++----------- 1 file changed, 8 insertions(+), 12 deletions(-)drivers/gpu/drm/amd/display/dc/bios/command_table_helper2.c +8
-13@@ -128,18 +128,14 @@ bool dal_cmd_table_helper_controller_id_to_atom2( }/** -* translate_transmitter_bp_to_atom -* -* @brief -* Translate the Transmitter to the corresponding ATOM BIOS value -* -* @param -* input transmitter -* output digitalTransmitter -* // =00: Digital Transmitter1 ( UNIPHY linkAB ) -* // =01: Digital Transmitter2 ( UNIPHY linkCD ) -* // =02: Digital Transmitter3 ( UNIPHY linkEF ) -*/ +* translate_transmitter_bp_to_atom2 - Translate the Transmitter to the +* corresponding ATOM BIOS value +* @t: transmitter +* returns: digitalTransmitter +* // =00: Digital Transmitter1 ( UNIPHY linkAB ) +* // =01: Digital Transmitter2 ( UNIPHY linkCD ) +* // =02: Digital Transmitter3 ( UNIPHY linkEF ) +*/ uint8_t dal_cmd_table_helper_transmitter_bp_to_atom2 (enum transmitter t) { --2.25.1
Quoted 4 lines
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
PATCH 17/40 drm/amd/display/dc/bios/bios_parser: Make local functions static
In reply to Lee JonesFixes the following W=1 kernel build warning(s):
drivers/gpu/drm/amd/amdgpu/../display/dc/bios/bios_parser.c:2588:16: warning: no previous prototype for ‘update_slot_layout_info’ [-Wmissing-prototypes] drivers/gpu/drm/amd/amdgpu/../display/dc/bios/bios_parser.c:2692:16: warning: no previous prototype for ‘get_bracket_layout_record’ [-Wmissing-prototypes]
--- 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
@@ -2585,7 +2585,7 @@ static struct integrated_info *bios_parser_create_integrated_info(return NULL ; } -enum bp_result update_slot_layout_info( +static enum bp_result update_slot_layout_info( struct dc_bios *dcb, unsigned int i, struct slot_layout_info *slot_layout_info,
@@ -2689,7 +2689,7 @@ enum bp_result update_slot_layout_info( } -enum bp_result get_bracket_layout_record ( +static enum bp_result get_bracket_layout_record (struct dc_bios *dcb,unsigned int bracket_layout_id,struct slot_layout_info *slot_layout_info)
Signature · 6 lines
2.25.1 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Alex Deucher
AppliedRe: [PATCH 17/40] drm/amd/display/dc/bios/bios_parser: Make local functions static
Applied. Thanks!
Alex
Quoted 45 lines · Lee Jones
Fixes the following W=1 kernel build warning(s):
drivers/gpu/drm/amd/amdgpu/../display/dc/bios/bios_parser.c:2588:16: warning: no previous prototype for ‘update_slot_layout_info’ [-Wmissing-prototypes]drivers/gpu/drm/amd/amdgpu/../display/dc/bios/bios_parser.c:2692:16: warning: no previous prototype for ‘get_bracket_layout_record’ [-Wmissing-prototypes]Cc Harry Wentland <[email protected]>Cc Leo Li <[email protected]>Cc Alex Deucher <[email protected]>Cc "Christian König" <[email protected]>Cc David Airlie <[email protected]>Cc Daniel Vetter <[email protected]>Cc Igor Kravchenko <[email protected]>Signed-off-by Lee Jones <[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@@ -2585,7 +2585,7 @@ static struct integrated_info *bios_parser_create_integrated_info(return NULL ; } -enum bp_result update_slot_layout_info( +static enum bp_result update_slot_layout_info( struct dc_bios *dcb, unsigned int i, struct slot_layout_info *slot_layout_info,@@ -2689,7 +2689,7 @@ enum bp_result update_slot_layout_info( } -enum bp_result get_bracket_layout_record ( +static enum bp_result get_bracket_layout_record (struct dc_bios *dcb,unsigned int bracket_layout_id,struct slot_layout_info *slot_layout_info) --2.25.1
Quoted 4 lines
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
PATCH 18/40 drm/amd/display/dc/bios/bios_parser: Fix a whole bunch of legacy doc formatting
In reply to Lee JonesFixes the following W=1 kernel build warning(s):
drivers/gpu/drm/amd/amdgpu/../display/dc/bios/bios_parser.c:2588:16: warning: no previous prototype for ‘update_slot_layout_info’ [-Wmissing-prototypes] drivers/gpu/drm/amd/amdgpu/../display/dc/bios/bios_parser.c:2692:16: warning: no previous prototype for ‘get_bracket_layout_record’ [-Wmissing-prototypes] drivers/gpu/drm/amd/amdgpu/../display/dc/bios/bios_parser.c:925: warning: Function parameter or member 'dcb' not described in 'bios_parser_get_spread_spectrum_info' drivers/gpu/drm/amd/amdgpu/../display/dc/bios/bios_parser.c:925: warning: Function parameter or member 'signal' not described in 'bios_parser_get_spread_spectrum_info' drivers/gpu/drm/amd/amdgpu/../display/dc/bios/bios_parser.c:925: warning: Function parameter or member 'index' not described in 'bios_parser_get_spread_spectrum_info' drivers/gpu/drm/amd/amdgpu/../display/dc/bios/bios_parser.c:925: warning: Function parameter or member 'ss_info' not described in 'bios_parser_get_spread_spectrum_info' drivers/gpu/drm/amd/amdgpu/../display/dc/bios/bios_parser.c:997: warning: Function parameter or member 'bp' not described in 'get_ss_info_from_tbl' drivers/gpu/drm/amd/amdgpu/../display/dc/bios/bios_parser.c:997: warning: Function parameter or member 'id' not described in 'get_ss_info_from_tbl' drivers/gpu/drm/amd/amdgpu/../display/dc/bios/bios_parser.c:997: warning: Function parameter or member 'ss_info' not described in 'get_ss_info_from_tbl' drivers/gpu/drm/amd/amdgpu/../display/dc/bios/bios_parser.c:1022: warning: Function parameter or member 'bp' not described in 'get_ss_info_from_internal_ss_info_tbl_V2_1' drivers/gpu/drm/amd/amdgpu/../display/dc/bios/bios_parser.c:1022: warning: Function parameter or member 'id' not described in 'get_ss_info_from_internal_ss_info_tbl_V2_1' drivers/gpu/drm/amd/amdgpu/../display/dc/bios/bios_parser.c:1022: warning: Function parameter or member 'info' not described in 'get_ss_info_from_internal_ss_info_tbl_V2_1' drivers/gpu/drm/amd/amdgpu/../display/dc/bios/bios_parser.c:1087: warning: Function parameter or member 'bp' not described in 'get_ss_info_from_ss_info_table' drivers/gpu/drm/amd/amdgpu/../display/dc/bios/bios_parser.c:1087: warning: Function parameter or member 'id' not described in 'get_ss_info_from_ss_info_table' drivers/gpu/drm/amd/amdgpu/../display/dc/bios/bios_parser.c:1087: warning: Function parameter or member 'ss_info' not described in 'get_ss_info_from_ss_info_table' drivers/gpu/drm/amd/amdgpu/../display/dc/bios/bios_parser.c:1469: warning: Function parameter or member 'dcb' not described in 'bios_parser_get_encoder_cap_info' drivers/gpu/drm/amd/amdgpu/../display/dc/bios/bios_parser.c:1469: warning: Function parameter or member 'object_id' not described in 'bios_parser_get_encoder_cap_info' drivers/gpu/drm/amd/amdgpu/../display/dc/bios/bios_parser.c:1469: warning: Function parameter or member 'info' not described in 'bios_parser_get_encoder_cap_info' drivers/gpu/drm/amd/amdgpu/../display/dc/bios/bios_parser.c:1508: warning: Function parameter or member 'bp' not described in 'get_encoder_cap_record' drivers/gpu/drm/amd/amdgpu/../display/dc/bios/bios_parser.c:1508: warning: Function parameter or member 'object' not described in 'get_encoder_cap_record' drivers/gpu/drm/amd/amdgpu/../display/dc/bios/bios_parser.c:1566: warning: Function parameter or member 'dcb' not described in 'bios_parser_get_ss_entry_number' drivers/gpu/drm/amd/amdgpu/../display/dc/bios/bios_parser.c:1566: warning: Function parameter or member 'signal' not described in 'bios_parser_get_ss_entry_number' drivers/gpu/drm/amd/amdgpu/../display/dc/bios/bios_parser.c:1619: warning: Function parameter or member 'bp' not described in 'get_ss_entry_number_from_ss_info_tbl' drivers/gpu/drm/amd/amdgpu/../display/dc/bios/bios_parser.c:1619: warning: Function parameter or member 'id' not described in 'get_ss_entry_number_from_ss_info_tbl' drivers/gpu/drm/amd/amdgpu/../display/dc/bios/bios_parser.c:1686: warning: Function parameter or member 'bp' not described in 'get_ss_entry_number' drivers/gpu/drm/amd/amdgpu/../display/dc/bios/bios_parser.c:1686: warning: Function parameter or member 'id' not described in 'get_ss_entry_number' drivers/gpu/drm/amd/amdgpu/../display/dc/bios/bios_parser.c:1705: warning: Function parameter or member 'bp' not described in 'get_ss_entry_number_from_internal_ss_info_tbl_v2_1' drivers/gpu/drm/amd/amdgpu/../display/dc/bios/bios_parser.c:1705: warning: Function parameter or member 'id' not described in 'get_ss_entry_number_from_internal_ss_info_tbl_v2_1' drivers/gpu/drm/amd/amdgpu/../display/dc/bios/bios_parser.c:1740: warning: Function parameter or member 'bp' not described in 'get_ss_entry_number_from_internal_ss_info_tbl_V3_1' drivers/gpu/drm/amd/amdgpu/../display/dc/bios/bios_parser.c:1740: warning: Function parameter or member 'id' not described in 'get_ss_entry_number_from_internal_ss_info_tbl_V3_1' drivers/gpu/drm/amd/amdgpu/../display/dc/bios/bios_parser.c:1783: warning: Function parameter or member 'dcb' not described in 'bios_parser_get_gpio_pin_info' drivers/gpu/drm/amd/amdgpu/../display/dc/bios/bios_parser.c:1783: warning: Function parameter or member 'gpio_id' not described in 'bios_parser_get_gpio_pin_info' drivers/gpu/drm/amd/amdgpu/../display/dc/bios/bios_parser.c:1783: warning: Function parameter or member 'info' not described in 'bios_parser_get_gpio_pin_info' drivers/gpu/drm/amd/amdgpu/../display/dc/bios/bios_parser.c:2211: warning: Function parameter or member 'dcb' not described in 'bios_parser_set_scratch_critical_state' drivers/gpu/drm/amd/amdgpu/../display/dc/bios/bios_parser.c:2211: warning: Function parameter or member 'state' not described in 'bios_parser_set_scratch_critical_state'
--- .../gpu/drm/amd/display/dc/bios/bios_parser.c | 115 +++++++++--------- 1 file changed, 56 insertions(+), 59 deletions(-)
drivers/gpu/drm/amd/display/dc/bios/bios_parser.c +56 -59
@@ -911,11 +911,11 @@ static enum bp_result get_ss_info_from_tbl(* ver 2.1 can co-exist with SS_Info table. Expect ASIC_InternalSS_Info ver 3.1, * there is only one entry for each signal /ss id. However, there is * no planning of supporting multiple spread Sprectum entry for EverGreen -* @param [in] this -* @param [in] signal, ASSignalType to be converted to info index -* @param [in] index, number of entries that match the converted info index -* @param [out] ss_info, sprectrum information structure, -* @return Bios parser result code +* @dcb: pointer to the DC BIOS +* @signal: ASSignalType to be converted to info index +* @index: number of entries that match the converted info index +* @ss_info: sprectrum information structure, +* return: Bios parser result code */ static enum bp_result bios_parser_get_spread_spectrum_info( struct dc_bios *dcb,
@@ -985,10 +985,10 @@ static enum bp_result get_ss_info_from_internal_ss_info_tbl_V2_1(* There can not be more than 1 entry for ASIC_InternalSS_Info Ver 2.1 or * SS_Info. * -* @param this -* @param id, spread sprectrum info index -* @param pSSinfo, sprectrum information structure, -* @return Bios parser result code +* @bp: pointer to the BIOS parser +* @id: spread sprectrum info index +* @ssinfo: sprectrum information structure, +* return:: BIOS parser result code */ static enum bp_result get_ss_info_from_tbl( struct bios_parser *bp,
@@ -1011,9 +1011,10 @@ static enum bp_result get_ss_info_from_tbl(* from the VBIOS * There will not be multiple entry for Ver 2.1 * -* @param id, spread sprectrum info index -* @param pSSinfo, sprectrum information structure, -* @return Bios parser result code +* @bp: pointer to the Bios parser +* @id: spread sprectrum info index +* @info: sprectrum information structure, +* return: Bios parser result code */ static enum bp_result get_ss_info_from_internal_ss_info_tbl_V2_1( struct bios_parser *bp,
@@ -1076,9 +1077,10 @@ static enum bp_result get_ss_info_from_internal_ss_info_tbl_V2_1(* of entries that matches the id * for, the SS_Info table, there should not be more than 1 entry match. * -* @param [in] id, spread sprectrum id -* @param [out] pSSinfo, sprectrum information structure, -* @return Bios parser result code +* @bp: pointer to the Bios parser +* @id: spread sprectrum id +* @ss_info: sprectrum information structure, +* return: Bios parser result code */ static enum bp_result get_ss_info_from_ss_info_table( struct bios_parser *bp,
@@ -1451,16 +1453,14 @@ static enum bp_result get_embedded_panel_info_v1_3( }/** -* bios_parser_get_encoder_cap_info +* bios_parser_get_encoder_cap_info - get encoder capability +* information of input object id * -* @brief -* Get encoder capability information of input object id -* -* @param object_id, Object id -* @param object_id, encoder cap information structure -* -* @return Bios parser result code +* @dcb: pointer to the DC BIOS +* @object_id: object id +* @info: encoder cap information structure * +* return: Bios parser result code */ static enum bp_result bios_parser_get_encoder_cap_info( struct dc_bios *dcb,
@@ -1490,17 +1490,12 @@ static enum bp_result bios_parser_get_encoder_cap_info( }/** -* get_encoder_cap_record -* -* @brief -* Get encoder cap record for the object -* -* @param object, ATOM object +* get_encoder_cap_record - Get encoder cap record for the object * -* @return atom encoder cap record -* -* @note -* search all records to find the ATOM_ENCODER_CAP_RECORD_V2 record +* @bp: pointer to the BIOS parser +* @object: ATOM object +* return: atom encoder cap record +* note: search all records to find the ATOM_ENCODER_CAP_RECORD_V2 record */ static ATOM_ENCODER_CAP_RECORD_V2 *get_encoder_cap_record( struct bios_parser *bp,
@@ -1557,8 +1552,9 @@ static uint32_t get_ss_entry_number_from_ss_info_tbl(* Get Number of SpreadSpectrum Entry from the ASIC_InternalSS_Info table from * the VBIOS that match the SSid (to be converted from signal) * -* @param[in] signal, ASSignalType to be converted to SSid -* @return number of SS Entry that match the signal +* @dcb: pointer to the DC BIOS +* @signal: ASSignalType to be converted to SSid +* return: number of SS Entry that match the signal */ static uint32_t bios_parser_get_ss_entry_number( struct dc_bios *dcb,
@@ -1608,10 +1604,10 @@ static uint32_t bios_parser_get_ss_entry_number(* get_ss_entry_number_from_ss_info_tbl * Get Number of spread spectrum entry from the SS_Info table from the VBIOS. * -* @note There can only be one entry for each id for SS_Info Table -* -* @param [in] id, spread spectrum id -* @return number of SS Entry that match the id +* @bp: pointer to the BIOS parser +* @id: spread spectrum id +* return: number of SS Entry that match the id +* note: There can only be one entry for each id for SS_Info Table */ static uint32_t get_ss_entry_number_from_ss_info_tbl( struct bios_parser *bp,
@@ -1679,8 +1675,9 @@ static uint32_t get_ss_entry_number_from_ss_info_tbl(* There can not be more than 1 entry for ASIC_InternalSS_Info Ver 2.1 or * SS_Info. * -* @param id, spread sprectrum info index -* @return Bios parser result code +* @bp: pointer to the BIOS parser +* @id: spread sprectrum info index +* return: Bios parser result code */ static uint32_t get_ss_entry_number (struct bios_parser *bp,uint32_t id) {
@@ -1696,8 +1693,9 @@ static uint32_t get_ss_entry_number(struct bios_parser *bp, uint32_t id)* Ver 2.1 from the VBIOS * There will not be multiple entry for Ver 2.1 * -* @param id, spread sprectrum info index -* @return number of SS Entry that match the id +* @bp: pointer to the BIOS parser +* @id: spread sprectrum info index +* return: number of SS Entry that match the id */ static uint32_t get_ss_entry_number_from_internal_ss_info_tbl_v2_1( struct bios_parser *bp,
@@ -1731,8 +1729,9 @@ static uint32_t get_ss_entry_number_from_internal_ss_info_tbl_v2_1(* Get Number of SpreadSpectrum Entry from the ASIC_InternalSS_Info table of * the VBIOS that matches id * -* @param[in] id, spread sprectrum id -* @return number of SS Entry that match the id +* @bp: pointer to the BIOS parser +* @id: spread sprectrum id +* return: number of SS Entry that match the id */ static uint32_t get_ss_entry_number_from_internal_ss_info_tbl_V3_1( struct bios_parser *bp,
@@ -1767,10 +1766,11 @@ static uint32_t get_ss_entry_number_from_internal_ss_info_tbl_V3_1(* bios_parser_get_gpio_pin_info * Get GpioPin information of input gpio id * -* @param gpio_id, GPIO ID -* @param info, GpioPin information structure -* @return Bios parser result code -* @note +* @dcb: pointer to the DC BIOS +* @gpio_id: GPIO ID +* @info: GpioPin information structure +* return: Bios parser result code +* note: * to get the GPIO PIN INFO, we need: * 1. get the GPIO_ID from other object table, see GetHPDInfo() * 2. in DATA_TABLE.GPIO_Pin_LUT, search all records, to get the registerA
@@ -2197,13 +2197,10 @@ static uint32_t get_support_mask_for_device_id(struct device_id device_id) }/** -* bios_parser_set_scratch_critical_state -* -* @brief -* update critical state bit in VBIOS scratch register -* -* @param -* bool - to set or reset state +* bios_parser_set_scratch_critical_state - update critical state +* bit in VBIOS scratch register +* @dcb: pointer to the DC BIOS +* @state: set or reset state */ static void bios_parser_set_scratch_critical_state( struct dc_bios *dcb,
@@ -2222,7 +2219,7 @@ static void bios_parser_set_scratch_critical_state(* bios_parser *bp - [in]BIOS parser handler to get master data table * integrated_info *info - [out] store and output integrated info * -* @return +* return: * enum bp_result - BP_RESULT_OK if information is available, * BP_RESULT_BADBIOSTABLE otherwise. */
@@ -2372,7 +2369,7 @@ static enum bp_result get_integrated_info_v8(* bios_parser *bp - [in]BIOS parser handler to get master data table * integrated_info *info - [out] store and output integrated info * -* @return +* return: * enum bp_result - BP_RESULT_OK if information is available, * BP_RESULT_BADBIOSTABLE otherwise. */
@@ -2509,7 +2506,7 @@ static enum bp_result get_integrated_info_v9(* bios_parser *bp - [in]BIOS parser handler to get master data table * integrated_info *info - [out] store and output integrated info * -* @return +* return: * enum bp_result - BP_RESULT_OK if information is available, * BP_RESULT_BADBIOSTABLE otherwise. */
Signature · 6 lines
2.25.1 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Alex Deucher
AppliedRe: [PATCH 18/40] drm/amd/display/dc/bios/bios_parser: Fix a whole bunch of legacy doc formatting
Applied. Thanks!
Alex
Quoted 290 lines · Lee Jones
Fixes the following W=1 kernel build warning(s):
drivers/gpu/drm/amd/amdgpu/../display/dc/bios/bios_parser.c:2588:16: warning: no previous prototype for ‘update_slot_layout_info’ [-Wmissing-prototypes]drivers/gpu/drm/amd/amdgpu/../display/dc/bios/bios_parser.c:2692:16: warning: no previous prototype for ‘get_bracket_layout_record’ [-Wmissing-prototypes]drivers/gpu/drm/amd/amdgpu/../display/dc/bios/bios_parser.c:925: warning: Function parameter or member 'dcb' not described in 'bios_parser_get_spread_spectrum_info'drivers/gpu/drm/amd/amdgpu/../display/dc/bios/bios_parser.c:925: warning: Function parameter or member 'signal' not described in 'bios_parser_get_spread_spectrum_info'drivers/gpu/drm/amd/amdgpu/../display/dc/bios/bios_parser.c:925: warning: Function parameter or member 'index' not described in 'bios_parser_get_spread_spectrum_info'drivers/gpu/drm/amd/amdgpu/../display/dc/bios/bios_parser.c:925: warning: Function parameter or member 'ss_info' not described in 'bios_parser_get_spread_spectrum_info'drivers/gpu/drm/amd/amdgpu/../display/dc/bios/bios_parser.c:997: warning: Function parameter or member 'bp' not described in 'get_ss_info_from_tbl'drivers/gpu/drm/amd/amdgpu/../display/dc/bios/bios_parser.c:997: warning: Function parameter or member 'id' not described in 'get_ss_info_from_tbl'drivers/gpu/drm/amd/amdgpu/../display/dc/bios/bios_parser.c:997: warning: Function parameter or member 'ss_info' not described in 'get_ss_info_from_tbl'drivers/gpu/drm/amd/amdgpu/../display/dc/bios/bios_parser.c:1022: warning: Function parameter or member 'bp' not described in 'get_ss_info_from_internal_ss_info_tbl_V2_1'drivers/gpu/drm/amd/amdgpu/../display/dc/bios/bios_parser.c:1022: warning: Function parameter or member 'id' not described in 'get_ss_info_from_internal_ss_info_tbl_V2_1'drivers/gpu/drm/amd/amdgpu/../display/dc/bios/bios_parser.c:1022: warning: Function parameter or member 'info' not described in 'get_ss_info_from_internal_ss_info_tbl_V2_1'drivers/gpu/drm/amd/amdgpu/../display/dc/bios/bios_parser.c:1087: warning: Function parameter or member 'bp' not described in 'get_ss_info_from_ss_info_table'drivers/gpu/drm/amd/amdgpu/../display/dc/bios/bios_parser.c:1087: warning: Function parameter or member 'id' not described in 'get_ss_info_from_ss_info_table'drivers/gpu/drm/amd/amdgpu/../display/dc/bios/bios_parser.c:1087: warning: Function parameter or member 'ss_info' not described in 'get_ss_info_from_ss_info_table'drivers/gpu/drm/amd/amdgpu/../display/dc/bios/bios_parser.c:1469: warning: Function parameter or member 'dcb' not described in 'bios_parser_get_encoder_cap_info'drivers/gpu/drm/amd/amdgpu/../display/dc/bios/bios_parser.c:1469: warning: Function parameter or member 'object_id' not described in 'bios_parser_get_encoder_cap_info'drivers/gpu/drm/amd/amdgpu/../display/dc/bios/bios_parser.c:1469: warning: Function parameter or member 'info' not described in 'bios_parser_get_encoder_cap_info'drivers/gpu/drm/amd/amdgpu/../display/dc/bios/bios_parser.c:1508: warning: Function parameter or member 'bp' not described in 'get_encoder_cap_record'drivers/gpu/drm/amd/amdgpu/../display/dc/bios/bios_parser.c:1508: warning: Function parameter or member 'object' not described in 'get_encoder_cap_record'drivers/gpu/drm/amd/amdgpu/../display/dc/bios/bios_parser.c:1566: warning: Function parameter or member 'dcb' not described in 'bios_parser_get_ss_entry_number'drivers/gpu/drm/amd/amdgpu/../display/dc/bios/bios_parser.c:1566: warning: Function parameter or member 'signal' not described in 'bios_parser_get_ss_entry_number'drivers/gpu/drm/amd/amdgpu/../display/dc/bios/bios_parser.c:1619: warning: Function parameter or member 'bp' not described in 'get_ss_entry_number_from_ss_info_tbl'drivers/gpu/drm/amd/amdgpu/../display/dc/bios/bios_parser.c:1619: warning: Function parameter or member 'id' not described in 'get_ss_entry_number_from_ss_info_tbl'drivers/gpu/drm/amd/amdgpu/../display/dc/bios/bios_parser.c:1686: warning: Function parameter or member 'bp' not described in 'get_ss_entry_number'drivers/gpu/drm/amd/amdgpu/../display/dc/bios/bios_parser.c:1686: warning: Function parameter or member 'id' not described in 'get_ss_entry_number'drivers/gpu/drm/amd/amdgpu/../display/dc/bios/bios_parser.c:1705: warning: Function parameter or member 'bp' not described in 'get_ss_entry_number_from_internal_ss_info_tbl_v2_1'drivers/gpu/drm/amd/amdgpu/../display/dc/bios/bios_parser.c:1705: warning: Function parameter or member 'id' not described in 'get_ss_entry_number_from_internal_ss_info_tbl_v2_1'drivers/gpu/drm/amd/amdgpu/../display/dc/bios/bios_parser.c:1740: warning: Function parameter or member 'bp' not described in 'get_ss_entry_number_from_internal_ss_info_tbl_V3_1'drivers/gpu/drm/amd/amdgpu/../display/dc/bios/bios_parser.c:1740: warning: Function parameter or member 'id' not described in 'get_ss_entry_number_from_internal_ss_info_tbl_V3_1'drivers/gpu/drm/amd/amdgpu/../display/dc/bios/bios_parser.c:1783: warning: Function parameter or member 'dcb' not described in 'bios_parser_get_gpio_pin_info'drivers/gpu/drm/amd/amdgpu/../display/dc/bios/bios_parser.c:1783: warning: Function parameter or member 'gpio_id' not described in 'bios_parser_get_gpio_pin_info'drivers/gpu/drm/amd/amdgpu/../display/dc/bios/bios_parser.c:1783: warning: Function parameter or member 'info' not described in 'bios_parser_get_gpio_pin_info'drivers/gpu/drm/amd/amdgpu/../display/dc/bios/bios_parser.c:2211: warning: Function parameter or member 'dcb' not described in 'bios_parser_set_scratch_critical_state'drivers/gpu/drm/amd/amdgpu/../display/dc/bios/bios_parser.c:2211: warning: Function parameter or member 'state' not described in 'bios_parser_set_scratch_critical_state'Cc Harry Wentland <[email protected]>Cc Leo Li <[email protected]>Cc Alex Deucher <[email protected]>Cc "Christian König" <[email protected]>Cc David Airlie <[email protected]>Cc Daniel Vetter <[email protected]>Cc Lee Jones <[email protected]>Signed-off-by Lee Jones <[email protected]>--- .../gpu/drm/amd/display/dc/bios/bios_parser.c | 115 +++++++++--------- 1 file changed, 56 insertions(+), 59 deletions(-)drivers/gpu/drm/amd/display/dc/bios/bios_parser.c +56
-60@@ -911,11 +911,11 @@ static enum bp_result get_ss_info_from_tbl(* ver 2.1 can co-exist with SS_Info table. Expect ASIC_InternalSS_Info ver 3.1, * there is only one entry for each signal /ss id. However, there is * no planning of supporting multiple spread Sprectum entry for EverGreen -* @param [in] this -* @param [in] signal, ASSignalType to be converted to info index -* @param [in] index, number of entries that match the converted info index -* @param [out] ss_info, sprectrum information structure, -* @return Bios parser result code +* @dcb: pointer to the DC BIOS +* @signal: ASSignalType to be converted to info index +* @index: number of entries that match the converted info index +* @ss_info: sprectrum information structure, +* return: Bios parser result code */ static enum bp_result bios_parser_get_spread_spectrum_info( struct dc_bios *dcb,@@ -985,10 +985,10 @@ static enum bp_result get_ss_info_from_internal_ss_info_tbl_V2_1(* There can not be more than 1 entry for ASIC_InternalSS_Info Ver 2.1 or * SS_Info. * -* @param this -* @param id, spread sprectrum info index -* @param pSSinfo, sprectrum information structure, -* @return Bios parser result code +* @bp: pointer to the BIOS parser +* @id: spread sprectrum info index +* @ssinfo: sprectrum information structure, +* return:: BIOS parser result code */ static enum bp_result get_ss_info_from_tbl( struct bios_parser *bp,@@ -1011,9 +1011,10 @@ static enum bp_result get_ss_info_from_tbl(* from the VBIOS * There will not be multiple entry for Ver 2.1 * -* @param id, spread sprectrum info index -* @param pSSinfo, sprectrum information structure, -* @return Bios parser result code +* @bp: pointer to the Bios parser +* @id: spread sprectrum info index +* @info: sprectrum information structure, +* return: Bios parser result code */ static enum bp_result get_ss_info_from_internal_ss_info_tbl_V2_1( struct bios_parser *bp,@@ -1076,9 +1077,10 @@ static enum bp_result get_ss_info_from_internal_ss_info_tbl_V2_1(* of entries that matches the id * for, the SS_Info table, there should not be more than 1 entry match. * -* @param [in] id, spread sprectrum id -* @param [out] pSSinfo, sprectrum information structure, -* @return Bios parser result code +* @bp: pointer to the Bios parser +* @id: spread sprectrum id +* @ss_info: sprectrum information structure, +* return: Bios parser result code */ static enum bp_result get_ss_info_from_ss_info_table( struct bios_parser *bp,@@ -1451,16 +1453,14 @@ static enum bp_result get_embedded_panel_info_v1_3( }/** -* bios_parser_get_encoder_cap_info +* bios_parser_get_encoder_cap_info - get encoder capability +* information of input object id * -* @brief -* Get encoder capability information of input object id -* -* @param object_id, Object id -* @param object_id, encoder cap information structure -* -* @return Bios parser result code +* @dcb: pointer to the DC BIOS +* @object_id: object id +* @info: encoder cap information structure * +* return: Bios parser result code */ static enum bp_result bios_parser_get_encoder_cap_info( struct dc_bios *dcb,@@ -1490,17 +1490,12 @@ static enum bp_result bios_parser_get_encoder_cap_info( }/** -* get_encoder_cap_record -* -* @brief -* Get encoder cap record for the object -* -* @param object, ATOM object +* get_encoder_cap_record - Get encoder cap record for the object * -* @return atom encoder cap record -* -* @note -* search all records to find the ATOM_ENCODER_CAP_RECORD_V2 record +* @bp: pointer to the BIOS parser +* @object: ATOM object +* return: atom encoder cap record +* note: search all records to find the ATOM_ENCODER_CAP_RECORD_V2 record */ static ATOM_ENCODER_CAP_RECORD_V2 *get_encoder_cap_record( struct bios_parser *bp,@@ -1557,8 +1552,9 @@ static uint32_t get_ss_entry_number_from_ss_info_tbl(* Get Number of SpreadSpectrum Entry from the ASIC_InternalSS_Info table from * the VBIOS that match the SSid (to be converted from signal) * -* @param[in] signal, ASSignalType to be converted to SSid -* @return number of SS Entry that match the signal +* @dcb: pointer to the DC BIOS +* @signal: ASSignalType to be converted to SSid +* return: number of SS Entry that match the signal */ static uint32_t bios_parser_get_ss_entry_number( struct dc_bios *dcb,@@ -1608,10 +1604,10 @@ static uint32_t bios_parser_get_ss_entry_number(* get_ss_entry_number_from_ss_info_tbl * Get Number of spread spectrum entry from the SS_Info table from the VBIOS. * -* @note There can only be one entry for each id for SS_Info Table -* -* @param [in] id, spread spectrum id -* @return number of SS Entry that match the id +* @bp: pointer to the BIOS parser +* @id: spread spectrum id +* return: number of SS Entry that match the id +* note: There can only be one entry for each id for SS_Info Table */ static uint32_t get_ss_entry_number_from_ss_info_tbl( struct bios_parser *bp,@@ -1679,8 +1675,9 @@ static uint32_t get_ss_entry_number_from_ss_info_tbl(* There can not be more than 1 entry for ASIC_InternalSS_Info Ver 2.1 or * SS_Info. * -* @param id, spread sprectrum info index -* @return Bios parser result code +* @bp: pointer to the BIOS parser +* @id: spread sprectrum info index +* return: Bios parser result code */ static uint32_t get_ss_entry_number (struct bios_parser *bp,uint32_t id) {@@ -1696,8 +1693,9 @@ static uint32_t get_ss_entry_number(struct bios_parser *bp, uint32_t id)* Ver 2.1 from the VBIOS * There will not be multiple entry for Ver 2.1 * -* @param id, spread sprectrum info index -* @return number of SS Entry that match the id +* @bp: pointer to the BIOS parser +* @id: spread sprectrum info index +* return: number of SS Entry that match the id */ static uint32_t get_ss_entry_number_from_internal_ss_info_tbl_v2_1( struct bios_parser *bp,@@ -1731,8 +1729,9 @@ static uint32_t get_ss_entry_number_from_internal_ss_info_tbl_v2_1(* Get Number of SpreadSpectrum Entry from the ASIC_InternalSS_Info table of * the VBIOS that matches id * -* @param[in] id, spread sprectrum id -* @return number of SS Entry that match the id +* @bp: pointer to the BIOS parser +* @id: spread sprectrum id +* return: number of SS Entry that match the id */ static uint32_t get_ss_entry_number_from_internal_ss_info_tbl_V3_1( struct bios_parser *bp,@@ -1767,10 +1766,11 @@ static uint32_t get_ss_entry_number_from_internal_ss_info_tbl_V3_1(* bios_parser_get_gpio_pin_info * Get GpioPin information of input gpio id * -* @param gpio_id, GPIO ID -* @param info, GpioPin information structure -* @return Bios parser result code -* @note +* @dcb: pointer to the DC BIOS +* @gpio_id: GPIO ID +* @info: GpioPin information structure +* return: Bios parser result code +* note: * to get the GPIO PIN INFO, we need: * 1. get the GPIO_ID from other object table, see GetHPDInfo() * 2. in DATA_TABLE.GPIO_Pin_LUT, search all records, to get the registerA @@ -2197,13 +2197,10 @@ static uint32_t get_support_mask_for_device_id(struct device_id device_id) }/** -* bios_parser_set_scratch_critical_state -* -* @brief -* update critical state bit in VBIOS scratch register -* -* @param -* bool - to set or reset state +* bios_parser_set_scratch_critical_state - update critical state +* bit in VBIOS scratch register +* @dcb: pointer to the DC BIOS +* @state: set or reset state */ static void bios_parser_set_scratch_critical_state( struct dc_bios *dcb,@@ -2222,7 +2219,7 @@ static void bios_parser_set_scratch_critical_state(* bios_parser *bp - [in]BIOS parser handler to get master data table * integrated_info *info - [out] store and output integrated info * -* @return +* return: * enum bp_result - BP_RESULT_OK if information is available, * BP_RESULT_BADBIOSTABLE otherwise. */ @@ -2372,7 +2369,7 @@ static enum bp_result get_integrated_info_v8(* bios_parser *bp - [in]BIOS parser handler to get master data table * integrated_info *info - [out] store and output integrated info * -* @return +* return: * enum bp_result - BP_RESULT_OK if information is available, * BP_RESULT_BADBIOSTABLE otherwise. */ @@ -2509,7 +2506,7 @@ static enum bp_result get_integrated_info_v9(* bios_parser *bp - [in]BIOS parser handler to get master data table * integrated_info *info - [out] store and output integrated info * -* @return +* return: * enum bp_result - BP_RESULT_OK if information is available, * BP_RESULT_BADBIOSTABLE otherwise. */ --2.25.1
Quoted 4 lines
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
PATCH 19/40 drm/amd/display/dc/bios/command_table: Remove unused variable
In reply to Lee JonesNone of the surrounding code was removed just in case even a small fraction of it was functional.
Fixes the following W=1 kernel build warning(s):
drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table.c: In function ‘adjust_display_pll_v2’:
drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table.c:1459:35: warning: variable ‘params’ set but not used [-Wunused-but-set-variable]
--- drivers/gpu/drm/amd/display/dc/bios/command_table.c | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-)
drivers/gpu/drm/amd/display/dc/bios/command_table.c +3 -9
@@ -1456,20 +1456,14 @@ static enum bp_result adjust_display_pll_v2( struct bp_adjust_pixel_clock_parameters *bp_params) {enum bp_result result =BP_RESULT_FAILURE ; -ADJUST_DISPLAY_PLL_PS_ALLOCATION params = {0 };/* We need to convert from KHz units into 10KHz units and then convert * output pixel clock back 10KHz-->KHz */ uint32_t pixel_clock_10KHz_in = bp_params->pixel_clock /10 ; - params.usPixelClock =cpu_to_le16 ((uint16_t )(pixel_clock_10KHz_in)); - params.ucTransmitterID = - bp->cmd_helper->encoder_id_to_atom ( -dal_graphics_object_id_get_encoder_id ( - bp_params->encoder_object_id)); - params.ucEncodeMode = - (uint8_t )bp->cmd_helper->encoder_mode_bp_to_atom ( - bp_params->signal_type, false); + bp->cmd_helper->encoder_id_to_atom ( +dal_graphics_object_id_get_encoder_id (bp_params->encoder_object_id)); + bp->cmd_helper->encoder_mode_bp_to_atom (bp_params->signal_type, false);return result; }
Signature · 6 lines
2.25.1 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Re: [PATCH 19/40] drm/amd/display/dc/bios/command_table: Remove unused variable
Quoted 28 lines · Lee Jones
None of the surrounding code was removed just in case even a small fraction of it was functional.
Fixes the following W=1 kernel build warning(s):
drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table.c: In function ‘adjust_display_pll_v2’:
drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table.c:1459:35: warning: variable ‘params’ set but not used [-Wunused-but-set-variable]Cc Harry Wentland <[email protected]>Cc Leo Li <[email protected]>Cc Alex Deucher <[email protected]>Cc "Christian König" <[email protected]>Cc David Airlie <[email protected]>Cc Daniel Vetter <[email protected]>Cc Qinglang Miao <[email protected]>Signed-off-by Lee Jones <[email protected]>--- drivers/gpu/drm/amd/display/dc/bios/command_table.c | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-)drivers/gpu/drm/amd/display/dc/bios/command_table.c +0
-0
drivers/gpu/drm/amd/display/dc/bios/command_table.c static enum bp_result adjust_display_pll_v2( · line 1457
Quoted 2 lines
drivers/gpu/drm/amd/display/dc/bios/command_table.c +0
-0@@ -1456,20 +1456,14 @@ static enum bp_result adjust_display_pll_v2( struct bp_adjust_pixel_clock_parameters *bp_params) {
@Harry Wentland, this function looks like it's missing the call to EXEC_BIOS_CMD_TABLE(). I just sent a patch to fix that up, although I'm not sure if this function every gets used on any asics supported by amdgpu, so maybe we can just drop it.
Alex
Quoted 24 lines
drivers/gpu/drm/amd/display/dc/bios/command_table.c +3
-10enum bp_result result =BP_RESULT_FAILURE ; -ADJUST_DISPLAY_PLL_PS_ALLOCATION params = {0 };/* We need to convert from KHz units into 10KHz units and then convert * output pixel clock back 10KHz-->KHz */ uint32_t pixel_clock_10KHz_in = bp_params->pixel_clock /10 ; - params.usPixelClock =cpu_to_le16 ((uint16_t )(pixel_clock_10KHz_in)); - params.ucTransmitterID = - bp->cmd_helper->encoder_id_to_atom ( -dal_graphics_object_id_get_encoder_id ( - bp_params->encoder_object_id)); - params.ucEncodeMode = - (uint8_t )bp->cmd_helper->encoder_mode_bp_to_atom ( - bp_params->signal_type, false); + bp->cmd_helper->encoder_id_to_atom ( +dal_graphics_object_id_get_encoder_id (bp_params->encoder_object_id)); + bp->cmd_helper->encoder_mode_bp_to_atom (bp_params->signal_type, false);return result; } --2.25.1
Quoted 4 lines
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
PATCH 20/40 include: drm: drm_atomic: Make use of 'new_plane_state'
In reply to Lee JonesIn the macro for_each_oldnew_plane_in_state() 'new_plane_state' is provided as a container for state->planes[i].new_state, but is not utilised in some use-cases, so we fake-use it instead.
Fixes the following W=1 kernel build warning(s):
drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c: In function ‘amdgpu_dm_commit_cursors’:
drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:7649:44: warning: variable ‘new_plane_state’ set but not used [-Wunused-but-set-variable]
--- include/drm/drm_atomic.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
include/drm/drm_atomic.h +2 -1
@@ -847,7 +847,8 @@ void drm_state_dump(struct drm_device *dev, struct drm_printer *p); ((plane) = (__state)->planes[__i].ptr, \ (void )(plane)/* Only to avoid unused-but-set-variable warning */ , \ (old_plane_state) = (__state)->planes[__i].old_state,\ - (new_plane_state) = (__state)->planes[__i].new_state, 1)) + (new_plane_state) = (__state)->planes[__i].new_state, \ + (void)(new_plane_state) /* Only to avoid unused-but-set-variable warning */, 1))/** * for_each_oldnew_plane_in_state_reverse - iterate over all planes in an atomic
Signature · 6 lines
2.25.1 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
PATCH 21/40 drm/amd/display/dc/calcs/dce_calcs: Remove unused variables 'v_filter_init_mode' and 'sclk_lvl'
In reply to Lee JonesFixes the following W=1 kernel build warning(s):
drivers/gpu/drm/amd/amdgpu/../display/dc/calcs/dce_calcs.c: In function ‘calculate_bandwidth’:
drivers/gpu/drm/amd/amdgpu/../display/dc/calcs/dce_calcs.c:109:18: warning: variable ‘v_filter_init_mode’ set but not used [-Wunused-but-set-variable] drivers/gpu/drm/amd/amdgpu/../display/dc/calcs/dce_calcs.c: In function ‘bw_calcs’:
drivers/gpu/drm/amd/amdgpu/../display/dc/calcs/dce_calcs.c:3031:21: warning: variable ‘sclk_lvl’ set but not used [-Wunused-but-set-variable]
--- drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-)
drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c +1 -7
@@ -106,7 +106,6 @@ static void calculate_bandwidth(bool lpt_enabled;enum bw_defines sclk_message;enum bw_defines yclk_message; -enum bw_defines v_filter_init_mode[maximum_number_of_surfaces];enum bw_defines tiling_mode[maximum_number_of_surfaces];enum bw_defines surface_type[maximum_number_of_surfaces];enum bw_defines voltage;
@@ -792,12 +791,8 @@ static void calculate_bandwidth( data->v_filter_init[i] =bw_add (data->v_filter_init[i],bw_int_to_fixed (1 )); }if (data->stereo_mode[i] == bw_def_top_bottom) { - v_filter_init_mode[i] = bw_def_manual; data->v_filter_init[i] =bw_min2 (data->v_filter_init[i],bw_int_to_fixed (4 )); } -else { - v_filter_init_mode[i] = bw_def_auto; - }if (data->stereo_mode[i] == bw_def_top_bottom) { data->num_lines_at_frame_start =bw_int_to_fixed (1 ); }
@@ -3028,7 +3023,7 @@ bool bw_calcs(struct dc_context *ctx, calcs_output->all_displays_in_sync = false;if (data->number_of_displays !=0 ) { -uint8_t yclk_lvl, sclk_lvl; +uint8_t yclk_lvl;struct bw_fixed high_sclk = vbios->high_sclk;struct bw_fixed mid1_sclk = vbios->mid1_sclk;struct bw_fixed mid2_sclk = vbios->mid2_sclk;
@@ -3049,7 +3044,6 @@ bool bw_calcs(struct dc_context *ctx,calculate_bandwidth (dceip, vbios, data); yclk_lvl = data->y_clk_level; - sclk_lvl = data->sclk_level; calcs_output->nbp_state_change_enable = data->nbp_state_change_enable;
Signature · 6 lines
2.25.1 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Re: [PATCH 21/40] drm/amd/display/dc/calcs/dce_calcs: Remove unused variables 'v_filter_init_mode' and 'sclk_lvl'
Quoted 8 lines · Lee Jones
Fixes the following W=1 kernel build warning(s):
drivers/gpu/drm/amd/amdgpu/../display/dc/calcs/dce_calcs.c: In function ‘calculate_bandwidth’:
drivers/gpu/drm/amd/amdgpu/../display/dc/calcs/dce_calcs.c:109:18: warning: variable ‘v_filter_init_mode’ set but not used [-Wunused-but-set-variable]drivers/gpu/drm/amd/amdgpu/../display/dc/calcs/dce_calcs.c: In function ‘bw_calcs’:
drivers/gpu/drm/amd/amdgpu/../display/dc/calcs/dce_calcs.c:3031:21: warning: variable ‘sclk_lvl’ set but not used [-Wunused-but-set-variable]
Quoted 9 lines
Cc Harry Wentland <[email protected]>Cc Leo Li <[email protected]>Cc Alex Deucher <[email protected]>Cc "Christian König" <[email protected]>Cc David Airlie <[email protected]>Cc Daniel Vetter <[email protected]>Signed-off-by Lee Jones <[email protected]>
@Harry Wentland
, @Leo (Sunpeng) Li I think this file is generated from a script or something. Wanted to get your take on how to properly integrate a change like this.
Alex
Quoted 49 lines
--- drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-)drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c +1
-8@@ -106,7 +106,6 @@ static void calculate_bandwidth(bool lpt_enabled;enum bw_defines sclk_message;enum bw_defines yclk_message; -enum bw_defines v_filter_init_mode[maximum_number_of_surfaces];enum bw_defines tiling_mode[maximum_number_of_surfaces];enum bw_defines surface_type[maximum_number_of_surfaces];enum bw_defines voltage;@@ -792,12 +791,8 @@ static void calculate_bandwidth( data->v_filter_init[i] =bw_add (data->v_filter_init[i],bw_int_to_fixed (1 )); }if (data->stereo_mode[i] == bw_def_top_bottom) { - v_filter_init_mode[i] = bw_def_manual; data->v_filter_init[i] =bw_min2 (data->v_filter_init[i],bw_int_to_fixed (4 )); } -else { - v_filter_init_mode[i] = bw_def_auto; - }if (data->stereo_mode[i] == bw_def_top_bottom) { data->num_lines_at_frame_start =bw_int_to_fixed (1 ); }@@ -3028,7 +3023,7 @@ bool bw_calcs(struct dc_context *ctx, calcs_output->all_displays_in_sync = false;if (data->number_of_displays !=0 ) { -uint8_t yclk_lvl, sclk_lvl; +uint8_t yclk_lvl;struct bw_fixed high_sclk = vbios->high_sclk;struct bw_fixed mid1_sclk = vbios->mid1_sclk;struct bw_fixed mid2_sclk = vbios->mid2_sclk;@@ -3049,7 +3044,6 @@ bool bw_calcs(struct dc_context *ctx,calculate_bandwidth (dceip, vbios, data); yclk_lvl = data->y_clk_level; - sclk_lvl = data->sclk_level; calcs_output->nbp_state_change_enable = data->nbp_state_change_enable; --2.25.1
Quoted 4 lines
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
Alex Deucher
AppliedRe: [PATCH 21/40] drm/amd/display/dc/calcs/dce_calcs: Remove unused variables 'v_filter_init_mode' and 'sclk_lvl'
In reply to Lee JonesApplied. Thanks!
Alex
Quoted 66 lines · Lee Jones
Fixes the following W=1 kernel build warning(s):
drivers/gpu/drm/amd/amdgpu/../display/dc/calcs/dce_calcs.c: In function ‘calculate_bandwidth’:
drivers/gpu/drm/amd/amdgpu/../display/dc/calcs/dce_calcs.c:109:18: warning: variable ‘v_filter_init_mode’ set but not used [-Wunused-but-set-variable]drivers/gpu/drm/amd/amdgpu/../display/dc/calcs/dce_calcs.c: In function ‘bw_calcs’:
drivers/gpu/drm/amd/amdgpu/../display/dc/calcs/dce_calcs.c:3031:21: warning: variable ‘sclk_lvl’ set but not used [-Wunused-but-set-variable]Cc Harry Wentland <[email protected]>Cc Leo Li <[email protected]>Cc Alex Deucher <[email protected]>Cc "Christian König" <[email protected]>Cc David Airlie <[email protected]>Cc Daniel Vetter <[email protected]>Signed-off-by Lee Jones <[email protected]>--- drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-)drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c +1
-8@@ -106,7 +106,6 @@ static void calculate_bandwidth(bool lpt_enabled;enum bw_defines sclk_message;enum bw_defines yclk_message; -enum bw_defines v_filter_init_mode[maximum_number_of_surfaces];enum bw_defines tiling_mode[maximum_number_of_surfaces];enum bw_defines surface_type[maximum_number_of_surfaces];enum bw_defines voltage;@@ -792,12 +791,8 @@ static void calculate_bandwidth( data->v_filter_init[i] =bw_add (data->v_filter_init[i],bw_int_to_fixed (1 )); }if (data->stereo_mode[i] == bw_def_top_bottom) { - v_filter_init_mode[i] = bw_def_manual; data->v_filter_init[i] =bw_min2 (data->v_filter_init[i],bw_int_to_fixed (4 )); } -else { - v_filter_init_mode[i] = bw_def_auto; - }if (data->stereo_mode[i] == bw_def_top_bottom) { data->num_lines_at_frame_start =bw_int_to_fixed (1 ); }@@ -3028,7 +3023,7 @@ bool bw_calcs(struct dc_context *ctx, calcs_output->all_displays_in_sync = false;if (data->number_of_displays !=0 ) { -uint8_t yclk_lvl, sclk_lvl; +uint8_t yclk_lvl;struct bw_fixed high_sclk = vbios->high_sclk;struct bw_fixed mid1_sclk = vbios->mid1_sclk;struct bw_fixed mid2_sclk = vbios->mid2_sclk;@@ -3049,7 +3044,6 @@ bool bw_calcs(struct dc_context *ctx,calculate_bandwidth (dceip, vbios, data); yclk_lvl = data->y_clk_level; - sclk_lvl = data->sclk_level; calcs_output->nbp_state_change_enable = data->nbp_state_change_enable; --2.25.1
Quoted 4 lines
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
PATCH 22/40 drm/amd/display/dc/bios/bios_parser2: Fix some formatting issues and missing parameter docs
In reply to Lee JonesFixes the following W=1 kernel build warning(s):
drivers/gpu/drm/amd/amdgpu/../display/dc/bios/bios_parser2.c:501: warning: Function parameter or member 'dcb' not described in 'bios_parser_get_gpio_pin_info' drivers/gpu/drm/amd/amdgpu/../display/dc/bios/bios_parser2.c:501: warning: Function parameter or member 'gpio_id' not described in 'bios_parser_get_gpio_pin_info' drivers/gpu/drm/amd/amdgpu/../display/dc/bios/bios_parser2.c:501: warning: Function parameter or member 'info' not described in 'bios_parser_get_gpio_pin_info' drivers/gpu/drm/amd/amdgpu/../display/dc/bios/bios_parser2.c:815: warning: Function parameter or member 'dcb' not described in 'bios_parser_get_spread_spectrum_info' drivers/gpu/drm/amd/amdgpu/../display/dc/bios/bios_parser2.c:815: warning: Function parameter or member 'signal' not described in 'bios_parser_get_spread_spectrum_info' drivers/gpu/drm/amd/amdgpu/../display/dc/bios/bios_parser2.c:815: warning: Function parameter or member 'index' not described in 'bios_parser_get_spread_spectrum_info' drivers/gpu/drm/amd/amdgpu/../display/dc/bios/bios_parser2.c:815: warning: Function parameter or member 'ss_info' not described in 'bios_parser_get_spread_spectrum_info' drivers/gpu/drm/amd/amdgpu/../display/dc/bios/bios_parser2.c:1210: warning: Function parameter or member 'dcb' not described in 'bios_parser_set_scratch_critical_state' drivers/gpu/drm/amd/amdgpu/../display/dc/bios/bios_parser2.c:1210: warning: Function parameter or member 'state' not described in 'bios_parser_set_scratch_critical_state'
--- .../drm/amd/display/dc/bios/bios_parser2.c | 29 +++++++++---------- 1 file changed, 14 insertions(+), 15 deletions(-)
drivers/gpu/drm/amd/display/dc/bios/bios_parser2.c +14 -15
@@ -485,10 +485,11 @@ static struct atom_hpd_int_record *get_hpd_record(* bios_parser_get_gpio_pin_info * Get GpioPin information of input gpio id * -* @param gpio_id, GPIO ID -* @param info, GpioPin information structure -* @return Bios parser result code -* @note +* @dcb: pointer to the DC BIOS +* @gpio_id: GPIO ID +* @info: GpioPin information structure +* return: Bios parser result code +* note: * to get the GPIO PIN INFO, we need: * 1. get the GPIO_ID from other object table, see GetHPDInfo() * 2. in DATA_TABLE.GPIO_Pin_LUT, search all records,
@@ -801,11 +802,11 @@ static enum bp_result get_ss_info_v4_2(* ver 3.1, * there is only one entry for each signal /ss id. However, there is * no planning of supporting multiple spread Sprectum entry for EverGreen -* @param [in] this -* @param [in] signal, ASSignalType to be converted to info index -* @param [in] index, number of entries that match the converted info index -* @param [out] ss_info, sprectrum information structure, -* @return Bios parser result code +* @dcb: pointer to the DC BIOS +* @signal: ASSignalType to be converted to info index +* @index: number of entries that match the converted info index +* @ss_info: sprectrum information structure, +* return: Bios parser result code */ static enum bp_result bios_parser_get_spread_spectrum_info( struct dc_bios *dcb,
@@ -1196,13 +1197,11 @@ static bool bios_parser_is_accelerated_mode( }/** -* bios_parser_set_scratch_critical_state +* bios_parser_set_scratch_critical_state - update critical state bit +* in VBIOS scratch register * -* @brief -* update critical state bit in VBIOS scratch register -* -* @param -* bool - to set or reset state +* @dcb: pointer to the DC BIO +* @state: set or reset state */ static void bios_parser_set_scratch_critical_state( struct dc_bios *dcb,
Signature · 6 lines
2.25.1 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Alex Deucher
AppliedRe: [PATCH 22/40] drm/amd/display/dc/bios/bios_parser2: Fix some formatting issues and missing parameter docs
Quoted 13 lines · Lee Jones
Fixes the following W=1 kernel build warning(s):
drivers/gpu/drm/amd/amdgpu/../display/dc/bios/bios_parser2.c:501: warning: Function parameter or member 'dcb' not described in 'bios_parser_get_gpio_pin_info'drivers/gpu/drm/amd/amdgpu/../display/dc/bios/bios_parser2.c:501: warning: Function parameter or member 'gpio_id' not described in 'bios_parser_get_gpio_pin_info'drivers/gpu/drm/amd/amdgpu/../display/dc/bios/bios_parser2.c:501: warning: Function parameter or member 'info' not described in 'bios_parser_get_gpio_pin_info'drivers/gpu/drm/amd/amdgpu/../display/dc/bios/bios_parser2.c:815: warning: Function parameter or member 'dcb' not described in 'bios_parser_get_spread_spectrum_info'drivers/gpu/drm/amd/amdgpu/../display/dc/bios/bios_parser2.c:815: warning: Function parameter or member 'signal' not described in 'bios_parser_get_spread_spectrum_info'drivers/gpu/drm/amd/amdgpu/../display/dc/bios/bios_parser2.c:815: warning: Function parameter or member 'index' not described in 'bios_parser_get_spread_spectrum_info'drivers/gpu/drm/amd/amdgpu/../display/dc/bios/bios_parser2.c:815: warning: Function parameter or member 'ss_info' not described in 'bios_parser_get_spread_spectrum_info'drivers/gpu/drm/amd/amdgpu/../display/dc/bios/bios_parser2.c:1210: warning: Function parameter or member 'dcb' not described in 'bios_parser_set_scratch_critical_state'drivers/gpu/drm/amd/amdgpu/../display/dc/bios/bios_parser2.c:1210: warning: Function parameter or member 'state' not described in 'bios_parser_set_scratch_critical_state'
Quoted 9 lines
Cc Harry Wentland <[email protected]>Cc Leo Li <[email protected]>Cc Alex Deucher <[email protected]>Cc "Christian König" <[email protected]>Cc David Airlie <[email protected]>Cc Daniel Vetter <[email protected]>Signed-off-by Lee Jones <[email protected]>
Applied. Thanks!
Alex
Quoted 62 lines
--- .../drm/amd/display/dc/bios/bios_parser2.c | 29 +++++++++---------- 1 file changed, 14 insertions(+), 15 deletions(-)drivers/gpu/drm/amd/display/dc/bios/bios_parser2.c +14
-16@@ -485,10 +485,11 @@ static struct atom_hpd_int_record *get_hpd_record(* bios_parser_get_gpio_pin_info * Get GpioPin information of input gpio id * -* @param gpio_id, GPIO ID -* @param info, GpioPin information structure -* @return Bios parser result code -* @note +* @dcb: pointer to the DC BIOS +* @gpio_id: GPIO ID +* @info: GpioPin information structure +* return: Bios parser result code +* note: * to get the GPIO PIN INFO, we need: * 1. get the GPIO_ID from other object table, see GetHPDInfo() * 2. in DATA_TABLE.GPIO_Pin_LUT, search all records, @@ -801,11 +802,11 @@ static enum bp_result get_ss_info_v4_2(* ver 3.1, * there is only one entry for each signal /ss id. However, there is * no planning of supporting multiple spread Sprectum entry for EverGreen -* @param [in] this -* @param [in] signal, ASSignalType to be converted to info index -* @param [in] index, number of entries that match the converted info index -* @param [out] ss_info, sprectrum information structure, -* @return Bios parser result code +* @dcb: pointer to the DC BIOS +* @signal: ASSignalType to be converted to info index +* @index: number of entries that match the converted info index +* @ss_info: sprectrum information structure, +* return: Bios parser result code */ static enum bp_result bios_parser_get_spread_spectrum_info( struct dc_bios *dcb,@@ -1196,13 +1197,11 @@ static bool bios_parser_is_accelerated_mode( }/** -* bios_parser_set_scratch_critical_state +* bios_parser_set_scratch_critical_state - update critical state bit +* in VBIOS scratch register * -* @brief -* update critical state bit in VBIOS scratch register -* -* @param -* bool - to set or reset state +* @dcb: pointer to the DC BIO +* @state: set or reset state */ static void bios_parser_set_scratch_critical_state( struct dc_bios *dcb, --2.25.1
Quoted 4 lines
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
PATCH 23/40 drm/amd/display/dc/dce/dce_audio: Make function invoked by reference static
In reply to Lee JonesFixes the following W=1 kernel build warning(s):
drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_audio.c:871:6: warning: no previous prototype for ‘dce60_aud_wall_dto_setup’ [-Wmissing-prototypes]
--- drivers/gpu/drm/amd/display/dc/dce/dce_audio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/display/dc/dce/dce_audio.c +1 -1
@@ -868,7 +868,7 @@ void dce_aud_wall_dto_setup( }#if defined(CONFIG_DRM_AMD_DC_SI ) -void dce60_aud_wall_dto_setup( +static void dce60_aud_wall_dto_setup( struct audio *audio, enum signal_type signal, const struct audio_crtc_info *crtc_info,
Signature · 6 lines
2.25.1 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Alex Deucher
AppliedRe: [PATCH 23/40] drm/amd/display/dc/dce/dce_audio: Make function invoked by reference static
Quoted 5 lines · Lee Jones
Fixes the following W=1 kernel build warning(s):
drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_audio.c:871:6: warning: no previous prototype for ‘dce60_aud_wall_dto_setup’ [-Wmissing-prototypes]
Quoted 11 lines
Cc Harry Wentland <[email protected]>Cc Leo Li <[email protected]>Cc Alex Deucher <[email protected]>Cc "Christian König" <[email protected]>Cc David Airlie <[email protected]>Cc Daniel Vetter <[email protected]>Cc Mauro Rossi <[email protected]>Cc Charlene Liu <[email protected]>Signed-off-by Lee Jones <[email protected]>
Applied. Thanks!
Alex
Quoted 20 lines
--- drivers/gpu/drm/amd/display/dc/dce/dce_audio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/gpu/drm/amd/display/dc/dce/dce_audio.c +1
-2@@ -868,7 +868,7 @@ void dce_aud_wall_dto_setup( }#if defined(CONFIG_DRM_AMD_DC_SI ) -void dce60_aud_wall_dto_setup( +static void dce60_aud_wall_dto_setup( struct audio *audio, enum signal_type signal, const struct audio_crtc_info *crtc_info, --2.25.1
Quoted 4 lines
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
PATCH 24/40 drm/amd/display/dc/dce/dce_stream_encoder: Remove unused variable 'regval'
In reply to Lee JonesFixes the following W=1 kernel build warning(s):
drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_stream_encoder.c: In function ‘dce110_update_generic_info_packet’:
drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_stream_encoder.c:70:11: warning: variable ‘regval’ set but not used [-Wunused-but-set-variable]
--- drivers/gpu/drm/amd/display/dc/dce/dce_stream_encoder.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/gpu/drm/amd/display/dc/dce/dce_stream_encoder.c +1 -2
@@ -67,7 +67,6 @@ static void dce110_update_generic_info_packet(uint32_t packet_index, const struct dc_info_packet *info_packet) { - uint32_t regval;/* TODOFPGA Figure out a proper number for max_retries polling for lock * use 50 for now. */
@@ -99,7 +98,7 @@ static void dce110_update_generic_info_packet( }/* choose which generic packet to use */ { - regval =REG_READ (AFMT_VBI_PACKET_CONTROL ); +REG_READ (AFMT_VBI_PACKET_CONTROL );REG_UPDATE (AFMT_VBI_PACKET_CONTROL ,AFMT_GENERIC_INDEX , packet_index); }
Signature · 6 lines
2.25.1 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Alex Deucher
AppliedRe: [PATCH 24/40] drm/amd/display/dc/dce/dce_stream_encoder: Remove unused variable 'regval'
Quoted 6 lines · Lee Jones
Fixes the following W=1 kernel build warning(s):
drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_stream_encoder.c: In function ‘dce110_update_generic_info_packet’:
drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_stream_encoder.c:70:11: warning: variable ‘regval’ set but not used [-Wunused-but-set-variable]
Quoted 11 lines
Cc Harry Wentland <[email protected]>Cc Leo Li <[email protected]>Cc Alex Deucher <[email protected]>Cc "Christian König" <[email protected]>Cc David Airlie <[email protected]>Cc Daniel Vetter <[email protected]>Cc George Shen <[email protected]>Cc Eric Bernstein <[email protected]>Signed-off-by Lee Jones <[email protected]>
Applied. Thanks!
Alex
Quoted 28 lines
--- drivers/gpu/drm/amd/display/dc/dce/dce_stream_encoder.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)drivers/gpu/drm/amd/display/dc/dce/dce_stream_encoder.c +1
-3@@ -67,7 +67,6 @@ static void dce110_update_generic_info_packet(uint32_t packet_index, const struct dc_info_packet *info_packet) { - uint32_t regval;/* TODOFPGA Figure out a proper number for max_retries polling for lock * use 50 for now. */ @@ -99,7 +98,7 @@ static void dce110_update_generic_info_packet( }/* choose which generic packet to use */ { - regval =REG_READ (AFMT_VBI_PACKET_CONTROL ); +REG_READ (AFMT_VBI_PACKET_CONTROL );REG_UPDATE (AFMT_VBI_PACKET_CONTROL ,AFMT_GENERIC_INDEX , packet_index); } --2.25.1
Quoted 4 lines
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
PATCH 25/40 drm/amd/display/dc/dce/dce_link_encoder: Make functions invoked by reference static
In reply to Lee JonesFixes the following W=1 kernel build warning(s):
drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_link_encoder.c:1200:6: warning: no previous prototype for ‘dce60_link_encoder_enable_dp_output’ [-Wmissing-prototypes] drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_link_encoder.c:1239:6: warning: no previous prototype for ‘dce60_link_encoder_enable_dp_mst_output’ [-Wmissing-prototypes] drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_link_encoder.c:1429:6: warning: no previous prototype for ‘dce60_link_encoder_dp_set_phy_pattern’ [-Wmissing-prototypes]
--- drivers/gpu/drm/amd/display/dc/dce/dce_link_encoder.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/gpu/drm/amd/display/dc/dce/dce_link_encoder.c +3 -3
@@ -1197,7 +1197,7 @@ void dce110_link_encoder_enable_dp_mst_output(#if defined(CONFIG_DRM_AMD_DC_SI )/* enables DP PHY output */ -void dce60_link_encoder_enable_dp_output ( +static void dce60_link_encoder_enable_dp_output (struct link_encoder *enc,const struct dc_link_settings *link_settings,enum clock_source_id clock_source)
@@ -1236,7 +1236,7 @@ void dce60_link_encoder_enable_dp_output( }/* enables DP PHY output in MST mode */ -void dce60_link_encoder_enable_dp_mst_output ( +static void dce60_link_encoder_enable_dp_mst_output (struct link_encoder *enc,const struct dc_link_settings *link_settings,enum clock_source_id clock_source)
@@ -1426,7 +1426,7 @@ void dce110_link_encoder_dp_set_phy_pattern(#if defined(CONFIG_DRM_AMD_DC_SI )/* set DP PHY test and training patterns */ -void dce60_link_encoder_dp_set_phy_pattern ( +static void dce60_link_encoder_dp_set_phy_pattern (struct link_encoder *enc,const struct encoder_set_dp_phy_pattern_param *param) {
Signature · 6 lines
2.25.1 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Alex Deucher
AppliedRe: [PATCH 25/40] drm/amd/display/dc/dce/dce_link_encoder: Make functions invoked by reference static
Quoted 7 lines · Lee Jones
Fixes the following W=1 kernel build warning(s):
drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_link_encoder.c:1200:6: warning: no previous prototype for ‘dce60_link_encoder_enable_dp_output’ [-Wmissing-prototypes]drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_link_encoder.c:1239:6: warning: no previous prototype for ‘dce60_link_encoder_enable_dp_mst_output’ [-Wmissing-prototypes]drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_link_encoder.c:1429:6: warning: no previous prototype for ‘dce60_link_encoder_dp_set_phy_pattern’ [-Wmissing-prototypes]
Quoted 10 lines
Cc Harry Wentland <[email protected]>Cc Leo Li <[email protected]>Cc Alex Deucher <[email protected]>Cc "Christian König" <[email protected]>Cc David Airlie <[email protected]>Cc Daniel Vetter <[email protected]>Cc Mauro Rossi <[email protected]>Signed-off-by Lee Jones <[email protected]>
Applied. Thanks!
Alex
Quoted 38 lines
--- drivers/gpu/drm/amd/display/dc/dce/dce_link_encoder.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)drivers/gpu/drm/amd/display/dc/dce/dce_link_encoder.c +3
-4@@ -1197,7 +1197,7 @@ void dce110_link_encoder_enable_dp_mst_output(#if defined(CONFIG_DRM_AMD_DC_SI )/* enables DP PHY output */ -void dce60_link_encoder_enable_dp_output ( +static void dce60_link_encoder_enable_dp_output (struct link_encoder *enc,const struct dc_link_settings *link_settings,enum clock_source_id clock_source)@@ -1236,7 +1236,7 @@ void dce60_link_encoder_enable_dp_output( }/* enables DP PHY output in MST mode */ -void dce60_link_encoder_enable_dp_mst_output ( +static void dce60_link_encoder_enable_dp_mst_output (struct link_encoder *enc,const struct dc_link_settings *link_settings,enum clock_source_id clock_source)@@ -1426,7 +1426,7 @@ void dce110_link_encoder_dp_set_phy_pattern(#if defined(CONFIG_DRM_AMD_DC_SI )/* set DP PHY test and training patterns */ -void dce60_link_encoder_dp_set_phy_pattern ( +static void dce60_link_encoder_dp_set_phy_pattern (struct link_encoder *enc,const struct encoder_set_dp_phy_pattern_param *param) { --2.25.1
Quoted 4 lines
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
PATCH 26/40 drm/amd/display/dc/dce/dce_clock_source: Fix formatting/spelling of worthy function headers
In reply to Lee JonesDemote the one that provides no param descriptions.
Fixes the following W=1 kernel build warning(s):
drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_clock_source.c:142: warning: Function parameter or member 'calc_pll_cs' not described in 'calculate_fb_and_fractional_fb_divider' drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_clock_source.c:142: warning: Function parameter or member 'target_pix_clk_100hz' not described in 'calculate_fb_and_fractional_fb_divider' drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_clock_source.c:142: warning: Function parameter or member 'ref_divider' not described in 'calculate_fb_and_fractional_fb_divider' drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_clock_source.c:142: warning: Function parameter or member 'post_divider' not described in 'calculate_fb_and_fractional_fb_divider' drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_clock_source.c:142: warning: Function parameter or member 'feedback_divider_param' not described in 'calculate_fb_and_fractional_fb_divider' drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_clock_source.c:142: warning: Function parameter or member 'fract_feedback_divider_param' not described in 'calculate_fb_and_fractional_fb_divider' drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_clock_source.c:200: warning: Function parameter or member 'calc_pll_cs' not described in 'calc_fb_divider_checking_tolerance' drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_clock_source.c:200: warning: Function parameter or member 'pll_settings' not described in 'calc_fb_divider_checking_tolerance' drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_clock_source.c:200: warning: Function parameter or member 'ref_divider' not described in 'calc_fb_divider_checking_tolerance' drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_clock_source.c:200: warning: Function parameter or member 'post_divider' not described in 'calc_fb_divider_checking_tolerance' drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_clock_source.c:200: warning: Function parameter or member 'tolerance' not described in 'calc_fb_divider_checking_tolerance' drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_clock_source.c:478: warning: Function parameter or member 'clk_src' not described in 'dce110_get_pix_clk_dividers_helper' drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_clock_source.c:478: warning: Function parameter or member 'pll_settings' not described in 'dce110_get_pix_clk_dividers_helper' drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_clock_source.c:478: warning: Function parameter or member 'pix_clk_params' not described in 'dce110_get_pix_clk_dividers_helper'
--- .../drm/amd/display/dc/dce/dce_clock_source.c | 57 +++++++++---------- 1 file changed, 28 insertions(+), 29 deletions(-)
drivers/gpu/drm/amd/display/dc/dce/dce_clock_source.c +28 -29
@@ -113,20 +113,19 @@ static const struct spread_spectrum_data *get_ss_data_entry( }/** -* Function: calculate_fb_and_fractional_fb_divider +* calculate_fb_and_fractional_fb_divider - Calculates feedback and fractional +* feedback dividers values * -* * DESCRIPTION: Calculates feedback and fractional feedback dividers values +* @calc_pll_cs: Pointer to clock source information +* @target_pix_clk_100hz: Desired frequency in 100 Hz +* @ref_divider: Reference divider (already known) +* @post_divider: Post Divider (already known) +* @feedback_divider_param: Pointer where to store +* calculated feedback divider value +* @fract_feedback_divider_param: Pointer where to store +* calculated fract feedback divider value * -*PARAMETERS: -* targetPixelClock Desired frequency in 100 Hz -* ref_divider Reference divider (already known) -* postDivider Post Divider (already known) -* feedback_divider_param Pointer where to store -* calculated feedback divider value -* fract_feedback_divider_param Pointer where to store -* calculated fract feedback divider value -* -*RETURNS: +* return: * It fills the locations pointed by feedback_divider_param * and fract_feedback_divider_param * It returns - true if feedback divider not 0
@@ -175,22 +174,22 @@ static bool calculate_fb_and_fractional_fb_divider( }/** -*calc_fb_divider_checking_tolerance -* -*DESCRIPTION: Calculates Feedback and Fractional Feedback divider values -* for passed Reference and Post divider, checking for tolerance. -*PARAMETERS: -* pll_settings Pointer to structure -* ref_divider Reference divider (already known) -* postDivider Post Divider (already known) -* tolerance Tolerance for Calculated Pixel Clock to be within -* -*RETURNS: -* It fills the PLLSettings structure with PLL Dividers values -* if calculated values are within required tolerance -* It returns - true if error is within tolerance -* - false if error is not within tolerance -*/ +* calc_fb_divider_checking_tolerance - Calculates Feedback and +* Fractional Feedback divider values +* for passed Reference and Post divider, +* checking for tolerance. +* @calc_pll_cs: Pointer to clock source information +* @pll_settings: Pointer to PLL settings +* @ref_divider: Reference divider (already known) +* @post_divider: Post Divider (already known) +* @tolerance: Tolerance for Calculated Pixel Clock to be within +* +* return: +* It fills the PLLSettings structure with PLL Dividers values +* if calculated values are within required tolerance +* It returns - true if error is within tolerance +* - false if error is not within tolerance +*/ static bool calc_fb_divider_checking_tolerance( struct calc_pll_clock_source *calc_pll_cs, struct pll_settings *pll_settings,
@@ -460,7 +459,7 @@ static bool pll_adjust_pix_clk(return false; } -/** +/* * Calculate PLL Dividers for given Clock Value. * First will call VBIOS Adjust Exec table to check if requested Pixel clock * will be Adjusted based on usage.
Signature · 6 lines
2.25.1 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Alex Deucher
AppliedRe: [PATCH 26/40] drm/amd/display/dc/dce/dce_clock_source: Fix formatting/spelling of worthy function headers
Quoted 20 lines · Lee Jones
Demote the one that provides no param descriptions.
Fixes the following W=1 kernel build warning(s):
drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_clock_source.c:142: warning: Function parameter or member 'calc_pll_cs' not described in 'calculate_fb_and_fractional_fb_divider'drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_clock_source.c:142: warning: Function parameter or member 'target_pix_clk_100hz' not described in 'calculate_fb_and_fractional_fb_divider'drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_clock_source.c:142: warning: Function parameter or member 'ref_divider' not described in 'calculate_fb_and_fractional_fb_divider'drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_clock_source.c:142: warning: Function parameter or member 'post_divider' not described in 'calculate_fb_and_fractional_fb_divider'drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_clock_source.c:142: warning: Function parameter or member 'feedback_divider_param' not described in 'calculate_fb_and_fractional_fb_divider'drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_clock_source.c:142: warning: Function parameter or member 'fract_feedback_divider_param' not described in 'calculate_fb_and_fractional_fb_divider'drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_clock_source.c:200: warning: Function parameter or member 'calc_pll_cs' not described in 'calc_fb_divider_checking_tolerance'drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_clock_source.c:200: warning: Function parameter or member 'pll_settings' not described in 'calc_fb_divider_checking_tolerance'drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_clock_source.c:200: warning: Function parameter or member 'ref_divider' not described in 'calc_fb_divider_checking_tolerance'drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_clock_source.c:200: warning: Function parameter or member 'post_divider' not described in 'calc_fb_divider_checking_tolerance'drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_clock_source.c:200: warning: Function parameter or member 'tolerance' not described in 'calc_fb_divider_checking_tolerance'drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_clock_source.c:478: warning: Function parameter or member 'clk_src' not described in 'dce110_get_pix_clk_dividers_helper'drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_clock_source.c:478: warning: Function parameter or member 'pll_settings' not described in 'dce110_get_pix_clk_dividers_helper'drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_clock_source.c:478: warning: Function parameter or member 'pix_clk_params' not described in 'dce110_get_pix_clk_dividers_helper'
Quoted 10 lines
Cc Harry Wentland <[email protected]>Cc Leo Li <[email protected]>Cc Alex Deucher <[email protected]>Cc "Christian König" <[email protected]>Cc David Airlie <[email protected]>Cc Daniel Vetter <[email protected]>Cc Bhawanpreet Lakha <[email protected]>Signed-off-by Lee Jones <[email protected]>
Applied. Thanks!
Alex
Quoted 91 lines
--- .../drm/amd/display/dc/dce/dce_clock_source.c | 57 +++++++++---------- 1 file changed, 28 insertions(+), 29 deletions(-)drivers/gpu/drm/amd/display/dc/dce/dce_clock_source.c +28
-30@@ -113,20 +113,19 @@ static const struct spread_spectrum_data *get_ss_data_entry( }/** -* Function: calculate_fb_and_fractional_fb_divider +* calculate_fb_and_fractional_fb_divider - Calculates feedback and fractional +* feedback dividers values * -* * DESCRIPTION: Calculates feedback and fractional feedback dividers values +* @calc_pll_cs: Pointer to clock source information +* @target_pix_clk_100hz: Desired frequency in 100 Hz +* @ref_divider: Reference divider (already known) +* @post_divider: Post Divider (already known) +* @feedback_divider_param: Pointer where to store +* calculated feedback divider value +* @fract_feedback_divider_param: Pointer where to store +* calculated fract feedback divider value * -*PARAMETERS: -* targetPixelClock Desired frequency in 100 Hz -* ref_divider Reference divider (already known) -* postDivider Post Divider (already known) -* feedback_divider_param Pointer where to store -* calculated feedback divider value -* fract_feedback_divider_param Pointer where to store -* calculated fract feedback divider value -* -*RETURNS: +* return: * It fills the locations pointed by feedback_divider_param * and fract_feedback_divider_param * It returns - true if feedback divider not 0 @@ -175,22 +174,22 @@ static bool calculate_fb_and_fractional_fb_divider( }/** -*calc_fb_divider_checking_tolerance -* -*DESCRIPTION: Calculates Feedback and Fractional Feedback divider values -* for passed Reference and Post divider, checking for tolerance. -*PARAMETERS: -* pll_settings Pointer to structure -* ref_divider Reference divider (already known) -* postDivider Post Divider (already known) -* tolerance Tolerance for Calculated Pixel Clock to be within -* -*RETURNS: -* It fills the PLLSettings structure with PLL Dividers values -* if calculated values are within required tolerance -* It returns - true if error is within tolerance -* - false if error is not within tolerance -*/ +* calc_fb_divider_checking_tolerance - Calculates Feedback and +* Fractional Feedback divider values +* for passed Reference and Post divider, +* checking for tolerance. +* @calc_pll_cs: Pointer to clock source information +* @pll_settings: Pointer to PLL settings +* @ref_divider: Reference divider (already known) +* @post_divider: Post Divider (already known) +* @tolerance: Tolerance for Calculated Pixel Clock to be within +* +* return: +* It fills the PLLSettings structure with PLL Dividers values +* if calculated values are within required tolerance +* It returns - true if error is within tolerance +* - false if error is not within tolerance +*/ static bool calc_fb_divider_checking_tolerance( struct calc_pll_clock_source *calc_pll_cs, struct pll_settings *pll_settings,@@ -460,7 +459,7 @@ static bool pll_adjust_pix_clk(return false; } -/** +/* * Calculate PLL Dividers for given Clock Value. * First will call VBIOS Adjust Exec table to check if requested Pixel clock * will be Adjusted based on usage. -- 2.25.1
Quoted 4 lines
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
PATCH 27/40 drm/amd/pm/powerplay/hwmgr/vega10_hwmgr: Fix worthy function headers, demote barely documented one
In reply to Lee JonesFixes the following W=1 kernel build warning(s):
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/vega10_hwmgr.c:1556: warning: Function parameter or member 'acg_freq' not described in 'vega10_populate_single_gfx_level' drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/vega10_hwmgr.c:1621: warning: Function parameter or member 'current_soc_did' not described in 'vega10_populate_single_soc_level' drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/vega10_hwmgr.c:1621: warning: Function parameter or member 'current_vol_index' not described in 'vega10_populate_single_soc_level' drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/vega10_hwmgr.c:1621: warning: Excess function parameter 'current_socclk_level' description in 'vega10_populate_single_soc_level' drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/vega10_hwmgr.c:1757: warning: Function parameter or member 'current_mem_vid' not described in 'vega10_populate_single_memory_level' drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/vega10_hwmgr.c:1757: warning: Function parameter or member 'current_memclk_level' not described in 'vega10_populate_single_memory_level' drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/vega10_hwmgr.c:1757: warning: Function parameter or member 'current_mem_soc_vind' not described in 'vega10_populate_single_memory_level' drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/vega10_hwmgr.c:2871: warning: Function parameter or member 'bitmap' not described in 'vega10_start_dpm'
--- drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega10_hwmgr.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-)
drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega10_hwmgr.c +6 -4
@@ -1549,6 +1549,7 @@ static int vega10_populate_smc_link_levels(struct pp_hwmgr *hwmgr)* @hwmgr: the address of the hardware manager * @gfx_clock: the GFX clock to use to populate the structure. * @current_gfxclk_level: location in PPTable for the SMC GFXCLK structure. +* @acg_freq: ACG frequenty to return (MHz) */ static int vega10_populate_single_gfx_level(struct pp_hwmgr *hwmgr, uint32_t gfx_clock, PllSetting_t *current_gfxclk_level,
@@ -1612,7 +1613,8 @@ static int vega10_populate_single_gfx_level(struct pp_hwmgr *hwmgr,* * @hwmgr: the address of the hardware manager. * @soc_clock: the SOC clock to use to populate the structure. -* @current_socclk_level: location in PPTable for the SMC SOCCLK structure. +* @current_soc_did: DFS divider to pass back to caller +* @current_vol_index: index of current VDD to pass back to caller * return: 0 on success */ static int vega10_populate_single_soc_level(struct pp_hwmgr *hwmgr,
@@ -1744,7 +1746,7 @@ static void vega10_populate_vddc_soc_levels(struct pp_hwmgr *hwmgr) } } -/** +/* * Populates single SMC GFXCLK structure using the provided clock. * * @hwmgr: the address of the hardware manager.
@@ -2863,8 +2865,8 @@ static int vega10_stop_dpm(struct pp_hwmgr *hwmgr, uint32_t bitmap)/** * Tell SMC to enabled the supported DPMs. * -* @hwmgr: the address of the powerplay hardware manager. -* @bitmap bitmap for the features to enabled. +* @hwmgr: the address of the powerplay hardware manager. +* @bitmap: bitmap for the features to enabled. * return: 0 on at least one DPM is successfully enabled. */ static int vega10_start_dpm (struct pp_hwmgr *hwmgr,uint32_t bitmap)
Signature · 6 lines
2.25.1 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Alex Deucher
AppliedRe: [PATCH 27/40] drm/amd/pm/powerplay/hwmgr/vega10_hwmgr: Fix worthy function headers, demote barely documented one
Quoted 12 lines · Lee Jones
Fixes the following W=1 kernel build warning(s):
drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/vega10_hwmgr.c:1556: warning: Function parameter or member 'acg_freq' not described in 'vega10_populate_single_gfx_level'drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/vega10_hwmgr.c:1621: warning: Function parameter or member 'current_soc_did' not described in 'vega10_populate_single_soc_level'drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/vega10_hwmgr.c:1621: warning: Function parameter or member 'current_vol_index' not described in 'vega10_populate_single_soc_level'drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/vega10_hwmgr.c:1621: warning: Excess function parameter 'current_socclk_level' description in 'vega10_populate_single_soc_level'drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/vega10_hwmgr.c:1757: warning: Function parameter or member 'current_mem_vid' not described in 'vega10_populate_single_memory_level'drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/vega10_hwmgr.c:1757: warning: Function parameter or member 'current_memclk_level' not described in 'vega10_populate_single_memory_level'drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/vega10_hwmgr.c:1757: warning: Function parameter or member 'current_mem_soc_vind' not described in 'vega10_populate_single_memory_level'drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/vega10_hwmgr.c:2871: warning: Function parameter or member 'bitmap' not described in 'vega10_start_dpm'
Quoted 8 lines
Cc Evan Quan <[email protected]>Cc Alex Deucher <[email protected]>Cc "Christian König" <[email protected]>Cc David Airlie <[email protected]>Cc Daniel Vetter <[email protected]>Signed-off-by Lee Jones <[email protected]>
Applied. Thanks!
Alex
Quoted 49 lines
--- drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega10_hwmgr.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-)drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega10_hwmgr.c +6
-5@@ -1549,6 +1549,7 @@ static int vega10_populate_smc_link_levels(struct pp_hwmgr *hwmgr)* @hwmgr: the address of the hardware manager * @gfx_clock: the GFX clock to use to populate the structure. * @current_gfxclk_level: location in PPTable for the SMC GFXCLK structure. +* @acg_freq: ACG frequenty to return (MHz) */ static int vega10_populate_single_gfx_level(struct pp_hwmgr *hwmgr, uint32_t gfx_clock, PllSetting_t *current_gfxclk_level,@@ -1612,7 +1613,8 @@ static int vega10_populate_single_gfx_level(struct pp_hwmgr *hwmgr,* * @hwmgr: the address of the hardware manager. * @soc_clock: the SOC clock to use to populate the structure. -* @current_socclk_level: location in PPTable for the SMC SOCCLK structure. +* @current_soc_did: DFS divider to pass back to caller +* @current_vol_index: index of current VDD to pass back to caller * return: 0 on success */ static int vega10_populate_single_soc_level(struct pp_hwmgr *hwmgr,@@ -1744,7 +1746,7 @@ static void vega10_populate_vddc_soc_levels(struct pp_hwmgr *hwmgr) } } -/** +/* * Populates single SMC GFXCLK structure using the provided clock. * * @hwmgr: the address of the hardware manager. @@ -2863,8 +2865,8 @@ static int vega10_stop_dpm(struct pp_hwmgr *hwmgr, uint32_t bitmap)/** * Tell SMC to enabled the supported DPMs. * -* @hwmgr: the address of the powerplay hardware manager. -* @bitmap bitmap for the features to enabled. +* @hwmgr: the address of the powerplay hardware manager. +* @bitmap: bitmap for the features to enabled. * return: 0 on at least one DPM is successfully enabled. */ static int vega10_start_dpm (struct pp_hwmgr *hwmgr,uint32_t bitmap) --2.25.1
Quoted 4 lines
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
PATCH 28/40 drm/amd/display/dc/dce/dce_transform: Remove 3 unused/legacy variables
In reply to Lee JonesFixes the following W=1 kernel build warning(s):
drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_transform.c: In function ‘dce60_transform_set_scaler’:
drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_transform.c:496:7: warning: variable ‘filter_updated’ set but not used [-Wunused-but-set-variable] drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_transform.c: In function ‘dce60_transform_set_pixel_storage_depth’:
drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_transform.c:1040:19: warning: variable ‘expan_mode’ set but not used [-Wunused-but-set-variable] drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_transform.c:1040:6: warning: variable ‘pixel_depth’ set but not used [-Wunused-but-set-variable]
--- drivers/gpu/drm/amd/display/dc/dce/dce_transform.c | 13 ------------- 1 file changed, 13 deletions(-)
drivers/gpu/drm/amd/display/dc/dce/dce_transform.c +0 -13
@@ -493,7 +493,6 @@ static void dce60_transform_set_scaler( {struct dce_transform *xfm_dce =TO_DCE_TRANSFORM (xfm);bool is_scaling_required; -bool filter_updated = false;const uint16_t *coeffs_v, *coeffs_h;/*Use whole line buffer memory always*/
@@ -558,7 +557,6 @@ static void dce60_transform_set_scaler( xfm_dce->filter_v = coeffs_v; xfm_dce->filter_h = coeffs_h; - filter_updated = true; } }
@@ -1037,34 +1035,23 @@ static void dce60_transform_set_pixel_storage_depth( const struct bit_depth_reduction_params *bit_depth_params) {struct dce_transform *xfm_dce =TO_DCE_TRANSFORM (xfm); -int pixel_depth, expan_mode;enum dc_color_depth color_depth;switch (depth) {case LB_PIXEL_DEPTH_18BPP : color_depth =COLOR_DEPTH_666 ; - pixel_depth =2 ; - expan_mode =1 ;break ;case LB_PIXEL_DEPTH_24BPP : color_depth =COLOR_DEPTH_888 ; - pixel_depth =1 ; - expan_mode =1 ;break ;case LB_PIXEL_DEPTH_30BPP : color_depth =COLOR_DEPTH_101010 ; - pixel_depth =0 ; - expan_mode =1 ;break ;case LB_PIXEL_DEPTH_36BPP : color_depth =COLOR_DEPTH_121212 ; - pixel_depth =3 ; - expan_mode =0 ;break ;default : color_depth =COLOR_DEPTH_101010 ; - pixel_depth =0 ; - expan_mode =1 ;BREAK_TO_DEBUGGER ();break ; }
Signature · 6 lines
2.25.1 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Alex Deucher
AppliedRe: [PATCH 28/40] drm/amd/display/dc/dce/dce_transform: Remove 3 unused/legacy variables
Quoted 9 lines · Lee Jones
Fixes the following W=1 kernel build warning(s):
drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_transform.c: In function ‘dce60_transform_set_scaler’:
drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_transform.c:496:7: warning: variable ‘filter_updated’ set but not used [-Wunused-but-set-variable]drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_transform.c: In function ‘dce60_transform_set_pixel_storage_depth’:
drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_transform.c:1040:19: warning: variable ‘expan_mode’ set but not used [-Wunused-but-set-variable]drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_transform.c:1040:6: warning: variable ‘pixel_depth’ set but not used [-Wunused-but-set-variable]
Quoted 10 lines
Cc Harry Wentland <[email protected]>Cc Leo Li <[email protected]>Cc Alex Deucher <[email protected]>Cc "Christian König" <[email protected]>Cc David Airlie <[email protected]>Cc Daniel Vetter <[email protected]>Cc Mauro Rossi <[email protected]>Signed-off-by Lee Jones <[email protected]>
Applied. Thanks!
Alex
Quoted 62 lines
--- drivers/gpu/drm/amd/display/dc/dce/dce_transform.c | 13 ------------- 1 file changed, 13 deletions(-)drivers/gpu/drm/amd/display/dc/dce/dce_transform.c +0
-14@@ -493,7 +493,6 @@ static void dce60_transform_set_scaler( {struct dce_transform *xfm_dce =TO_DCE_TRANSFORM (xfm);bool is_scaling_required; -bool filter_updated = false;const uint16_t *coeffs_v, *coeffs_h;/*Use whole line buffer memory always*/ @@ -558,7 +557,6 @@ static void dce60_transform_set_scaler( xfm_dce->filter_v = coeffs_v; xfm_dce->filter_h = coeffs_h; - filter_updated = true; } }@@ -1037,34 +1035,23 @@ static void dce60_transform_set_pixel_storage_depth( const struct bit_depth_reduction_params *bit_depth_params) {struct dce_transform *xfm_dce =TO_DCE_TRANSFORM (xfm); -int pixel_depth, expan_mode;enum dc_color_depth color_depth;switch (depth) {case LB_PIXEL_DEPTH_18BPP : color_depth =COLOR_DEPTH_666 ; - pixel_depth =2 ; - expan_mode =1 ;break ;case LB_PIXEL_DEPTH_24BPP : color_depth =COLOR_DEPTH_888 ; - pixel_depth =1 ; - expan_mode =1 ;break ;case LB_PIXEL_DEPTH_30BPP : color_depth =COLOR_DEPTH_101010 ; - pixel_depth =0 ; - expan_mode =1 ;break ;case LB_PIXEL_DEPTH_36BPP : color_depth =COLOR_DEPTH_121212 ; - pixel_depth =3 ; - expan_mode =0 ;break ;default : color_depth =COLOR_DEPTH_101010 ; - pixel_depth =0 ; - expan_mode =1 ;BREAK_TO_DEBUGGER ();break ; } --2.25.1
Quoted 4 lines
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
PATCH 29/40 drm/amd/display/dc/dce/dce_dmcu: Staticify local function call 'dce_dmcu_load_iram'
In reply to Lee JonesFixes the following W=1 kernel build warning(s):
drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_dmcu.c:74:6: warning: no previous prototype for ‘dce_dmcu_load_iram’ [-Wmissing-prototypes] In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_dmcu.c:31:
--- drivers/gpu/drm/amd/display/dc/dce/dce_dmcu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/display/dc/dce/dce_dmcu.c +1 -1
@@ -71,7 +71,7 @@ static bool dce_dmcu_init(struct dmcu *dmcu)return true; } -bool dce_dmcu_load_iram (struct dmcu *dmcu, +static bool dce_dmcu_load_iram (struct dmcu *dmcu,unsigned int start_offset,const char *src,unsigned int bytes)
Signature · 6 lines
2.25.1 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Alex Deucher
AppliedRe: [PATCH 29/40] drm/amd/display/dc/dce/dce_dmcu: Staticify local function call 'dce_dmcu_load_iram'
Quoted 6 lines · Lee Jones
Fixes the following W=1 kernel build warning(s):
drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_dmcu.c:74:6: warning: no previous prototype for ‘dce_dmcu_load_iram’ [-Wmissing-prototypes] In file included fromdrivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_dmcu.c:31:
Quoted 10 lines
Cc Harry Wentland <[email protected]>Cc Leo Li <[email protected]>Cc Alex Deucher <[email protected]>Cc "Christian König" <[email protected]>Cc David Airlie <[email protected]>Cc Daniel Vetter <[email protected]>Cc Krunoslav Kovac <[email protected]>Signed-off-by Lee Jones <[email protected]>
Applied. Thanks!
Alex
Quoted 20 lines
--- drivers/gpu/drm/amd/display/dc/dce/dce_dmcu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/gpu/drm/amd/display/dc/dce/dce_dmcu.c +1
-2@@ -71,7 +71,7 @@ static bool dce_dmcu_init(struct dmcu *dmcu)return true; } -bool dce_dmcu_load_iram (struct dmcu *dmcu, +static bool dce_dmcu_load_iram (struct dmcu *dmcu,unsigned int start_offset,const char *src,unsigned int bytes) --2.25.1
Quoted 4 lines
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
PATCH 30/40 drm/amd/display/dc/dce/dce_dmcu: Move 'abm_gain_stepsize' to only source file it's used in
In reply to Lee JonesAnd only declare it if it's to be used.
Fixes the following W=1 kernel build warning(s):
drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_dmcu.h:320:23: warning: ‘abm_gain_stepsize’ defined but not used [-Wunused-const-variable=] drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_dmcu.h:320:23: warning: ‘abm_gain_stepsize’ defined but not used [-Wunused-const-variable=] drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_dmcu.h:320:23: warning: ‘abm_gain_stepsize’ defined but not used [-Wunused-const-variable=] drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_dmcu.h:320:23: warning: ‘abm_gain_stepsize’ defined but not used [-Wunused-const-variable=] drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_dmcu.h:320:23: warning: ‘abm_gain_stepsize’ defined but not used [-Wunused-const-variable=] drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_dmcu.h:320:23: warning: ‘abm_gain_stepsize’ defined but not used [-Wunused-const-variable=] drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_dmcu.h:320:23: warning: ‘abm_gain_stepsize’ defined but not used [-Wunused-const-variable=]
--- drivers/gpu/drm/amd/display/dc/dce/dce_dmcu.c | 4 ++++ drivers/gpu/drm/amd/display/dc/dce/dce_dmcu.h | 2 -- 2 files changed, 4 insertions(+), 2 deletions(-)
drivers/gpu/drm/amd/display/dc/dce/dce_dmcu.c +4 -0
@@ -65,6 +65,10 @@//Register access policy version #define mmMP0_SMN_C2PMSG_91 0x1609B +#if defined(CONFIG_DRM_AMD_DC_DCN ) +static const uint32_t abm_gain_stepsize =0x0060 ; +#endif +static bool dce_dmcu_init (struct dmcu *dmcu) {// Do nothing
drivers/gpu/drm/amd/display/dc/dce/dce_dmcu.h +0 -2
@@ -317,6 +317,4 @@ struct dmcu *dcn21_dmcu_create(void dce_dmcu_destroy (struct dmcu **dmcu); -static const uint32_t abm_gain_stepsize =0x0060 ; -#endif /* _DCE_ABM_H_ */
Signature · 6 lines
2.25.1 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Alex Deucher
AppliedRe: [PATCH 30/40] drm/amd/display/dc/dce/dce_dmcu: Move 'abm_gain_stepsize' to only source file it's used in
Quoted 13 lines · Lee Jones
And only declare it if it's to be used.
Fixes the following W=1 kernel build warning(s):
drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_dmcu.h:320:23: warning: ‘abm_gain_stepsize’ defined but not used [-Wunused-const-variable=]drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_dmcu.h:320:23: warning: ‘abm_gain_stepsize’ defined but not used [-Wunused-const-variable=]drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_dmcu.h:320:23: warning: ‘abm_gain_stepsize’ defined but not used [-Wunused-const-variable=]drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_dmcu.h:320:23: warning: ‘abm_gain_stepsize’ defined but not used [-Wunused-const-variable=]drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_dmcu.h:320:23: warning: ‘abm_gain_stepsize’ defined but not used [-Wunused-const-variable=]drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_dmcu.h:320:23: warning: ‘abm_gain_stepsize’ defined but not used [-Wunused-const-variable=]drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_dmcu.h:320:23: warning: ‘abm_gain_stepsize’ defined but not used [-Wunused-const-variable=]
Quoted 10 lines
Cc Harry Wentland <[email protected]>Cc Leo Li <[email protected]>Cc Alex Deucher <[email protected]>Cc "Christian König" <[email protected]>Cc David Airlie <[email protected]>Cc Daniel Vetter <[email protected]>Cc Mauro Rossi <[email protected]>Signed-off-by Lee Jones <[email protected]>
Applied. Thanks!
Alex
Quoted 34 lines
--- drivers/gpu/drm/amd/display/dc/dce/dce_dmcu.c | 4 ++++ drivers/gpu/drm/amd/display/dc/dce/dce_dmcu.h | 2 -- 2 files changed, 4 insertions(+), 2 deletions(-)drivers/gpu/drm/amd/display/dc/dce/dce_dmcu.c +4
-0@@ -65,6 +65,10 @@//Register access policy version #define mmMP0_SMN_C2PMSG_91 0x1609B +#if defined(CONFIG_DRM_AMD_DC_DCN ) +static const uint32_t abm_gain_stepsize =0x0060 ; +#endif +static bool dce_dmcu_init (struct dmcu *dmcu) {// Do nothing drivers/gpu/drm/amd/display/dc/dce/dce_dmcu.h +0
-3@@ -317,6 +317,4 @@ struct dmcu *dcn21_dmcu_create(void dce_dmcu_destroy (struct dmcu **dmcu); -static const uint32_t abm_gain_stepsize =0x0060 ; -#endif /* _DCE_ABM_H_ */ --2.25.1
Quoted 4 lines
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
PATCH 31/40 drm/amd/display/dc/dce/dce_opp: Make local functions and ones invoked by reference static
In reply to Lee JonesFixes the following W=1 kernel build warning(s):
drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_opp.c:427:6: warning: no previous prototype for ‘dce60_opp_set_clamping’ [-Wmissing-prototypes] drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_opp.c:548:6: warning: no previous prototype for ‘dce60_opp_program_bit_depth_reduction’ [-Wmissing-prototypes] drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_opp.c:571:6: warning: no previous prototype for ‘dce60_opp_program_clamping_and_pixel_encoding’ [-Wmissing-prototypes] drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_opp.c:681:6: warning: no previous prototype for ‘dce60_opp_program_fmt’ [-Wmissing-prototypes]
--- drivers/gpu/drm/amd/display/dc/dce/dce_opp.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
drivers/gpu/drm/amd/display/dc/dce/dce_opp.c +4 -4
@@ -424,7 +424,7 @@ void dce110_opp_set_clamping(* 7 for programable * 2) Enable clamp if Limited range requested */ -void dce60_opp_set_clamping ( +static void dce60_opp_set_clamping (struct dce110_opp *opp110,const struct clamping_and_pixel_encoding_params *params) {
@@ -545,7 +545,7 @@ void dce110_opp_program_bit_depth_reduction( }#if defined(CONFIG_DRM_AMD_DC_SI ) -void dce60_opp_program_bit_depth_reduction ( +static void dce60_opp_program_bit_depth_reduction (struct output_pixel_processor *opp,const struct bit_depth_reduction_params *params) {
@@ -568,7 +568,7 @@ void dce110_opp_program_clamping_and_pixel_encoding( }#if defined(CONFIG_DRM_AMD_DC_SI ) -void dce60_opp_program_clamping_and_pixel_encoding ( +static void dce60_opp_program_clamping_and_pixel_encoding (struct output_pixel_processor *opp,const struct clamping_and_pixel_encoding_params *params) {
@@ -678,7 +678,7 @@ void dce110_opp_program_fmt( }#if defined(CONFIG_DRM_AMD_DC_SI ) -void dce60_opp_program_fmt ( +static void dce60_opp_program_fmt (struct output_pixel_processor *opp,struct bit_depth_reduction_params *fmt_bit_depth,struct clamping_and_pixel_encoding_params *clamping)
Signature · 6 lines
2.25.1 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Alex Deucher
AppliedRe: [PATCH 31/40] drm/amd/display/dc/dce/dce_opp: Make local functions and ones invoked by reference static
Quoted 8 lines · Lee Jones
Fixes the following W=1 kernel build warning(s):
drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_opp.c:427:6: warning: no previous prototype for ‘dce60_opp_set_clamping’ [-Wmissing-prototypes]drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_opp.c:548:6: warning: no previous prototype for ‘dce60_opp_program_bit_depth_reduction’ [-Wmissing-prototypes]drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_opp.c:571:6: warning: no previous prototype for ‘dce60_opp_program_clamping_and_pixel_encoding’ [-Wmissing-prototypes]drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_opp.c:681:6: warning: no previous prototype for ‘dce60_opp_program_fmt’ [-Wmissing-prototypes]
Quoted 10 lines
Cc Harry Wentland <[email protected]>Cc Leo Li <[email protected]>Cc Alex Deucher <[email protected]>Cc "Christian König" <[email protected]>Cc David Airlie <[email protected]>Cc Daniel Vetter <[email protected]>Cc Mauro Rossi <[email protected]>Signed-off-by Lee Jones <[email protected]>
Applied. Thanks!
Alex
Quoted 47 lines
--- drivers/gpu/drm/amd/display/dc/dce/dce_opp.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)drivers/gpu/drm/amd/display/dc/dce/dce_opp.c +4
-5@@ -424,7 +424,7 @@ void dce110_opp_set_clamping(* 7 for programable * 2) Enable clamp if Limited range requested */ -void dce60_opp_set_clamping ( +static void dce60_opp_set_clamping (struct dce110_opp *opp110,const struct clamping_and_pixel_encoding_params *params) {@@ -545,7 +545,7 @@ void dce110_opp_program_bit_depth_reduction( }#if defined(CONFIG_DRM_AMD_DC_SI ) -void dce60_opp_program_bit_depth_reduction ( +static void dce60_opp_program_bit_depth_reduction (struct output_pixel_processor *opp,const struct bit_depth_reduction_params *params) {@@ -568,7 +568,7 @@ void dce110_opp_program_clamping_and_pixel_encoding( }#if defined(CONFIG_DRM_AMD_DC_SI ) -void dce60_opp_program_clamping_and_pixel_encoding ( +static void dce60_opp_program_clamping_and_pixel_encoding (struct output_pixel_processor *opp,const struct clamping_and_pixel_encoding_params *params) {@@ -678,7 +678,7 @@ void dce110_opp_program_fmt( }#if defined(CONFIG_DRM_AMD_DC_SI ) -void dce60_opp_program_fmt ( +static void dce60_opp_program_fmt (struct output_pixel_processor *opp,struct bit_depth_reduction_params *fmt_bit_depth,struct clamping_and_pixel_encoding_params *clamping) --2.25.1
Quoted 4 lines
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
PATCH 32/40 drm/amd/display/dc/dce/dce_aux: Remove unused function 'get_engine_type'
In reply to Lee JonesFixes the following W=1 kernel build warning(s):
drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_aux.c:391:25: warning: no previous prototype for ‘get_engine_type’ [-Wmissing-prototypes]
--- drivers/gpu/drm/amd/display/dc/dce/dce_aux.c | 6 ------ 1 file changed, 6 deletions(-)
drivers/gpu/drm/amd/display/dc/dce/dce_aux.c +0 -6
@@ -388,12 +388,6 @@ static enum aux_channel_operation_result get_channel_status( } } -enum i2caux_engine_type get_engine_type ( -const struct dce_aux *engine) -{ -return I2CAUX_ENGINE_TYPE_AUX ; -} -static bool acquire (struct dce_aux *engine,struct ddc *ddc)
Signature · 6 lines
2.25.1 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Alex Deucher
AppliedRe: [PATCH 32/40] drm/amd/display/dc/dce/dce_aux: Remove unused function 'get_engine_type'
Quoted 5 lines · Lee Jones
Fixes the following W=1 kernel build warning(s):
drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_aux.c:391:25: warning: no previous prototype for ‘get_engine_type’ [-Wmissing-prototypes]
Quoted 9 lines
Cc Harry Wentland <[email protected]>Cc Leo Li <[email protected]>Cc Alex Deucher <[email protected]>Cc "Christian König" <[email protected]>Cc David Airlie <[email protected]>Cc Daniel Vetter <[email protected]>Signed-off-by Lee Jones <[email protected]>
Applied. Thanks!
Alex
Quoted 24 lines
--- drivers/gpu/drm/amd/display/dc/dce/dce_aux.c | 6 ------ 1 file changed, 6 deletions(-)drivers/gpu/drm/amd/display/dc/dce/dce_aux.c +0
-7@@ -388,12 +388,6 @@ static enum aux_channel_operation_result get_channel_status( } } -enum i2caux_engine_type get_engine_type ( -const struct dce_aux *engine) -{ -return I2CAUX_ENGINE_TYPE_AUX ; -} -static bool acquire (struct dce_aux *engine,struct ddc *ddc) --2.25.1
Quoted 4 lines
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
PATCH 33/40 drm/nouveau/nvkm/subdev/volt/gk20a: Demote non-conformant kernel-doc headers
In reply to Lee JonesFixes the following W=1 kernel build warning(s):
drivers/gpu/drm/nouveau/nvkm/subdev/volt/gk20a.c:53: warning: Function parameter or member 'speedo' not described in 'gk20a_volt_get_cvb_voltage' drivers/gpu/drm/nouveau/nvkm/subdev/volt/gk20a.c:53: warning: Function parameter or member 's_scale' not described in 'gk20a_volt_get_cvb_voltage' drivers/gpu/drm/nouveau/nvkm/subdev/volt/gk20a.c:53: warning: Function parameter or member 'coef' not described in 'gk20a_volt_get_cvb_voltage' drivers/gpu/drm/nouveau/nvkm/subdev/volt/gk20a.c:69: warning: Function parameter or member 'speedo' not described in 'gk20a_volt_get_cvb_t_voltage' drivers/gpu/drm/nouveau/nvkm/subdev/volt/gk20a.c:69: warning: Function parameter or member 'temp' not described in 'gk20a_volt_get_cvb_t_voltage' drivers/gpu/drm/nouveau/nvkm/subdev/volt/gk20a.c:69: warning: Function parameter or member 's_scale' not described in 'gk20a_volt_get_cvb_t_voltage' drivers/gpu/drm/nouveau/nvkm/subdev/volt/gk20a.c:69: warning: Function parameter or member 't_scale' not described in 'gk20a_volt_get_cvb_t_voltage' drivers/gpu/drm/nouveau/nvkm/subdev/volt/gk20a.c:69: warning: Function parameter or member 'coef' not described in 'gk20a_volt_get_cvb_t_voltage'
--- drivers/gpu/drm/nouveau/nvkm/subdev/volt/gk20a.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/gpu/drm/nouveau/nvkm/subdev/volt/gk20a.c +2 -2
@@ -45,7 +45,7 @@ static const struct cvb_coef gk20a_cvb_coef[] = { /* 852 */ { 1608418, -21643, -269, 0, 763, -48}, }; -/** +/* * cvb_mv = ((c2 * speedo / s_scale + c1) * speedo / s_scale + c0) */ static inline int
@@ -58,7 +58,7 @@ gk20a_volt_get_cvb_voltage(int speedo, int s_scale, const struct cvb_coef *coef)return mv; } -/** +/* * cvb_t_mv = * ((c2 * speedo / s_scale + c1) * speedo / s_scale + c0) + * ((c3 * speedo / s_scale + c4 + c5 * T / t_scale) * T / t_scale)
Signature · 1 line
2.25.1
PATCH 34/40 drm/amd/display/dc/bios/bios_parser: Fix misspelling of function parameter
In reply to Lee JonesFixes the following W=1 kernel build warning(s):
drivers/gpu/drm/amd/amdgpu/../display/dc/bios/bios_parser.c:997: warning: Function parameter or member 'ss_info' not described in 'get_ss_info_from_tbl' drivers/gpu/drm/amd/amdgpu/../display/dc/bios/bios_parser.c:997: warning: Excess function parameter 'ssinfo' description in 'get_ss_info_from_tbl'
--- 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
@@ -987,8 +987,8 @@ static enum bp_result get_ss_info_from_internal_ss_info_tbl_V2_1(* * @bp: pointer to the BIOS parser * @id: spread sprectrum info index -* @ssinfo: sprectrum information structure, -* return:: BIOS parser result code +* @ss_info: sprectrum information structure, +* return: BIOS parser result code */ static enum bp_result get_ss_info_from_tbl( struct bios_parser *bp,
Signature · 6 lines
2.25.1 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Alex Deucher
AppliedRe: [PATCH 34/40] drm/amd/display/dc/bios/bios_parser: Fix misspelling of function parameter
Quoted 6 lines · Lee Jones
Fixes the following W=1 kernel build warning(s):
drivers/gpu/drm/amd/amdgpu/../display/dc/bios/bios_parser.c:997: warning: Function parameter or member 'ss_info' not described in 'get_ss_info_from_tbl'drivers/gpu/drm/amd/amdgpu/../display/dc/bios/bios_parser.c:997: warning: Excess function parameter 'ssinfo' description in 'get_ss_info_from_tbl'
Quoted 10 lines
Cc Harry Wentland <[email protected]>Cc Leo Li <[email protected]>Cc Alex Deucher <[email protected]>Cc "Christian König" <[email protected]>Cc David Airlie <[email protected]>Cc Daniel Vetter <[email protected]>Cc Lee Jones <[email protected]>Signed-off-by Lee Jones <[email protected]>
Applied. Thanks!
Alex
Quoted 22 lines
--- 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@@ -987,8 +987,8 @@ static enum bp_result get_ss_info_from_internal_ss_info_tbl_V2_1(* * @bp: pointer to the BIOS parser * @id: spread sprectrum info index -* @ssinfo: sprectrum information structure, -* return:: BIOS parser result code +* @ss_info: sprectrum information structure, +* return: BIOS parser result code */ static enum bp_result get_ss_info_from_tbl( struct bios_parser *bp, --2.25.1
Quoted 4 lines
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
PATCH 35/40 drm/amd/display/dc/bios/command_table: Remove unused variable and associated comment
In reply to Lee JonesFixes the following W=1 kernel build warning(s):
drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table.c: In function ‘adjust_display_pll_v2’:
drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table.c:1462:11: warning: unused variable ‘pixel_clock_10KHz_in’ [-Wunused-variable]
--- drivers/gpu/drm/amd/display/dc/bios/command_table.c | 4 ---- 1 file changed, 4 deletions(-)
drivers/gpu/drm/amd/display/dc/bios/command_table.c +0 -4
@@ -1457,10 +1457,6 @@ static enum bp_result adjust_display_pll_v2( {enum bp_result result =BP_RESULT_FAILURE ; -/* We need to convert from KHz units into 10KHz units and then convert -* output pixel clock back 10KHz-->KHz */ -uint32_t pixel_clock_10KHz_in = bp_params->pixel_clock /10 ; - bp->cmd_helper->encoder_id_to_atom (dal_graphics_object_id_get_encoder_id (bp_params->encoder_object_id)); bp->cmd_helper->encoder_mode_bp_to_atom (bp_params->signal_type, false);
Signature · 6 lines
2.25.1 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Re: [PATCH 35/40] drm/amd/display/dc/bios/command_table: Remove unused variable and associated comment
Quoted 6 lines · Lee Jones
Fixes the following W=1 kernel build warning(s):
drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table.c: In function ‘adjust_display_pll_v2’:
drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table.c:1462:11: warning: unused variable ‘pixel_clock_10KHz_in’ [-Wunused-variable]
Quoted 10 lines
Cc Harry Wentland <[email protected]>Cc Leo Li <[email protected]>Cc Alex Deucher <[email protected]>Cc "Christian König" <[email protected]>Cc David Airlie <[email protected]>Cc Daniel Vetter <[email protected]>Cc Lee Jones <[email protected]>Signed-off-by Lee Jones <[email protected]>
See my comment on the other patch for this function.
Alex
Quoted 22 lines
--- drivers/gpu/drm/amd/display/dc/bios/command_table.c | 4 ---- 1 file changed, 4 deletions(-)drivers/gpu/drm/amd/display/dc/bios/command_table.c +0
-5@@ -1457,10 +1457,6 @@ static enum bp_result adjust_display_pll_v2( {enum bp_result result =BP_RESULT_FAILURE ; -/* We need to convert from KHz units into 10KHz units and then convert -* output pixel clock back 10KHz-->KHz */ -uint32_t pixel_clock_10KHz_in = bp_params->pixel_clock /10 ; - bp->cmd_helper->encoder_id_to_atom (dal_graphics_object_id_get_encoder_id (bp_params->encoder_object_id)); bp->cmd_helper->encoder_mode_bp_to_atom (bp_params->signal_type, false); --2.25.1
Quoted 4 lines
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
PATCH 36/40 drm/amd/display/dc/dce/dce_i2c_hw: Make functions called by reference static
In reply to Lee JonesFixes the following W=1 kernel build warning(s):
drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_i2c_hw.c:438:35: warning: no previous prototype for ‘dce_i2c_hw_engine_wait_on_operation_result’ [-Wmissing-prototypes] drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_i2c_hw.c:505:6: warning: no previous prototype for ‘dce_i2c_hw_engine_submit_payload’ [-Wmissing-prototypes]
--- drivers/gpu/drm/amd/display/dc/dce/dce_i2c_hw.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/gpu/drm/amd/display/dc/dce/dce_i2c_hw.c +2 -2
@@ -435,7 +435,7 @@ struct dce_i2c_hw *acquire_i2c_hw_engine(return dce_i2c_hw; } -enum i2c_channel_operation_result dce_i2c_hw_engine_wait_on_operation_result ( +static enum i2c_channel_operation_result dce_i2c_hw_engine_wait_on_operation_result (struct dce_i2c_hw *dce_i2c_hw,uint32_t timeout,enum i2c_channel_operation_result expected_result)
@@ -502,7 +502,7 @@ static uint32_t get_transaction_timeout_hw(return period_timeout * num_of_clock_stretches; } -bool dce_i2c_hw_engine_submit_payload( +static bool dce_i2c_hw_engine_submit_payload( struct dce_i2c_hw *dce_i2c_hw, struct i2c_payload *payload, bool middle_of_transaction,
Signature · 6 lines
2.25.1 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Alex Deucher
AppliedRe: [PATCH 36/40] drm/amd/display/dc/dce/dce_i2c_hw: Make functions called by reference static
Quoted 6 lines · Lee Jones
Fixes the following W=1 kernel build warning(s):
drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_i2c_hw.c:438:35: warning: no previous prototype for ‘dce_i2c_hw_engine_wait_on_operation_result’ [-Wmissing-prototypes]drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_i2c_hw.c:505:6: warning: no previous prototype for ‘dce_i2c_hw_engine_submit_payload’ [-Wmissing-prototypes]
Quoted 10 lines
Cc Harry Wentland <[email protected]>Cc Leo Li <[email protected]>Cc Alex Deucher <[email protected]>Cc "Christian König" <[email protected]>Cc David Airlie <[email protected]>Cc Daniel Vetter <[email protected]>Cc Lewis Huang <[email protected]>Signed-off-by Lee Jones <[email protected]>
Applied. Thanks!
Alex
Quoted 29 lines
--- drivers/gpu/drm/amd/display/dc/dce/dce_i2c_hw.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)drivers/gpu/drm/amd/display/dc/dce/dce_i2c_hw.c +2
-3@@ -435,7 +435,7 @@ struct dce_i2c_hw *acquire_i2c_hw_engine(return dce_i2c_hw; } -enum i2c_channel_operation_result dce_i2c_hw_engine_wait_on_operation_result ( +static enum i2c_channel_operation_result dce_i2c_hw_engine_wait_on_operation_result (struct dce_i2c_hw *dce_i2c_hw,uint32_t timeout,enum i2c_channel_operation_result expected_result)@@ -502,7 +502,7 @@ static uint32_t get_transaction_timeout_hw(return period_timeout * num_of_clock_stretches; } -bool dce_i2c_hw_engine_submit_payload( +static bool dce_i2c_hw_engine_submit_payload( struct dce_i2c_hw *dce_i2c_hw, struct i2c_payload *payload, bool middle_of_transaction, --2.25.1
Quoted 4 lines
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
PATCH 37/40 drm/amd/display/dc/dce/dce_i2c_sw: Make a bunch of local functions static
In reply to Lee JonesFixes the following W=1 kernel build warning(s):
drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_i2c_sw.c:342:6: warning: no previous prototype for ‘dce_i2c_sw_engine_set_speed’ [-Wmissing-prototypes] drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_i2c_sw.c:356:6: warning: no previous prototype for ‘dce_i2c_sw_engine_acquire_engine’ [-Wmissing-prototypes] drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_i2c_sw.c:400:6: warning: no previous prototype for ‘dce_i2c_sw_engine_submit_channel_request’ [-Wmissing-prototypes] drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_i2c_sw.c:443:6: warning: no previous prototype for ‘dce_i2c_sw_engine_submit_payload’ [-Wmissing-prototypes]
--- drivers/gpu/drm/amd/display/dc/dce/dce_i2c_sw.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-)
drivers/gpu/drm/amd/display/dc/dce/dce_i2c_sw.c +5 -4
@@ -339,7 +339,7 @@ static bool start_sync_sw(return false; } -void dce_i2c_sw_engine_set_speed ( +static void dce_i2c_sw_engine_set_speed (struct dce_i2c_sw *engine,uint32_t speed) {
@@ -353,7 +353,7 @@ void dce_i2c_sw_engine_set_speed( engine->clock_delay =12 ; } -bool dce_i2c_sw_engine_acquire_engine ( +static bool dce_i2c_sw_engine_acquire_engine (struct dce_i2c_sw *engine,struct ddc *ddc) {
@@ -397,7 +397,7 @@ bool dce_i2c_engine_acquire_sw( -void dce_i2c_sw_engine_submit_channel_request ( +static void dce_i2c_sw_engine_submit_channel_request (struct dce_i2c_sw *engine,struct i2c_request_transaction_data *req) {
@@ -440,7 +440,8 @@ void dce_i2c_sw_engine_submit_channel_request( I2C_CHANNEL_OPERATION_SUCCEEDED :I2C_CHANNEL_OPERATION_FAILED ; } -bool dce_i2c_sw_engine_submit_payload ( + +static bool dce_i2c_sw_engine_submit_payload (struct dce_i2c_sw *engine,struct i2c_payload *payload,bool middle_of_transaction)
Signature · 6 lines
2.25.1 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Alex Deucher
AppliedRe: [PATCH 37/40] drm/amd/display/dc/dce/dce_i2c_sw: Make a bunch of local functions static
Quoted 8 lines · Lee Jones
Fixes the following W=1 kernel build warning(s):
drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_i2c_sw.c:342:6: warning: no previous prototype for ‘dce_i2c_sw_engine_set_speed’ [-Wmissing-prototypes]drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_i2c_sw.c:356:6: warning: no previous prototype for ‘dce_i2c_sw_engine_acquire_engine’ [-Wmissing-prototypes]drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_i2c_sw.c:400:6: warning: no previous prototype for ‘dce_i2c_sw_engine_submit_channel_request’ [-Wmissing-prototypes]drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_i2c_sw.c:443:6: warning: no previous prototype for ‘dce_i2c_sw_engine_submit_payload’ [-Wmissing-prototypes]
Quoted 9 lines
Cc Harry Wentland <[email protected]>Cc Leo Li <[email protected]>Cc Alex Deucher <[email protected]>Cc "Christian König" <[email protected]>Cc David Airlie <[email protected]>Cc Daniel Vetter <[email protected]>Signed-off-by Lee Jones <[email protected]>
Applied. Thanks!
Alex
Quoted 48 lines
--- drivers/gpu/drm/amd/display/dc/dce/dce_i2c_sw.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-)drivers/gpu/drm/amd/display/dc/dce/dce_i2c_sw.c +5
-5@@ -339,7 +339,7 @@ static bool start_sync_sw(return false; } -void dce_i2c_sw_engine_set_speed ( +static void dce_i2c_sw_engine_set_speed (struct dce_i2c_sw *engine,uint32_t speed) {@@ -353,7 +353,7 @@ void dce_i2c_sw_engine_set_speed( engine->clock_delay =12 ; } -bool dce_i2c_sw_engine_acquire_engine ( +static bool dce_i2c_sw_engine_acquire_engine (struct dce_i2c_sw *engine,struct ddc *ddc) {@@ -397,7 +397,7 @@ bool dce_i2c_engine_acquire_sw( -void dce_i2c_sw_engine_submit_channel_request ( +static void dce_i2c_sw_engine_submit_channel_request (struct dce_i2c_sw *engine,struct i2c_request_transaction_data *req) {@@ -440,7 +440,8 @@ void dce_i2c_sw_engine_submit_channel_request( I2C_CHANNEL_OPERATION_SUCCEEDED :I2C_CHANNEL_OPERATION_FAILED ; } -bool dce_i2c_sw_engine_submit_payload ( + +static bool dce_i2c_sw_engine_submit_payload (struct dce_i2c_sw *engine,struct i2c_payload *payload,bool middle_of_transaction) --2.25.1
Quoted 4 lines
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
PATCH 38/40 drm/amd/display/dc/dce/dce_panel_cntl: Remove unused variables 'bl_pwm_cntl' and 'pwm_period_cntl'
In reply to Lee JonesFixes the following W=1 kernel build warning(s):
drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_panel_cntl.c: In function ‘dce_get_16_bit_backlight_from_pwm’:
drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_panel_cntl.c:54:11: warning: variable ‘bl_pwm_cntl’ set but not used [-Wunused-but-set-variable] drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_panel_cntl.c:53:11: warning: variable ‘pwm_period_cntl’ set but not used [-Wunused-but-set-variable]
--- drivers/gpu/drm/amd/display/dc/dce/dce_panel_cntl.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
drivers/gpu/drm/amd/display/dc/dce/dce_panel_cntl.c +4 -4
@@ -50,16 +50,16 @@ static unsigned int dce_get_16_bit_backlight_from_pwm(struct panel_cntl *panel_c {uint64_t current_backlight;uint32_t round_result; -uint32_t pwm_period_cntl, bl_period, bl_int_count; -uint32_t bl_pwm_cntl, bl_pwm, fractional_duty_cycle_en; +uint32_t bl_period, bl_int_count; +uint32_t bl_pwm, fractional_duty_cycle_en;uint32_t bl_period_mask, bl_pwm_mask;struct dce_panel_cntl *dce_panel_cntl =TO_DCE_PANEL_CNTL (panel_cntl); - pwm_period_cntl =REG_READ (BL_PWM_PERIOD_CNTL ); +REG_READ (BL_PWM_PERIOD_CNTL );REG_GET (BL_PWM_PERIOD_CNTL ,BL_PWM_PERIOD , &bl_period);REG_GET (BL_PWM_PERIOD_CNTL ,BL_PWM_PERIOD_BITCNT , &bl_int_count); - bl_pwm_cntl =REG_READ (BL_PWM_CNTL ); +REG_READ (BL_PWM_CNTL );REG_GET (BL_PWM_CNTL ,BL_ACTIVE_INT_FRAC_CNT , (uint32_t *)(&bl_pwm));REG_GET (BL_PWM_CNTL ,BL_PWM_FRACTIONAL_EN , &fractional_duty_cycle_en);
Signature · 6 lines
2.25.1 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Alex Deucher
AppliedRe: [PATCH 38/40] drm/amd/display/dc/dce/dce_panel_cntl: Remove unused variables 'bl_pwm_cntl' and 'pwm_period_cntl'
Quoted 7 lines · Lee Jones
Fixes the following W=1 kernel build warning(s):
drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_panel_cntl.c: In function ‘dce_get_16_bit_backlight_from_pwm’:
drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_panel_cntl.c:54:11: warning: variable ‘bl_pwm_cntl’ set but not used [-Wunused-but-set-variable]drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_panel_cntl.c:53:11: warning: variable ‘pwm_period_cntl’ set but not used [-Wunused-but-set-variable]
Quoted 10 lines
Cc Harry Wentland <[email protected]>Cc Leo Li <[email protected]>Cc Alex Deucher <[email protected]>Cc "Christian König" <[email protected]>Cc David Airlie <[email protected]>Cc Daniel Vetter <[email protected]>Cc Anthony Koo <[email protected]>Signed-off-by Lee Jones <[email protected]>
Applied. Thanks!
Alex
Quoted 32 lines
--- drivers/gpu/drm/amd/display/dc/dce/dce_panel_cntl.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)drivers/gpu/drm/amd/display/dc/dce/dce_panel_cntl.c +4
-5@@ -50,16 +50,16 @@ static unsigned int dce_get_16_bit_backlight_from_pwm(struct panel_cntl *panel_c {uint64_t current_backlight;uint32_t round_result; -uint32_t pwm_period_cntl, bl_period, bl_int_count; -uint32_t bl_pwm_cntl, bl_pwm, fractional_duty_cycle_en; +uint32_t bl_period, bl_int_count; +uint32_t bl_pwm, fractional_duty_cycle_en;uint32_t bl_period_mask, bl_pwm_mask;struct dce_panel_cntl *dce_panel_cntl =TO_DCE_PANEL_CNTL (panel_cntl); - pwm_period_cntl =REG_READ (BL_PWM_PERIOD_CNTL ); +REG_READ (BL_PWM_PERIOD_CNTL );REG_GET (BL_PWM_PERIOD_CNTL ,BL_PWM_PERIOD , &bl_period);REG_GET (BL_PWM_PERIOD_CNTL ,BL_PWM_PERIOD_BITCNT , &bl_int_count); - bl_pwm_cntl =REG_READ (BL_PWM_CNTL ); +REG_READ (BL_PWM_CNTL );REG_GET (BL_PWM_CNTL ,BL_ACTIVE_INT_FRAC_CNT , (uint32_t *)(&bl_pwm));REG_GET (BL_PWM_CNTL ,BL_PWM_FRACTIONAL_EN , &fractional_duty_cycle_en); --2.25.1
Quoted 4 lines
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
PATCH 39/40 drm/amd/display/dc/dce/dmub_psr: Demote non-conformant kernel-doc headers
In reply to Lee JonesFixes the following W=1 kernel build warning(s):
drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dmub_psr.c:38: warning: Function parameter or member 'raw_state' not described in 'convert_psr_state' drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dmub_psr.c:81: warning: Function parameter or member 'dmub' not described in 'dmub_psr_get_state' drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dmub_psr.c:81: warning: Function parameter or member 'state' not described in 'dmub_psr_get_state' drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dmub_psr.c:97: warning: Function parameter or member 'dmub' not described in 'dmub_psr_set_version' drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dmub_psr.c:97: warning: Function parameter or member 'stream' not described in 'dmub_psr_set_version' drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dmub_psr.c:128: warning: Function parameter or member 'dmub' not described in 'dmub_psr_enable' drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dmub_psr.c:128: warning: Function parameter or member 'enable' not described in 'dmub_psr_enable' drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dmub_psr.c:128: warning: Function parameter or member 'wait' not described in 'dmub_psr_enable' drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dmub_psr.c:177: warning: Function parameter or member 'dmub' not described in 'dmub_psr_set_level' drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dmub_psr.c:177: warning: Function parameter or member 'psr_level' not described in 'dmub_psr_set_level' drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dmub_psr.c:203: warning: Function parameter or member 'dmub' not described in 'dmub_psr_copy_settings' drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dmub_psr.c:203: warning: Function parameter or member 'link' not described in 'dmub_psr_copy_settings' drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dmub_psr.c:203: warning: Function parameter or member 'psr_context' not described in 'dmub_psr_copy_settings' drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dmub_psr.c:284: warning: Function parameter or member 'dmub' not described in 'dmub_psr_force_static' drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dmub_psr.c:301: warning: Function parameter or member 'dmub' not described in 'dmub_psr_get_residency' drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dmub_psr.c:301: warning: Function parameter or member 'residency' not described in 'dmub_psr_get_residency' drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dmub_psr.c:323: warning: Function parameter or member 'psr' not described in 'dmub_psr_construct' drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dmub_psr.c:323: warning: Function parameter or member 'ctx' not described in 'dmub_psr_construct' drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dmub_psr.c:332: warning: Function parameter or member 'ctx' not described in 'dmub_psr_create' drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dmub_psr.c:349: warning: Function parameter or member 'dmub' not described in 'dmub_psr_destroy'
--- drivers/gpu/drm/amd/display/dc/dce/dmub_psr.c | 22 +++++++++---------- 1 file changed, 11 insertions(+), 11 deletions(-)
drivers/gpu/drm/amd/display/dc/dce/dmub_psr.c +11 -11
@@ -31,7 +31,7 @@#define MAX_PIPES 6 -/** +/* * Convert dmcub psr state to dmcu psr state. */ static enum dc_psr_state convert_psr_state (uint32_t raw_state)
@@ -74,7 +74,7 @@ static enum dc_psr_state convert_psr_state(uint32_t raw_state)return state; } -/** +/* * Get PSR state from firmware. */ static void dmub_psr_get_state (struct dmub_psr *dmub,enum dc_psr_state *state)
@@ -90,7 +90,7 @@ static void dmub_psr_get_state(struct dmub_psr *dmub, enum dc_psr_state *state) *state =convert_psr_state (raw_state); } -/** +/* * Set PSR version. */ static bool dmub_psr_set_version (struct dmub_psr *dmub,struct dc_stream_state *stream)
@@ -121,7 +121,7 @@ static bool dmub_psr_set_version(struct dmub_psr *dmub, struct dc_stream_state *return true; } -/** +/* * Enable/Disable PSR. */ static void dmub_psr_enable (struct dmub_psr *dmub,bool enable,bool wait)
@@ -170,7 +170,7 @@ static void dmub_psr_enable(struct dmub_psr *dmub, bool enable, bool wait) } } -/** +/* * Set PSR level. */ static void dmub_psr_set_level (struct dmub_psr *dmub,uint16_t psr_level)
@@ -194,7 +194,7 @@ static void dmub_psr_set_level(struct dmub_psr *dmub, uint16_t psr_level)dc_dmub_srv_wait_idle (dc->dmub_srv); } -/** +/* * Setup PSR by programming phy registers and sending psr hw context values to firmware. */ static bool dmub_psr_copy_settings(struct dmub_psr *dmub,
@@ -277,7 +277,7 @@ static bool dmub_psr_copy_settings(struct dmub_psr *dmub,return true; } -/** +/* * Send command to PSR to force static ENTER and ignore all state changes until exit */ static void dmub_psr_force_static (struct dmub_psr *dmub)
@@ -294,7 +294,7 @@ static void dmub_psr_force_static(struct dmub_psr *dmub)dc_dmub_srv_wait_idle (dc->dmub_srv); } -/** +/* * Get PSR residency from firmware. */ static void dmub_psr_get_residency (struct dmub_psr *dmub,uint32_t *residency)
@@ -316,7 +316,7 @@ static const struct dmub_psr_funcs psr_funcs = { .psr_get_residency = dmub_psr_get_residency, }; -/** +/* * Construct PSR object. */ static void dmub_psr_construct (struct dmub_psr *psr,struct dc_context *ctx)
@@ -325,7 +325,7 @@ static void dmub_psr_construct(struct dmub_psr *psr, struct dc_context *ctx) psr->funcs = &psr_funcs; } -/** +/* * Allocate and initialize PSR object. */ struct dmub_psr *dmub_psr_create (struct dc_context *ctx)
@@ -342,7 +342,7 @@ struct dmub_psr *dmub_psr_create(struct dc_context *ctx)return psr; } -/** +/* * Deallocate PSR object. */ void dmub_psr_destroy (struct dmub_psr **dmub)
Signature · 6 lines
2.25.1 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Alex Deucher
AppliedRe: [PATCH 39/40] drm/amd/display/dc/dce/dmub_psr: Demote non-conformant kernel-doc headers
Quoted 24 lines · Lee Jones
Fixes the following W=1 kernel build warning(s):
drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dmub_psr.c:38: warning: Function parameter or member 'raw_state' not described in 'convert_psr_state'drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dmub_psr.c:81: warning: Function parameter or member 'dmub' not described in 'dmub_psr_get_state'drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dmub_psr.c:81: warning: Function parameter or member 'state' not described in 'dmub_psr_get_state'drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dmub_psr.c:97: warning: Function parameter or member 'dmub' not described in 'dmub_psr_set_version'drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dmub_psr.c:97: warning: Function parameter or member 'stream' not described in 'dmub_psr_set_version'drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dmub_psr.c:128: warning: Function parameter or member 'dmub' not described in 'dmub_psr_enable'drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dmub_psr.c:128: warning: Function parameter or member 'enable' not described in 'dmub_psr_enable'drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dmub_psr.c:128: warning: Function parameter or member 'wait' not described in 'dmub_psr_enable'drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dmub_psr.c:177: warning: Function parameter or member 'dmub' not described in 'dmub_psr_set_level'drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dmub_psr.c:177: warning: Function parameter or member 'psr_level' not described in 'dmub_psr_set_level'drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dmub_psr.c:203: warning: Function parameter or member 'dmub' not described in 'dmub_psr_copy_settings'drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dmub_psr.c:203: warning: Function parameter or member 'link' not described in 'dmub_psr_copy_settings'drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dmub_psr.c:203: warning: Function parameter or member 'psr_context' not described in 'dmub_psr_copy_settings'drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dmub_psr.c:284: warning: Function parameter or member 'dmub' not described in 'dmub_psr_force_static'drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dmub_psr.c:301: warning: Function parameter or member 'dmub' not described in 'dmub_psr_get_residency'drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dmub_psr.c:301: warning: Function parameter or member 'residency' not described in 'dmub_psr_get_residency'drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dmub_psr.c:323: warning: Function parameter or member 'psr' not described in 'dmub_psr_construct'drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dmub_psr.c:323: warning: Function parameter or member 'ctx' not described in 'dmub_psr_construct'drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dmub_psr.c:332: warning: Function parameter or member 'ctx' not described in 'dmub_psr_create'drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dmub_psr.c:349: warning: Function parameter or member 'dmub' not described in 'dmub_psr_destroy'
Quoted 10 lines
Cc Harry Wentland <[email protected]>Cc Leo Li <[email protected]>Cc Alex Deucher <[email protected]>Cc "Christian König" <[email protected]>Cc David Airlie <[email protected]>Cc Daniel Vetter <[email protected]>Cc Wyatt Wood <[email protected]>Signed-off-by Lee Jones <[email protected]>
Applied. Thanks!
Alex
Quoted 110 lines
--- drivers/gpu/drm/amd/display/dc/dce/dmub_psr.c | 22 +++++++++---------- 1 file changed, 11 insertions(+), 11 deletions(-)drivers/gpu/drm/amd/display/dc/dce/dmub_psr.c +11
-12@@ -31,7 +31,7 @@#define MAX_PIPES 6 -/** +/* * Convert dmcub psr state to dmcu psr state. */ static enum dc_psr_state convert_psr_state (uint32_t raw_state)@@ -74,7 +74,7 @@ static enum dc_psr_state convert_psr_state(uint32_t raw_state)return state; } -/** +/* * Get PSR state from firmware. */ static void dmub_psr_get_state (struct dmub_psr *dmub,enum dc_psr_state *state)@@ -90,7 +90,7 @@ static void dmub_psr_get_state(struct dmub_psr *dmub, enum dc_psr_state *state) *state =convert_psr_state (raw_state); } -/** +/* * Set PSR version. */ static bool dmub_psr_set_version (struct dmub_psr *dmub,struct dc_stream_state *stream)@@ -121,7 +121,7 @@ static bool dmub_psr_set_version(struct dmub_psr *dmub, struct dc_stream_state *return true; } -/** +/* * Enable/Disable PSR. */ static void dmub_psr_enable (struct dmub_psr *dmub,bool enable,bool wait)@@ -170,7 +170,7 @@ static void dmub_psr_enable(struct dmub_psr *dmub, bool enable, bool wait) } } -/** +/* * Set PSR level. */ static void dmub_psr_set_level (struct dmub_psr *dmub,uint16_t psr_level)@@ -194,7 +194,7 @@ static void dmub_psr_set_level(struct dmub_psr *dmub, uint16_t psr_level)dc_dmub_srv_wait_idle (dc->dmub_srv); } -/** +/* * Setup PSR by programming phy registers and sending psr hw context values to firmware. */ static bool dmub_psr_copy_settings(struct dmub_psr *dmub,@@ -277,7 +277,7 @@ static bool dmub_psr_copy_settings(struct dmub_psr *dmub,return true; } -/** +/* * Send command to PSR to force static ENTER and ignore all state changes until exit */ static void dmub_psr_force_static (struct dmub_psr *dmub)@@ -294,7 +294,7 @@ static void dmub_psr_force_static(struct dmub_psr *dmub)dc_dmub_srv_wait_idle (dc->dmub_srv); } -/** +/* * Get PSR residency from firmware. */ static void dmub_psr_get_residency (struct dmub_psr *dmub,uint32_t *residency)@@ -316,7 +316,7 @@ static const struct dmub_psr_funcs psr_funcs = { .psr_get_residency = dmub_psr_get_residency, }; -/** +/* * Construct PSR object. */ static void dmub_psr_construct (struct dmub_psr *psr,struct dc_context *ctx)@@ -325,7 +325,7 @@ static void dmub_psr_construct(struct dmub_psr *psr, struct dc_context *ctx) psr->funcs = &psr_funcs; } -/** +/* * Allocate and initialize PSR object. */ struct dmub_psr *dmub_psr_create (struct dc_context *ctx)@@ -342,7 +342,7 @@ struct dmub_psr *dmub_psr_create(struct dc_context *ctx)return psr; } -/** +/* * Deallocate PSR object. */ void dmub_psr_destroy (struct dmub_psr **dmub) --2.25.1
Quoted 4 lines
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
PATCH 40/40 drm/amd/display/dc/gpio/hw_factory: Delete unused function 'dal_hw_factory_destroy'
In reply to Lee JonesFixes the following W=1 kernel build warning(s):
drivers/gpu/drm/amd/amdgpu/../display/dc/gpio/hw_factory.c:123:6: warning: no previous prototype for ‘dal_hw_factory_destroy’ [-Wmissing-prototypes]
--- drivers/gpu/drm/amd/display/dc/gpio/hw_factory.c | 14 -------------- 1 file changed, 14 deletions(-)
drivers/gpu/drm/amd/display/dc/gpio/hw_factory.c +0 -14
@@ -119,17 +119,3 @@ bool dal_hw_factory_init(return false; } } - -void dal_hw_factory_destroy ( -struct dc_context *ctx, -struct hw_factory **factory) -{ -if (!factory || !*factory) { -BREAK_TO_DEBUGGER (); -return ; - } - -kfree (*factory); - - *factory =NULL ; -}
Signature · 6 lines
2.25.1 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Alex Deucher
AppliedRe: [PATCH 40/40] drm/amd/display/dc/gpio/hw_factory: Delete unused function 'dal_hw_factory_destroy'
Quoted 5 lines · Lee Jones
Fixes the following W=1 kernel build warning(s):
drivers/gpu/drm/amd/amdgpu/../display/dc/gpio/hw_factory.c:123:6: warning: no previous prototype for ‘dal_hw_factory_destroy’ [-Wmissing-prototypes]
Quoted 9 lines
Cc Harry Wentland <[email protected]>Cc Leo Li <[email protected]>Cc Alex Deucher <[email protected]>Cc "Christian König" <[email protected]>Cc David Airlie <[email protected]>Cc Daniel Vetter <[email protected]>Signed-off-by Lee Jones <[email protected]>
Applied. Thanks!
Alex
Quoted 29 lines
--- drivers/gpu/drm/amd/display/dc/gpio/hw_factory.c | 14 -------------- 1 file changed, 14 deletions(-)drivers/gpu/drm/amd/display/dc/gpio/hw_factory.c +0
-15@@ -119,17 +119,3 @@ bool dal_hw_factory_init(return false; } } - -void dal_hw_factory_destroy ( -struct dc_context *ctx, -struct hw_factory **factory) -{ -if (!factory || !*factory) { -BREAK_TO_DEBUGGER (); -return ; - } - -kfree (*factory); - - *factory =NULL ; -} --2.25.1
Quoted 4 lines
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx