amd-gfx.lists.freedesktop.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 00/16] Remove entries from struct vba_vars_st
@ 2022-07-28 18:20 Maíra Canal
  2022-07-28 18:20 ` [PATCH 01/16] drm/amd/display: Remove NonUrgentLatencyTolerance VBA variable Maíra Canal
                   ` (15 more replies)
  0 siblings, 16 replies; 17+ messages in thread
From: Maíra Canal @ 2022-07-28 18:20 UTC (permalink / raw)
  To: Harry Wentland, Leo Li, Rodrigo Siqueira, Alex Deucher,
	christian.koenig, Xinhui.Pan, David Airlie, Daniel Vetter
  Cc: magalilemes00, tales.aparecida, linux-kernel, amd-gfx, mwen,
	Maíra Canal, Isabella Basso, andrealmeid

A while ago, I sent a patch removing some entries from the struct vba_vars_st
[1]. At that time, I used git grep and checked if they were used anywhere else
manually. But the struct vba_vars_st has more than 900 variables, so git grep
every variable is a pretty huge work. So, I grabbed all the variables' names
and put them in a text file, and wrote a bash script to analyze if the
variables were used.

I ended up finding a bunch of variables that were only assigned but never used.
I manually checked the results of the script in order to make sure that no
functional changes were made to the code.

I only removed variables that were only assigned but never used or variables
that were never even mentioned.

Best Regards,
- Maíra Canal

[1] https://lore.kernel.org/amd-gfx/20220630215316.1078841-1-mairacanal@riseup.net/T/#u

Maíra Canal (16):
  drm/amd/display: Remove NonUrgentLatencyTolerance VBA variable
  drm/amd/display: Remove CompBufReservedSpace* VBA variable
  drm/amd/display: Remove DSCCLK_calculated VBA variable
  drm/amd/display: Remove AllowDRAMSelfRefreshDuringVBlank VBA variable
  drm/amd/display: Remove VStartupMargin and FirstMainPlane VBA
    variables
  drm/amd/display: Remove ImmediateFlipSupportedSurface VBA variable
  drm/amd/display: Remove WritebackAllowFCLKChangeEndPosition VBA
    variable
  drm/amd/display: Remove some XFC variables from VBA
  drm/amd/display: Remove SwathWidthCSingleDPP VBA variable
  drm/amd/display: Remove ModeIsSupported VBA variable
  drm/amd/display: Remove MPCCombineEnable VBA variable
  drm/amd/display: Remove NumberOfDP2p0Support VBA variable
  drm/amd/display: Remove TFinalxFill VBA variable
  drm/amd/display: Remove MaximumDCCCompressionYSurface VBA variable
  drm/amd/display: Remove only mencioned once VBA variables
  drm/amd/display: Remove never used VBA variables

 .../dc/dml/dcn20/display_mode_vba_20.c        | 83 ++-----------------
 .../dc/dml/dcn20/display_mode_vba_20v2.c      | 83 ++-----------------
 .../dc/dml/dcn21/display_mode_vba_21.c        | 75 +----------------
 .../dc/dml/dcn30/display_mode_vba_30.c        | 43 ++--------
 .../dc/dml/dcn31/display_mode_vba_31.c        | 26 +-----
 .../dc/dml/dcn314/display_mode_vba_314.c      | 26 +-----
 .../dc/dml/dcn32/display_mode_vba_32.c        | 44 +---------
 .../drm/amd/display/dc/dml/display_mode_vba.c | 18 +---
 .../drm/amd/display/dc/dml/display_mode_vba.h | 45 ----------
 9 files changed, 30 insertions(+), 413 deletions(-)

-- 
2.37.1


^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2022-07-28 20:07 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-28 18:20 [PATCH 00/16] Remove entries from struct vba_vars_st Maíra Canal
2022-07-28 18:20 ` [PATCH 01/16] drm/amd/display: Remove NonUrgentLatencyTolerance VBA variable Maíra Canal
2022-07-28 18:20 ` [PATCH 02/16] drm/amd/display: Remove CompBufReservedSpace* " Maíra Canal
2022-07-28 18:20 ` [PATCH 03/16] drm/amd/display: Remove DSCCLK_calculated " Maíra Canal
2022-07-28 18:20 ` [PATCH 04/16] drm/amd/display: Remove AllowDRAMSelfRefreshDuringVBlank " Maíra Canal
2022-07-28 18:20 ` [PATCH 05/16] drm/amd/display: Remove VStartupMargin and FirstMainPlane VBA variables Maíra Canal
2022-07-28 18:20 ` [PATCH 06/16] drm/amd/display: Remove ImmediateFlipSupportedSurface VBA variable Maíra Canal
2022-07-28 18:20 ` [PATCH 07/16] drm/amd/display: Remove WritebackAllowFCLKChangeEndPosition " Maíra Canal
2022-07-28 18:20 ` [PATCH 08/16] drm/amd/display: Remove some XFC variables from VBA Maíra Canal
2022-07-28 18:20 ` [PATCH 09/16] drm/amd/display: Remove SwathWidthCSingleDPP VBA variable Maíra Canal
2022-07-28 18:20 ` [PATCH 10/16] drm/amd/display: Remove ModeIsSupported " Maíra Canal
2022-07-28 18:20 ` [PATCH 11/16] drm/amd/display: Remove MPCCombineEnable " Maíra Canal
2022-07-28 18:20 ` [PATCH 12/16] drm/amd/display: Remove NumberOfDP2p0Support " Maíra Canal
2022-07-28 18:20 ` [PATCH 13/16] drm/amd/display: Remove TFinalxFill " Maíra Canal
2022-07-28 18:20 ` [PATCH 14/16] drm/amd/display: Remove MaximumDCCCompressionYSurface " Maíra Canal
2022-07-28 20:05 ` [PATCH 15/16] drm/amd/display: Remove only mencioned once VBA variables Maíra Canal
2022-07-28 20:06 ` [PATCH 16/16] drm/amd/display: Remove never used " Maíra Canal

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).