Revert reduce stack size for DML code
cover Revert reduce stack size for DML code
We had a stack size issue on DML, and we tried to fix it by moving some of the local variables to some of the DML struct. In this process of reducing the stack size, we sent some other patches that fixed the issue reported by Stephen, and the below set of patches become unnecessary:
987949933127 drm/amd/display: reduce stack for dml32_CalculatePrefetchSchedule 8f08cd32b767 drm/amd/display: reduce stack for dml32_CalculateWatermarksMALLUseAndDRAMSpeedChangeSupport 5d526d124fe3 drm/amd/display: reduce stack for dml32_CalculateVMRowAndSwath f6ceebcc7825 drm/amd/display: reduce stack for dml32_CalculateSwathAndDETConfiguration
For this reason, this patchset reverts all of the above patches.
Thanks
Siqueira
Rodrigo Siqueira (4):
Revert "drm/amd/display: reduce stack for
dml32_CalculatePrefetchSchedule"
Revert "drm/amd/display: reduce stack for
dml32_CalculateWatermarksMALLUseAndDRAMSpeedChangeSupport"
Revert "drm/amd/display: reduce stack for
dml32_CalculateVMRowAndSwath"
Revert "drm/amd/display: reduce stack for
dml32_CalculateSwathAndDETConfiguration"
.../dc/dml/dcn32/display_mode_vba_32.c | 12 +- .../dc/dml/dcn32/display_mode_vba_util_32.c | 812 ++++++++++-------- .../dc/dml/dcn32/display_mode_vba_util_32.h | 5 - .../drm/amd/display/dc/dml/display_mode_vba.h | 106 --- 4 files changed, 441 insertions(+), 494 deletions(-)
Signature · 1 line
2.35.1
PATCH 1/4 Revert "drm/amd/display: reduce stack for dml32_CalculatePrefetchSchedule"
This reverts commit 361e705e712d2255f5b0f6e6cc69687043d4fcc9.
This commit was a part of a patchset responsible for reducing the stack size. However, after some other changes, this commit becomes unnecessary, so we are reverting it here.
--- .../dc/dml/dcn32/display_mode_vba_32.c | 5 +- .../dc/dml/dcn32/display_mode_vba_util_32.c | 394 ++++++++++-------- .../dc/dml/dcn32/display_mode_vba_util_32.h | 1 - .../drm/amd/display/dc/dml/display_mode_vba.h | 38 -- 4 files changed, 211 insertions(+), 227 deletions(-)
drivers/gpu/drm/amd/display/dc/dml/dcn32/display_mode_vba_32.c +1 -4
@@ -757,9 +757,7 @@ static void DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerforman v->dummy_vars.DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation.myPipe.BytePerPixelY = v->BytePerPixelY[k]; v->dummy_vars.DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation.myPipe.BytePerPixelC = v->BytePerPixelC[k]; v->dummy_vars.DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation.myPipe.ProgressiveToInterlaceUnitInOPP = mode_lib->vba.ProgressiveToInterlaceUnitInOPP; - v->ErrorResult[k] = dml32_CalculatePrefetchSchedule( - &v->dummy_vars.dml32_CalculatePrefetchSchedule, - v->dummy_vars.DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation.HostVMInefficiencyFactor, + v->ErrorResult[k] = dml32_CalculatePrefetchSchedule(v->dummy_vars.DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation.HostVMInefficiencyFactor, &v->dummy_vars.DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation.myPipe, v->DSCDelay[k], mode_lib->vba.DPPCLKDelaySubtotal + mode_lib->vba.DPPCLKDelayCNVCFormater, mode_lib->vba.DPPCLKDelaySCL,
@@ -3266,7 +3264,6 @@ void dml32_ModeSupportAndSystemConfigurationFull(struct display_mode_lib *mode_l mode_lib->vba.NoTimeForPrefetch[i][j][k] = dml32_CalculatePrefetchSchedule( - &v->dummy_vars.dml32_CalculatePrefetchSchedule, v->dummy_vars.dml32_ModeSupportAndSystemConfigurationFull.HostVMInefficiencyFactor, &v->dummy_vars.dml32_ModeSupportAndSystemConfigurationFull.myPipe, mode_lib->vba.DSCDelayPerState[i][k],
drivers/gpu/drm/amd/display/dc/dml/dcn32/display_mode_vba_util_32.c +210 -184
715 lines not on this page · raw message
drivers/gpu/drm/amd/display/dc/dml/dcn32/display_mode_vba_util_32.h +0 -1
@@ -715,7 +715,6 @@ double dml32_CalculateExtraLatency( unsigned int HostVMMaxNonCachedPageTableLevels); bool dml32_CalculatePrefetchSchedule( - struct dml32_CalculatePrefetchSchedule *st_vars, double HostVMInefficiencyFactor, DmlPipe *myPipe, unsigned int DSCDelay,
drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.h +0 -38
@@ -247,43 +247,6 @@ struct dml32_CalculateWatermarksMALLUseAndDRAMSpeedChangeSupport {unsigned int LBLatencyHidingSourceLinesC[DC__NUM_DPP__MAX ]; }; -struct dml32_CalculatePrefetchSchedule { -unsigned int DPPCycles, DISPCLKCycles; -double DSTTotalPixelsAfterScaler; -double LineTime; -double dst_y_prefetch_equ; -double prefetch_bw_oto; -double Tvm_oto; -double Tr0_oto; -double Tvm_oto_lines; -double Tr0_oto_lines; -double dst_y_prefetch_oto; -double TimeForFetchingMetaPTE; -double TimeForFetchingRowInVBlank; -double LinesToRequestPrefetchPixelData; -unsigned int HostVMDynamicLevelsTrips; -double trip_to_mem; -double Tvm_trips; -double Tr0_trips; -double Tvm_trips_rounded; -double Tr0_trips_rounded; -double Lsw_oto; -double Tpre_rounded; -double prefetch_bw_equ; -double Tvm_equ; -double Tr0_equ; -double Tdmbf; -double Tdmec; -double Tdmsks; -double prefetch_sw_bytes; -double bytes_pp; -double dep_bytes; -unsigned int max_vratio_pre; -double min_Lsw; -double Tsw_est1; -double Tsw_est3; -}; -struct DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation {unsigned int dummy_integer_array[2 ][DC__NUM_DPP__MAX ];double dummy_single_array[2 ][DC__NUM_DPP__MAX ];
@@ -358,7 +321,6 @@ struct dummy_vars {struct dml32_CalculateSwathAndDETConfiguration dml32_CalculateSwathAndDETConfiguration;struct dml32_CalculateVMRowAndSwath dml32_CalculateVMRowAndSwath;struct dml32_CalculateWatermarksMALLUseAndDRAMSpeedChangeSupport dml32_CalculateWatermarksMALLUseAndDRAMSpeedChangeSupport; -struct dml32_CalculatePrefetchSchedule dml32_CalculatePrefetchSchedule; };struct vba_vars_st {
Signature · 1 line
2.35.1
PATCH 2/4 Revert "drm/amd/display: reduce stack for dml32_CalculateWatermarksMALLUseAndDRAMSpeedChangeSupport"
In reply to Rodrigo SiqueiraThis reverts commit f2dbf5a4dd1eaa8893afe7a970cd89f075316d18.
This commit was a part of a patchset responsible for reducing the stack size. However, after some other changes, this commit becomes unnecessary, so we are reverting it here.
--- .../dc/dml/dcn32/display_mode_vba_32.c | 2 - .../dc/dml/dcn32/display_mode_vba_util_32.c | 187 ++++++++++-------- .../dc/dml/dcn32/display_mode_vba_util_32.h | 1 - .../drm/amd/display/dc/dml/display_mode_vba.h | 34 ---- 4 files changed, 104 insertions(+), 120 deletions(-)
drivers/gpu/drm/amd/display/dc/dml/dcn32/display_mode_vba_32.c +0 -2
@@ -1165,7 +1165,6 @@ static void DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerforman v->dummy_vars.DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation.mmSOCParameters.SMNLatency = mode_lib->vba.SMNLatency; dml32_CalculateWatermarksMALLUseAndDRAMSpeedChangeSupport( - &v->dummy_vars.dml32_CalculateWatermarksMALLUseAndDRAMSpeedChangeSupport, mode_lib->vba.USRRetrainingRequiredFinal, mode_lib->vba.UsesMALLForPStateChange, mode_lib->vba.PrefetchModePerState[mode_lib->vba.VoltageLevel][mode_lib->vba.maxMpcComb],
@@ -3563,7 +3562,6 @@ void dml32_ModeSupportAndSystemConfigurationFull(struct display_mode_lib *mode_l { dml32_CalculateWatermarksMALLUseAndDRAMSpeedChangeSupport( - &v->dummy_vars.dml32_CalculateWatermarksMALLUseAndDRAMSpeedChangeSupport, mode_lib->vba.USRRetrainingRequiredFinal, mode_lib->vba.UsesMALLForPStateChange, mode_lib->vba.PrefetchModePerState[i][j],
drivers/gpu/drm/amd/display/dc/dml/dcn32/display_mode_vba_util_32.c +104 -83
343 lines not on this page · raw message
drivers/gpu/drm/amd/display/dc/dml/dcn32/display_mode_vba_util_32.h +0 -1
@@ -810,7 +810,6 @@ void dml32_CalculateFlipSchedule( bool *ImmediateFlipSupportedForPipe); void dml32_CalculateWatermarksMALLUseAndDRAMSpeedChangeSupport( - struct dml32_CalculateWatermarksMALLUseAndDRAMSpeedChangeSupport *st_vars, bool USRRetrainingRequiredFinal, enum dm_use_mall_for_pstate_change_mode UseMALLForPStateChange[], unsigned int PrefetchMode,
drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.h +0 -34
@@ -214,39 +214,6 @@ struct dml32_CalculateVMRowAndSwath {bool one_row_per_frame_fits_in_buffer[DC__NUM_DPP__MAX ]; }; -struct dml32_CalculateWatermarksMALLUseAndDRAMSpeedChangeSupport { -unsigned int SurfaceWithMinActiveFCLKChangeMargin; -unsigned int DRAMClockChangeSupportNumber; -unsigned int LastSurfaceWithoutMargin; -unsigned int DRAMClockChangeMethod; -bool FoundFirstSurfaceWithMinActiveFCLKChangeMargin; -double MinActiveFCLKChangeMargin; -double SecondMinActiveFCLKChangeMarginOneDisplayInVBLank; -double ActiveClockChangeLatencyHidingY; -double ActiveClockChangeLatencyHidingC; -double ActiveClockChangeLatencyHiding; -double EffectiveDETBufferSizeY; -double ActiveFCLKChangeLatencyMargin[DC__NUM_DPP__MAX ]; -double USRRetrainingLatencyMargin[DC__NUM_DPP__MAX ]; -double TotalPixelBW; -bool SynchronizedSurfaces[DC__NUM_DPP__MAX ][DC__NUM_DPP__MAX ]; -double EffectiveLBLatencyHidingY; -double EffectiveLBLatencyHidingC; -double LinesInDETY[DC__NUM_DPP__MAX ]; -double LinesInDETC[DC__NUM_DPP__MAX ]; -unsigned int LinesInDETYRoundedDownToSwath[DC__NUM_DPP__MAX ]; -unsigned int LinesInDETCRoundedDownToSwath[DC__NUM_DPP__MAX ]; -double FullDETBufferingTimeY; -double FullDETBufferingTimeC; -double WritebackDRAMClockChangeLatencyMargin; -double WritebackFCLKChangeLatencyMargin; -double WritebackLatencyHiding; -bool SameTimingForFCLKChange; -unsigned int TotalActiveWriteback; -unsigned int LBLatencyHidingSourceLinesY[DC__NUM_DPP__MAX ]; -unsigned int LBLatencyHidingSourceLinesC[DC__NUM_DPP__MAX ]; -}; -struct DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation {unsigned int dummy_integer_array[2 ][DC__NUM_DPP__MAX ];double dummy_single_array[2 ][DC__NUM_DPP__MAX ];
@@ -320,7 +287,6 @@ struct dummy_vars {struct dml32_ModeSupportAndSystemConfigurationFull dml32_ModeSupportAndSystemConfigurationFull;struct dml32_CalculateSwathAndDETConfiguration dml32_CalculateSwathAndDETConfiguration;struct dml32_CalculateVMRowAndSwath dml32_CalculateVMRowAndSwath; -struct dml32_CalculateWatermarksMALLUseAndDRAMSpeedChangeSupport dml32_CalculateWatermarksMALLUseAndDRAMSpeedChangeSupport; };struct vba_vars_st {
Signature · 1 line
2.35.1
PATCH 3/4 Revert "drm/amd/display: reduce stack for dml32_CalculateVMRowAndSwath"
In reply to Rodrigo SiqueiraThis reverts commit a0a68cda2ef8446b55d1b0baa8c352812639b196.
This commit was a part of a patchset responsible for reducing the stack size. However, after some other changes, this commit becomes unnecessary, so we are reverting it here.
--- .../dc/dml/dcn32/display_mode_vba_32.c | 2 - .../dc/dml/dcn32/display_mode_vba_util_32.c | 110 ++++++++++-------- .../dc/dml/dcn32/display_mode_vba_util_32.h | 1 - .../drm/amd/display/dc/dml/display_mode_vba.h | 19 --- 4 files changed, 62 insertions(+), 70 deletions(-)
drivers/gpu/drm/amd/display/dc/dml/dcn32/display_mode_vba_32.c +0 -2
@@ -461,7 +461,6 @@ static void DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerforman { dml32_CalculateVMRowAndSwath( - &v->dummy_vars.dml32_CalculateVMRowAndSwath, mode_lib->vba.NumberOfActiveSurfaces, v->dummy_vars.DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation.SurfaceParameters, v->SurfaceSizeInMALL,
@@ -2746,7 +2745,6 @@ void dml32_ModeSupportAndSystemConfigurationFull(struct display_mode_lib *mode_l { dml32_CalculateVMRowAndSwath( - &v->dummy_vars.dml32_CalculateVMRowAndSwath, mode_lib->vba.NumberOfActiveSurfaces, v->dummy_vars.dml32_ModeSupportAndSystemConfigurationFull.SurfParameters, mode_lib->vba.SurfaceSizeInMALL,
drivers/gpu/drm/amd/display/dc/dml/dcn32/display_mode_vba_util_32.c +62 -48
220 lines not on this page · raw message
drivers/gpu/drm/amd/display/dc/dml/dcn32/display_mode_vba_util_32.h +0 -1
@@ -362,7 +362,6 @@ void dml32_CalculateSurfaceSizeInMall( bool *ExceededMALLSize); void dml32_CalculateVMRowAndSwath( - struct dml32_CalculateVMRowAndSwath *st_vars, unsigned int NumberOfActiveSurfaces, DmlPipe myPipe[], unsigned int SurfaceSizeInMALL[],
drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.h +0 -19
@@ -196,24 +196,6 @@ struct dml32_CalculateSwathAndDETConfiguration {unsigned int DETBufferSizeInKByteForSwathCalculation; }; -struct dml32_CalculateVMRowAndSwath { -unsigned int PTEBufferSizeInRequestsForLuma[DC__NUM_DPP__MAX ]; -unsigned int PTEBufferSizeInRequestsForChroma[DC__NUM_DPP__MAX ]; -unsigned int PDEAndMetaPTEBytesFrameY; -unsigned int PDEAndMetaPTEBytesFrameC; -unsigned int MetaRowByteY[DC__NUM_DPP__MAX ]; -unsigned int MetaRowByteC[DC__NUM_DPP__MAX ]; -unsigned int PixelPTEBytesPerRowY[DC__NUM_DPP__MAX ]; -unsigned int PixelPTEBytesPerRowC[DC__NUM_DPP__MAX ]; -unsigned int PixelPTEBytesPerRowY_one_row_per_frame[DC__NUM_DPP__MAX ]; -unsigned int PixelPTEBytesPerRowC_one_row_per_frame[DC__NUM_DPP__MAX ]; -unsigned int dpte_row_width_luma_ub_one_row_per_frame[DC__NUM_DPP__MAX ]; -unsigned int dpte_row_height_luma_one_row_per_frame[DC__NUM_DPP__MAX ]; -unsigned int dpte_row_width_chroma_ub_one_row_per_frame[DC__NUM_DPP__MAX ]; -unsigned int dpte_row_height_chroma_one_row_per_frame[DC__NUM_DPP__MAX ]; -bool one_row_per_frame_fits_in_buffer[DC__NUM_DPP__MAX ]; -}; -struct DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation {unsigned int dummy_integer_array[2 ][DC__NUM_DPP__MAX ];double dummy_single_array[2 ][DC__NUM_DPP__MAX ];
@@ -286,7 +268,6 @@ struct dummy_vars { DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation;struct dml32_ModeSupportAndSystemConfigurationFull dml32_ModeSupportAndSystemConfigurationFull;struct dml32_CalculateSwathAndDETConfiguration dml32_CalculateSwathAndDETConfiguration; -struct dml32_CalculateVMRowAndSwath dml32_CalculateVMRowAndSwath; };struct vba_vars_st {
Signature · 1 line
2.35.1
PATCH 4/4 Revert "drm/amd/display: reduce stack for dml32_CalculateSwathAndDETConfiguration"
In reply to Rodrigo SiqueiraThis reverts commit ca6730ca0f01cd918087344c0c22cf6ed840db9d.
This commit was a part of a patchset responsible for reducing the stack size. However, after some other changes, this commit becomes unnecessary, so we are reverting it here.
--- .../dc/dml/dcn32/display_mode_vba_32.c | 3 - .../dc/dml/dcn32/display_mode_vba_util_32.c | 121 +++++++++--------- .../dc/dml/dcn32/display_mode_vba_util_32.h | 2 - .../drm/amd/display/dc/dml/display_mode_vba.h | 15 --- 4 files changed, 64 insertions(+), 77 deletions(-)
drivers/gpu/drm/amd/display/dc/dml/dcn32/display_mode_vba_32.c +0 -3
@@ -221,7 +221,6 @@ static void DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerforman// VBA_DELTA // Calculate DET size, swath height dml32_CalculateSwathAndDETConfiguration( - &v->dummy_vars.dml32_CalculateSwathAndDETConfiguration, mode_lib->vba.DETSizeOverride, mode_lib->vba.UsesMALLForPStateChange, mode_lib->vba.ConfigReturnBufferSizeInKByte,
@@ -1948,7 +1947,6 @@ void dml32_ModeSupportAndSystemConfigurationFull(struct display_mode_lib *mode_l } dml32_CalculateSwathAndDETConfiguration( - &v->dummy_vars.dml32_CalculateSwathAndDETConfiguration, mode_lib->vba.DETSizeOverride, mode_lib->vba.UsesMALLForPStateChange, mode_lib->vba.ConfigReturnBufferSizeInKByte,
@@ -2545,7 +2543,6 @@ void dml32_ModeSupportAndSystemConfigurationFull(struct display_mode_lib *mode_l } dml32_CalculateSwathAndDETConfiguration( - &v->dummy_vars.dml32_CalculateSwathAndDETConfiguration, mode_lib->vba.DETSizeOverride, mode_lib->vba.UsesMALLForPStateChange, mode_lib->vba.ConfigReturnBufferSizeInKByte,
drivers/gpu/drm/amd/display/dc/dml/dcn32/display_mode_vba_util_32.c +64 -57
216 lines not on this page · raw message
drivers/gpu/drm/amd/display/dc/dml/dcn32/display_mode_vba_util_32.h +0 -2
@@ -30,7 +30,6 @@#include "os_types.h" #include "../dc_features.h" #include "../display_mode_structs.h" -#include "dml/display_mode_vba.h" unsigned int dml32_dscceComputeDelay( unsigned int bpc,
@@ -82,7 +81,6 @@ void dml32_CalculateSinglePipeDPPCLKAndSCLThroughput( double *DPPCLKUsingSingleDPP); void dml32_CalculateSwathAndDETConfiguration( - struct dml32_CalculateSwathAndDETConfiguration *st_vars, unsigned int DETSizeOverride[], enum dm_use_mall_for_pstate_change_mode UseMALLForPStateChange[], unsigned int ConfigReturnBufferSizeInKByte,
drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.h +0 -15
@@ -182,20 +182,6 @@ void Calculate256BBlockSizes(unsigned int *BlockWidth256BytesY, unsigned int *BlockWidth256BytesC); -struct dml32_CalculateSwathAndDETConfiguration { -unsigned int MaximumSwathHeightY[DC__NUM_DPP__MAX ]; -unsigned int MaximumSwathHeightC[DC__NUM_DPP__MAX ]; -unsigned int RoundedUpMaxSwathSizeBytesY[DC__NUM_DPP__MAX ]; -unsigned int RoundedUpMaxSwathSizeBytesC[DC__NUM_DPP__MAX ]; -unsigned int RoundedUpSwathSizeBytesY; -unsigned int RoundedUpSwathSizeBytesC; -double SwathWidthdoubleDPP[DC__NUM_DPP__MAX ]; -double SwathWidthdoubleDPPChroma[DC__NUM_DPP__MAX ]; -unsigned int TotalActiveDPP; -bool NoChromaSurfaces; -unsigned int DETBufferSizeInKByteForSwathCalculation; -}; -struct DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation {unsigned int dummy_integer_array[2 ][DC__NUM_DPP__MAX ];double dummy_single_array[2 ][DC__NUM_DPP__MAX ];
@@ -267,7 +253,6 @@ struct dummy_vars {struct DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation;struct dml32_ModeSupportAndSystemConfigurationFull dml32_ModeSupportAndSystemConfigurationFull; -struct dml32_CalculateSwathAndDETConfiguration dml32_CalculateSwathAndDETConfiguration; };struct vba_vars_st {
Signature · 1 line
2.35.1
Series is:
Quoted 39 lines · Rodrigo Siqueira
We had a stack size issue on DML, and we tried to fix it by moving some of the local variables to some of the DML struct. In this process of reducing the stack size, we sent some other patches that fixed the issue reported by Stephen, and the below set of patches become unnecessary:
987949933127 drm/amd/display: reduce stack for
dml32_CalculatePrefetchSchedule8f08cd32b767drm/amd/display: reduce stack fordml32_CalculateWatermarksMALLUseAndDRAMSpeedChangeSupport5d526d124fe3drm/amd/display: reduce stack fordml32_CalculateVMRowAndSwathf6ceebcc7825drm/amd/display: reduce stack fordml32_CalculateSwathAndDETConfigurationFor this reason, this patchset reverts all of the above patches.
Cc Aurabindo Pillai <[email protected]>Cc Stephen Rothwell <[email protected]>Cc Alex Deucher <[email protected]>Thanks
SiqueiraRodrigo Siqueira (4):
Revert "drm/amd/display: reduce stack for
dml32_CalculatePrefetchSchedule"
Revert "drm/amd/display: reduce stack for
dml32_CalculateWatermarksMALLUseAndDRAMSpeedChangeSupport"
Revert "drm/amd/display: reduce stack for
dml32_CalculateVMRowAndSwath"
Revert "drm/amd/display: reduce stack for
dml32_CalculateSwathAndDETConfiguration".../dc/dml/dcn32/display_mode_vba_32.c | 12 +- .../dc/dml/dcn32/display_mode_vba_util_32.c | 812 ++++++++++-------- .../dc/dml/dcn32/display_mode_vba_util_32.h | 5 - .../drm/amd/display/dc/dml/display_mode_vba.h | 106 --- 4 files changed, 441 insertions(+), 494 deletions(-)--
2.35.1
Quoted 2 lines · Alex Deucher
Series is:
Reviewed-by Alex Deucher <[email protected]>
Thanks Alex,
Patshet pushed to amd-staging-drm-next.
Best Regards
Siqueira
Quoted 42 lines
Quoted 39 lines · Rodrigo Siqueira
We had a stack size issue on DML, and we tried to fix it by moving some of the local variables to some of the DML struct. In this process of reducing the stack size, we sent some other patches that fixed the issue reported by Stephen, and the below set of patches become unnecessary:
987949933127 drm/amd/display: reduce stack for
dml32_CalculatePrefetchSchedule8f08cd32b767drm/amd/display: reduce stack fordml32_CalculateWatermarksMALLUseAndDRAMSpeedChangeSupport5d526d124fe3drm/amd/display: reduce stack fordml32_CalculateVMRowAndSwathf6ceebcc7825drm/amd/display: reduce stack fordml32_CalculateSwathAndDETConfigurationFor this reason, this patchset reverts all of the above patches.
Cc Aurabindo Pillai <[email protected]>Cc Stephen Rothwell <[email protected]>Cc Alex Deucher <[email protected]>Thanks
SiqueiraRodrigo Siqueira (4):
Revert "drm/amd/display: reduce stack for
dml32_CalculatePrefetchSchedule"
Revert "drm/amd/display: reduce stack for
dml32_CalculateWatermarksMALLUseAndDRAMSpeedChangeSupport"
Revert "drm/amd/display: reduce stack for
dml32_CalculateVMRowAndSwath"
Revert "drm/amd/display: reduce stack for
dml32_CalculateSwathAndDETConfiguration".../dc/dml/dcn32/display_mode_vba_32.c | 12 +- .../dc/dml/dcn32/display_mode_vba_util_32.c | 812 ++++++++++-------- .../dc/dml/dcn32/display_mode_vba_util_32.h | 5 - .../drm/amd/display/dc/dml/display_mode_vba.h | 106 --- 4 files changed, 441 insertions(+), 494 deletions(-)--
2.35.1