Home
last modified time | relevance | path

Searched refs:dml_max (Results 1 – 18 of 18) sorted by relevance

/linux-6.12.1/drivers/gpu/drm/amd/display/dc/dml/
Ddml_inline_defs.h47 static inline double dml_max(double a, double b) in dml_max() function
54 return dml_max(dml_max(a, b), c); in dml_max3()
59 return dml_max(dml_max(a, b), dml_max(c, d)); in dml_max4()
64 return dml_max(dml_max4(a, b, c, d), e); in dml_max5()
Ddml1_display_rq_dlg_calc.c1167 min_ttu_vblank = dml_max(dlg_sys_param->t_sr_wm_us, min_ttu_vblank); in dml1_rq_dlg_get_dlg_params()
1169 min_ttu_vblank = dml_max(dlg_sys_param->t_mclk_wm_us, min_ttu_vblank); in dml1_rq_dlg_get_dlg_params()
1305 line_wait = dml_max(mode_lib->soc.sr_enter_plus_exit_time_us, line_wait); in dml1_rq_dlg_get_dlg_params()
1307 line_wait = dml_max( in dml1_rq_dlg_get_dlg_params()
1366 max_vinit_l = interlaced ? dml_max(vinit_l, vinit_bot_l) : vinit_l; in dml1_rq_dlg_get_dlg_params()
1367 max_vinit_c = interlaced ? dml_max(vinit_c, vinit_bot_c) : vinit_c; in dml1_rq_dlg_get_dlg_params()
1411 t_vm_us = dml_max( in dml1_rq_dlg_get_dlg_params()
1413 dml_max((double) vm_bytes / prefetch_bw, t_vm_us)); in dml1_rq_dlg_get_dlg_params()
1416 t_vm_us = dml_max(mode_lib->soc.urgent_latency_us, t_vm_us); in dml1_rq_dlg_get_dlg_params()
1418 t_vm_us = dml_max(vm_bytes / flip_bw, t_vm_us); in dml1_rq_dlg_get_dlg_params()
[all …]
Ddisplay_mode_vba.c1130 double CalculateWriteBackDISPCLK = 1.01 * PixelClock * dml_max( in CalculateWriteBackDISPCLK()
1132dml_max((WritebackLumaVTaps * dml_ceil(1.0 / WritebackVRatio, 1) * dml_ceil(WritebackDestinationWi… in CalculateWriteBackDISPCLK()
1137 CalculateWriteBackDISPCLK = dml_max(CalculateWriteBackDISPCLK, 1.01 * PixelClock * dml_max( in CalculateWriteBackDISPCLK()
1139dml_max((WritebackChromaVTaps * dml_ceil(1 / (2 * WritebackVRatio), 1) * dml_ceil(WritebackDestina… in CalculateWriteBackDISPCLK()
/linux-6.12.1/drivers/gpu/drm/amd/display/dc/dml/dcn20/
Ddisplay_mode_vba_20.c551 *VReadyOffsetPix = dml_max( in CalculatePrefetchSchedule()
563 Tdm = dml_max(0.0, UrgentExtraLatency - TCalc); in CalculatePrefetchSchedule()
594 dst_y_prefetch_equ = VStartup - dml_max(TCalc + TWait, XFCRemoteSurfaceFlipDelay) / LineTime in CalculatePrefetchSchedule()
598 Tsw_oto = dml_max(PrefetchSourceLinesY, PrefetchSourceLinesC) * LineTime; in CalculatePrefetchSchedule()
607 dml_max( in CalculatePrefetchSchedule()
609 dml_max( in CalculatePrefetchSchedule()
619 Tr0_oto = dml_max( in CalculatePrefetchSchedule()
621 dml_max(UrgentLatencyPixelDataOnly, dml_max(LineTime - Tvm_oto, LineTime / 4))); in CalculatePrefetchSchedule()
663 dml_max( in CalculatePrefetchSchedule()
667 dml_max( in CalculatePrefetchSchedule()
[all …]
Ddisplay_mode_vba_20v2.c504 …mode_lib->vba.LastPixelOfLineExtraWatermark = dml_max(mode_lib->vba.LastPixelOfLineExtraWatermark,… in CalculateDelayAfterScaler()
508 …mode_lib->vba.LastPixelOfLineExtraWatermark = dml_max(mode_lib->vba.LastPixelOfLineExtraWatermark,… in CalculateDelayAfterScaler()
614 *VReadyOffsetPix = dml_max( in CalculatePrefetchSchedule()
626 Tdm = dml_max(0.0, UrgentExtraLatency - TCalc); in CalculatePrefetchSchedule()
654 dst_y_prefetch_equ = VStartup - dml_max(TCalc + TWait, XFCRemoteSurfaceFlipDelay) / LineTime in CalculatePrefetchSchedule()
658 Tsw_oto = dml_max(PrefetchSourceLinesY, PrefetchSourceLinesC) * LineTime; in CalculatePrefetchSchedule()
667 dml_max( in CalculatePrefetchSchedule()
669 dml_max( in CalculatePrefetchSchedule()
679 Tr0_oto = dml_max( in CalculatePrefetchSchedule()
681 dml_max(UrgentLatencyPixelDataOnly, dml_max(LineTime - Tvm_oto, LineTime / 4))); in CalculatePrefetchSchedule()
[all …]
Ddisplay_rq_dlg_calc_20.c1085 line_wait = dml_max(mode_lib->soc.sr_enter_plus_exit_time_us, line_wait); in dml20_rq_dlg_get_dlg_params()
1087 line_wait = dml_max(mode_lib->soc.dram_clock_change_latency_us in dml20_rq_dlg_get_dlg_params()
Ddisplay_rq_dlg_calc_20v2.c1086 line_wait = dml_max(mode_lib->soc.sr_enter_plus_exit_time_us, line_wait); in dml20v2_rq_dlg_get_dlg_params()
1088 line_wait = dml_max(mode_lib->soc.dram_clock_change_latency_us in dml20v2_rq_dlg_get_dlg_params()
/linux-6.12.1/drivers/gpu/drm/amd/display/dc/dml/dcn21/
Ddisplay_mode_vba_21.c760 *VReadyOffsetPix = dml_max( in CalculatePrefetchSchedule()
772 Tdm = dml_max(0.0, UrgentExtraLatency - TCalc); in CalculatePrefetchSchedule()
801 dst_y_prefetch_equ = VStartup - dml_max(TCalc + TWait, XFCRemoteSurfaceFlipDelay) / LineTime in CalculatePrefetchSchedule()
805 Tsw_oto = dml_max(PrefetchSourceLinesY, PrefetchSourceLinesC) * LineTime; in CalculatePrefetchSchedule()
821 Tvm_oto = dml_max(*Tno_bw + PDEAndMetaPTEBytesFrame * HostVMInefficiencyFactor / prefetch_bw_oto, in CalculatePrefetchSchedule()
822dml_max(UrgentExtraLatency + UrgentLatency * (GPUVMPageTableLevels * (HostVMDynamicLevels + 1) - 1… in CalculatePrefetchSchedule()
828 Tr0_oto = dml_max( in CalculatePrefetchSchedule()
830 dml_max(UrgentLatency * (HostVMDynamicLevels + 1), dml_max(LineTime - Tvm_oto, LineTime / 4))); in CalculatePrefetchSchedule()
912 …TimeForFetchingMetaPTE = dml_max(*Tno_bw + (double) PDEAndMetaPTEBytesFrame * HostVMInefficiencyFa… in CalculatePrefetchSchedule()
913dml_max(UrgentExtraLatency + UrgentLatency * (GPUVMPageTableLevels * (HostVMDynamicLevels + 1) - 1… in CalculatePrefetchSchedule()
[all …]
Ddisplay_rq_dlg_calc_21.c1132 line_wait = dml_max(mode_lib->soc.sr_enter_plus_exit_time_us, line_wait); in dml_rq_dlg_get_dlg_params()
1134 line_wait = dml_max( in dml_rq_dlg_get_dlg_params()
/linux-6.12.1/drivers/gpu/drm/amd/display/dc/dml/dcn30/
Ddisplay_mode_vba_30.c1003 dst_y_prefetch_equ = VStartup - (Tsetup + dml_max(TWait + TCalc, *Tdmdl)) / LineTime in CalculatePrefetchSchedule()
1006 Lsw_oto = dml_max(PrefetchSourceLinesY, PrefetchSourceLinesC); in CalculatePrefetchSchedule()
1200 *VRatioPrefetchY = dml_max(*VRatioPrefetchY, 1.0); in CalculatePrefetchSchedule()
1203 *VRatioPrefetchY = dml_max((double) PrefetchSourceLinesY / LinesToRequestPrefetchPixelData, in CalculatePrefetchSchedule()
1205 *VRatioPrefetchY = dml_max(*VRatioPrefetchY, 1.0); in CalculatePrefetchSchedule()
1214 *VRatioPrefetchC = dml_max(*VRatioPrefetchC, 1.0); in CalculatePrefetchSchedule()
1218 *VRatioPrefetchC = dml_max(*VRatioPrefetchC, in CalculatePrefetchSchedule()
1220 *VRatioPrefetchC = dml_max(*VRatioPrefetchC, 1.0); in CalculatePrefetchSchedule()
1278 *prefetch_vmrow_bw = dml_max(prefetch_vm_bw, prefetch_row_bw); in CalculatePrefetchSchedule()
1637 MaxPartialSwath = dml_max(1U, MaxPartialSwath); in CalculatePrefetchSourceLines()
[all …]
Ddisplay_rq_dlg_calc_30.c1239 line_wait = dml_max(mode_lib->soc.sr_enter_plus_exit_time_us, line_wait); in dml_rq_dlg_get_dlg_params()
1241 line_wait = dml_max(mode_lib->soc.dram_clock_change_latency_us in dml_rq_dlg_get_dlg_params()
/linux-6.12.1/drivers/gpu/drm/amd/display/dc/dml/dcn31/
Ddisplay_mode_vba_31.c1059 max_Tsw = dml_max(PrefetchSourceLinesY, PrefetchSourceLinesC) * LineTime;
1061 prefetch_bw_oto = dml_max(prefetch_bw_pr, prefetch_sw_bytes / max_Tsw);
1063 min_Lsw = dml_max(1, dml_max(PrefetchSourceLinesY, PrefetchSourceLinesC) / max_vratio_pre);
1064 Lsw_oto = dml_ceil(4 * dml_max(prefetch_sw_bytes / prefetch_bw_oto / LineTime, min_Lsw), 1) / 4;
1107 …dst_y_prefetch_equ = VStartup - (*TSetup + dml_max(TWait + TCalc, *Tdmdl)) / LineTime - (*DSTYAft…
1111 …dep_bytes = dml_max(PDEAndMetaPTEBytesFrame * HostVMInefficiencyFactor, MetaRowByte + PixelPTEByte…
1306 *VRatioPrefetchY = dml_max(*VRatioPrefetchY, 1.0);
1314 *VRatioPrefetchY = dml_max(
1317 *VRatioPrefetchY = dml_max(*VRatioPrefetchY, 1.0);
1331 *VRatioPrefetchC = dml_max(*VRatioPrefetchC, 1.0);
[all …]
/linux-6.12.1/drivers/gpu/drm/amd/display/dc/dml/dcn314/
Ddisplay_mode_vba_314.c1077 max_Tsw = dml_max(PrefetchSourceLinesY, PrefetchSourceLinesC) * LineTime;
1079 prefetch_bw_oto = dml_max(prefetch_bw_pr, prefetch_sw_bytes / max_Tsw);
1081 min_Lsw = dml_max(1, dml_max(PrefetchSourceLinesY, PrefetchSourceLinesC) / max_vratio_pre);
1082 Lsw_oto = dml_ceil(4 * dml_max(prefetch_sw_bytes / prefetch_bw_oto / LineTime, min_Lsw), 1) / 4;
1125 …dst_y_prefetch_equ = VStartup - (*TSetup + dml_max(TWait + TCalc, *Tdmdl)) / LineTime - (*DSTYAft…
1129 …dep_bytes = dml_max(PDEAndMetaPTEBytesFrame * HostVMInefficiencyFactor, MetaRowByte + PixelPTEByte…
1324 *VRatioPrefetchY = dml_max(*VRatioPrefetchY, 1.0);
1332 *VRatioPrefetchY = dml_max(
1335 *VRatioPrefetchY = dml_max(*VRatioPrefetchY, 1.0);
1349 *VRatioPrefetchC = dml_max(*VRatioPrefetchC, 1.0);
[all …]
/linux-6.12.1/drivers/gpu/drm/amd/display/dc/dml/dcn32/
Ddisplay_mode_vba_util_32.c248 *DPPCLKUsingSingleDPP = dml_max(DPPCLKUsingSingleDPPLuma, DPPCLKUsingSingleDPPChroma); in dml32_CalculateSinglePipeDPPCLKAndSCLThroughput()
957 DETBufferSizeInKByte[0] = dml_max(nomDETInKByte, dml_ceil(2.0 * in dml32_CalculateDETBufferSize()
994 minDET_pipe = dml_max(128, dml_ceil(((double)RoundedUpMaxSwathSizeBytesY[k] + in dml32_CalculateDETBufferSize()
1566 *GlobalDPPCLK = dml_max(*GlobalDPPCLK, Dppclk[k]); in dml32_CalculateDPPCLK()
1701 return dml_max(PixelClock / 4.0 * OutputBpp / 24.0, 25.0); in dml32_RequiredDTBCLK()
2317 HostVMDynamicLevels = dml_max(0, (int) HostVMMaxNonCachedPageTableLevels - 1); in dml32_CalculateVMAndRowBytes()
2319 HostVMDynamicLevels = dml_max(0, (int) HostVMMaxNonCachedPageTableLevels - 2); in dml32_CalculateVMAndRowBytes()
2583 MaxPartialSwath = dml_max(1, (unsigned int) (vp_start_rot + *VInitPreFill - 1) % SwathHeight); in dml32_CalculatePrefetchSourceLines()
2587 MaxPartialSwath = dml_max(1, (unsigned int) (*VInitPreFill - 2) % SwathHeight); in dml32_CalculatePrefetchSourceLines()
2589 MaxPartialSwath = dml_max(1, (unsigned int) (*VInitPreFill + SwathHeight - 2) % SwathHeight); in dml32_CalculatePrefetchSourceLines()
[all …]
Ddisplay_mode_vba_32.c87 v->WritebackDISPCLK = dml_max(v->WritebackDISPCLK, in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
105 v->DISPCLK_calculated = dml_max(v->DISPCLK_calculated, in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
618 dml_max(v->WritebackDelay[mode_lib->vba.VoltageLevel][k], in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
699 mode_lib->vba.VTotal[k] - mode_lib->vba.VActive[k]) - dml_max(1.0, in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
717 v->MaximumMaxVStartupLines = dml_max(v->MaximumMaxVStartupLines, v->MaxVStartupLines[k]); in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1237 v->WritebackAllowDRAMClockChangeEndPosition[k] = dml_max(0, in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1240 v->WritebackAllowFCLKChangeEndPosition[k] = dml_max(0, in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1377 v->MinTTUVBlank[k] = dml_max(v->Watermark.StutterEnterPlusExitWatermark, in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1445 + dml_max(1.0, in DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation()
1939 * dml_max(mode_lib->vba.HRatio[k], 1.0) / mode_lib->vba.LBBitPerPixel[k] in dml32_ModeSupportAndSystemConfigurationFull()
[all …]
/linux-6.12.1/drivers/gpu/drm/amd/display/dc/dml2/
Ddisplay_mode_util.c146 dml_float_t dml_max(dml_float_t x, dml_float_t y) in dml_max() function
159 return dml_max(dml_max(x, y), z); in dml_max3()
163 return dml_max(dml_max(a, b), dml_max(c, d)); in dml_max4()
167 return dml_max(dml_max4(a, b, c, d), e); in dml_max5()
Ddisplay_mode_util.h43 __DML_DLL_EXPORT__ dml_float_t dml_max(dml_float_t x, dml_float_t y);
Ddisplay_mode_core.c1175 s->Tvm_trips_rounded = dml_max(s->Tvm_trips_rounded, s->LineTime / 4.0); in CalculatePrefetchSchedule()
1176 s->Tr0_trips_rounded = dml_max(s->Tr0_trips_rounded, s->LineTime / 4.0); in CalculatePrefetchSchedule()
1188 s->max_Tsw = (dml_max(p->PrefetchSourceLinesY, p->PrefetchSourceLinesC) * s->LineTime); in CalculatePrefetchSchedule()
1191 s->prefetch_bw_oto = dml_max(s->prefetch_bw_pr, s->prefetch_sw_bytes / s->max_Tsw); in CalculatePrefetchSchedule()
1193 …s->min_Lsw_oto = dml_max(p->PrefetchSourceLinesY, p->PrefetchSourceLinesC) / __DML_MAX_VRATIO_PRE_… in CalculatePrefetchSchedule()
1194 s->min_Lsw_oto = dml_max(s->min_Lsw_oto, 1.0); in CalculatePrefetchSchedule()
1195 …s->Lsw_oto = dml_ceil(4.0 * dml_max(s->prefetch_sw_bytes / s->prefetch_bw_oto / s->LineTime, s->mi… in CalculatePrefetchSchedule()
1224 …s->dst_y_prefetch_equ = p->VStartup - (*p->TSetup + dml_max(p->TWait + p->TCalc, *p->Tdmdl)) / s->… in CalculatePrefetchSchedule()
1275 …s->dep_bytes = dml_max(p->PDEAndMetaPTEBytesFrame * p->HostVMInefficiencyFactor, p->MetaRowByte + … in CalculatePrefetchSchedule()
1444 *p->VRatioPrefetchY = dml_max(*p->VRatioPrefetchY, 1.0); in CalculatePrefetchSchedule()
[all …]