drm/amd/display: widen FRL debug knobs to unsigned int
Subsystems (3)
PATCH 1/1 drm/amd/display: widen FRL debug knobs to unsigned int
force_frl_rate, select_ffe and limit_ffe in dc_debug_options carry non-negative configuration values: an FRL link-rate enum (0..0xF), an FFE level selector and an FFE level limit. They are only ever compared against 0/0xF, assigned, or cast to uint8_t before being written to hardware. No call site relies on signed semantics.
Make the types unsigned int to match how the values are actually used and to silence MISRA-style signedness warnings on internal builds.
--- drivers/gpu/drm/amd/display/dc/dc.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/gpu/drm/amd/display/dc/dc.h +3 -3
@@ -1155,10 +1155,10 @@ struct dc_debug_options {bool force_vrr;bool force_fva;int max_frl_rate; -int force_frl_rate; +unsigned int force_frl_rate;bool ignore_ffe; -int select_ffe; -int limit_ffe; +unsigned int select_ffe; +unsigned int limit_ffe;bool force_frl_always;bool force_frl_dsc;bool force_frl_max;
Signature · 1 line
2.54.0
Quoted 32 lines · Aurabindo Pillai
force_frl_rate,select_ffeandlimit_ffeindc_debug_optionscarry non-negative configuration values: an FRL link-rate enum (0..0xF), an FFE level selector and an FFE level limit. They are only ever compared against 0/0xF, assigned, or cast touint8_tbefore being written to hardware. No call site relies on signed semantics.Make the types unsigned int to match how the values are actually used and to silence MISRA-style signedness warnings on internal builds.
Signed-off-by Aurabindo Pillai <[email protected]>--- drivers/gpu/drm/amd/display/dc/dc.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)drivers/gpu/drm/amd/display/dc/dc.h +3
-3@@ -1155,10 +1155,10 @@ struct dc_debug_options {bool force_vrr;bool force_fva;int max_frl_rate; -int force_frl_rate; +unsigned int force_frl_rate;bool ignore_ffe; -int select_ffe; -int limit_ffe; +unsigned int select_ffe; +unsigned int limit_ffe;bool force_frl_always;bool force_frl_dsc;bool force_frl_max;