mode_lib 43 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c struct display_mode_lib *mode_lib, mode_lib 56 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c struct display_mode_lib *mode_lib, mode_lib 122 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c struct display_mode_lib *mode_lib, mode_lib 132 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c struct display_mode_lib *mode_lib, mode_lib 161 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c struct display_mode_lib *mode_lib, mode_lib 196 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c struct display_mode_lib *mode_lib, mode_lib 229 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c static void dml20_DisplayPipeConfiguration(struct display_mode_lib *mode_lib); mode_lib 231 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c struct display_mode_lib *mode_lib); mode_lib 233 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c void dml20_recalculate(struct display_mode_lib *mode_lib) mode_lib 235 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c ModeSupportAndSystemConfiguration(mode_lib); mode_lib 236 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.FabricAndDRAMBandwidth = dml_min( mode_lib 237 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.DRAMSpeed * mode_lib->vba.NumberOfChannels * mode_lib->vba.DRAMChannelWidth, mode_lib 238 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.FabricClock * mode_lib->vba.FabricDatapathToDCNDataReturn) / 1000.0; mode_lib 239 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c PixelClockAdjustmentForProgressiveToInterlaceUnit(mode_lib); mode_lib 240 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c dml20_DisplayPipeConfiguration(mode_lib); mode_lib 241 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c dml20_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation(mode_lib); mode_lib 245 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c struct display_mode_lib *mode_lib, mode_lib 254 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c > mode_lib->vba.DCFCLK * mode_lib->vba.ReturnBusWidth / 4.0) mode_lib 260 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c - mode_lib->vba.UrgentLatencyPixelDataOnly mode_lib 261 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c / ((mode_lib->vba.ROBBufferSizeInKByte mode_lib 262 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c - mode_lib->vba.PixelChunkSizeInKByte) mode_lib 265 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c - mode_lib->vba.DCFCLK mode_lib 266 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c * mode_lib->vba.ReturnBusWidth mode_lib 268 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c + mode_lib->vba.UrgentLatencyPixelDataOnly)); mode_lib 270 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c CriticalCompression = 2.0 * mode_lib->vba.ReturnBusWidth * mode_lib->vba.DCFCLK mode_lib 271 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c * mode_lib->vba.UrgentLatencyPixelDataOnly mode_lib 272 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c / (ReturnBandwidthToDCN * mode_lib->vba.UrgentLatencyPixelDataOnly mode_lib 273 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c + (mode_lib->vba.ROBBufferSizeInKByte mode_lib 274 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c - mode_lib->vba.PixelChunkSizeInKByte) mode_lib 282 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c * (mode_lib->vba.ROBBufferSizeInKByte mode_lib 283 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c - mode_lib->vba.PixelChunkSizeInKByte) mode_lib 285 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c * mode_lib->vba.ReturnBusWidth mode_lib 286 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c * mode_lib->vba.DCFCLK mode_lib 287 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c * mode_lib->vba.UrgentLatencyPixelDataOnly mode_lib 290 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c * mode_lib->vba.UrgentLatencyPixelDataOnly mode_lib 291 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c + (mode_lib->vba.ROBBufferSizeInKByte mode_lib 292 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c - mode_lib->vba.PixelChunkSizeInKByte) mode_lib 439 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c struct display_mode_lib *mode_lib, mode_lib 812 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c struct display_mode_lib *mode_lib, mode_lib 829 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c if (!mode_lib->vba.IgnoreViewportPositioning) { mode_lib 859 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c struct display_mode_lib *mode_lib, mode_lib 929 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c MPDEBytesFrame = 128 * (mode_lib->vba.GPUVMMaxPageTableLevels - 1); mode_lib 959 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c if (GPUVMEnable == true && mode_lib->vba.GPUVMMaxPageTableLevels > 1) { mode_lib 991 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c ExtraDPDEBytesFrame = 128 * (mode_lib->vba.GPUVMMaxPageTableLevels - 2); mode_lib 1085 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c struct display_mode_lib *mode_lib) mode_lib 1089 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.WritebackDISPCLK = 0.0; mode_lib 1090 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.DISPCLKWithRamping = 0; mode_lib 1091 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.DISPCLKWithoutRamping = 0; mode_lib 1092 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.GlobalDPPCLK = 0.0; mode_lib 1096 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) { mode_lib 1097 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c if (mode_lib->vba.WritebackEnable[k]) { mode_lib 1098 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.WritebackDISPCLK = mode_lib 1100 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.WritebackDISPCLK, mode_lib 1102 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.WritebackPixelFormat[k], mode_lib 1103 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.PixelClock[k], mode_lib 1104 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.WritebackHRatio[k], mode_lib 1105 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.WritebackVRatio[k], mode_lib 1106 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.WritebackLumaHTaps[k], mode_lib 1107 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.WritebackLumaVTaps[k], mode_lib 1108 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.WritebackChromaHTaps[k], mode_lib 1109 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.WritebackChromaVTaps[k], mode_lib 1110 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.WritebackDestinationWidth[k], mode_lib 1111 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.HTotal[k], mode_lib 1112 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.WritebackChromaLineBufferWidth)); mode_lib 1116 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) { mode_lib 1117 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c if (mode_lib->vba.HRatio[k] > 1) { mode_lib 1118 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.PSCL_THROUGHPUT_LUMA[k] = dml_min( mode_lib 1119 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.MaxDCHUBToPSCLThroughput, mode_lib 1120 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.MaxPSCLToLBThroughput mode_lib 1121 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c * mode_lib->vba.HRatio[k] mode_lib 1123 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.htaps[k] mode_lib 1127 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.PSCL_THROUGHPUT_LUMA[k] = dml_min( mode_lib 1128 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.MaxDCHUBToPSCLThroughput, mode_lib 1129 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.MaxPSCLToLBThroughput); mode_lib 1132 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.DPPCLKUsingSingleDPPLuma = mode_lib 1133 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.PixelClock[k] mode_lib 1135 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.vtaps[k] / 6.0 mode_lib 1138 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.HRatio[k]), mode_lib 1140 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.HRatio[k] mode_lib 1141 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c * mode_lib->vba.VRatio[k] mode_lib 1142 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c / mode_lib->vba.PSCL_THROUGHPUT_LUMA[k], mode_lib 1145 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c if ((mode_lib->vba.htaps[k] > 6 || mode_lib->vba.vtaps[k] > 6) mode_lib 1146 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c && mode_lib->vba.DPPCLKUsingSingleDPPLuma mode_lib 1147 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c < 2 * mode_lib->vba.PixelClock[k]) { mode_lib 1148 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.DPPCLKUsingSingleDPPLuma = 2 * mode_lib->vba.PixelClock[k]; mode_lib 1151 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c if ((mode_lib->vba.SourcePixelFormat[k] != dm_420_8 mode_lib 1152 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c && mode_lib->vba.SourcePixelFormat[k] != dm_420_10)) { mode_lib 1153 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.PSCL_THROUGHPUT_CHROMA[k] = 0.0; mode_lib 1154 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.DPPCLKUsingSingleDPP[k] = mode_lib 1155 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.DPPCLKUsingSingleDPPLuma; mode_lib 1157 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c if (mode_lib->vba.HRatio[k] > 1) { mode_lib 1158 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.PSCL_THROUGHPUT_CHROMA[k] = mode_lib 1160 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.MaxDCHUBToPSCLThroughput, mode_lib 1161 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.MaxPSCLToLBThroughput mode_lib 1162 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c * mode_lib->vba.HRatio[k] mode_lib 1165 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.HTAPsChroma[k] mode_lib 1169 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.PSCL_THROUGHPUT_CHROMA[k] = dml_min( mode_lib 1170 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.MaxDCHUBToPSCLThroughput, mode_lib 1171 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.MaxPSCLToLBThroughput); mode_lib 1173 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.DPPCLKUsingSingleDPPChroma = mode_lib 1174 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.PixelClock[k] mode_lib 1176 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.VTAPsChroma[k] mode_lib 1180 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.HRatio[k] mode_lib 1183 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.HRatio[k] mode_lib 1184 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c * mode_lib->vba.VRatio[k] mode_lib 1186 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c / mode_lib->vba.PSCL_THROUGHPUT_CHROMA[k], mode_lib 1189 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c if ((mode_lib->vba.HTAPsChroma[k] > 6 || mode_lib->vba.VTAPsChroma[k] > 6) mode_lib 1190 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c && mode_lib->vba.DPPCLKUsingSingleDPPChroma mode_lib 1191 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c < 2 * mode_lib->vba.PixelClock[k]) { mode_lib 1192 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.DPPCLKUsingSingleDPPChroma = 2 mode_lib 1193 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c * mode_lib->vba.PixelClock[k]; mode_lib 1196 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.DPPCLKUsingSingleDPP[k] = dml_max( mode_lib 1197 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.DPPCLKUsingSingleDPPLuma, mode_lib 1198 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.DPPCLKUsingSingleDPPChroma); mode_lib 1202 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) { mode_lib 1203 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c if (mode_lib->vba.BlendingAndTiming[k] != k) mode_lib 1205 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c if (mode_lib->vba.ODMCombineEnabled[k]) { mode_lib 1206 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.DISPCLKWithRamping = mode_lib 1208 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.DISPCLKWithRamping, mode_lib 1209 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.PixelClock[k] / 2 mode_lib 1211 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c + mode_lib->vba.DISPCLKDPPCLKDSCCLKDownSpreading mode_lib 1214 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c + mode_lib->vba.DISPCLKRampingMargin mode_lib 1216 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.DISPCLKWithoutRamping = mode_lib 1218 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.DISPCLKWithoutRamping, mode_lib 1219 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.PixelClock[k] / 2 mode_lib 1221 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c + mode_lib->vba.DISPCLKDPPCLKDSCCLKDownSpreading mode_lib 1223 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c } else if (!mode_lib->vba.ODMCombineEnabled[k]) { mode_lib 1224 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.DISPCLKWithRamping = mode_lib 1226 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.DISPCLKWithRamping, mode_lib 1227 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.PixelClock[k] mode_lib 1229 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c + mode_lib->vba.DISPCLKDPPCLKDSCCLKDownSpreading mode_lib 1232 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c + mode_lib->vba.DISPCLKRampingMargin mode_lib 1234 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.DISPCLKWithoutRamping = mode_lib 1236 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.DISPCLKWithoutRamping, mode_lib 1237 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.PixelClock[k] mode_lib 1239 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c + mode_lib->vba.DISPCLKDPPCLKDSCCLKDownSpreading mode_lib 1244 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.DISPCLKWithRamping = dml_max( mode_lib 1245 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.DISPCLKWithRamping, mode_lib 1246 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.WritebackDISPCLK); mode_lib 1247 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.DISPCLKWithoutRamping = dml_max( mode_lib 1248 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.DISPCLKWithoutRamping, mode_lib 1249 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.WritebackDISPCLK); mode_lib 1251 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c ASSERT(mode_lib->vba.DISPCLKDPPCLKVCOSpeed != 0); mode_lib 1252 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.DISPCLKWithRampingRoundedToDFSGranularity = RoundToDFSGranularityUp( mode_lib 1253 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.DISPCLKWithRamping, mode_lib 1254 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.DISPCLKDPPCLKVCOSpeed); mode_lib 1255 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.DISPCLKWithoutRampingRoundedToDFSGranularity = RoundToDFSGranularityUp( mode_lib 1256 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.DISPCLKWithoutRamping, mode_lib 1257 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.DISPCLKDPPCLKVCOSpeed); mode_lib 1258 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.MaxDispclkRoundedToDFSGranularity = RoundToDFSGranularityDown( mode_lib 1259 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.soc.clock_limits[mode_lib->vba.soc.num_states].dispclk_mhz, mode_lib 1260 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.DISPCLKDPPCLKVCOSpeed); mode_lib 1261 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c if (mode_lib->vba.DISPCLKWithoutRampingRoundedToDFSGranularity mode_lib 1262 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c > mode_lib->vba.MaxDispclkRoundedToDFSGranularity) { mode_lib 1263 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.DISPCLK_calculated = mode_lib 1264 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.DISPCLKWithoutRampingRoundedToDFSGranularity; mode_lib 1265 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c } else if (mode_lib->vba.DISPCLKWithRampingRoundedToDFSGranularity mode_lib 1266 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c > mode_lib->vba.MaxDispclkRoundedToDFSGranularity) { mode_lib 1267 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.DISPCLK_calculated = mode_lib->vba.MaxDispclkRoundedToDFSGranularity; mode_lib 1269 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.DISPCLK_calculated = mode_lib 1270 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.DISPCLKWithRampingRoundedToDFSGranularity; mode_lib 1272 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c DTRACE(" dispclk_mhz (calculated) = %f", mode_lib->vba.DISPCLK_calculated); mode_lib 1274 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) { mode_lib 1275 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c if (mode_lib->vba.DPPPerPlane[k] == 0) { mode_lib 1276 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.DPPCLK_calculated[k] = 0; mode_lib 1278 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.DPPCLK_calculated[k] = mode_lib->vba.DPPCLKUsingSingleDPP[k] mode_lib 1279 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c / mode_lib->vba.DPPPerPlane[k] mode_lib 1280 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c * (1 + mode_lib->vba.DISPCLKDPPCLKDSCCLKDownSpreading / 100); mode_lib 1282 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.GlobalDPPCLK = dml_max( mode_lib 1283 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.GlobalDPPCLK, mode_lib 1284 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.DPPCLK_calculated[k]); mode_lib 1286 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.GlobalDPPCLK = RoundToDFSGranularityUp( mode_lib 1287 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.GlobalDPPCLK, mode_lib 1288 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.DISPCLKDPPCLKVCOSpeed); mode_lib 1289 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) { mode_lib 1290 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.DPPCLK_calculated[k] = mode_lib->vba.GlobalDPPCLK / 255 mode_lib 1292 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.DPPCLK_calculated[k] * 255 mode_lib 1293 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c / mode_lib->vba.GlobalDPPCLK, mode_lib 1295 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c DTRACE(" dppclk_mhz[%i] (calculated) = %f", k, mode_lib->vba.DPPCLK_calculated[k]); mode_lib 1299 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.DCCEnabledAnyPlane = false; mode_lib 1300 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) mode_lib 1301 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c if (mode_lib->vba.DCCEnable[k]) mode_lib 1302 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.DCCEnabledAnyPlane = true; mode_lib 1304 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.ReturnBandwidthToDCN = dml_min( mode_lib 1305 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.ReturnBusWidth * mode_lib->vba.DCFCLK, mode_lib 1306 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.FabricAndDRAMBandwidth * 1000) mode_lib 1307 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c * mode_lib->vba.PercentOfIdealDRAMFabricAndSDPPortBWReceivedAfterUrgLatencyPixelDataOnly / 100; mode_lib 1309 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.ReturnBW = mode_lib->vba.ReturnBandwidthToDCN; mode_lib 1310 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.ReturnBW = adjust_ReturnBW( mode_lib 1311 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib, mode_lib 1312 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.ReturnBW, mode_lib 1313 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.DCCEnabledAnyPlane, mode_lib 1314 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.ReturnBandwidthToDCN); mode_lib 1317 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.ReturnBandwidthToDCN = dml_min( mode_lib 1318 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.ReturnBusWidth * mode_lib->vba.DCFCLK, mode_lib 1319 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.FabricAndDRAMBandwidth * 1000); mode_lib 1320 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.ReturnBW = adjust_ReturnBW( mode_lib 1321 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib, mode_lib 1322 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.ReturnBW, mode_lib 1323 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.DCCEnabledAnyPlane, mode_lib 1324 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.ReturnBandwidthToDCN); mode_lib 1326 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c DTRACE(" dcfclk_mhz = %f", mode_lib->vba.DCFCLK); mode_lib 1327 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c DTRACE(" return_bw_to_dcn = %f", mode_lib->vba.ReturnBandwidthToDCN); mode_lib 1328 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c DTRACE(" return_bus_bw = %f", mode_lib->vba.ReturnBW); mode_lib 1330 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) { mode_lib 1333 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c if (mode_lib->vba.SourceScan[k] == dm_horz) mode_lib 1334 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.SwathWidthSingleDPPY[k] = mode_lib->vba.ViewportWidth[k]; mode_lib 1336 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.SwathWidthSingleDPPY[k] = mode_lib->vba.ViewportHeight[k]; mode_lib 1338 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c if (mode_lib->vba.ODMCombineEnabled[k] == true) mode_lib 1340 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c for (j = 0; j < mode_lib->vba.NumberOfActivePlanes; ++j) mode_lib 1341 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c if (mode_lib->vba.BlendingAndTiming[k] == j mode_lib 1342 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c && mode_lib->vba.ODMCombineEnabled[j] == true) mode_lib 1346 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.SwathWidthY[k] = dml_min( mode_lib 1347 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c (double) mode_lib->vba.SwathWidthSingleDPPY[k], mode_lib 1349 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.HActive[k] / 2.0 mode_lib 1350 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c * mode_lib->vba.HRatio[k])); mode_lib 1352 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c if (mode_lib->vba.DPPPerPlane[k] == 0) { mode_lib 1353 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.SwathWidthY[k] = 0; mode_lib 1355 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.SwathWidthY[k] = mode_lib->vba.SwathWidthSingleDPPY[k] mode_lib 1356 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c / mode_lib->vba.DPPPerPlane[k]; mode_lib 1361 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) { mode_lib 1362 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c if (mode_lib->vba.SourcePixelFormat[k] == dm_444_64) { mode_lib 1363 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.BytePerPixelDETY[k] = 8; mode_lib 1364 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.BytePerPixelDETC[k] = 0; mode_lib 1365 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c } else if (mode_lib->vba.SourcePixelFormat[k] == dm_444_32) { mode_lib 1366 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.BytePerPixelDETY[k] = 4; mode_lib 1367 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.BytePerPixelDETC[k] = 0; mode_lib 1368 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c } else if (mode_lib->vba.SourcePixelFormat[k] == dm_444_16) { mode_lib 1369 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.BytePerPixelDETY[k] = 2; mode_lib 1370 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.BytePerPixelDETC[k] = 0; mode_lib 1371 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c } else if (mode_lib->vba.SourcePixelFormat[k] == dm_444_8) { mode_lib 1372 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.BytePerPixelDETY[k] = 1; mode_lib 1373 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.BytePerPixelDETC[k] = 0; mode_lib 1374 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c } else if (mode_lib->vba.SourcePixelFormat[k] == dm_420_8) { mode_lib 1375 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.BytePerPixelDETY[k] = 1; mode_lib 1376 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.BytePerPixelDETC[k] = 2; mode_lib 1378 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.BytePerPixelDETY[k] = 4.0 / 3.0; mode_lib 1379 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.BytePerPixelDETC[k] = 8.0 / 3.0; mode_lib 1383 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.TotalDataReadBandwidth = 0.0; mode_lib 1384 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) { mode_lib 1385 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.ReadBandwidthPlaneLuma[k] = mode_lib->vba.SwathWidthSingleDPPY[k] mode_lib 1386 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c * dml_ceil(mode_lib->vba.BytePerPixelDETY[k], 1) mode_lib 1387 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c / (mode_lib->vba.HTotal[k] / mode_lib->vba.PixelClock[k]) mode_lib 1388 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c * mode_lib->vba.VRatio[k]; mode_lib 1389 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.ReadBandwidthPlaneChroma[k] = mode_lib->vba.SwathWidthSingleDPPY[k] mode_lib 1390 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c / 2 * dml_ceil(mode_lib->vba.BytePerPixelDETC[k], 2) mode_lib 1391 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c / (mode_lib->vba.HTotal[k] / mode_lib->vba.PixelClock[k]) mode_lib 1392 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c * mode_lib->vba.VRatio[k] / 2; mode_lib 1396 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.ReadBandwidthPlaneLuma[k] mode_lib 1397 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c + mode_lib->vba.ReadBandwidthPlaneChroma[k]); mode_lib 1398 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.TotalDataReadBandwidth += mode_lib->vba.ReadBandwidthPlaneLuma[k] mode_lib 1399 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c + mode_lib->vba.ReadBandwidthPlaneChroma[k]; mode_lib 1402 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.TotalDCCActiveDPP = 0; mode_lib 1403 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.TotalActiveDPP = 0; mode_lib 1404 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) { mode_lib 1405 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.TotalActiveDPP = mode_lib->vba.TotalActiveDPP mode_lib 1406 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c + mode_lib->vba.DPPPerPlane[k]; mode_lib 1407 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c if (mode_lib->vba.DCCEnable[k]) mode_lib 1408 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.TotalDCCActiveDPP = mode_lib->vba.TotalDCCActiveDPP mode_lib 1409 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c + mode_lib->vba.DPPPerPlane[k]; mode_lib 1412 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.UrgentRoundTripAndOutOfOrderLatency = mode_lib 1413 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c (mode_lib->vba.RoundTripPingLatencyCycles + 32) / mode_lib->vba.DCFCLK mode_lib 1414 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c + mode_lib->vba.UrgentOutOfOrderReturnPerChannelPixelDataOnly mode_lib 1415 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c * mode_lib->vba.NumberOfChannels mode_lib 1416 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c / mode_lib->vba.ReturnBW; mode_lib 1418 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.LastPixelOfLineExtraWatermark = 0; mode_lib 1419 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) { mode_lib 1422 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c if (mode_lib->vba.VRatio[k] <= 1.0) mode_lib 1423 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.DisplayPipeLineDeliveryTimeLuma[k] = mode_lib 1424 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c (double) mode_lib->vba.SwathWidthY[k] mode_lib 1425 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c * mode_lib->vba.DPPPerPlane[k] mode_lib 1426 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c / mode_lib->vba.HRatio[k] mode_lib 1427 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c / mode_lib->vba.PixelClock[k]; mode_lib 1429 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.DisplayPipeLineDeliveryTimeLuma[k] = mode_lib 1430 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c (double) mode_lib->vba.SwathWidthY[k] mode_lib 1431 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c / mode_lib->vba.PSCL_THROUGHPUT_LUMA[k] mode_lib 1432 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c / mode_lib->vba.DPPCLK[k]; mode_lib 1434 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c DataFabricLineDeliveryTimeLuma = mode_lib->vba.SwathWidthSingleDPPY[k] mode_lib 1435 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c * mode_lib->vba.SwathHeightY[k] mode_lib 1436 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c * dml_ceil(mode_lib->vba.BytePerPixelDETY[k], 1) mode_lib 1437 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c / (mode_lib->vba.ReturnBW * mode_lib->vba.ReadBandwidthPlaneLuma[k] mode_lib 1438 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c / mode_lib->vba.TotalDataReadBandwidth); mode_lib 1439 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.LastPixelOfLineExtraWatermark = dml_max( mode_lib 1440 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.LastPixelOfLineExtraWatermark, mode_lib 1442 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c - mode_lib->vba.DisplayPipeLineDeliveryTimeLuma[k]); mode_lib 1444 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c if (mode_lib->vba.BytePerPixelDETC[k] == 0) mode_lib 1445 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.DisplayPipeLineDeliveryTimeChroma[k] = 0.0; mode_lib 1446 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c else if (mode_lib->vba.VRatio[k] / 2.0 <= 1.0) mode_lib 1447 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.DisplayPipeLineDeliveryTimeChroma[k] = mode_lib 1448 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.SwathWidthY[k] / 2.0 mode_lib 1449 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c * mode_lib->vba.DPPPerPlane[k] mode_lib 1450 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c / (mode_lib->vba.HRatio[k] / 2.0) mode_lib 1451 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c / mode_lib->vba.PixelClock[k]; mode_lib 1453 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.DisplayPipeLineDeliveryTimeChroma[k] = mode_lib 1454 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.SwathWidthY[k] / 2.0 mode_lib 1455 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c / mode_lib->vba.PSCL_THROUGHPUT_CHROMA[k] mode_lib 1456 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c / mode_lib->vba.DPPCLK[k]; mode_lib 1458 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c DataFabricLineDeliveryTimeChroma = mode_lib->vba.SwathWidthSingleDPPY[k] / 2.0 mode_lib 1459 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c * mode_lib->vba.SwathHeightC[k] mode_lib 1460 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c * dml_ceil(mode_lib->vba.BytePerPixelDETC[k], 2) mode_lib 1461 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c / (mode_lib->vba.ReturnBW mode_lib 1462 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c * mode_lib->vba.ReadBandwidthPlaneChroma[k] mode_lib 1463 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c / mode_lib->vba.TotalDataReadBandwidth); mode_lib 1464 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.LastPixelOfLineExtraWatermark = mode_lib 1466 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.LastPixelOfLineExtraWatermark, mode_lib 1468 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c - mode_lib->vba.DisplayPipeLineDeliveryTimeChroma[k]); mode_lib 1471 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.UrgentExtraLatency = mode_lib->vba.UrgentRoundTripAndOutOfOrderLatency mode_lib 1472 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c + (mode_lib->vba.TotalActiveDPP * mode_lib->vba.PixelChunkSizeInKByte mode_lib 1473 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c + mode_lib->vba.TotalDCCActiveDPP mode_lib 1474 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c * mode_lib->vba.MetaChunkSize) * 1024.0 mode_lib 1475 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c / mode_lib->vba.ReturnBW; mode_lib 1477 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c if (mode_lib->vba.GPUVMEnable) mode_lib 1478 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.UrgentExtraLatency += mode_lib->vba.TotalActiveDPP mode_lib 1479 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c * mode_lib->vba.PTEGroupSize / mode_lib->vba.ReturnBW; mode_lib 1481 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.UrgentWatermark = mode_lib->vba.UrgentLatencyPixelDataOnly mode_lib 1482 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c + mode_lib->vba.LastPixelOfLineExtraWatermark mode_lib 1483 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c + mode_lib->vba.UrgentExtraLatency; mode_lib 1485 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c DTRACE(" urgent_extra_latency = %fus", mode_lib->vba.UrgentExtraLatency); mode_lib 1486 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c DTRACE(" wm_urgent = %fus", mode_lib->vba.UrgentWatermark); mode_lib 1488 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.UrgentLatency = mode_lib->vba.UrgentLatencyPixelDataOnly; mode_lib 1490 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.TotalActiveWriteback = 0; mode_lib 1491 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) { mode_lib 1492 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c if (mode_lib->vba.WritebackEnable[k]) mode_lib 1493 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.TotalActiveWriteback = mode_lib->vba.TotalActiveWriteback + mode_lib->vba.ActiveWritebacksPerPlane[k]; mode_lib 1496 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c if (mode_lib->vba.TotalActiveWriteback <= 1) mode_lib 1497 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.WritebackUrgentWatermark = mode_lib->vba.WritebackLatency; mode_lib 1499 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.WritebackUrgentWatermark = mode_lib->vba.WritebackLatency mode_lib 1500 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c + mode_lib->vba.WritebackChunkSize * 1024.0 / 32 mode_lib 1501 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c / mode_lib->vba.SOCCLK; mode_lib 1503 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c DTRACE(" wm_wb_urgent = %fus", mode_lib->vba.WritebackUrgentWatermark); mode_lib 1506 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.DRAMClockChangeWatermark = mode_lib->vba.DRAMClockChangeLatency mode_lib 1507 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c + mode_lib->vba.UrgentWatermark; mode_lib 1509 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c DTRACE(" wm_pstate_change = %fus", mode_lib->vba.DRAMClockChangeWatermark); mode_lib 1512 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c DTRACE(" total wb outputs %d", mode_lib->vba.TotalActiveWriteback); mode_lib 1513 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c DTRACE(" socclk frequency %f Mhz", mode_lib->vba.SOCCLK); mode_lib 1515 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c if (mode_lib->vba.TotalActiveWriteback <= 1) mode_lib 1516 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.WritebackDRAMClockChangeWatermark = mode_lib 1517 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.DRAMClockChangeLatency mode_lib 1518 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c + mode_lib->vba.WritebackLatency; mode_lib 1520 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.WritebackDRAMClockChangeWatermark = mode_lib 1521 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.DRAMClockChangeLatency mode_lib 1522 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c + mode_lib->vba.WritebackLatency mode_lib 1523 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c + mode_lib->vba.WritebackChunkSize * 1024.0 / 32 mode_lib 1524 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c / mode_lib->vba.SOCCLK; mode_lib 1526 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c DTRACE(" wm_wb_pstate %fus", mode_lib->vba.WritebackDRAMClockChangeWatermark); mode_lib 1529 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) { mode_lib 1530 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.LinesInDETY[k] = mode_lib->vba.DETBufferSizeY[k] mode_lib 1531 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c / mode_lib->vba.BytePerPixelDETY[k] / mode_lib->vba.SwathWidthY[k]; mode_lib 1532 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.LinesInDETYRoundedDownToSwath[k] = dml_floor( mode_lib 1533 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.LinesInDETY[k], mode_lib 1534 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.SwathHeightY[k]); mode_lib 1535 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.FullDETBufferingTimeY[k] = mode_lib 1536 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.LinesInDETYRoundedDownToSwath[k] mode_lib 1537 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c * (mode_lib->vba.HTotal[k] mode_lib 1538 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c / mode_lib->vba.PixelClock[k]) mode_lib 1539 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c / mode_lib->vba.VRatio[k]; mode_lib 1540 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c if (mode_lib->vba.BytePerPixelDETC[k] > 0) { mode_lib 1541 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.LinesInDETC[k] = mode_lib->vba.DETBufferSizeC[k] mode_lib 1542 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c / mode_lib->vba.BytePerPixelDETC[k] mode_lib 1543 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c / (mode_lib->vba.SwathWidthY[k] / 2); mode_lib 1544 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.LinesInDETCRoundedDownToSwath[k] = dml_floor( mode_lib 1545 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.LinesInDETC[k], mode_lib 1546 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.SwathHeightC[k]); mode_lib 1547 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.FullDETBufferingTimeC[k] = mode_lib 1548 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.LinesInDETCRoundedDownToSwath[k] mode_lib 1549 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c * (mode_lib->vba.HTotal[k] mode_lib 1550 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c / mode_lib->vba.PixelClock[k]) mode_lib 1551 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c / (mode_lib->vba.VRatio[k] / 2); mode_lib 1553 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.LinesInDETC[k] = 0; mode_lib 1554 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.LinesInDETCRoundedDownToSwath[k] = 0; mode_lib 1555 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.FullDETBufferingTimeC[k] = 999999; mode_lib 1559 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.MinFullDETBufferingTime = 999999.0; mode_lib 1560 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) { mode_lib 1561 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c if (mode_lib->vba.FullDETBufferingTimeY[k] mode_lib 1562 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c < mode_lib->vba.MinFullDETBufferingTime) { mode_lib 1563 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.MinFullDETBufferingTime = mode_lib 1564 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.FullDETBufferingTimeY[k]; mode_lib 1565 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.FrameTimeForMinFullDETBufferingTime = mode_lib 1566 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c (double) mode_lib->vba.VTotal[k] * mode_lib->vba.HTotal[k] mode_lib 1567 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c / mode_lib->vba.PixelClock[k]; mode_lib 1569 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c if (mode_lib->vba.FullDETBufferingTimeC[k] mode_lib 1570 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c < mode_lib->vba.MinFullDETBufferingTime) { mode_lib 1571 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.MinFullDETBufferingTime = mode_lib 1572 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.FullDETBufferingTimeC[k]; mode_lib 1573 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.FrameTimeForMinFullDETBufferingTime = mode_lib 1574 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c (double) mode_lib->vba.VTotal[k] * mode_lib->vba.HTotal[k] mode_lib 1575 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c / mode_lib->vba.PixelClock[k]; mode_lib 1579 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.AverageReadBandwidthGBytePerSecond = 0.0; mode_lib 1580 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) { mode_lib 1581 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c if (mode_lib->vba.DCCEnable[k]) { mode_lib 1582 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.AverageReadBandwidthGBytePerSecond = mode_lib 1583 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.AverageReadBandwidthGBytePerSecond mode_lib 1584 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c + mode_lib->vba.ReadBandwidthPlaneLuma[k] mode_lib 1585 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c / mode_lib->vba.DCCRate[k] mode_lib 1587 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c + mode_lib->vba.ReadBandwidthPlaneChroma[k] mode_lib 1588 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c / mode_lib->vba.DCCRate[k] mode_lib 1591 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.AverageReadBandwidthGBytePerSecond = mode_lib 1592 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.AverageReadBandwidthGBytePerSecond mode_lib 1593 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c + mode_lib->vba.ReadBandwidthPlaneLuma[k] mode_lib 1595 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c + mode_lib->vba.ReadBandwidthPlaneChroma[k] mode_lib 1598 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c if (mode_lib->vba.DCCEnable[k]) { mode_lib 1599 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.AverageReadBandwidthGBytePerSecond = mode_lib 1600 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.AverageReadBandwidthGBytePerSecond mode_lib 1601 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c + mode_lib->vba.ReadBandwidthPlaneLuma[k] mode_lib 1603 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c + mode_lib->vba.ReadBandwidthPlaneChroma[k] mode_lib 1606 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c if (mode_lib->vba.GPUVMEnable) { mode_lib 1607 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.AverageReadBandwidthGBytePerSecond = mode_lib 1608 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.AverageReadBandwidthGBytePerSecond mode_lib 1609 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c + mode_lib->vba.ReadBandwidthPlaneLuma[k] mode_lib 1611 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c + mode_lib->vba.ReadBandwidthPlaneChroma[k] mode_lib 1616 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.PartOfBurstThatFitsInROB = mode_lib 1618 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.MinFullDETBufferingTime mode_lib 1619 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c * mode_lib->vba.TotalDataReadBandwidth, mode_lib 1620 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.ROBBufferSizeInKByte * 1024 mode_lib 1621 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c * mode_lib->vba.TotalDataReadBandwidth mode_lib 1622 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c / (mode_lib->vba.AverageReadBandwidthGBytePerSecond mode_lib 1624 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.StutterBurstTime = mode_lib->vba.PartOfBurstThatFitsInROB mode_lib 1625 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c * (mode_lib->vba.AverageReadBandwidthGBytePerSecond * 1000) mode_lib 1626 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c / mode_lib->vba.TotalDataReadBandwidth / mode_lib->vba.ReturnBW mode_lib 1627 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c + (mode_lib->vba.MinFullDETBufferingTime mode_lib 1628 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c * mode_lib->vba.TotalDataReadBandwidth mode_lib 1629 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c - mode_lib->vba.PartOfBurstThatFitsInROB) mode_lib 1630 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c / (mode_lib->vba.DCFCLK * 64); mode_lib 1631 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c if (mode_lib->vba.TotalActiveWriteback == 0) { mode_lib 1632 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.StutterEfficiencyNotIncludingVBlank = (1 mode_lib 1633 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c - (mode_lib->vba.SRExitTime + mode_lib->vba.StutterBurstTime) mode_lib 1634 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c / mode_lib->vba.MinFullDETBufferingTime) * 100; mode_lib 1636 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.StutterEfficiencyNotIncludingVBlank = 0; mode_lib 1639 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.SmallestVBlank = 999999; mode_lib 1640 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) { mode_lib 1641 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c if (mode_lib->vba.SynchronizedVBlank || mode_lib->vba.NumberOfActivePlanes == 1) { mode_lib 1642 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.VBlankTime = (double) (mode_lib->vba.VTotal[k] mode_lib 1643 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c - mode_lib->vba.VActive[k]) * mode_lib->vba.HTotal[k] mode_lib 1644 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c / mode_lib->vba.PixelClock[k]; mode_lib 1646 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.VBlankTime = 0; mode_lib 1648 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.SmallestVBlank = dml_min( mode_lib 1649 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.SmallestVBlank, mode_lib 1650 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.VBlankTime); mode_lib 1653 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.StutterEfficiency = (mode_lib->vba.StutterEfficiencyNotIncludingVBlank / 100 mode_lib 1654 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c * (mode_lib->vba.FrameTimeForMinFullDETBufferingTime mode_lib 1655 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c - mode_lib->vba.SmallestVBlank) mode_lib 1656 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c + mode_lib->vba.SmallestVBlank) mode_lib 1657 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c / mode_lib->vba.FrameTimeForMinFullDETBufferingTime * 100; mode_lib 1660 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.DCFCLKDeepSleep = 8.0; mode_lib 1662 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; k++) { mode_lib 1663 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c if (mode_lib->vba.BytePerPixelDETC[k] > 0) { mode_lib 1664 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.DCFCLKDeepSleepPerPlane[k] = mode_lib 1666 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c 1.1 * mode_lib->vba.SwathWidthY[k] mode_lib 1668 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.BytePerPixelDETY[k], mode_lib 1670 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c / mode_lib->vba.DisplayPipeLineDeliveryTimeLuma[k], mode_lib 1671 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c 1.1 * mode_lib->vba.SwathWidthY[k] / 2.0 mode_lib 1673 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.BytePerPixelDETC[k], mode_lib 1675 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c / mode_lib->vba.DisplayPipeLineDeliveryTimeChroma[k]); mode_lib 1677 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.DCFCLKDeepSleepPerPlane[k] = 1.1 * mode_lib->vba.SwathWidthY[k] mode_lib 1678 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c * dml_ceil(mode_lib->vba.BytePerPixelDETY[k], 1) / 64.0 mode_lib 1679 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c / mode_lib->vba.DisplayPipeLineDeliveryTimeLuma[k]; mode_lib 1680 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.DCFCLKDeepSleepPerPlane[k] = dml_max( mode_lib 1681 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.DCFCLKDeepSleepPerPlane[k], mode_lib 1682 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.PixelClock[k] / 16.0); mode_lib 1683 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.DCFCLKDeepSleep = dml_max( mode_lib 1684 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.DCFCLKDeepSleep, mode_lib 1685 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.DCFCLKDeepSleepPerPlane[k]); mode_lib 1690 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.DCFCLKDeepSleepPerPlane[k]); mode_lib 1693 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c DTRACE(" dcfclk_deepsleep_mhz = %fMHz", mode_lib->vba.DCFCLKDeepSleep); mode_lib 1696 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.StutterExitWatermark = mode_lib->vba.SRExitTime mode_lib 1697 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c + mode_lib->vba.LastPixelOfLineExtraWatermark mode_lib 1698 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c + mode_lib->vba.UrgentExtraLatency + 10 / mode_lib->vba.DCFCLKDeepSleep; mode_lib 1699 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.StutterEnterPlusExitWatermark = mode_lib->vba.SREnterPlusExitTime mode_lib 1700 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c + mode_lib->vba.LastPixelOfLineExtraWatermark mode_lib 1701 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c + mode_lib->vba.UrgentExtraLatency; mode_lib 1703 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c DTRACE(" wm_cstate_exit = %fus", mode_lib->vba.StutterExitWatermark); mode_lib 1704 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c DTRACE(" wm_cstate_enter_exit = %fus", mode_lib->vba.StutterEnterPlusExitWatermark); mode_lib 1707 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) { mode_lib 1708 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.EffectiveDETPlusLBLinesLuma = mode_lib 1710 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.LinesInDETY[k] mode_lib 1712 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.LinesInDETY[k] mode_lib 1713 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c * mode_lib->vba.DPPCLK[k] mode_lib 1714 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c * mode_lib->vba.BytePerPixelDETY[k] mode_lib 1715 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c * mode_lib->vba.PSCL_THROUGHPUT_LUMA[k] mode_lib 1716 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c / (mode_lib->vba.ReturnBW mode_lib 1717 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c / mode_lib->vba.DPPPerPlane[k]), mode_lib 1718 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c (double) mode_lib->vba.EffectiveLBLatencyHidingSourceLinesLuma), mode_lib 1719 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.SwathHeightY[k]); mode_lib 1721 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.UrgentLatencySupportUsLuma = mode_lib->vba.EffectiveDETPlusLBLinesLuma mode_lib 1722 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c * (mode_lib->vba.HTotal[k] / mode_lib->vba.PixelClock[k]) mode_lib 1723 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c / mode_lib->vba.VRatio[k] mode_lib 1724 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c - mode_lib->vba.EffectiveDETPlusLBLinesLuma mode_lib 1725 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c * mode_lib->vba.SwathWidthY[k] mode_lib 1726 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c * mode_lib->vba.BytePerPixelDETY[k] mode_lib 1727 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c / (mode_lib->vba.ReturnBW mode_lib 1728 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c / mode_lib->vba.DPPPerPlane[k]); mode_lib 1730 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c if (mode_lib->vba.BytePerPixelDETC[k] > 0) { mode_lib 1731 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.EffectiveDETPlusLBLinesChroma = mode_lib 1733 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.LinesInDETC[k] mode_lib 1735 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.LinesInDETC[k] mode_lib 1736 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c * mode_lib->vba.DPPCLK[k] mode_lib 1737 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c * mode_lib->vba.BytePerPixelDETC[k] mode_lib 1738 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c * mode_lib->vba.PSCL_THROUGHPUT_CHROMA[k] mode_lib 1739 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c / (mode_lib->vba.ReturnBW mode_lib 1740 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c / mode_lib->vba.DPPPerPlane[k]), mode_lib 1741 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c (double) mode_lib->vba.EffectiveLBLatencyHidingSourceLinesChroma), mode_lib 1742 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.SwathHeightC[k]); mode_lib 1743 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.UrgentLatencySupportUsChroma = mode_lib 1744 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.EffectiveDETPlusLBLinesChroma mode_lib 1745 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c * (mode_lib->vba.HTotal[k] mode_lib 1746 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c / mode_lib->vba.PixelClock[k]) mode_lib 1747 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c / (mode_lib->vba.VRatio[k] / 2) mode_lib 1748 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c - mode_lib->vba.EffectiveDETPlusLBLinesChroma mode_lib 1749 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c * (mode_lib->vba.SwathWidthY[k] mode_lib 1751 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c * mode_lib->vba.BytePerPixelDETC[k] mode_lib 1752 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c / (mode_lib->vba.ReturnBW mode_lib 1753 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c / mode_lib->vba.DPPPerPlane[k]); mode_lib 1754 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.UrgentLatencySupportUs[k] = dml_min( mode_lib 1755 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.UrgentLatencySupportUsLuma, mode_lib 1756 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.UrgentLatencySupportUsChroma); mode_lib 1758 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.UrgentLatencySupportUs[k] = mode_lib 1759 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.UrgentLatencySupportUsLuma; mode_lib 1763 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.MinUrgentLatencySupportUs = 999999; mode_lib 1764 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) { mode_lib 1765 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.MinUrgentLatencySupportUs = dml_min( mode_lib 1766 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.MinUrgentLatencySupportUs, mode_lib 1767 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.UrgentLatencySupportUs[k]); mode_lib 1771 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.NonUrgentLatencyTolerance = mode_lib->vba.MinUrgentLatencySupportUs mode_lib 1772 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c - mode_lib->vba.UrgentWatermark; mode_lib 1775 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) { mode_lib 1776 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c if ((mode_lib->vba.BlendingAndTiming[k] != k) || !mode_lib->vba.DSCEnabled[k]) { mode_lib 1777 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.DSCCLK_calculated[k] = 0.0; mode_lib 1779 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c if (mode_lib->vba.OutputFormat[k] == dm_420 mode_lib 1780 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c || mode_lib->vba.OutputFormat[k] == dm_n422) mode_lib 1781 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.DSCFormatFactor = 2; mode_lib 1783 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.DSCFormatFactor = 1; mode_lib 1784 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c if (mode_lib->vba.ODMCombineEnabled[k]) mode_lib 1785 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.DSCCLK_calculated[k] = mode_lib 1786 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.PixelClockBackEnd[k] / 6 mode_lib 1787 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c / mode_lib->vba.DSCFormatFactor mode_lib 1789 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c - mode_lib->vba.DISPCLKDPPCLKDSCCLKDownSpreading mode_lib 1792 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.DSCCLK_calculated[k] = mode_lib 1793 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.PixelClockBackEnd[k] / 3 mode_lib 1794 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c / mode_lib->vba.DSCFormatFactor mode_lib 1796 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c - mode_lib->vba.DISPCLKDPPCLKDSCCLKDownSpreading mode_lib 1803 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) { mode_lib 1804 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c double bpp = mode_lib->vba.OutputBpp[k]; mode_lib 1805 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c unsigned int slices = mode_lib->vba.NumberOfDSCSlices[k]; mode_lib 1807 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c if (mode_lib->vba.DSCEnabled[k] && bpp != 0) { mode_lib 1808 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c if (!mode_lib->vba.ODMCombineEnabled[k]) { mode_lib 1809 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.DSCDelay[k] = mode_lib 1811 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.DSCInputBitPerComponent[k], mode_lib 1814 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c (double) mode_lib->vba.HActive[k] mode_lib 1815 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c / mode_lib->vba.NumberOfDSCSlices[k], mode_lib 1818 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.OutputFormat[k]) mode_lib 1820 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.OutputFormat[k]); mode_lib 1822 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.DSCDelay[k] = mode_lib 1825 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.DSCInputBitPerComponent[k], mode_lib 1828 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c (double) mode_lib->vba.HActive[k] mode_lib 1829 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c / mode_lib->vba.NumberOfDSCSlices[k], mode_lib 1832 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.OutputFormat[k]) mode_lib 1834 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.OutputFormat[k])); mode_lib 1836 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.DSCDelay[k] = mode_lib->vba.DSCDelay[k] mode_lib 1837 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c * mode_lib->vba.PixelClock[k] mode_lib 1838 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c / mode_lib->vba.PixelClockBackEnd[k]; mode_lib 1840 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.DSCDelay[k] = 0; mode_lib 1844 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) mode_lib 1845 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c for (j = 0; j < mode_lib->vba.NumberOfActivePlanes; ++j) // NumberOfPlanes mode_lib 1846 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c if (j != k && mode_lib->vba.BlendingAndTiming[k] == j mode_lib 1847 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c && mode_lib->vba.DSCEnabled[j]) mode_lib 1848 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.DSCDelay[k] = mode_lib->vba.DSCDelay[j]; mode_lib 1851 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) { mode_lib 1860 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.SourcePixelFormat[k], mode_lib 1861 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.SurfaceTiling[k], mode_lib 1862 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c dml_ceil(mode_lib->vba.BytePerPixelDETY[k], 1), mode_lib 1863 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c dml_ceil(mode_lib->vba.BytePerPixelDETC[k], 2), mode_lib 1864 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c &mode_lib->vba.BlockHeight256BytesY[k], mode_lib 1865 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c &mode_lib->vba.BlockHeight256BytesC[k], mode_lib 1866 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c &mode_lib->vba.BlockWidth256BytesY[k], mode_lib 1867 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c &mode_lib->vba.BlockWidth256BytesC[k]); mode_lib 1869 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib, mode_lib 1870 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.DCCEnable[k], mode_lib 1871 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.BlockHeight256BytesY[k], mode_lib 1872 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.BlockWidth256BytesY[k], mode_lib 1873 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.SourcePixelFormat[k], mode_lib 1874 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.SurfaceTiling[k], mode_lib 1875 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c dml_ceil(mode_lib->vba.BytePerPixelDETY[k], 1), mode_lib 1876 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.SourceScan[k], mode_lib 1877 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.ViewportWidth[k], mode_lib 1878 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.ViewportHeight[k], mode_lib 1879 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.SwathWidthY[k], mode_lib 1880 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.GPUVMEnable, mode_lib 1881 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.VMMPageSize, mode_lib 1882 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.PTEBufferSizeInRequestsLuma, mode_lib 1883 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.PDEProcessingBufIn64KBReqs, mode_lib 1884 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.PitchY[k], mode_lib 1885 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.DCCMetaPitchY[k], mode_lib 1886 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c &mode_lib->vba.MacroTileWidthY[k], mode_lib 1889 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c &mode_lib->vba.PTEBufferSizeNotExceeded[mode_lib->vba.VoltageLevel][0], mode_lib 1890 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c &mode_lib->vba.dpte_row_height[k], mode_lib 1891 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c &mode_lib->vba.meta_row_height[k]); mode_lib 1892 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.PrefetchSourceLinesY[k] = CalculatePrefetchSourceLines( mode_lib 1893 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib, mode_lib 1894 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.VRatio[k], mode_lib 1895 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.vtaps[k], mode_lib 1896 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.Interlace[k], mode_lib 1897 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.ProgressiveToInterlaceUnitInOPP, mode_lib 1898 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.SwathHeightY[k], mode_lib 1899 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.ViewportYStartY[k], mode_lib 1900 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c &mode_lib->vba.VInitPreFillY[k], mode_lib 1901 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c &mode_lib->vba.MaxNumSwathY[k]); mode_lib 1903 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c if ((mode_lib->vba.SourcePixelFormat[k] != dm_444_64 mode_lib 1904 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c && mode_lib->vba.SourcePixelFormat[k] != dm_444_32 mode_lib 1905 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c && mode_lib->vba.SourcePixelFormat[k] != dm_444_16 mode_lib 1906 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c && mode_lib->vba.SourcePixelFormat[k] != dm_444_8)) { mode_lib 1909 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib, mode_lib 1910 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.DCCEnable[k], mode_lib 1911 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.BlockHeight256BytesC[k], mode_lib 1912 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.BlockWidth256BytesC[k], mode_lib 1913 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.SourcePixelFormat[k], mode_lib 1914 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.SurfaceTiling[k], mode_lib 1916 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.BytePerPixelDETC[k], mode_lib 1918 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.SourceScan[k], mode_lib 1919 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.ViewportWidth[k] / 2, mode_lib 1920 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.ViewportHeight[k] / 2, mode_lib 1921 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.SwathWidthY[k] / 2, mode_lib 1922 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.GPUVMEnable, mode_lib 1923 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.VMMPageSize, mode_lib 1924 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.PTEBufferSizeInRequestsLuma, mode_lib 1925 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.PDEProcessingBufIn64KBReqs, mode_lib 1926 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.PitchC[k], mode_lib 1928 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c &mode_lib->vba.MacroTileWidthC[k], mode_lib 1931 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c &mode_lib->vba.PTEBufferSizeNotExceeded[mode_lib->vba.VoltageLevel][0], mode_lib 1932 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c &mode_lib->vba.dpte_row_height_chroma[k], mode_lib 1933 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c &mode_lib->vba.meta_row_height_chroma[k]); mode_lib 1934 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.PrefetchSourceLinesC[k] = CalculatePrefetchSourceLines( mode_lib 1935 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib, mode_lib 1936 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.VRatio[k] / 2, mode_lib 1937 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.VTAPsChroma[k], mode_lib 1938 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.Interlace[k], mode_lib 1939 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.ProgressiveToInterlaceUnitInOPP, mode_lib 1940 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.SwathHeightC[k], mode_lib 1941 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.ViewportYStartC[k], mode_lib 1942 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c &mode_lib->vba.VInitPreFillC[k], mode_lib 1943 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c &mode_lib->vba.MaxNumSwathC[k]); mode_lib 1948 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.MaxNumSwathC[k] = 0; mode_lib 1949 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.PrefetchSourceLinesC[k] = 0; mode_lib 1952 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.PixelPTEBytesPerRow[k] = PixelPTEBytesPerRowY + PixelPTEBytesPerRowC; mode_lib 1953 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.PDEAndMetaPTEBytesFrame[k] = PDEAndMetaPTEBytesFrameY mode_lib 1955 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.MetaRowByte[k] = MetaRowByteY + MetaRowByteC; mode_lib 1958 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.GPUVMEnable, mode_lib 1959 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.SourcePixelFormat[k], mode_lib 1960 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.VRatio[k], mode_lib 1961 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.DCCEnable[k], mode_lib 1962 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.HTotal[k] / mode_lib->vba.PixelClock[k], mode_lib 1965 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.meta_row_height[k], mode_lib 1966 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.meta_row_height_chroma[k], mode_lib 1969 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.dpte_row_height[k], mode_lib 1970 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.dpte_row_height_chroma[k], mode_lib 1971 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c &mode_lib->vba.meta_row_bw[k], mode_lib 1972 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c &mode_lib->vba.dpte_row_bw[k], mode_lib 1973 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c &mode_lib->vba.qual_row_bw[k]); mode_lib 1976 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.TCalc = 24.0 / mode_lib->vba.DCFCLKDeepSleep; mode_lib 1978 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) { mode_lib 1979 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c if (mode_lib->vba.BlendingAndTiming[k] == k) { mode_lib 1980 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c if (mode_lib->vba.WritebackEnable[k] == true) { mode_lib 1981 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.WritebackDelay[mode_lib->vba.VoltageLevel][k] = mode_lib 1982 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.WritebackLatency mode_lib 1984 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.WritebackPixelFormat[k], mode_lib 1985 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.WritebackHRatio[k], mode_lib 1986 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.WritebackVRatio[k], mode_lib 1987 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.WritebackLumaHTaps[k], mode_lib 1988 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.WritebackLumaVTaps[k], mode_lib 1989 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.WritebackChromaHTaps[k], mode_lib 1990 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.WritebackChromaVTaps[k], mode_lib 1991 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.WritebackDestinationWidth[k]) mode_lib 1992 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c / mode_lib->vba.DISPCLK; mode_lib 1994 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.WritebackDelay[mode_lib->vba.VoltageLevel][k] = 0; mode_lib 1995 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c for (j = 0; j < mode_lib->vba.NumberOfActivePlanes; ++j) { mode_lib 1996 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c if (mode_lib->vba.BlendingAndTiming[j] == k mode_lib 1997 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c && mode_lib->vba.WritebackEnable[j] == true) { mode_lib 1998 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.WritebackDelay[mode_lib->vba.VoltageLevel][k] = mode_lib 2000 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.WritebackDelay[mode_lib->vba.VoltageLevel][k], mode_lib 2001 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.WritebackLatency mode_lib 2003 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.WritebackPixelFormat[j], mode_lib 2004 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.WritebackHRatio[j], mode_lib 2005 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.WritebackVRatio[j], mode_lib 2006 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.WritebackLumaHTaps[j], mode_lib 2007 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.WritebackLumaVTaps[j], mode_lib 2008 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.WritebackChromaHTaps[j], mode_lib 2009 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.WritebackChromaVTaps[j], mode_lib 2010 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.WritebackDestinationWidth[j]) mode_lib 2011 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c / mode_lib->vba.DISPCLK); mode_lib 2017 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) mode_lib 2018 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c for (j = 0; j < mode_lib->vba.NumberOfActivePlanes; ++j) mode_lib 2019 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c if (mode_lib->vba.BlendingAndTiming[k] == j) mode_lib 2020 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.WritebackDelay[mode_lib->vba.VoltageLevel][k] = mode_lib 2021 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.WritebackDelay[mode_lib->vba.VoltageLevel][j]; mode_lib 2023 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.VStartupLines = 13; mode_lib 2024 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) { mode_lib 2025 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.MaxVStartupLines[k] = mode_lib 2026 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.VTotal[k] - mode_lib->vba.VActive[k] mode_lib 2030 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.WritebackDelay[mode_lib->vba.VoltageLevel][k] mode_lib 2031 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c / (mode_lib->vba.HTotal[k] mode_lib 2032 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c / mode_lib->vba.PixelClock[k]), mode_lib 2036 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) mode_lib 2037 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.MaximumMaxVStartupLines = dml_max( mode_lib 2038 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.MaximumMaxVStartupLines, mode_lib 2039 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.MaxVStartupLines[k]); mode_lib 2041 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) { mode_lib 2042 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.cursor_bw[k] = 0.0; mode_lib 2043 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c for (j = 0; j < mode_lib->vba.NumberOfCursors[k]; ++j) mode_lib 2044 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.cursor_bw[k] += mode_lib->vba.CursorWidth[k][j] mode_lib 2045 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c * mode_lib->vba.CursorBPP[k][j] / 8.0 mode_lib 2046 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c / (mode_lib->vba.HTotal[k] / mode_lib->vba.PixelClock[k]) mode_lib 2047 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c * mode_lib->vba.VRatio[k]; mode_lib 2057 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.PrefetchMode[mode_lib->vba.VoltageLevel][mode_lib->vba.maxMpcComb], mode_lib 2058 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.DRAMClockChangeLatency, mode_lib 2059 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.UrgentLatencyPixelDataOnly, mode_lib 2060 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.SREnterPlusExitTime); mode_lib 2062 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) { mode_lib 2063 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c if (mode_lib->vba.XFCEnabled[k] == true) { mode_lib 2064 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.XFCRemoteSurfaceFlipDelay = mode_lib 2066 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib, mode_lib 2067 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.VRatio[k], mode_lib 2068 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.SwathWidthY[k], mode_lib 2070 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.BytePerPixelDETY[k], mode_lib 2072 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.HTotal[k] mode_lib 2073 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c / mode_lib->vba.PixelClock[k], mode_lib 2074 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.XFCTSlvVupdateOffset, mode_lib 2075 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.XFCTSlvVupdateWidth, mode_lib 2076 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.XFCTSlvVreadyOffset, mode_lib 2077 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.XFCXBUFLatencyTolerance, mode_lib 2078 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.XFCFillBWOverhead, mode_lib 2079 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.XFCSlvChunkSize, mode_lib 2080 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.XFCBusTransportTime, mode_lib 2081 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.TCalc, mode_lib 2083 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c &mode_lib->vba.SrcActiveDrainRate, mode_lib 2084 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c &mode_lib->vba.TInitXFill, mode_lib 2085 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c &mode_lib->vba.TslvChk); mode_lib 2087 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.XFCRemoteSurfaceFlipDelay = 0; mode_lib 2089 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.ErrorResult[k] = mode_lib 2091 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib, mode_lib 2092 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.DPPCLK[k], mode_lib 2093 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.DISPCLK, mode_lib 2094 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.PixelClock[k], mode_lib 2095 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.DCFCLKDeepSleep, mode_lib 2096 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.DSCDelay[k], mode_lib 2097 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.DPPPerPlane[k], mode_lib 2098 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.ScalerEnabled[k], mode_lib 2099 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.NumberOfCursors[k], mode_lib 2100 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.DPPCLKDelaySubtotal, mode_lib 2101 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.DPPCLKDelaySCL, mode_lib 2102 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.DPPCLKDelaySCLLBOnly, mode_lib 2103 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.DPPCLKDelayCNVCFormater, mode_lib 2104 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.DPPCLKDelayCNVCCursor, mode_lib 2105 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.DISPCLKDelaySubtotal, mode_lib 2106 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c (unsigned int) (mode_lib->vba.SwathWidthY[k] mode_lib 2107 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c / mode_lib->vba.HRatio[k]), mode_lib 2108 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.OutputFormat[k], mode_lib 2109 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.VTotal[k] mode_lib 2110 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c - mode_lib->vba.VActive[k], mode_lib 2111 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.HTotal[k], mode_lib 2112 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.MaxInterDCNTileRepeaters, mode_lib 2114 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.VStartupLines, mode_lib 2115 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.MaxVStartupLines[k]), mode_lib 2116 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.GPUVMMaxPageTableLevels, mode_lib 2117 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.GPUVMEnable, mode_lib 2118 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.DynamicMetadataEnable[k], mode_lib 2119 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.DynamicMetadataLinesBeforeActiveRequired[k], mode_lib 2120 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.DynamicMetadataTransmittedBytes[k], mode_lib 2121 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.DCCEnable[k], mode_lib 2122 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.UrgentLatencyPixelDataOnly, mode_lib 2123 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.UrgentExtraLatency, mode_lib 2124 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.TCalc, mode_lib 2125 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.PDEAndMetaPTEBytesFrame[k], mode_lib 2126 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.MetaRowByte[k], mode_lib 2127 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.PixelPTEBytesPerRow[k], mode_lib 2128 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.PrefetchSourceLinesY[k], mode_lib 2129 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.SwathWidthY[k], mode_lib 2130 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.BytePerPixelDETY[k], mode_lib 2131 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.VInitPreFillY[k], mode_lib 2132 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.MaxNumSwathY[k], mode_lib 2133 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.PrefetchSourceLinesC[k], mode_lib 2134 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.BytePerPixelDETC[k], mode_lib 2135 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.VInitPreFillC[k], mode_lib 2136 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.MaxNumSwathC[k], mode_lib 2137 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.SwathHeightY[k], mode_lib 2138 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.SwathHeightC[k], mode_lib 2140 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.XFCEnabled[k], mode_lib 2141 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.XFCRemoteSurfaceFlipDelay, mode_lib 2142 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.Interlace[k], mode_lib 2143 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.ProgressiveToInterlaceUnitInOPP, mode_lib 2144 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c &mode_lib->vba.DSTXAfterScaler[k], mode_lib 2145 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c &mode_lib->vba.DSTYAfterScaler[k], mode_lib 2146 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c &mode_lib->vba.DestinationLinesForPrefetch[k], mode_lib 2147 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c &mode_lib->vba.PrefetchBandwidth[k], mode_lib 2148 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c &mode_lib->vba.DestinationLinesToRequestVMInVBlank[k], mode_lib 2149 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c &mode_lib->vba.DestinationLinesToRequestRowInVBlank[k], mode_lib 2150 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c &mode_lib->vba.VRatioPrefetchY[k], mode_lib 2151 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c &mode_lib->vba.VRatioPrefetchC[k], mode_lib 2152 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c &mode_lib->vba.RequiredPrefetchPixDataBWLuma[k], mode_lib 2153 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c &mode_lib->vba.VStartupRequiredWhenNotEnoughTimeForDynamicMetadata, mode_lib 2154 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c &mode_lib->vba.Tno_bw[k], mode_lib 2155 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c &mode_lib->vba.VUpdateOffsetPix[k], mode_lib 2156 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c &mode_lib->vba.VUpdateWidthPix[k], mode_lib 2157 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c &mode_lib->vba.VReadyOffsetPix[k]); mode_lib 2158 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c if (mode_lib->vba.BlendingAndTiming[k] == k) { mode_lib 2159 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.VStartup[k] = dml_min( mode_lib 2160 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.VStartupLines, mode_lib 2161 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.MaxVStartupLines[k]); mode_lib 2162 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c if (mode_lib->vba.VStartupRequiredWhenNotEnoughTimeForDynamicMetadata mode_lib 2164 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.VStartup[k] = mode_lib 2165 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.VStartupRequiredWhenNotEnoughTimeForDynamicMetadata; mode_lib 2168 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.VStartup[k] = mode_lib 2170 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.VStartupLines, mode_lib 2171 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.MaxVStartupLines[mode_lib->vba.BlendingAndTiming[k]]); mode_lib 2175 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) { mode_lib 2177 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c if (mode_lib->vba.PDEAndMetaPTEBytesFrame[k] == 0) mode_lib 2178 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.prefetch_vm_bw[k] = 0; mode_lib 2179 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c else if (mode_lib->vba.DestinationLinesToRequestVMInVBlank[k] > 0) { mode_lib 2180 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.prefetch_vm_bw[k] = mode_lib 2181 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c (double) mode_lib->vba.PDEAndMetaPTEBytesFrame[k] mode_lib 2182 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c / (mode_lib->vba.DestinationLinesToRequestVMInVBlank[k] mode_lib 2183 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c * mode_lib->vba.HTotal[k] mode_lib 2184 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c / mode_lib->vba.PixelClock[k]); mode_lib 2186 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.prefetch_vm_bw[k] = 0; mode_lib 2189 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c if (mode_lib->vba.MetaRowByte[k] + mode_lib->vba.PixelPTEBytesPerRow[k] mode_lib 2191 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.prefetch_row_bw[k] = 0; mode_lib 2192 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c else if (mode_lib->vba.DestinationLinesToRequestRowInVBlank[k] > 0) { mode_lib 2193 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.prefetch_row_bw[k] = mode_lib 2194 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c (double) (mode_lib->vba.MetaRowByte[k] mode_lib 2195 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c + mode_lib->vba.PixelPTEBytesPerRow[k]) mode_lib 2196 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c / (mode_lib->vba.DestinationLinesToRequestRowInVBlank[k] mode_lib 2197 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c * mode_lib->vba.HTotal[k] mode_lib 2198 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c / mode_lib->vba.PixelClock[k]); mode_lib 2200 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.prefetch_row_bw[k] = 0; mode_lib 2205 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c MaxTotalRDBandwidth + mode_lib->vba.cursor_bw[k] mode_lib 2207 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.prefetch_vm_bw[k], mode_lib 2209 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.prefetch_row_bw[k], mode_lib 2211 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.ReadBandwidthPlaneLuma[k] mode_lib 2212 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c + mode_lib->vba.ReadBandwidthPlaneChroma[k], mode_lib 2213 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.RequiredPrefetchPixDataBWLuma[k]) mode_lib 2214 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c + mode_lib->vba.meta_row_bw[k] mode_lib 2215 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c + mode_lib->vba.dpte_row_bw[k])); mode_lib 2217 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c if (mode_lib->vba.DestinationLinesForPrefetch[k] < 2) mode_lib 2219 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c if (mode_lib->vba.VRatioPrefetchY[k] > 4 mode_lib 2220 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c || mode_lib->vba.VRatioPrefetchC[k] > 4) mode_lib 2224 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c if (MaxTotalRDBandwidth <= mode_lib->vba.ReturnBW && prefetch_vm_bw_valid mode_lib 2227 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.PrefetchModeSupported = true; mode_lib 2229 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.PrefetchModeSupported = false; mode_lib 2234 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c if (mode_lib->vba.PrefetchModeSupported == true) { mode_lib 2239 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.BandwidthAvailableForImmediateFlip = mode_lib->vba.ReturnBW; mode_lib 2240 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) { mode_lib 2241 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.BandwidthAvailableForImmediateFlip = mode_lib 2242 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.BandwidthAvailableForImmediateFlip mode_lib 2243 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c - mode_lib->vba.cursor_bw[k] mode_lib 2245 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.ReadBandwidthPlaneLuma[k] mode_lib 2246 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c + mode_lib->vba.ReadBandwidthPlaneChroma[k] mode_lib 2247 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c + mode_lib->vba.qual_row_bw[k], mode_lib 2248 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.PrefetchBandwidth[k]); mode_lib 2251 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) { mode_lib 2253 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c if ((mode_lib->vba.SourcePixelFormat[k] != dm_420_8 mode_lib 2254 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c && mode_lib->vba.SourcePixelFormat[k] != dm_420_10)) { mode_lib 2256 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.PDEAndMetaPTEBytesFrame[k] mode_lib 2257 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c + mode_lib->vba.MetaRowByte[k] mode_lib 2258 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c + mode_lib->vba.PixelPTEBytesPerRow[k]; mode_lib 2261 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.TotImmediateFlipBytes = 0; mode_lib 2262 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) { mode_lib 2263 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c if ((mode_lib->vba.SourcePixelFormat[k] != dm_420_8 mode_lib 2264 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c && mode_lib->vba.SourcePixelFormat[k] != dm_420_10)) { mode_lib 2265 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.TotImmediateFlipBytes = mode_lib 2266 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.TotImmediateFlipBytes mode_lib 2270 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) { mode_lib 2272 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib, mode_lib 2273 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.UrgentExtraLatency, mode_lib 2274 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.UrgentLatencyPixelDataOnly, mode_lib 2275 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.GPUVMMaxPageTableLevels, mode_lib 2276 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.GPUVMEnable, mode_lib 2277 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.BandwidthAvailableForImmediateFlip, mode_lib 2278 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.TotImmediateFlipBytes, mode_lib 2279 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.SourcePixelFormat[k], mode_lib 2281 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.HTotal[k] mode_lib 2282 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c / mode_lib->vba.PixelClock[k], mode_lib 2283 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.VRatio[k], mode_lib 2284 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.Tno_bw[k], mode_lib 2285 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.PDEAndMetaPTEBytesFrame[k], mode_lib 2286 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.MetaRowByte[k], mode_lib 2287 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.PixelPTEBytesPerRow[k], mode_lib 2288 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.DCCEnable[k], mode_lib 2289 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.dpte_row_height[k], mode_lib 2290 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.meta_row_height[k], mode_lib 2291 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.qual_row_bw[k], mode_lib 2292 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c &mode_lib->vba.DestinationLinesToRequestVMInImmediateFlip[k], mode_lib 2293 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c &mode_lib->vba.DestinationLinesToRequestRowInImmediateFlip[k], mode_lib 2295 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c &mode_lib->vba.ImmediateFlipSupportedForPipe[k]); mode_lib 2297 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) { mode_lib 2300 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c + mode_lib->vba.cursor_bw[k] mode_lib 2302 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.prefetch_vm_bw[k], mode_lib 2304 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.prefetch_row_bw[k], mode_lib 2307 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.ReadBandwidthPlaneLuma[k] mode_lib 2308 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c + mode_lib->vba.ReadBandwidthPlaneChroma[k], mode_lib 2309 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.RequiredPrefetchPixDataBWLuma[k]))); mode_lib 2311 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.ImmediateFlipSupported = true; mode_lib 2312 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c if (total_dcn_read_bw_with_flip > mode_lib->vba.ReturnBW) { mode_lib 2313 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.ImmediateFlipSupported = false; mode_lib 2315 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) { mode_lib 2316 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c if (mode_lib->vba.ImmediateFlipSupportedForPipe[k] == false) { mode_lib 2317 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.ImmediateFlipSupported = false; mode_lib 2321 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.ImmediateFlipSupported = false; mode_lib 2324 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) { mode_lib 2325 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c if (mode_lib->vba.ErrorResult[k]) { mode_lib 2326 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.PrefetchModeSupported = false; mode_lib 2332 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.VStartupLines = mode_lib->vba.VStartupLines + 1; mode_lib 2333 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c } while (!((mode_lib->vba.PrefetchModeSupported mode_lib 2334 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c && (!mode_lib->vba.ImmediateFlipSupport mode_lib 2335 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c || mode_lib->vba.ImmediateFlipSupported)) mode_lib 2336 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c || mode_lib->vba.MaximumMaxVStartupLines < mode_lib->vba.VStartupLines)); mode_lib 2339 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) { mode_lib 2340 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c if (mode_lib->vba.VRatioPrefetchY[k] <= 1) { mode_lib 2341 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.DisplayPipeLineDeliveryTimeLumaPrefetch[k] = mode_lib 2342 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.SwathWidthY[k] * mode_lib->vba.DPPPerPlane[k] mode_lib 2343 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c / mode_lib->vba.HRatio[k] mode_lib 2344 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c / mode_lib->vba.PixelClock[k]; mode_lib 2346 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.DisplayPipeLineDeliveryTimeLumaPrefetch[k] = mode_lib 2347 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.SwathWidthY[k] mode_lib 2348 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c / mode_lib->vba.PSCL_THROUGHPUT_LUMA[k] mode_lib 2349 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c / mode_lib->vba.DPPCLK[k]; mode_lib 2351 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c if (mode_lib->vba.BytePerPixelDETC[k] == 0) { mode_lib 2352 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.DisplayPipeLineDeliveryTimeChromaPrefetch[k] = 0; mode_lib 2354 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c if (mode_lib->vba.VRatioPrefetchC[k] <= 1) { mode_lib 2355 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.DisplayPipeLineDeliveryTimeChromaPrefetch[k] = mode_lib 2356 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.SwathWidthY[k] mode_lib 2357 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c * mode_lib->vba.DPPPerPlane[k] mode_lib 2358 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c / mode_lib->vba.HRatio[k] mode_lib 2359 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c / mode_lib->vba.PixelClock[k]; mode_lib 2361 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.DisplayPipeLineDeliveryTimeChromaPrefetch[k] = mode_lib 2362 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.SwathWidthY[k] mode_lib 2363 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c / mode_lib->vba.PSCL_THROUGHPUT_LUMA[k] mode_lib 2364 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c / mode_lib->vba.DPPCLK[k]; mode_lib 2370 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) { mode_lib 2371 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c if (mode_lib->vba.PrefetchMode[mode_lib->vba.VoltageLevel][mode_lib->vba.maxMpcComb] == 0) { mode_lib 2372 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.AllowDRAMClockChangeDuringVBlank[k] = true; mode_lib 2373 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.AllowDRAMSelfRefreshDuringVBlank[k] = true; mode_lib 2374 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.MinTTUVBlank[k] = dml_max( mode_lib 2375 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.DRAMClockChangeWatermark, mode_lib 2377 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.StutterEnterPlusExitWatermark, mode_lib 2378 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.UrgentWatermark)); mode_lib 2379 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c } else if (mode_lib->vba.PrefetchMode[mode_lib->vba.VoltageLevel][mode_lib->vba.maxMpcComb] == 1) { mode_lib 2380 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.AllowDRAMClockChangeDuringVBlank[k] = false; mode_lib 2381 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.AllowDRAMSelfRefreshDuringVBlank[k] = true; mode_lib 2382 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.MinTTUVBlank[k] = dml_max( mode_lib 2383 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.StutterEnterPlusExitWatermark, mode_lib 2384 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.UrgentWatermark); mode_lib 2386 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.AllowDRAMClockChangeDuringVBlank[k] = false; mode_lib 2387 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.AllowDRAMSelfRefreshDuringVBlank[k] = false; mode_lib 2388 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.MinTTUVBlank[k] = mode_lib->vba.UrgentWatermark; mode_lib 2390 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c if (!mode_lib->vba.DynamicMetadataEnable[k]) mode_lib 2391 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.MinTTUVBlank[k] = mode_lib->vba.TCalc mode_lib 2392 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c + mode_lib->vba.MinTTUVBlank[k]; mode_lib 2396 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.ActiveDPPs = 0; mode_lib 2398 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) { mode_lib 2399 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.ActiveDPPs = mode_lib->vba.ActiveDPPs + mode_lib->vba.DPPPerPlane[k]; mode_lib 2402 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) { mode_lib 2411 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.LBLatencyHidingSourceLinesY = mode_lib 2413 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.MaxLineBufferLines, mode_lib 2415 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c (double) mode_lib->vba.LineBufferSize mode_lib 2416 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c / mode_lib->vba.LBBitPerPixel[k] mode_lib 2417 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c / (mode_lib->vba.SwathWidthY[k] mode_lib 2419 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.HRatio[k], mode_lib 2421 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c 1)) - (mode_lib->vba.vtaps[k] - 1); mode_lib 2423 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.LBLatencyHidingSourceLinesC = mode_lib 2425 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.MaxLineBufferLines, mode_lib 2427 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c (double) mode_lib->vba.LineBufferSize mode_lib 2428 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c / mode_lib->vba.LBBitPerPixel[k] mode_lib 2429 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c / (mode_lib->vba.SwathWidthY[k] mode_lib 2432 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.HRatio[k] mode_lib 2436 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c - (mode_lib->vba.VTAPsChroma[k] - 1); mode_lib 2438 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c EffectiveLBLatencyHidingY = mode_lib->vba.LBLatencyHidingSourceLinesY mode_lib 2439 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c / mode_lib->vba.VRatio[k] mode_lib 2440 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c * (mode_lib->vba.HTotal[k] / mode_lib->vba.PixelClock[k]); mode_lib 2442 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c EffectiveLBLatencyHidingC = mode_lib->vba.LBLatencyHidingSourceLinesC mode_lib 2443 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c / (mode_lib->vba.VRatio[k] / 2) mode_lib 2444 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c * (mode_lib->vba.HTotal[k] / mode_lib->vba.PixelClock[k]); mode_lib 2446 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c if (mode_lib->vba.SwathWidthY[k] > 2 * mode_lib->vba.DPPOutputBufferPixels) { mode_lib 2447 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c DPPOutputBufferLinesY = mode_lib->vba.DPPOutputBufferPixels mode_lib 2448 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c / mode_lib->vba.SwathWidthY[k]; mode_lib 2449 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c } else if (mode_lib->vba.SwathWidthY[k] > mode_lib->vba.DPPOutputBufferPixels) { mode_lib 2455 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c if (mode_lib->vba.SwathWidthY[k] / 2 > 2 * mode_lib->vba.DPPOutputBufferPixels) { mode_lib 2456 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c DPPOutputBufferLinesC = mode_lib->vba.DPPOutputBufferPixels mode_lib 2457 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c / (mode_lib->vba.SwathWidthY[k] / 2); mode_lib 2458 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c } else if (mode_lib->vba.SwathWidthY[k] / 2 > mode_lib->vba.DPPOutputBufferPixels) { mode_lib 2464 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c DPPOPPBufferingY = (mode_lib->vba.HTotal[k] / mode_lib->vba.PixelClock[k]) mode_lib 2465 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c * (DPPOutputBufferLinesY + mode_lib->vba.OPPOutputBufferLines); mode_lib 2466 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c MaxDETBufferingTimeY = mode_lib->vba.FullDETBufferingTimeY[k] mode_lib 2467 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c + (mode_lib->vba.LinesInDETY[k] mode_lib 2468 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c - mode_lib->vba.LinesInDETYRoundedDownToSwath[k]) mode_lib 2469 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c / mode_lib->vba.SwathHeightY[k] mode_lib 2470 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c * (mode_lib->vba.HTotal[k] mode_lib 2471 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c / mode_lib->vba.PixelClock[k]); mode_lib 2474 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c + MaxDETBufferingTimeY - mode_lib->vba.DRAMClockChangeWatermark; mode_lib 2476 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c if (mode_lib->vba.ActiveDPPs > 1) { mode_lib 2479 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c - (1 - 1 / (mode_lib->vba.ActiveDPPs - 1)) mode_lib 2480 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c * mode_lib->vba.SwathHeightY[k] mode_lib 2481 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c * (mode_lib->vba.HTotal[k] mode_lib 2482 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c / mode_lib->vba.PixelClock[k]); mode_lib 2485 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c if (mode_lib->vba.BytePerPixelDETC[k] > 0) { mode_lib 2486 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c double DPPOPPBufferingC = (mode_lib->vba.HTotal[k] mode_lib 2487 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c / mode_lib->vba.PixelClock[k]) mode_lib 2489 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c + mode_lib->vba.OPPOutputBufferLines); mode_lib 2491 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.FullDETBufferingTimeC[k] mode_lib 2492 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c + (mode_lib->vba.LinesInDETC[k] mode_lib 2493 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c - mode_lib->vba.LinesInDETCRoundedDownToSwath[k]) mode_lib 2494 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c / mode_lib->vba.SwathHeightC[k] mode_lib 2495 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c * (mode_lib->vba.HTotal[k] mode_lib 2496 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c / mode_lib->vba.PixelClock[k]); mode_lib 2499 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c - mode_lib->vba.DRAMClockChangeWatermark; mode_lib 2501 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c if (mode_lib->vba.ActiveDPPs > 1) { mode_lib 2506 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c / (mode_lib->vba.ActiveDPPs mode_lib 2508 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c * mode_lib->vba.SwathHeightC[k] mode_lib 2509 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c * (mode_lib->vba.HTotal[k] mode_lib 2510 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c / mode_lib->vba.PixelClock[k]); mode_lib 2512 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.ActiveDRAMClockChangeLatencyMargin[k] = dml_min( mode_lib 2516 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.ActiveDRAMClockChangeLatencyMargin[k] = mode_lib 2520 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c if (mode_lib->vba.WritebackEnable[k]) { mode_lib 2523 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c if (mode_lib->vba.WritebackPixelFormat[k] == dm_444_32) { mode_lib 2525 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c (double) (mode_lib->vba.WritebackInterfaceLumaBufferSize mode_lib 2526 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c + mode_lib->vba.WritebackInterfaceChromaBufferSize) mode_lib 2527 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c / (mode_lib->vba.WritebackDestinationWidth[k] mode_lib 2528 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c * mode_lib->vba.WritebackDestinationHeight[k] mode_lib 2529 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c / (mode_lib->vba.WritebackSourceHeight[k] mode_lib 2530 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c * mode_lib->vba.HTotal[k] mode_lib 2531 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c / mode_lib->vba.PixelClock[k]) mode_lib 2533 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c - mode_lib->vba.WritebackDRAMClockChangeWatermark; mode_lib 2534 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c } else if (mode_lib->vba.WritebackPixelFormat[k] == dm_420_10) { mode_lib 2537 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c (double) mode_lib->vba.WritebackInterfaceLumaBufferSize mode_lib 2540 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c * mode_lib->vba.WritebackInterfaceChromaBufferSize mode_lib 2542 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c / (mode_lib->vba.WritebackDestinationWidth[k] mode_lib 2543 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c * mode_lib->vba.WritebackDestinationHeight[k] mode_lib 2544 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c / (mode_lib->vba.WritebackSourceHeight[k] mode_lib 2545 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c * mode_lib->vba.HTotal[k] mode_lib 2546 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c / mode_lib->vba.PixelClock[k])) mode_lib 2547 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c - mode_lib->vba.WritebackDRAMClockChangeWatermark; mode_lib 2551 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c (double) mode_lib->vba.WritebackInterfaceLumaBufferSize, mode_lib 2553 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c * mode_lib->vba.WritebackInterfaceChromaBufferSize) mode_lib 2554 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c / (mode_lib->vba.WritebackDestinationWidth[k] mode_lib 2555 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c * mode_lib->vba.WritebackDestinationHeight[k] mode_lib 2556 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c / (mode_lib->vba.WritebackSourceHeight[k] mode_lib 2557 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c * mode_lib->vba.HTotal[k] mode_lib 2558 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c / mode_lib->vba.PixelClock[k])) mode_lib 2559 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c - mode_lib->vba.WritebackDRAMClockChangeWatermark; mode_lib 2561 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.ActiveDRAMClockChangeLatencyMargin[k] = dml_min( mode_lib 2562 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.ActiveDRAMClockChangeLatencyMargin[k], mode_lib 2567 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.MinActiveDRAMClockChangeMargin = 999999; mode_lib 2568 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) { mode_lib 2569 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c if (mode_lib->vba.ActiveDRAMClockChangeLatencyMargin[k] mode_lib 2570 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c < mode_lib->vba.MinActiveDRAMClockChangeMargin) { mode_lib 2571 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.MinActiveDRAMClockChangeMargin = mode_lib 2572 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.ActiveDRAMClockChangeLatencyMargin[k]; mode_lib 2576 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.MinActiveDRAMClockChangeLatencySupported = mode_lib 2577 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.MinActiveDRAMClockChangeMargin mode_lib 2578 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c + mode_lib->vba.DRAMClockChangeLatency; mode_lib 2580 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c if (mode_lib->vba.MinActiveDRAMClockChangeMargin > 50) { mode_lib 2581 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.DRAMClockChangeWatermark += 25; mode_lib 2582 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.DRAMClockChangeSupport[0][0] = dm_dram_clock_change_vactive; mode_lib 2584 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c if (mode_lib->vba.SynchronizedVBlank || mode_lib->vba.NumberOfActivePlanes == 1) { mode_lib 2585 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.DRAMClockChangeSupport[0][0] = dm_dram_clock_change_vblank; mode_lib 2586 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) { mode_lib 2587 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c if (!mode_lib->vba.AllowDRAMClockChangeDuringVBlank[k]) { mode_lib 2588 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.DRAMClockChangeSupport[0][0] = mode_lib 2593 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.DRAMClockChangeSupport[0][0] = dm_dram_clock_change_unsupported; mode_lib 2596 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c for (k = 0; k <= mode_lib->vba.soc.num_states; k++) mode_lib 2598 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.DRAMClockChangeSupport[k][j] = mode_lib->vba.DRAMClockChangeSupport[0][0]; mode_lib 2601 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) { mode_lib 2602 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c if (mode_lib->vba.XFCEnabled[k] == true) { mode_lib 2605 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.XFCSlaveVUpdateOffset[k] = mode_lib->vba.XFCTSlvVupdateOffset; mode_lib 2606 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.XFCSlaveVupdateWidth[k] = mode_lib->vba.XFCTSlvVupdateWidth; mode_lib 2607 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.XFCSlaveVReadyOffset[k] = mode_lib->vba.XFCTSlvVreadyOffset; mode_lib 2609 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.PrefetchMode[mode_lib->vba.VoltageLevel][mode_lib->vba.maxMpcComb], mode_lib 2610 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.DRAMClockChangeLatency, mode_lib 2611 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.UrgentLatencyPixelDataOnly, mode_lib 2612 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.SREnterPlusExitTime); mode_lib 2613 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.XFCRemoteSurfaceFlipDelay = CalculateRemoteSurfaceFlipDelay( mode_lib 2614 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib, mode_lib 2615 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.VRatio[k], mode_lib 2616 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.SwathWidthY[k], mode_lib 2617 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c dml_ceil(mode_lib->vba.BytePerPixelDETY[k], 1), mode_lib 2618 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.HTotal[k] / mode_lib->vba.PixelClock[k], mode_lib 2619 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.XFCTSlvVupdateOffset, mode_lib 2620 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.XFCTSlvVupdateWidth, mode_lib 2621 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.XFCTSlvVreadyOffset, mode_lib 2622 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.XFCXBUFLatencyTolerance, mode_lib 2623 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.XFCFillBWOverhead, mode_lib 2624 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.XFCSlvChunkSize, mode_lib 2625 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.XFCBusTransportTime, mode_lib 2626 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.TCalc, mode_lib 2628 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c &mode_lib->vba.SrcActiveDrainRate, mode_lib 2629 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c &mode_lib->vba.TInitXFill, mode_lib 2630 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c &mode_lib->vba.TslvChk); mode_lib 2631 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.XFCRemoteSurfaceFlipLatency[k] = mode_lib 2633 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.XFCRemoteSurfaceFlipDelay mode_lib 2634 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c / (mode_lib->vba.HTotal[k] mode_lib 2635 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c / mode_lib->vba.PixelClock[k]), mode_lib 2637 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.XFCTransferDelay[k] = mode_lib 2639 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.XFCBusTransportTime mode_lib 2640 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c / (mode_lib->vba.HTotal[k] mode_lib 2641 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c / mode_lib->vba.PixelClock[k]), mode_lib 2643 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.XFCPrechargeDelay[k] = mode_lib 2645 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c (mode_lib->vba.XFCBusTransportTime mode_lib 2646 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c + mode_lib->vba.TInitXFill mode_lib 2647 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c + mode_lib->vba.TslvChk) mode_lib 2648 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c / (mode_lib->vba.HTotal[k] mode_lib 2649 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c / mode_lib->vba.PixelClock[k]), mode_lib 2651 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.InitFillLevel = mode_lib->vba.XFCXBUFLatencyTolerance mode_lib 2652 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c * mode_lib->vba.SrcActiveDrainRate; mode_lib 2653 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.FinalFillMargin = mode_lib 2654 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c (mode_lib->vba.DestinationLinesToRequestVMInVBlank[k] mode_lib 2655 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c + mode_lib->vba.DestinationLinesToRequestRowInVBlank[k]) mode_lib 2656 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c * mode_lib->vba.HTotal[k] mode_lib 2657 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c / mode_lib->vba.PixelClock[k] mode_lib 2658 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c * mode_lib->vba.SrcActiveDrainRate mode_lib 2659 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c + mode_lib->vba.XFCFillConstant; mode_lib 2660 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.FinalFillLevel = mode_lib->vba.XFCRemoteSurfaceFlipDelay mode_lib 2661 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c * mode_lib->vba.SrcActiveDrainRate mode_lib 2662 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c + mode_lib->vba.FinalFillMargin; mode_lib 2663 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.RemainingFillLevel = dml_max( mode_lib 2665 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.FinalFillLevel - mode_lib->vba.InitFillLevel); mode_lib 2666 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.TFinalxFill = mode_lib->vba.RemainingFillLevel mode_lib 2667 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c / (mode_lib->vba.SrcActiveDrainRate mode_lib 2668 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c * mode_lib->vba.XFCFillBWOverhead / 100); mode_lib 2669 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.XFCPrefetchMargin[k] = mode_lib 2670 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.XFCRemoteSurfaceFlipDelay mode_lib 2671 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c + mode_lib->vba.TFinalxFill mode_lib 2672 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c + (mode_lib->vba.DestinationLinesToRequestVMInVBlank[k] mode_lib 2673 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c + mode_lib->vba.DestinationLinesToRequestRowInVBlank[k]) mode_lib 2674 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c * mode_lib->vba.HTotal[k] mode_lib 2675 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c / mode_lib->vba.PixelClock[k]; mode_lib 2677 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.XFCSlaveVUpdateOffset[k] = 0; mode_lib 2678 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.XFCSlaveVupdateWidth[k] = 0; mode_lib 2679 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.XFCSlaveVReadyOffset[k] = 0; mode_lib 2680 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.XFCRemoteSurfaceFlipLatency[k] = 0; mode_lib 2681 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.XFCPrechargeDelay[k] = 0; mode_lib 2682 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.XFCTransferDelay[k] = 0; mode_lib 2683 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.XFCPrefetchMargin[k] = 0; mode_lib 2690 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) { mode_lib 2691 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c if (mode_lib->vba.BlendingAndTiming[k] == k) { mode_lib 2692 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c unsigned int Margin = (mode_lib->vba.MaxVStartupLines[k] - mode_lib->vba.VStartup[k]) mode_lib 2693 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c * mode_lib->vba.HTotal[k] / mode_lib->vba.PixelClock[k]; mode_lib 2702 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c if (mode_lib->vba.UseMaximumVStartup) { mode_lib 2703 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c if (mode_lib->vba.VTotal_Max[k] == mode_lib->vba.VTotal[k]) { mode_lib 2705 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.VStartup[k] = mode_lib->vba.MaxVStartupLines[mode_lib->vba.BlendingAndTiming[k]]; mode_lib 2712 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c static void dml20_DisplayPipeConfiguration(struct display_mode_lib *mode_lib) mode_lib 2731 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) { mode_lib 2734 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c if (mode_lib->vba.SourcePixelFormat[k] == dm_444_64) { mode_lib 2737 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c } else if (mode_lib->vba.SourcePixelFormat[k] == dm_444_32) { mode_lib 2740 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c } else if (mode_lib->vba.SourcePixelFormat[k] == dm_444_16) { mode_lib 2743 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c } else if (mode_lib->vba.SourcePixelFormat[k] == dm_444_8) { mode_lib 2746 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c } else if (mode_lib->vba.SourcePixelFormat[k] == dm_420_8) { mode_lib 2754 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c if ((mode_lib->vba.SourcePixelFormat[k] == dm_444_64 mode_lib 2755 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c || mode_lib->vba.SourcePixelFormat[k] == dm_444_32 mode_lib 2756 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c || mode_lib->vba.SourcePixelFormat[k] == dm_444_16 mode_lib 2757 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c || mode_lib->vba.SourcePixelFormat[k] == dm_444_8)) { mode_lib 2758 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c if (mode_lib->vba.SurfaceTiling[k] == dm_sw_linear) { mode_lib 2760 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c } else if (mode_lib->vba.SourcePixelFormat[k] == dm_444_64) { mode_lib 2762 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c } else if (mode_lib->vba.SourcePixelFormat[k] == dm_444_32 mode_lib 2763 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c || mode_lib->vba.SourcePixelFormat[k] == dm_444_16) { mode_lib 2773 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c if (mode_lib->vba.SurfaceTiling[k] == dm_sw_linear) { mode_lib 2776 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c } else if (mode_lib->vba.SourcePixelFormat[k] == dm_420_8) { mode_lib 2789 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c if (mode_lib->vba.SourceScan[k] == dm_horz) { mode_lib 2797 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c if ((mode_lib->vba.SourcePixelFormat[k] == dm_444_64 mode_lib 2798 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c || mode_lib->vba.SourcePixelFormat[k] == dm_444_32 mode_lib 2799 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c || mode_lib->vba.SourcePixelFormat[k] == dm_444_16 mode_lib 2800 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c || mode_lib->vba.SourcePixelFormat[k] == dm_444_8)) { mode_lib 2801 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c if (mode_lib->vba.SurfaceTiling[k] == dm_sw_linear mode_lib 2802 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c || (mode_lib->vba.SourcePixelFormat[k] == dm_444_64 mode_lib 2803 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c && (mode_lib->vba.SurfaceTiling[k] mode_lib 2805 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c || mode_lib->vba.SurfaceTiling[k] mode_lib 2807 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c || mode_lib->vba.SurfaceTiling[k] mode_lib 2809 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c || mode_lib->vba.SurfaceTiling[k] mode_lib 2811 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c || mode_lib->vba.SurfaceTiling[k] mode_lib 2813 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c || mode_lib->vba.SurfaceTiling[k] mode_lib 2815 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c || mode_lib->vba.SurfaceTiling[k] mode_lib 2817 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c && mode_lib->vba.SourceScan[k] == dm_horz)) { mode_lib 2819 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c } else if (mode_lib->vba.SourcePixelFormat[k] == dm_444_8 mode_lib 2820 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c && mode_lib->vba.SourceScan[k] != dm_horz) { mode_lib 2827 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c if (mode_lib->vba.SurfaceTiling[k] == dm_sw_linear) { mode_lib 2830 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c } else if (mode_lib->vba.SourcePixelFormat[k] == dm_420_8 mode_lib 2831 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c && mode_lib->vba.SourceScan[k] == dm_horz) { mode_lib 2834 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c } else if (mode_lib->vba.SourcePixelFormat[k] == dm_420_10 mode_lib 2835 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c && mode_lib->vba.SourceScan[k] == dm_horz) { mode_lib 2844 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c if (mode_lib->vba.SourceScan[k] == dm_horz) { mode_lib 2845 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c SwathWidth = mode_lib->vba.ViewportWidth[k]; mode_lib 2847 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c SwathWidth = mode_lib->vba.ViewportHeight[k]; mode_lib 2850 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c if (mode_lib->vba.ODMCombineEnabled[k] == true) { mode_lib 2853 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c for (j = 0; j < mode_lib->vba.NumberOfActivePlanes; ++j) { mode_lib 2854 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c if (mode_lib->vba.BlendingAndTiming[k] == j mode_lib 2855 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c && mode_lib->vba.ODMCombineEnabled[j] == true) { mode_lib 2863 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.HActive[k] / 2.0 * mode_lib->vba.HRatio[k]); mode_lib 2865 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c if (mode_lib->vba.DPPPerPlane[k] == 0) mode_lib 2868 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c SwathWidth = SwathWidth / mode_lib->vba.DPPPerPlane[k]; mode_lib 2876 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c if (mode_lib->vba.SourcePixelFormat[k] == dm_420_10) { mode_lib 2887 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c if (mode_lib->vba.SourcePixelFormat[k] == dm_420_10) { mode_lib 2896 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c <= mode_lib->vba.DETBufferSizeInKByte * 1024.0 / 2.0) { mode_lib 2897 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.SwathHeightY[k] = MaximumSwathHeightY; mode_lib 2898 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.SwathHeightC[k] = MaximumSwathHeightC; mode_lib 2900 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.SwathHeightY[k] = MinimumSwathHeightY; mode_lib 2901 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.SwathHeightC[k] = MinimumSwathHeightC; mode_lib 2904 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c if (mode_lib->vba.SwathHeightC[k] == 0) { mode_lib 2905 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.DETBufferSizeY[k] = mode_lib->vba.DETBufferSizeInKByte * 1024; mode_lib 2906 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.DETBufferSizeC[k] = 0; mode_lib 2907 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c } else if (mode_lib->vba.SwathHeightY[k] <= mode_lib->vba.SwathHeightC[k]) { mode_lib 2908 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.DETBufferSizeY[k] = mode_lib->vba.DETBufferSizeInKByte mode_lib 2910 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.DETBufferSizeC[k] = mode_lib->vba.DETBufferSizeInKByte mode_lib 2913 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.DETBufferSizeY[k] = mode_lib->vba.DETBufferSizeInKByte mode_lib 2915 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.DETBufferSizeC[k] = mode_lib->vba.DETBufferSizeInKByte mode_lib 2939 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c struct display_mode_lib *mode_lib, mode_lib 3082 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c struct display_mode_lib *mode_lib, mode_lib 3118 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.ImmediateFlipBW[0] = BandwidthAvailableForImmediateFlip mode_lib 3124 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c / mode_lib->vba.ImmediateFlipBW[0], mode_lib 3140 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.ImmediateFlipBW[0] = BandwidthAvailableForImmediateFlip mode_lib 3144 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c / mode_lib->vba.ImmediateFlipBW[0], mode_lib 3284 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c void dml20_ModeSupportAndSystemConfigurationFull(struct display_mode_lib *mode_lib) mode_lib 3286 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c struct vba_vars_st *locals = &mode_lib->vba; mode_lib 3295 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.ScaleRatioAndTapsSupport = true; mode_lib 3296 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) { mode_lib 3297 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c if (mode_lib->vba.ScalerEnabled[k] == false mode_lib 3298 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c && ((mode_lib->vba.SourcePixelFormat[k] != dm_444_64 mode_lib 3299 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c && mode_lib->vba.SourcePixelFormat[k] != dm_444_32 mode_lib 3300 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c && mode_lib->vba.SourcePixelFormat[k] != dm_444_16 mode_lib 3301 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c && mode_lib->vba.SourcePixelFormat[k] != dm_mono_16 mode_lib 3302 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c && mode_lib->vba.SourcePixelFormat[k] != dm_mono_8) mode_lib 3303 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c || mode_lib->vba.HRatio[k] != 1.0 mode_lib 3304 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c || mode_lib->vba.htaps[k] != 1.0 mode_lib 3305 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c || mode_lib->vba.VRatio[k] != 1.0 mode_lib 3306 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c || mode_lib->vba.vtaps[k] != 1.0)) { mode_lib 3307 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.ScaleRatioAndTapsSupport = false; mode_lib 3308 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c } else if (mode_lib->vba.vtaps[k] < 1.0 || mode_lib->vba.vtaps[k] > 8.0 mode_lib 3309 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c || mode_lib->vba.htaps[k] < 1.0 || mode_lib->vba.htaps[k] > 8.0 mode_lib 3310 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c || (mode_lib->vba.htaps[k] > 1.0 mode_lib 3311 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c && (mode_lib->vba.htaps[k] % 2) == 1) mode_lib 3312 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c || mode_lib->vba.HRatio[k] > mode_lib->vba.MaxHSCLRatio mode_lib 3313 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c || mode_lib->vba.VRatio[k] > mode_lib->vba.MaxVSCLRatio mode_lib 3314 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c || mode_lib->vba.HRatio[k] > mode_lib->vba.htaps[k] mode_lib 3315 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c || mode_lib->vba.VRatio[k] > mode_lib->vba.vtaps[k] mode_lib 3316 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c || (mode_lib->vba.SourcePixelFormat[k] != dm_444_64 mode_lib 3317 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c && mode_lib->vba.SourcePixelFormat[k] != dm_444_32 mode_lib 3318 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c && mode_lib->vba.SourcePixelFormat[k] != dm_444_16 mode_lib 3319 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c && mode_lib->vba.SourcePixelFormat[k] != dm_mono_16 mode_lib 3320 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c && mode_lib->vba.SourcePixelFormat[k] != dm_mono_8 mode_lib 3321 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c && (mode_lib->vba.HRatio[k] / 2.0 mode_lib 3322 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c > mode_lib->vba.HTAPsChroma[k] mode_lib 3323 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c || mode_lib->vba.VRatio[k] / 2.0 mode_lib 3324 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c > mode_lib->vba.VTAPsChroma[k]))) { mode_lib 3325 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.ScaleRatioAndTapsSupport = false; mode_lib 3330 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.SourceFormatPixelAndScanSupport = true; mode_lib 3331 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) { mode_lib 3332 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c if ((mode_lib->vba.SurfaceTiling[k] == dm_sw_linear mode_lib 3333 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c && mode_lib->vba.SourceScan[k] != dm_horz) mode_lib 3334 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c || ((mode_lib->vba.SurfaceTiling[k] == dm_sw_4kb_d mode_lib 3335 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c || mode_lib->vba.SurfaceTiling[k] == dm_sw_4kb_d_x mode_lib 3336 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c || mode_lib->vba.SurfaceTiling[k] == dm_sw_64kb_d mode_lib 3337 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c || mode_lib->vba.SurfaceTiling[k] == dm_sw_64kb_d_t mode_lib 3338 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c || mode_lib->vba.SurfaceTiling[k] == dm_sw_64kb_d_x mode_lib 3339 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c || mode_lib->vba.SurfaceTiling[k] == dm_sw_var_d mode_lib 3340 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c || mode_lib->vba.SurfaceTiling[k] == dm_sw_var_d_x) mode_lib 3341 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c && mode_lib->vba.SourcePixelFormat[k] != dm_444_64) mode_lib 3342 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c || (mode_lib->vba.SurfaceTiling[k] == dm_sw_64kb_r_x mode_lib 3343 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c && (mode_lib->vba.SourcePixelFormat[k] == dm_mono_8 mode_lib 3344 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c || mode_lib->vba.SourcePixelFormat[k] mode_lib 3346 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c || mode_lib->vba.SourcePixelFormat[k] mode_lib 3348 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c || (((mode_lib->vba.SurfaceTiling[k] == dm_sw_gfx7_2d_thin_gl mode_lib 3349 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c || mode_lib->vba.SurfaceTiling[k] mode_lib 3351 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c && !((mode_lib->vba.SourcePixelFormat[k] mode_lib 3353 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c || mode_lib->vba.SourcePixelFormat[k] mode_lib 3355 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c && mode_lib->vba.SourceScan[k] mode_lib 3357 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c && mode_lib->vba.SupportGFX7CompatibleTilingIn32bppAnd64bpp mode_lib 3359 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c && mode_lib->vba.DCCEnable[k] mode_lib 3361 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c || (mode_lib->vba.DCCEnable[k] == true mode_lib 3362 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c && (mode_lib->vba.SurfaceTiling[k] mode_lib 3364 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c || mode_lib->vba.SourcePixelFormat[k] mode_lib 3366 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c || mode_lib->vba.SourcePixelFormat[k] mode_lib 3368 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.SourceFormatPixelAndScanSupport = false; mode_lib 3373 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) { mode_lib 3374 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c if (mode_lib->vba.SourcePixelFormat[k] == dm_444_64) { mode_lib 3377 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c } else if (mode_lib->vba.SourcePixelFormat[k] == dm_444_32) { mode_lib 3380 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c } else if (mode_lib->vba.SourcePixelFormat[k] == dm_444_16 mode_lib 3381 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c || mode_lib->vba.SourcePixelFormat[k] == dm_mono_16) { mode_lib 3384 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c } else if (mode_lib->vba.SourcePixelFormat[k] == dm_mono_8) { mode_lib 3387 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c } else if (mode_lib->vba.SourcePixelFormat[k] == dm_420_8) { mode_lib 3394 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c if (mode_lib->vba.SourceScan[k] == dm_horz) { mode_lib 3395 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c locals->SwathWidthYSingleDPP[k] = mode_lib->vba.ViewportWidth[k]; mode_lib 3397 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c locals->SwathWidthYSingleDPP[k] = mode_lib->vba.ViewportHeight[k]; mode_lib 3400 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) { mode_lib 3402 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c / (mode_lib->vba.HTotal[k] / mode_lib->vba.PixelClock[k]) * mode_lib->vba.VRatio[k]; mode_lib 3404 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c / (mode_lib->vba.HTotal[k] / mode_lib->vba.PixelClock[k]) * mode_lib->vba.VRatio[k] / 2.0; mode_lib 3407 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) { mode_lib 3408 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c if (mode_lib->vba.WritebackEnable[k] == true mode_lib 3409 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c && mode_lib->vba.WritebackPixelFormat[k] == dm_444_32) { mode_lib 3410 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c locals->WriteBandwidth[k] = mode_lib->vba.WritebackDestinationWidth[k] mode_lib 3411 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c * mode_lib->vba.WritebackDestinationHeight[k] mode_lib 3412 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c / (mode_lib->vba.WritebackSourceHeight[k] mode_lib 3413 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c * mode_lib->vba.HTotal[k] mode_lib 3414 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c / mode_lib->vba.PixelClock[k]) * 4.0; mode_lib 3415 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c } else if (mode_lib->vba.WritebackEnable[k] == true mode_lib 3416 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c && mode_lib->vba.WritebackPixelFormat[k] == dm_420_10) { mode_lib 3417 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c locals->WriteBandwidth[k] = mode_lib->vba.WritebackDestinationWidth[k] mode_lib 3418 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c * mode_lib->vba.WritebackDestinationHeight[k] mode_lib 3419 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c / (mode_lib->vba.WritebackSourceHeight[k] mode_lib 3420 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c * mode_lib->vba.HTotal[k] mode_lib 3421 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c / mode_lib->vba.PixelClock[k]) * 3.0; mode_lib 3422 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c } else if (mode_lib->vba.WritebackEnable[k] == true) { mode_lib 3423 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c locals->WriteBandwidth[k] = mode_lib->vba.WritebackDestinationWidth[k] mode_lib 3424 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c * mode_lib->vba.WritebackDestinationHeight[k] mode_lib 3425 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c / (mode_lib->vba.WritebackSourceHeight[k] mode_lib 3426 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c * mode_lib->vba.HTotal[k] mode_lib 3427 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c / mode_lib->vba.PixelClock[k]) * 1.5; mode_lib 3432 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.DCCEnabledInAnyPlane = false; mode_lib 3433 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) { mode_lib 3434 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c if (mode_lib->vba.DCCEnable[k] == true) { mode_lib 3435 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.DCCEnabledInAnyPlane = true; mode_lib 3438 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c for (i = 0; i <= mode_lib->vba.soc.num_states; i++) { mode_lib 3440 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.DRAMSpeedPerState[i] * mode_lib->vba.NumberOfChannels mode_lib 3441 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c * mode_lib->vba.DRAMChannelWidth, mode_lib 3442 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.FabricClockPerState[i] mode_lib 3443 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c * mode_lib->vba.FabricDatapathToDCNDataReturn) / 1000; mode_lib 3495 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.WritebackLatencySupport = true; mode_lib 3496 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) { mode_lib 3497 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c if (mode_lib->vba.WritebackEnable[k] == true) { mode_lib 3498 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c if (mode_lib->vba.WritebackPixelFormat[k] == dm_444_32) { mode_lib 3500 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c > (mode_lib->vba.WritebackInterfaceLumaBufferSize mode_lib 3501 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c + mode_lib->vba.WritebackInterfaceChromaBufferSize) mode_lib 3502 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c / mode_lib->vba.WritebackLatency) { mode_lib 3503 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.WritebackLatencySupport = false; mode_lib 3509 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.WritebackInterfaceLumaBufferSize, mode_lib 3511 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c * mode_lib->vba.WritebackInterfaceChromaBufferSize) mode_lib 3512 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c / mode_lib->vba.WritebackLatency) { mode_lib 3513 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.WritebackLatencySupport = false; mode_lib 3520 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c for (i = 0; i <= mode_lib->vba.soc.num_states; i++) { mode_lib 3522 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c (mode_lib->vba.RoundTripPingLatencyCycles + 32.0) / mode_lib->vba.DCFCLKPerState[i] mode_lib 3523 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c + locals->UrgentOutOfOrderReturnPerChannel * mode_lib->vba.NumberOfChannels / locals->ReturnBWPerState[i]; mode_lib 3524 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c if ((mode_lib->vba.ROBBufferSizeInKByte - mode_lib->vba.PixelChunkSizeInKByte) * 1024.0 / locals->ReturnBWPerState[i] mode_lib 3533 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.TotalNumberOfActiveWriteback = 0; mode_lib 3534 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) { mode_lib 3535 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c if (mode_lib->vba.WritebackEnable[k] == true) { mode_lib 3536 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c if (mode_lib->vba.ActiveWritebacksPerPlane[k] == 0) mode_lib 3537 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.ActiveWritebacksPerPlane[k] = 1; mode_lib 3538 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.TotalNumberOfActiveWriteback = mode_lib 3539 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.TotalNumberOfActiveWriteback mode_lib 3540 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c + mode_lib->vba.ActiveWritebacksPerPlane[k]; mode_lib 3543 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.WritebackModeSupport = true; mode_lib 3544 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c if (mode_lib->vba.TotalNumberOfActiveWriteback > mode_lib->vba.MaxNumWriteback) { mode_lib 3545 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.WritebackModeSupport = false; mode_lib 3547 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) { mode_lib 3548 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c if (mode_lib->vba.WritebackEnable[k] == true mode_lib 3549 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c && mode_lib->vba.Writeback10bpc420Supported != true mode_lib 3550 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c && mode_lib->vba.WritebackPixelFormat[k] == dm_420_10) { mode_lib 3551 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.WritebackModeSupport = false; mode_lib 3556 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.WritebackScaleRatioAndTapsSupport = true; mode_lib 3557 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) { mode_lib 3558 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c if (mode_lib->vba.WritebackEnable[k] == true) { mode_lib 3559 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c if (mode_lib->vba.WritebackLumaAndChromaScalingSupported == false mode_lib 3560 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c && (mode_lib->vba.WritebackHRatio[k] != 1.0 mode_lib 3561 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c || mode_lib->vba.WritebackVRatio[k] != 1.0)) { mode_lib 3562 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.WritebackScaleRatioAndTapsSupport = false; mode_lib 3564 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c if (mode_lib->vba.WritebackHRatio[k] > mode_lib->vba.WritebackMaxHSCLRatio mode_lib 3565 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c || mode_lib->vba.WritebackVRatio[k] mode_lib 3566 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c > mode_lib->vba.WritebackMaxVSCLRatio mode_lib 3567 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c || mode_lib->vba.WritebackHRatio[k] mode_lib 3568 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c < mode_lib->vba.WritebackMinHSCLRatio mode_lib 3569 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c || mode_lib->vba.WritebackVRatio[k] mode_lib 3570 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c < mode_lib->vba.WritebackMinVSCLRatio mode_lib 3571 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c || mode_lib->vba.WritebackLumaHTaps[k] mode_lib 3572 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c > mode_lib->vba.WritebackMaxHSCLTaps mode_lib 3573 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c || mode_lib->vba.WritebackLumaVTaps[k] mode_lib 3574 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c > mode_lib->vba.WritebackMaxVSCLTaps mode_lib 3575 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c || mode_lib->vba.WritebackHRatio[k] mode_lib 3576 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c > mode_lib->vba.WritebackLumaHTaps[k] mode_lib 3577 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c || mode_lib->vba.WritebackVRatio[k] mode_lib 3578 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c > mode_lib->vba.WritebackLumaVTaps[k] mode_lib 3579 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c || (mode_lib->vba.WritebackLumaHTaps[k] > 2.0 mode_lib 3580 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c && ((mode_lib->vba.WritebackLumaHTaps[k] % 2) mode_lib 3582 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c || (mode_lib->vba.WritebackPixelFormat[k] != dm_444_32 mode_lib 3583 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c && (mode_lib->vba.WritebackChromaHTaps[k] mode_lib 3584 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c > mode_lib->vba.WritebackMaxHSCLTaps mode_lib 3585 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c || mode_lib->vba.WritebackChromaVTaps[k] mode_lib 3586 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c > mode_lib->vba.WritebackMaxVSCLTaps mode_lib 3588 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c * mode_lib->vba.WritebackHRatio[k] mode_lib 3589 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c > mode_lib->vba.WritebackChromaHTaps[k] mode_lib 3591 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c * mode_lib->vba.WritebackVRatio[k] mode_lib 3592 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c > mode_lib->vba.WritebackChromaVTaps[k] mode_lib 3593 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c || (mode_lib->vba.WritebackChromaHTaps[k] > 2.0 mode_lib 3594 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c && ((mode_lib->vba.WritebackChromaHTaps[k] % 2) == 1))))) { mode_lib 3595 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.WritebackScaleRatioAndTapsSupport = false; mode_lib 3597 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c if (mode_lib->vba.WritebackVRatio[k] < 1.0) { mode_lib 3598 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.WritebackLumaVExtra = mode_lib 3599 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c dml_max(1.0 - 2.0 / dml_ceil(1.0 / mode_lib->vba.WritebackVRatio[k], 1.0), 0.0); mode_lib 3601 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.WritebackLumaVExtra = -1; mode_lib 3603 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c if ((mode_lib->vba.WritebackPixelFormat[k] == dm_444_32 mode_lib 3604 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c && mode_lib->vba.WritebackLumaVTaps[k] mode_lib 3605 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c > (mode_lib->vba.WritebackLineBufferLumaBufferSize mode_lib 3606 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c + mode_lib->vba.WritebackLineBufferChromaBufferSize) mode_lib 3608 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c / mode_lib->vba.WritebackDestinationWidth[k] mode_lib 3609 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c - mode_lib->vba.WritebackLumaVExtra) mode_lib 3610 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c || (mode_lib->vba.WritebackPixelFormat[k] == dm_420_8 mode_lib 3611 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c && mode_lib->vba.WritebackLumaVTaps[k] mode_lib 3612 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c > mode_lib->vba.WritebackLineBufferLumaBufferSize mode_lib 3613 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c * 8.0 / 10.0 / mode_lib->vba.WritebackDestinationWidth[k] mode_lib 3614 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c - mode_lib->vba.WritebackLumaVExtra) mode_lib 3615 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c || (mode_lib->vba.WritebackPixelFormat[k] == dm_420_10 mode_lib 3616 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c && mode_lib->vba.WritebackLumaVTaps[k] mode_lib 3617 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c > mode_lib->vba.WritebackLineBufferLumaBufferSize mode_lib 3619 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c / mode_lib->vba.WritebackDestinationWidth[k] mode_lib 3620 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c - mode_lib->vba.WritebackLumaVExtra)) { mode_lib 3621 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.WritebackScaleRatioAndTapsSupport = false; mode_lib 3623 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c if (2.0 * mode_lib->vba.WritebackVRatio[k] < 1) { mode_lib 3624 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.WritebackChromaVExtra = 0.0; mode_lib 3626 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.WritebackChromaVExtra = -1; mode_lib 3628 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c if ((mode_lib->vba.WritebackPixelFormat[k] == dm_420_8 mode_lib 3629 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c && mode_lib->vba.WritebackChromaVTaps[k] mode_lib 3630 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c > mode_lib->vba.WritebackLineBufferChromaBufferSize mode_lib 3631 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c * 8.0 / 10.0 / mode_lib->vba.WritebackDestinationWidth[k] mode_lib 3632 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c - mode_lib->vba.WritebackChromaVExtra) mode_lib 3633 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c || (mode_lib->vba.WritebackPixelFormat[k] == dm_420_10 mode_lib 3634 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c && mode_lib->vba.WritebackChromaVTaps[k] mode_lib 3635 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c > mode_lib->vba.WritebackLineBufferChromaBufferSize mode_lib 3637 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c / mode_lib->vba.WritebackDestinationWidth[k] mode_lib 3638 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c - mode_lib->vba.WritebackChromaVExtra)) { mode_lib 3639 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.WritebackScaleRatioAndTapsSupport = false; mode_lib 3645 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.WritebackRequiredDISPCLK = 0.0; mode_lib 3646 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) { mode_lib 3647 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c if (mode_lib->vba.WritebackEnable[k] == true) { mode_lib 3648 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.WritebackRequiredDISPCLK = mode_lib 3650 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.WritebackRequiredDISPCLK, mode_lib 3652 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.WritebackPixelFormat[k], mode_lib 3653 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.PixelClock[k], mode_lib 3654 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.WritebackHRatio[k], mode_lib 3655 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.WritebackVRatio[k], mode_lib 3656 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.WritebackLumaHTaps[k], mode_lib 3657 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.WritebackLumaVTaps[k], mode_lib 3658 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.WritebackChromaHTaps[k], mode_lib 3659 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.WritebackChromaVTaps[k], mode_lib 3660 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.WritebackDestinationWidth[k], mode_lib 3661 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.HTotal[k], mode_lib 3662 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.WritebackChromaLineBufferWidth)); mode_lib 3665 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) { mode_lib 3666 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c if (mode_lib->vba.HRatio[k] > 1.0) { mode_lib 3668 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.MaxDCHUBToPSCLThroughput, mode_lib 3669 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.MaxPSCLToLBThroughput mode_lib 3670 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c * mode_lib->vba.HRatio[k] mode_lib 3672 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.htaps[k] mode_lib 3677 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.MaxDCHUBToPSCLThroughput, mode_lib 3678 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.MaxPSCLToLBThroughput); mode_lib 3683 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.PixelClock[k] mode_lib 3685 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.vtaps[k] / 6.0 mode_lib 3688 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.HRatio[k]), mode_lib 3689 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.HRatio[k] mode_lib 3690 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c * mode_lib->vba.VRatio[k] mode_lib 3693 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c if ((mode_lib->vba.htaps[k] > 6.0 || mode_lib->vba.vtaps[k] > 6.0) mode_lib 3695 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c < 2.0 * mode_lib->vba.PixelClock[k]) { mode_lib 3697 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c * mode_lib->vba.PixelClock[k]; mode_lib 3700 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c if (mode_lib->vba.HRatio[k] / 2.0 > 1.0) { mode_lib 3703 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.MaxDCHUBToPSCLThroughput, mode_lib 3704 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.MaxPSCLToLBThroughput mode_lib 3705 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c * mode_lib->vba.HRatio[k] mode_lib 3708 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.HTAPsChroma[k] mode_lib 3713 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.MaxDCHUBToPSCLThroughput, mode_lib 3714 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.MaxPSCLToLBThroughput); mode_lib 3717 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.PixelClock[k] mode_lib 3719 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.vtaps[k] / 6.0 mode_lib 3722 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.HRatio[k]), mode_lib 3723 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.HRatio[k] mode_lib 3724 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c * mode_lib->vba.VRatio[k] mode_lib 3726 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.VTAPsChroma[k] mode_lib 3730 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.HRatio[k] mode_lib 3732 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.HRatio[k] mode_lib 3733 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c * mode_lib->vba.VRatio[k] mode_lib 3737 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c if ((mode_lib->vba.htaps[k] > 6.0 || mode_lib->vba.vtaps[k] > 6.0 mode_lib 3738 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c || mode_lib->vba.HTAPsChroma[k] > 6.0 mode_lib 3739 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c || mode_lib->vba.VTAPsChroma[k] > 6.0) mode_lib 3741 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c < 2.0 * mode_lib->vba.PixelClock[k]) { mode_lib 3743 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c * mode_lib->vba.PixelClock[k]; mode_lib 3747 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) { mode_lib 3749 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.SourcePixelFormat[k], mode_lib 3750 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.SurfaceTiling[k], mode_lib 3757 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c if (mode_lib->vba.SourceScan[k] == dm_horz) { mode_lib 3764 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c if ((mode_lib->vba.SourcePixelFormat[k] == dm_444_64 mode_lib 3765 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c || mode_lib->vba.SourcePixelFormat[k] == dm_444_32 mode_lib 3766 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c || mode_lib->vba.SourcePixelFormat[k] == dm_444_16 mode_lib 3767 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c || mode_lib->vba.SourcePixelFormat[k] == dm_mono_16 mode_lib 3768 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c || mode_lib->vba.SourcePixelFormat[k] == dm_mono_8)) { mode_lib 3769 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c if (mode_lib->vba.SurfaceTiling[k] == dm_sw_linear mode_lib 3770 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c || (mode_lib->vba.SourcePixelFormat[k] == dm_444_64 mode_lib 3771 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c && (mode_lib->vba.SurfaceTiling[k] mode_lib 3773 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c || mode_lib->vba.SurfaceTiling[k] mode_lib 3775 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c || mode_lib->vba.SurfaceTiling[k] mode_lib 3777 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c || mode_lib->vba.SurfaceTiling[k] mode_lib 3779 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c || mode_lib->vba.SurfaceTiling[k] mode_lib 3781 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c || mode_lib->vba.SurfaceTiling[k] mode_lib 3783 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c || mode_lib->vba.SurfaceTiling[k] mode_lib 3785 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c && mode_lib->vba.SourceScan[k] == dm_horz)) { mode_lib 3793 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c if (mode_lib->vba.SurfaceTiling[k] == dm_sw_linear) { mode_lib 3796 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c } else if (mode_lib->vba.SourcePixelFormat[k] == dm_420_8 mode_lib 3797 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c && mode_lib->vba.SourceScan[k] == dm_horz) { mode_lib 3801 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c } else if (mode_lib->vba.SourcePixelFormat[k] == dm_420_10 mode_lib 3802 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c && mode_lib->vba.SourceScan[k] == dm_horz) { mode_lib 3811 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c if (mode_lib->vba.SurfaceTiling[k] == dm_sw_linear) { mode_lib 3812 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.MaximumSwathWidthSupport = 8192.0; mode_lib 3814 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.MaximumSwathWidthSupport = 5120.0; mode_lib 3816 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.MaximumSwathWidthInDETBuffer = mode_lib 3818 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.MaximumSwathWidthSupport, mode_lib 3819 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.DETBufferSizeInKByte * 1024.0 / 2.0 mode_lib 3826 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.MaximumSwathWidthInLineBuffer = mode_lib 3827 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.LineBufferSize mode_lib 3828 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c * dml_max(mode_lib->vba.HRatio[k], 1.0) mode_lib 3829 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c / mode_lib->vba.LBBitPerPixel[k] mode_lib 3830 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c / (mode_lib->vba.vtaps[k] mode_lib 3833 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.VRatio[k], mode_lib 3838 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.MaximumSwathWidthInLineBuffer = mode_lib 3840 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.LineBufferSize mode_lib 3842 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.HRatio[k], mode_lib 3844 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c / mode_lib->vba.LBBitPerPixel[k] mode_lib 3845 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c / (mode_lib->vba.vtaps[k] mode_lib 3848 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.VRatio[k], mode_lib 3852 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c 2.0 * mode_lib->vba.LineBufferSize mode_lib 3854 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.HRatio[k] mode_lib 3857 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c / mode_lib->vba.LBBitPerPixel[k] mode_lib 3858 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c / (mode_lib->vba.VTAPsChroma[k] mode_lib 3861 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.VRatio[k] mode_lib 3868 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.MaximumSwathWidthInDETBuffer, mode_lib 3869 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.MaximumSwathWidthInLineBuffer); mode_lib 3871 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c for (i = 0; i <= mode_lib->vba.soc.num_states; i++) { mode_lib 3873 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.MaxDispclkRoundedDownToDFSGranularity = RoundToDFSGranularityDown( mode_lib 3874 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.MaxDispclk[i], mode_lib 3875 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.DISPCLKDPPCLKVCOSpeed); mode_lib 3876 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.MaxDppclkRoundedDownToDFSGranularity = RoundToDFSGranularityDown( mode_lib 3877 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.MaxDppclk[i], mode_lib 3878 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.DISPCLKDPPCLKVCOSpeed); mode_lib 3881 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) { mode_lib 3882 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.PlaneRequiredDISPCLKWithoutODMCombine = mode_lib 3883 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.PixelClock[k] * (1.0 + mode_lib->vba.DISPCLKDPPCLKDSCCLKDownSpreading / 100.0) mode_lib 3884 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c * (1.0 + mode_lib->vba.DISPCLKRampingMargin / 100.0); mode_lib 3885 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c if (mode_lib->vba.PlaneRequiredDISPCLKWithoutODMCombine >= mode_lib->vba.MaxDispclk[i] mode_lib 3886 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c && i == mode_lib->vba.soc.num_states) mode_lib 3887 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.PlaneRequiredDISPCLKWithoutODMCombine = mode_lib->vba.PixelClock[k] mode_lib 3888 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c * (1 + mode_lib->vba.DISPCLKDPPCLKDSCCLKDownSpreading / 100.0); mode_lib 3890 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.PlaneRequiredDISPCLKWithODMCombine = mode_lib->vba.PixelClock[k] / 2 mode_lib 3891 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c * (1 + mode_lib->vba.DISPCLKDPPCLKDSCCLKDownSpreading / 100.0) * (1 + mode_lib->vba.DISPCLKRampingMargin / 100.0); mode_lib 3892 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c if (mode_lib->vba.PlaneRequiredDISPCLKWithODMCombine >= mode_lib->vba.MaxDispclk[i] mode_lib 3893 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c && i == mode_lib->vba.soc.num_states) mode_lib 3894 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.PlaneRequiredDISPCLKWithODMCombine = mode_lib->vba.PixelClock[k] / 2 mode_lib 3895 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c * (1 + mode_lib->vba.DISPCLKDPPCLKDSCCLKDownSpreading / 100.0); mode_lib 3896 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c if (mode_lib->vba.ODMCapability == false || mode_lib->vba.PlaneRequiredDISPCLKWithoutODMCombine <= mode_lib->vba.MaxDispclkRoundedDownToDFSGranularity) { mode_lib 3898 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.PlaneRequiredDISPCLK = mode_lib->vba.PlaneRequiredDISPCLKWithoutODMCombine; mode_lib 3901 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.PlaneRequiredDISPCLK = mode_lib->vba.PlaneRequiredDISPCLKWithODMCombine; mode_lib 3903 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c if (locals->MinDPPCLKUsingSingleDPP[k] * (1.0 + mode_lib->vba.DISPCLKDPPCLKDSCCLKDownSpreading / 100.0) <= mode_lib->vba.MaxDppclkRoundedDownToDFSGranularity mode_lib 3908 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c locals->MinDPPCLKUsingSingleDPP[k] * (1.0 + mode_lib->vba.DISPCLKDPPCLKDSCCLKDownSpreading / 100.0); mode_lib 3912 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c locals->MinDPPCLKUsingSingleDPP[k] * (1.0 + mode_lib->vba.DISPCLKDPPCLKDSCCLKDownSpreading / 100.0) / 2.0; mode_lib 3916 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.PlaneRequiredDISPCLK); mode_lib 3917 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c if ((locals->MinDPPCLKUsingSingleDPP[k] / locals->NoOfDPP[i][j][k] * (1.0 + mode_lib->vba.DISPCLKDPPCLKDSCCLKDownSpreading / 100.0) mode_lib 3918 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c > mode_lib->vba.MaxDppclkRoundedDownToDFSGranularity) mode_lib 3919 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c || (mode_lib->vba.PlaneRequiredDISPCLK > mode_lib->vba.MaxDispclkRoundedDownToDFSGranularity)) { mode_lib 3924 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) mode_lib 3927 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c while (locals->TotalNumberOfActiveDPP[i][j] < mode_lib->vba.MaxNumDPP mode_lib 3928 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c && locals->TotalNumberOfActiveDPP[i][j] < 2 * mode_lib->vba.NumberOfActivePlanes) { mode_lib 3934 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) { mode_lib 3943 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c * (1 + mode_lib->vba.DISPCLKDPPCLKDSCCLKDownSpreading / 100) / 2; mode_lib 3947 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c if (locals->TotalNumberOfActiveDPP[i][j] > mode_lib->vba.MaxNumDPP) { mode_lib 3950 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) { mode_lib 3955 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c * (1.0 + mode_lib->vba.DISPCLKDPPCLKDSCCLKDownSpreading / 100.0); mode_lib 3959 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c * (1.0 + mode_lib->vba.DISPCLKDPPCLKDSCCLKDownSpreading / 100.0) / 2.0; mode_lib 3961 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c if (i != mode_lib->vba.soc.num_states) { mode_lib 3962 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.PlaneRequiredDISPCLK = mode_lib 3963 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.PixelClock[k] mode_lib 3964 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c * (1.0 + mode_lib->vba.DISPCLKDPPCLKDSCCLKDownSpreading / 100.0) mode_lib 3965 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c * (1.0 + mode_lib->vba.DISPCLKRampingMargin / 100.0); mode_lib 3967 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.PlaneRequiredDISPCLK = mode_lib->vba.PixelClock[k] mode_lib 3968 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c * (1.0 + mode_lib->vba.DISPCLKDPPCLKDSCCLKDownSpreading / 100.0); mode_lib 3972 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.PlaneRequiredDISPCLK); mode_lib 3973 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c if (locals->MinDPPCLKUsingSingleDPP[k] / locals->NoOfDPP[i][j][k] * (1.0 + mode_lib->vba.DISPCLKDPPCLKDSCCLKDownSpreading / 100.0) mode_lib 3974 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c > mode_lib->vba.MaxDppclkRoundedDownToDFSGranularity mode_lib 3975 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c || mode_lib->vba.PlaneRequiredDISPCLK > mode_lib->vba.MaxDispclkRoundedDownToDFSGranularity) mode_lib 3979 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) mode_lib 3984 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.WritebackRequiredDISPCLK); mode_lib 3985 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c if (mode_lib->vba.MaxDispclkRoundedDownToDFSGranularity mode_lib 3986 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c < mode_lib->vba.WritebackRequiredDISPCLK) { mode_lib 3993 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c for (i = 0; i <= mode_lib->vba.soc.num_states; i++) { mode_lib 3995 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) { mode_lib 3997 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c if (dml_min(locals->SwathWidthYSingleDPP[k], dml_round(mode_lib->vba.HActive[k] / 2.0 * mode_lib->vba.HRatio[k])) mode_lib 4010 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c for (i = 0; i <= mode_lib->vba.soc.num_states; i++) { mode_lib 4012 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c if (locals->TotalNumberOfActiveDPP[i][j] <= mode_lib->vba.MaxNumDPP) mode_lib 4020 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.TotalNumberOfActiveOTG = 0.0; mode_lib 4021 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) { mode_lib 4022 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c if (mode_lib->vba.BlendingAndTiming[k] == k) { mode_lib 4023 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.TotalNumberOfActiveOTG = mode_lib->vba.TotalNumberOfActiveOTG mode_lib 4027 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c if (mode_lib->vba.TotalNumberOfActiveOTG <= mode_lib->vba.MaxNumOTG) { mode_lib 4028 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.NumberOfOTGSupport = true; mode_lib 4030 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.NumberOfOTGSupport = false; mode_lib 4034 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.NonsupportedDSCInputBPC = false; mode_lib 4035 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) { mode_lib 4036 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c if (!(mode_lib->vba.DSCInputBitPerComponent[k] == 12.0 mode_lib 4037 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c || mode_lib->vba.DSCInputBitPerComponent[k] == 10.0 mode_lib 4038 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c || mode_lib->vba.DSCInputBitPerComponent[k] == 8.0)) { mode_lib 4039 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.NonsupportedDSCInputBPC = true; mode_lib 4042 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c for (i = 0; i <= mode_lib->vba.soc.num_states; i++) { mode_lib 4043 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) { mode_lib 4046 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c if (mode_lib->vba.BlendingAndTiming[k] == k) { mode_lib 4047 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c if (mode_lib->vba.Output[k] == dm_hdmi) { mode_lib 4051 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c dml_min(600.0, mode_lib->vba.PHYCLKPerState[i]) / mode_lib->vba.PixelClockBackEnd[k] * 24, mode_lib 4053 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.Output[k], mode_lib 4054 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.OutputFormat[k], mode_lib 4055 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.DSCInputBitPerComponent[k]); mode_lib 4056 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c } else if (mode_lib->vba.Output[k] == dm_dp mode_lib 4057 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c || mode_lib->vba.Output[k] == dm_edp) { mode_lib 4058 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c if (mode_lib->vba.Output[k] == dm_edp) { mode_lib 4059 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.EffectiveFECOverhead = 0.0; mode_lib 4061 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.EffectiveFECOverhead = mode_lib 4062 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.FECOverhead; mode_lib 4064 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c if (mode_lib->vba.PHYCLKPerState[i] >= 270.0) { mode_lib 4065 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.Outbpp = TruncToValidBPP( mode_lib 4066 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c (1.0 - mode_lib->vba.Downspreading / 100.0) * 270.0 mode_lib 4067 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c * mode_lib->vba.OutputLinkDPLanes[k] / mode_lib->vba.PixelClockBackEnd[k] * 8.0, mode_lib 4069 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.Output[k], mode_lib 4070 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.OutputFormat[k], mode_lib 4071 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.DSCInputBitPerComponent[k]); mode_lib 4072 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.OutbppDSC = TruncToValidBPP( mode_lib 4073 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c (1.0 - mode_lib->vba.Downspreading / 100.0) * (1.0 - mode_lib->vba.EffectiveFECOverhead / 100.0) * 270.0 mode_lib 4074 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c * mode_lib->vba.OutputLinkDPLanes[k] / mode_lib->vba.PixelClockBackEnd[k] * 8.0, mode_lib 4076 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.Output[k], mode_lib 4077 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.OutputFormat[k], mode_lib 4078 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.DSCInputBitPerComponent[k]); mode_lib 4079 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c if (mode_lib->vba.DSCEnabled[k] == true) { mode_lib 4081 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c if (mode_lib->vba.Output[k] == dm_dp) { mode_lib 4086 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.Outbpp = mode_lib->vba.OutbppDSC; mode_lib 4091 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c locals->OutputBppPerState[i][k] = mode_lib->vba.Outbpp; mode_lib 4093 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c if (mode_lib->vba.Outbpp == BPP_INVALID && mode_lib->vba.PHYCLKPerState[i] >= 540.0) { mode_lib 4094 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.Outbpp = TruncToValidBPP( mode_lib 4095 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c (1.0 - mode_lib->vba.Downspreading / 100.0) * 540.0 mode_lib 4096 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c * mode_lib->vba.OutputLinkDPLanes[k] / mode_lib->vba.PixelClockBackEnd[k] * 8.0, mode_lib 4098 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.Output[k], mode_lib 4099 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.OutputFormat[k], mode_lib 4100 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.DSCInputBitPerComponent[k]); mode_lib 4101 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.OutbppDSC = TruncToValidBPP( mode_lib 4102 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c (1.0 - mode_lib->vba.Downspreading / 100.0) * (1.0 - mode_lib->vba.EffectiveFECOverhead / 100.0) * 540.0 mode_lib 4103 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c * mode_lib->vba.OutputLinkDPLanes[k] / mode_lib->vba.PixelClockBackEnd[k] * 8.0, mode_lib 4105 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.Output[k], mode_lib 4106 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.OutputFormat[k], mode_lib 4107 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.DSCInputBitPerComponent[k]); mode_lib 4108 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c if (mode_lib->vba.DSCEnabled[k] == true) { mode_lib 4110 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c if (mode_lib->vba.Output[k] == dm_dp) { mode_lib 4115 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.Outbpp = mode_lib->vba.OutbppDSC; mode_lib 4120 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c locals->OutputBppPerState[i][k] = mode_lib->vba.Outbpp; mode_lib 4122 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c if (mode_lib->vba.Outbpp == BPP_INVALID mode_lib 4123 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c && mode_lib->vba.PHYCLKPerState[i] mode_lib 4125 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.Outbpp = TruncToValidBPP( mode_lib 4126 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c (1.0 - mode_lib->vba.Downspreading / 100.0) * 810.0 mode_lib 4127 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c * mode_lib->vba.OutputLinkDPLanes[k] / mode_lib->vba.PixelClockBackEnd[k] * 8.0, mode_lib 4129 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.Output[k], mode_lib 4130 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.OutputFormat[k], mode_lib 4131 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.DSCInputBitPerComponent[k]); mode_lib 4132 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.OutbppDSC = TruncToValidBPP( mode_lib 4133 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c (1.0 - mode_lib->vba.Downspreading / 100.0) * (1.0 - mode_lib->vba.EffectiveFECOverhead / 100.0) * 810.0 mode_lib 4134 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c * mode_lib->vba.OutputLinkDPLanes[k] / mode_lib->vba.PixelClockBackEnd[k] * 8.0, mode_lib 4136 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.Output[k], mode_lib 4137 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.OutputFormat[k], mode_lib 4138 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.DSCInputBitPerComponent[k]); mode_lib 4139 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c if (mode_lib->vba.DSCEnabled[k] == true || mode_lib->vba.Outbpp == BPP_INVALID) { mode_lib 4141 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c if (mode_lib->vba.Output[k] == dm_dp) { mode_lib 4146 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.Outbpp = mode_lib->vba.OutbppDSC; mode_lib 4152 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.Outbpp; mode_lib 4160 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c for (i = 0; i <= mode_lib->vba.soc.num_states; i++) { mode_lib 4162 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) { mode_lib 4164 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c || (mode_lib->vba.OutputFormat[k] == dm_420 mode_lib 4165 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c && mode_lib->vba.Interlace[k] == true mode_lib 4166 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c && mode_lib->vba.ProgressiveToInterlaceUnitInOPP == true)) { mode_lib 4171 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c for (i = 0; i <= mode_lib->vba.soc.num_states; i++) { mode_lib 4172 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) { mode_lib 4174 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c if (mode_lib->vba.BlendingAndTiming[k] == k) { mode_lib 4175 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c if ((mode_lib->vba.Output[k] == dm_dp mode_lib 4176 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c || mode_lib->vba.Output[k] == dm_edp)) { mode_lib 4177 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c if (mode_lib->vba.OutputFormat[k] == dm_420 mode_lib 4178 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c || mode_lib->vba.OutputFormat[k] mode_lib 4180 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.DSCFormatFactor = 2; mode_lib 4182 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.DSCFormatFactor = 1; mode_lib 4187 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c if (mode_lib->vba.PixelClockBackEnd[k] / 6.0 / mode_lib->vba.DSCFormatFactor mode_lib 4188 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c > (1.0 - mode_lib->vba.DISPCLKDPPCLKDSCCLKDownSpreading / 100.0) * mode_lib->vba.MaxDSCCLK[i]) { mode_lib 4193 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c if (mode_lib->vba.PixelClockBackEnd[k] / 3.0 / mode_lib->vba.DSCFormatFactor mode_lib 4194 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c > (1.0 - mode_lib->vba.DISPCLKDPPCLKDSCCLKDownSpreading / 100.0) * mode_lib->vba.MaxDSCCLK[i]) { mode_lib 4204 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c for (i = 0; i <= mode_lib->vba.soc.num_states; i++) { mode_lib 4206 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.TotalDSCUnitsRequired = 0.0; mode_lib 4207 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) { mode_lib 4210 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.TotalDSCUnitsRequired = mode_lib 4211 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.TotalDSCUnitsRequired + 2.0; mode_lib 4213 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.TotalDSCUnitsRequired = mode_lib 4214 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.TotalDSCUnitsRequired + 1.0; mode_lib 4218 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c if (mode_lib->vba.TotalDSCUnitsRequired > mode_lib->vba.NumberOfDSC) { mode_lib 4224 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c for (i = 0; i <= mode_lib->vba.soc.num_states; i++) { mode_lib 4225 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) { mode_lib 4226 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c if (mode_lib->vba.BlendingAndTiming[k] != k) { mode_lib 4227 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.slices = 0; mode_lib 4230 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.slices = 0; mode_lib 4231 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c } else if (mode_lib->vba.PixelClockBackEnd[k] > 3200.0) { mode_lib 4232 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.slices = dml_ceil( mode_lib 4233 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.PixelClockBackEnd[k] / 400.0, mode_lib 4235 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c } else if (mode_lib->vba.PixelClockBackEnd[k] > 1360.0) { mode_lib 4236 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.slices = 8.0; mode_lib 4237 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c } else if (mode_lib->vba.PixelClockBackEnd[k] > 680.0) { mode_lib 4238 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.slices = 4.0; mode_lib 4239 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c } else if (mode_lib->vba.PixelClockBackEnd[k] > 340.0) { mode_lib 4240 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.slices = 2.0; mode_lib 4242 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.slices = 1.0; mode_lib 4246 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.bpp = 0.0; mode_lib 4248 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.bpp = locals->OutputBppPerState[i][k]; mode_lib 4250 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c if (locals->RequiresDSC[i][k] == true && mode_lib->vba.bpp != 0.0) { mode_lib 4254 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.DSCInputBitPerComponent[k], mode_lib 4255 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.bpp, mode_lib 4257 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.HActive[k] mode_lib 4258 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c / mode_lib->vba.slices, mode_lib 4260 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.slices, mode_lib 4261 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.OutputFormat[k]) mode_lib 4263 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.OutputFormat[k]); mode_lib 4267 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.DSCInputBitPerComponent[k], mode_lib 4268 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.bpp, mode_lib 4269 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c dml_ceil(mode_lib->vba.HActive[k] / mode_lib->vba.slices, 1.0), mode_lib 4270 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.slices / 2, mode_lib 4271 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.OutputFormat[k]) mode_lib 4272 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c + dscComputeDelay(mode_lib->vba.OutputFormat[k])); mode_lib 4275 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c locals->DSCDelayPerState[i][k] * mode_lib->vba.PixelClock[k] / mode_lib->vba.PixelClockBackEnd[k]; mode_lib 4280 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) { mode_lib 4281 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c for (m = 0; m <= mode_lib->vba.NumberOfActivePlanes - 1; m++) { mode_lib 4282 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c for (j = 0; j <= mode_lib->vba.NumberOfActivePlanes - 1; j++) { mode_lib 4283 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c if (mode_lib->vba.BlendingAndTiming[k] == m && locals->RequiresDSC[i][m] == true) mode_lib 4291 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c for (i = 0; i <= mode_lib->vba.soc.num_states; i++) { mode_lib 4293 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) { mode_lib 4408 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.ProjectedDCFCLKDeepSleep = dml_max( mode_lib 4409 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.ProjectedDCFCLKDeepSleep, mode_lib 4410 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.PixelClock[k] / 16.0); mode_lib 4411 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c if (mode_lib->vba.BytePerPixelInDETC[k] == 0.0) { mode_lib 4412 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c if (mode_lib->vba.VRatio[k] <= 1.0) { mode_lib 4413 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.ProjectedDCFCLKDeepSleep = mode_lib 4415 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.ProjectedDCFCLKDeepSleep, mode_lib 4418 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.BytePerPixelInDETY[k], mode_lib 4421 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c * mode_lib->vba.HRatio[k] mode_lib 4422 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c * mode_lib->vba.PixelClock[k] mode_lib 4423 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c / mode_lib->vba.NoOfDPP[i][j][k]); mode_lib 4425 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.ProjectedDCFCLKDeepSleep = mode_lib 4427 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.ProjectedDCFCLKDeepSleep, mode_lib 4430 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.BytePerPixelInDETY[k], mode_lib 4433 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c * mode_lib->vba.PSCL_FACTOR[k] mode_lib 4434 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c * mode_lib->vba.RequiredDPPCLK[i][j][k]); mode_lib 4437 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c if (mode_lib->vba.VRatio[k] <= 1.0) { mode_lib 4438 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.ProjectedDCFCLKDeepSleep = mode_lib 4440 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.ProjectedDCFCLKDeepSleep, mode_lib 4443 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.BytePerPixelInDETY[k], mode_lib 4446 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c * mode_lib->vba.HRatio[k] mode_lib 4447 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c * mode_lib->vba.PixelClock[k] mode_lib 4448 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c / mode_lib->vba.NoOfDPP[i][j][k]); mode_lib 4450 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.ProjectedDCFCLKDeepSleep = mode_lib 4452 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.ProjectedDCFCLKDeepSleep, mode_lib 4455 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.BytePerPixelInDETY[k], mode_lib 4458 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c * mode_lib->vba.PSCL_FACTOR[k] mode_lib 4459 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c * mode_lib->vba.RequiredDPPCLK[i][j][k]); mode_lib 4461 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c if (mode_lib->vba.VRatio[k] / 2.0 <= 1.0) { mode_lib 4462 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.ProjectedDCFCLKDeepSleep = mode_lib 4464 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.ProjectedDCFCLKDeepSleep, mode_lib 4467 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.BytePerPixelInDETC[k], mode_lib 4470 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c * mode_lib->vba.HRatio[k] mode_lib 4472 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c * mode_lib->vba.PixelClock[k] mode_lib 4473 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c / mode_lib->vba.NoOfDPP[i][j][k]); mode_lib 4475 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.ProjectedDCFCLKDeepSleep = mode_lib 4477 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.ProjectedDCFCLKDeepSleep, mode_lib 4480 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.BytePerPixelInDETC[k], mode_lib 4483 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c * mode_lib->vba.PSCL_FACTOR_CHROMA[k] mode_lib 4484 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c * mode_lib->vba.RequiredDPPCLK[i][j][k]); mode_lib 4488 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) { mode_lib 4489 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.PDEAndMetaPTEBytesPerFrameY = CalculateVMAndRowBytes( mode_lib 4490 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib, mode_lib 4491 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.DCCEnable[k], mode_lib 4492 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.Read256BlockHeightY[k], mode_lib 4493 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.Read256BlockWidthY[k], mode_lib 4494 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.SourcePixelFormat[k], mode_lib 4495 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.SurfaceTiling[k], mode_lib 4496 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c dml_ceil(mode_lib->vba.BytePerPixelInDETY[k], 1.0), mode_lib 4497 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.SourceScan[k], mode_lib 4498 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.ViewportWidth[k], mode_lib 4499 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.ViewportHeight[k], mode_lib 4500 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.SwathWidthYPerState[i][j][k], mode_lib 4501 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.GPUVMEnable, mode_lib 4502 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.VMMPageSize, mode_lib 4503 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.PTEBufferSizeInRequestsLuma, mode_lib 4504 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.PDEProcessingBufIn64KBReqs, mode_lib 4505 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.PitchY[k], mode_lib 4506 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.DCCMetaPitchY[k], mode_lib 4507 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c &mode_lib->vba.MacroTileWidthY[k], mode_lib 4508 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c &mode_lib->vba.MetaRowBytesY, mode_lib 4509 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c &mode_lib->vba.DPTEBytesPerRowY, mode_lib 4510 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c &mode_lib->vba.PTEBufferSizeNotExceededY[i][j][k], mode_lib 4511 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c &mode_lib->vba.dpte_row_height[k], mode_lib 4512 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c &mode_lib->vba.meta_row_height[k]); mode_lib 4513 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.PrefetchLinesY[k] = CalculatePrefetchSourceLines( mode_lib 4514 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib, mode_lib 4515 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.VRatio[k], mode_lib 4516 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.vtaps[k], mode_lib 4517 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.Interlace[k], mode_lib 4518 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.ProgressiveToInterlaceUnitInOPP, mode_lib 4519 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.SwathHeightYPerState[i][j][k], mode_lib 4520 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.ViewportYStartY[k], mode_lib 4521 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c &mode_lib->vba.PrefillY[k], mode_lib 4522 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c &mode_lib->vba.MaxNumSwY[k]); mode_lib 4523 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c if ((mode_lib->vba.SourcePixelFormat[k] != dm_444_64 mode_lib 4524 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c && mode_lib->vba.SourcePixelFormat[k] != dm_444_32 mode_lib 4525 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c && mode_lib->vba.SourcePixelFormat[k] != dm_444_16 mode_lib 4526 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c && mode_lib->vba.SourcePixelFormat[k] != dm_mono_16 mode_lib 4527 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c && mode_lib->vba.SourcePixelFormat[k] != dm_mono_8)) { mode_lib 4528 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.PDEAndMetaPTEBytesPerFrameC = CalculateVMAndRowBytes( mode_lib 4529 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib, mode_lib 4530 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.DCCEnable[k], mode_lib 4531 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.Read256BlockHeightY[k], mode_lib 4532 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.Read256BlockWidthY[k], mode_lib 4533 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.SourcePixelFormat[k], mode_lib 4534 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.SurfaceTiling[k], mode_lib 4535 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c dml_ceil(mode_lib->vba.BytePerPixelInDETC[k], 2.0), mode_lib 4536 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.SourceScan[k], mode_lib 4537 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.ViewportWidth[k] / 2.0, mode_lib 4538 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.ViewportHeight[k] / 2.0, mode_lib 4539 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.SwathWidthYPerState[i][j][k] / 2.0, mode_lib 4540 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.GPUVMEnable, mode_lib 4541 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.VMMPageSize, mode_lib 4542 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.PTEBufferSizeInRequestsLuma, mode_lib 4543 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.PDEProcessingBufIn64KBReqs, mode_lib 4544 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.PitchC[k], mode_lib 4546 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c &mode_lib->vba.MacroTileWidthC[k], mode_lib 4547 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c &mode_lib->vba.MetaRowBytesC, mode_lib 4548 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c &mode_lib->vba.DPTEBytesPerRowC, mode_lib 4549 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c &mode_lib->vba.PTEBufferSizeNotExceededC[i][j][k], mode_lib 4550 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c &mode_lib->vba.dpte_row_height_chroma[k], mode_lib 4551 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c &mode_lib->vba.meta_row_height_chroma[k]); mode_lib 4552 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.PrefetchLinesC[k] = CalculatePrefetchSourceLines( mode_lib 4553 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib, mode_lib 4554 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.VRatio[k] / 2.0, mode_lib 4555 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.VTAPsChroma[k], mode_lib 4556 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.Interlace[k], mode_lib 4557 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.ProgressiveToInterlaceUnitInOPP, mode_lib 4558 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.SwathHeightCPerState[i][j][k], mode_lib 4559 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.ViewportYStartC[k], mode_lib 4560 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c &mode_lib->vba.PrefillC[k], mode_lib 4561 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c &mode_lib->vba.MaxNumSwC[k]); mode_lib 4563 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.PDEAndMetaPTEBytesPerFrameC = 0.0; mode_lib 4564 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.MetaRowBytesC = 0.0; mode_lib 4565 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.DPTEBytesPerRowC = 0.0; mode_lib 4568 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c locals->PTEBufferSizeInRequestsForLuma = mode_lib->vba.PTEBufferSizeInRequestsLuma + mode_lib->vba.PTEBufferSizeInRequestsChroma; mode_lib 4571 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.PDEAndMetaPTEBytesPerFrameY + mode_lib->vba.PDEAndMetaPTEBytesPerFrameC; mode_lib 4572 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c locals->MetaRowBytes[k] = mode_lib->vba.MetaRowBytesY + mode_lib->vba.MetaRowBytesC; mode_lib 4573 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c locals->DPTEBytesPerRow[k] = mode_lib->vba.DPTEBytesPerRowY + mode_lib->vba.DPTEBytesPerRowC; mode_lib 4576 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.GPUVMEnable, mode_lib 4577 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.SourcePixelFormat[k], mode_lib 4578 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.VRatio[k], mode_lib 4579 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.DCCEnable[k], mode_lib 4580 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.HTotal[k] / mode_lib->vba.PixelClock[k], mode_lib 4581 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.MetaRowBytesY, mode_lib 4582 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.MetaRowBytesC, mode_lib 4583 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.meta_row_height[k], mode_lib 4584 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.meta_row_height_chroma[k], mode_lib 4585 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.DPTEBytesPerRowY, mode_lib 4586 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.DPTEBytesPerRowC, mode_lib 4587 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.dpte_row_height[k], mode_lib 4588 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.dpte_row_height_chroma[k], mode_lib 4589 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c &mode_lib->vba.meta_row_bw[k], mode_lib 4590 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c &mode_lib->vba.dpte_row_bw[k], mode_lib 4591 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c &mode_lib->vba.qual_row_bw[k]); mode_lib 4593 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.ExtraLatency = mode_lib 4594 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.UrgentRoundTripAndOutOfOrderLatencyPerState[i] mode_lib 4595 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c + (mode_lib->vba.TotalNumberOfActiveDPP[i][j] mode_lib 4596 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c * mode_lib->vba.PixelChunkSizeInKByte mode_lib 4597 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c + mode_lib->vba.TotalNumberOfDCCActiveDPP[i][j] mode_lib 4598 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c * mode_lib->vba.MetaChunkSize) mode_lib 4600 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c / mode_lib->vba.ReturnBWPerState[i]; mode_lib 4601 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c if (mode_lib->vba.GPUVMEnable == true) { mode_lib 4602 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.ExtraLatency = mode_lib->vba.ExtraLatency mode_lib 4603 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c + mode_lib->vba.TotalNumberOfActiveDPP[i][j] mode_lib 4604 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c * mode_lib->vba.PTEGroupSize mode_lib 4605 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c / mode_lib->vba.ReturnBWPerState[i]; mode_lib 4607 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.TimeCalc = 24.0 / mode_lib->vba.ProjectedDCFCLKDeepSleep; mode_lib 4609 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) { mode_lib 4610 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c if (mode_lib->vba.BlendingAndTiming[k] == k) { mode_lib 4611 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c if (mode_lib->vba.WritebackEnable[k] == true) { mode_lib 4612 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c locals->WritebackDelay[i][k] = mode_lib->vba.WritebackLatency mode_lib 4614 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.WritebackPixelFormat[k], mode_lib 4615 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.WritebackHRatio[k], mode_lib 4616 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.WritebackVRatio[k], mode_lib 4617 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.WritebackLumaHTaps[k], mode_lib 4618 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.WritebackLumaVTaps[k], mode_lib 4619 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.WritebackChromaHTaps[k], mode_lib 4620 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.WritebackChromaVTaps[k], mode_lib 4621 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.WritebackDestinationWidth[k]) / locals->RequiredDISPCLK[i][j]; mode_lib 4625 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c for (m = 0; m <= mode_lib->vba.NumberOfActivePlanes - 1; m++) { mode_lib 4626 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c if (mode_lib->vba.BlendingAndTiming[m] == k mode_lib 4627 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c && mode_lib->vba.WritebackEnable[m] mode_lib 4630 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.WritebackLatency + CalculateWriteBackDelay( mode_lib 4631 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.WritebackPixelFormat[m], mode_lib 4632 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.WritebackHRatio[m], mode_lib 4633 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.WritebackVRatio[m], mode_lib 4634 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.WritebackLumaHTaps[m], mode_lib 4635 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.WritebackLumaVTaps[m], mode_lib 4636 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.WritebackChromaHTaps[m], mode_lib 4637 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.WritebackChromaVTaps[m], mode_lib 4638 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.WritebackDestinationWidth[m]) / locals->RequiredDISPCLK[i][j]); mode_lib 4643 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) { mode_lib 4644 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c for (m = 0; m <= mode_lib->vba.NumberOfActivePlanes - 1; m++) { mode_lib 4645 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c if (mode_lib->vba.BlendingAndTiming[k] == m) { mode_lib 4650 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) { mode_lib 4656 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) { mode_lib 4657 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c locals->MaximumVStartup[k] = mode_lib->vba.VTotal[k] - mode_lib->vba.VActive[k] mode_lib 4658 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c - dml_max(1.0, dml_ceil(locals->WritebackDelay[i][k] / (mode_lib->vba.HTotal[k] / mode_lib->vba.PixelClock[k]), 1.0)); mode_lib 4661 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.NextPrefetchMode = mode_lib->vba.MinPrefetchMode; mode_lib 4663 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.PrefetchMode[i][j] = mode_lib->vba.NextPrefetchMode; mode_lib 4664 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.NextPrefetchMode = mode_lib->vba.NextPrefetchMode + 1; mode_lib 4666 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.TWait = CalculateTWait( mode_lib 4667 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.PrefetchMode[i][j], mode_lib 4668 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.DRAMClockChangeLatency, mode_lib 4669 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.UrgentLatency, mode_lib 4670 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.SREnterPlusExitTime); mode_lib 4671 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) { mode_lib 4673 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c if (mode_lib->vba.XFCEnabled[k] == true) { mode_lib 4674 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.XFCRemoteSurfaceFlipDelay = mode_lib 4676 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib, mode_lib 4677 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.VRatio[k], mode_lib 4680 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.HTotal[k] / mode_lib->vba.PixelClock[k], mode_lib 4681 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.XFCTSlvVupdateOffset, mode_lib 4682 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.XFCTSlvVupdateWidth, mode_lib 4683 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.XFCTSlvVreadyOffset, mode_lib 4684 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.XFCXBUFLatencyTolerance, mode_lib 4685 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.XFCFillBWOverhead, mode_lib 4686 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.XFCSlvChunkSize, mode_lib 4687 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.XFCBusTransportTime, mode_lib 4688 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.TimeCalc, mode_lib 4689 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.TWait, mode_lib 4690 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c &mode_lib->vba.SrcActiveDrainRate, mode_lib 4691 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c &mode_lib->vba.TInitXFill, mode_lib 4692 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c &mode_lib->vba.TslvChk); mode_lib 4694 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.XFCRemoteSurfaceFlipDelay = 0.0; mode_lib 4696 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.IsErrorResult[i][j][k] = mode_lib 4698 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib, mode_lib 4699 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.RequiredDPPCLK[i][j][k], mode_lib 4700 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.RequiredDISPCLK[i][j], mode_lib 4701 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.PixelClock[k], mode_lib 4702 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.ProjectedDCFCLKDeepSleep, mode_lib 4703 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.DSCDelayPerState[i][k], mode_lib 4704 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.NoOfDPP[i][j][k], mode_lib 4705 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.ScalerEnabled[k], mode_lib 4706 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.NumberOfCursors[k], mode_lib 4707 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.DPPCLKDelaySubtotal, mode_lib 4708 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.DPPCLKDelaySCL, mode_lib 4709 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.DPPCLKDelaySCLLBOnly, mode_lib 4710 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.DPPCLKDelayCNVCFormater, mode_lib 4711 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.DPPCLKDelayCNVCCursor, mode_lib 4712 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.DISPCLKDelaySubtotal, mode_lib 4713 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.SwathWidthYPerState[i][j][k] mode_lib 4714 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c / mode_lib->vba.HRatio[k], mode_lib 4715 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.OutputFormat[k], mode_lib 4716 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.VTotal[k] mode_lib 4717 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c - mode_lib->vba.VActive[k], mode_lib 4718 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.HTotal[k], mode_lib 4719 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.MaxInterDCNTileRepeaters, mode_lib 4720 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.MaximumVStartup[k], mode_lib 4721 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.GPUVMMaxPageTableLevels, mode_lib 4722 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.GPUVMEnable, mode_lib 4723 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.DynamicMetadataEnable[k], mode_lib 4724 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.DynamicMetadataLinesBeforeActiveRequired[k], mode_lib 4725 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.DynamicMetadataTransmittedBytes[k], mode_lib 4726 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.DCCEnable[k], mode_lib 4727 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.UrgentLatencyPixelDataOnly, mode_lib 4728 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.ExtraLatency, mode_lib 4729 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.TimeCalc, mode_lib 4730 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.PDEAndMetaPTEBytesPerFrame[k], mode_lib 4731 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.MetaRowBytes[k], mode_lib 4732 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.DPTEBytesPerRow[k], mode_lib 4733 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.PrefetchLinesY[k], mode_lib 4734 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.SwathWidthYPerState[i][j][k], mode_lib 4735 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.BytePerPixelInDETY[k], mode_lib 4736 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.PrefillY[k], mode_lib 4737 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.MaxNumSwY[k], mode_lib 4738 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.PrefetchLinesC[k], mode_lib 4739 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.BytePerPixelInDETC[k], mode_lib 4740 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.PrefillC[k], mode_lib 4741 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.MaxNumSwC[k], mode_lib 4742 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.SwathHeightYPerState[i][j][k], mode_lib 4743 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.SwathHeightCPerState[i][j][k], mode_lib 4744 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.TWait, mode_lib 4745 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.XFCEnabled[k], mode_lib 4746 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.XFCRemoteSurfaceFlipDelay, mode_lib 4747 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.Interlace[k], mode_lib 4748 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.ProgressiveToInterlaceUnitInOPP, mode_lib 4749 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.DSTXAfterScaler, mode_lib 4750 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.DSTYAfterScaler, mode_lib 4751 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c &mode_lib->vba.LineTimesForPrefetch[k], mode_lib 4752 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c &mode_lib->vba.PrefetchBW[k], mode_lib 4753 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c &mode_lib->vba.LinesForMetaPTE[k], mode_lib 4754 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c &mode_lib->vba.LinesForMetaAndDPTERow[k], mode_lib 4755 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c &mode_lib->vba.VRatioPreY[i][j][k], mode_lib 4756 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c &mode_lib->vba.VRatioPreC[i][j][k], mode_lib 4757 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c &mode_lib->vba.RequiredPrefetchPixelDataBWLuma[i][j][k], mode_lib 4758 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c &mode_lib->vba.VStartupRequiredWhenNotEnoughTimeForDynamicMetadata, mode_lib 4759 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c &mode_lib->vba.Tno_bw[k], mode_lib 4760 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c &mode_lib->vba.VUpdateOffsetPix[k], mode_lib 4761 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c &mode_lib->vba.VUpdateWidthPix[k], mode_lib 4762 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c &mode_lib->vba.VReadyOffsetPix[k]); mode_lib 4764 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.MaximumReadBandwidthWithoutPrefetch = 0.0; mode_lib 4765 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.MaximumReadBandwidthWithPrefetch = 0.0; mode_lib 4768 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) { mode_lib 4788 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.MaximumReadBandwidthWithoutPrefetch = mode_lib->vba.MaximumReadBandwidthWithPrefetch mode_lib 4789 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c + mode_lib->vba.cursor_bw[k] + mode_lib->vba.ReadBandwidth[k] + mode_lib->vba.meta_row_bw[k] + mode_lib->vba.dpte_row_bw[k]; mode_lib 4790 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.MaximumReadBandwidthWithPrefetch = mode_lib 4791 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.MaximumReadBandwidthWithPrefetch mode_lib 4792 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c + mode_lib->vba.cursor_bw[k] mode_lib 4794 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.prefetch_vm_bw[k], mode_lib 4795 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.prefetch_row_bw[k], mode_lib 4796 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c dml_max(mode_lib->vba.ReadBandwidth[k], mode_lib 4797 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.RequiredPrefetchPixelDataBWLuma[i][j][k]) mode_lib 4798 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c + mode_lib->vba.meta_row_bw[k] + mode_lib->vba.dpte_row_bw[k]); mode_lib 4801 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c if (mode_lib->vba.MaximumReadBandwidthWithoutPrefetch > locals->ReturnBWPerState[i]) { mode_lib 4806 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c if (mode_lib->vba.MaximumReadBandwidthWithPrefetch > locals->ReturnBWPerState[i]) { mode_lib 4809 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) { mode_lib 4813 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c || mode_lib->vba.IsErrorResult[i][j][k] == true) { mode_lib 4818 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) { mode_lib 4821 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c || mode_lib->vba.IsErrorResult[i][j][k] == true) { mode_lib 4826 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c && mode_lib->vba.NextPrefetchMode < mode_lib->vba.MaxPrefetchMode); mode_lib 4828 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c if (mode_lib->vba.PrefetchSupported[i][j] == true mode_lib 4829 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c && mode_lib->vba.VRatioInPrefetchSupported[i][j] == true) { mode_lib 4830 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.BandwidthAvailableForImmediateFlip = mode_lib 4831 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.ReturnBWPerState[i]; mode_lib 4832 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) { mode_lib 4833 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.BandwidthAvailableForImmediateFlip = mode_lib 4834 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.BandwidthAvailableForImmediateFlip mode_lib 4835 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c - mode_lib->vba.cursor_bw[k] mode_lib 4837 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.ReadBandwidth[k] + mode_lib->vba.qual_row_bw[k], mode_lib 4838 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.PrefetchBW[k]); mode_lib 4840 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) { mode_lib 4841 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.ImmediateFlipBytes[k] = 0.0; mode_lib 4842 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c if ((mode_lib->vba.SourcePixelFormat[k] != dm_420_8 mode_lib 4843 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c && mode_lib->vba.SourcePixelFormat[k] != dm_420_10)) { mode_lib 4844 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.ImmediateFlipBytes[k] = mode_lib 4845 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.PDEAndMetaPTEBytesPerFrame[k] mode_lib 4846 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c + mode_lib->vba.MetaRowBytes[k] mode_lib 4847 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c + mode_lib->vba.DPTEBytesPerRow[k]; mode_lib 4850 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.TotImmediateFlipBytes = 0.0; mode_lib 4851 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) { mode_lib 4852 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c if ((mode_lib->vba.SourcePixelFormat[k] != dm_420_8 mode_lib 4853 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c && mode_lib->vba.SourcePixelFormat[k] != dm_420_10)) { mode_lib 4854 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.TotImmediateFlipBytes = mode_lib 4855 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.TotImmediateFlipBytes mode_lib 4856 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c + mode_lib->vba.ImmediateFlipBytes[k]; mode_lib 4860 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) { mode_lib 4862 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib, mode_lib 4863 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.ExtraLatency, mode_lib 4864 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.UrgentLatencyPixelDataOnly, mode_lib 4865 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.GPUVMMaxPageTableLevels, mode_lib 4866 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.GPUVMEnable, mode_lib 4867 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.BandwidthAvailableForImmediateFlip, mode_lib 4868 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.TotImmediateFlipBytes, mode_lib 4869 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.SourcePixelFormat[k], mode_lib 4870 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.ImmediateFlipBytes[k], mode_lib 4871 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.HTotal[k] mode_lib 4872 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c / mode_lib->vba.PixelClock[k], mode_lib 4873 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.VRatio[k], mode_lib 4874 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.Tno_bw[k], mode_lib 4875 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.PDEAndMetaPTEBytesPerFrame[k], mode_lib 4876 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.MetaRowBytes[k], mode_lib 4877 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.DPTEBytesPerRow[k], mode_lib 4878 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.DCCEnable[k], mode_lib 4879 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.dpte_row_height[k], mode_lib 4880 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.meta_row_height[k], mode_lib 4881 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.qual_row_bw[k], mode_lib 4882 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c &mode_lib->vba.DestinationLinesToRequestVMInImmediateFlip[k], mode_lib 4883 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c &mode_lib->vba.DestinationLinesToRequestRowInImmediateFlip[k], mode_lib 4884 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c &mode_lib->vba.final_flip_bw[k], mode_lib 4885 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c &mode_lib->vba.ImmediateFlipSupportedForPipe[k]); mode_lib 4887 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.total_dcn_read_bw_with_flip = 0.0; mode_lib 4888 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) { mode_lib 4889 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.total_dcn_read_bw_with_flip = mode_lib 4890 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.total_dcn_read_bw_with_flip mode_lib 4891 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c + mode_lib->vba.cursor_bw[k] mode_lib 4893 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.prefetch_vm_bw[k], mode_lib 4894 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.prefetch_row_bw[k], mode_lib 4895 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.final_flip_bw[k] mode_lib 4897 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.ReadBandwidth[k], mode_lib 4898 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.RequiredPrefetchPixelDataBWLuma[i][j][k])); mode_lib 4900 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.ImmediateFlipSupportedForState[i][j] = true; mode_lib 4901 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c if (mode_lib->vba.total_dcn_read_bw_with_flip mode_lib 4902 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c > mode_lib->vba.ReturnBWPerState[i]) { mode_lib 4903 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.ImmediateFlipSupportedForState[i][j] = false; mode_lib 4905 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) { mode_lib 4906 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c if (mode_lib->vba.ImmediateFlipSupportedForPipe[k] == false) { mode_lib 4907 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.ImmediateFlipSupportedForState[i][j] = false; mode_lib 4911 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.ImmediateFlipSupportedForState[i][j] = false; mode_lib 4917 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.MaxTotalVActiveRDBandwidth = 0; mode_lib 4918 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; k++) mode_lib 4919 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.MaxTotalVActiveRDBandwidth = mode_lib->vba.MaxTotalVActiveRDBandwidth + mode_lib->vba.ReadBandwidth[k]; mode_lib 4920 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c for (i = 0; i <= mode_lib->vba.soc.num_states; i++) { mode_lib 4921 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.MaxTotalVerticalActiveAvailableBandwidth[i] = dml_min(mode_lib->vba.ReturnBusWidth * mode_lib 4922 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.DCFCLKPerState[i], mode_lib->vba.FabricAndDRAMBandwidthPerState[i] * 1000) * mode_lib 4923 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.MaxAveragePercentOfIdealDRAMBWDisplayCanUseInNormalSystemOperation / 100; mode_lib 4924 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c if (mode_lib->vba.MaxTotalVActiveRDBandwidth <= mode_lib->vba.MaxTotalVerticalActiveAvailableBandwidth[i]) mode_lib 4925 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.TotalVerticalActiveBandwidthSupport[i] = true; mode_lib 4927 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.TotalVerticalActiveBandwidthSupport[i] = false; mode_lib 4932 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c for (i = 0; i <= mode_lib->vba.soc.num_states; i++) { mode_lib 4935 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) { mode_lib 4944 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.CursorSupport = true; mode_lib 4945 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) { mode_lib 4947 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c if (mode_lib->vba.CursorWidth[k][j] > 0.0) { mode_lib 4950 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.CursorBufferSize mode_lib 4951 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c - mode_lib->vba.CursorChunkSize, mode_lib 4952 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.CursorChunkSize) * 1024.0 mode_lib 4953 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c / (mode_lib->vba.CursorWidth[k][j] mode_lib 4954 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c * mode_lib->vba.CursorBPP[k][j] mode_lib 4957 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c * (mode_lib->vba.HTotal[k] / mode_lib->vba.PixelClock[k]) mode_lib 4958 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c / mode_lib->vba.VRatio[k] < mode_lib->vba.UrgentLatencyPixelDataOnly mode_lib 4959 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c || (mode_lib->vba.CursorBPP[k][j] == 64.0 mode_lib 4960 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c && mode_lib->vba.Cursor64BppSupport == false)) { mode_lib 4961 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.CursorSupport = false; mode_lib 4968 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.PitchSupport = true; mode_lib 4969 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) { mode_lib 4971 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c dml_max(mode_lib->vba.PitchY[k], mode_lib->vba.ViewportWidth[k]), mode_lib 4973 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c if (locals->AlignedYPitch[k] > mode_lib->vba.PitchY[k]) { mode_lib 4974 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.PitchSupport = false; mode_lib 4976 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c if (mode_lib->vba.DCCEnable[k] == true) { mode_lib 4979 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.DCCMetaPitchY[k], mode_lib 4980 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.ViewportWidth[k]), mode_lib 4983 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c locals->AlignedDCCMetaPitch[k] = mode_lib->vba.DCCMetaPitchY[k]; mode_lib 4985 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c if (locals->AlignedDCCMetaPitch[k] > mode_lib->vba.DCCMetaPitchY[k]) { mode_lib 4986 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.PitchSupport = false; mode_lib 4988 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c if (mode_lib->vba.SourcePixelFormat[k] != dm_444_64 mode_lib 4989 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c && mode_lib->vba.SourcePixelFormat[k] != dm_444_32 mode_lib 4990 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c && mode_lib->vba.SourcePixelFormat[k] != dm_444_16 mode_lib 4991 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c && mode_lib->vba.SourcePixelFormat[k] != dm_mono_16 mode_lib 4992 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c && mode_lib->vba.SourcePixelFormat[k] != dm_mono_8) { mode_lib 4995 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.PitchC[k], mode_lib 4996 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.ViewportWidth[k] / 2.0), mode_lib 4999 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c locals->AlignedCPitch[k] = mode_lib->vba.PitchC[k]; mode_lib 5001 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c if (locals->AlignedCPitch[k] > mode_lib->vba.PitchC[k]) { mode_lib 5002 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.PitchSupport = false; mode_lib 5007 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c for (i = mode_lib->vba.soc.num_states; i >= 0; i--) { mode_lib 5011 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c if (mode_lib->vba.ScaleRatioAndTapsSupport != true) { mode_lib 5013 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c } else if (mode_lib->vba.SourceFormatPixelAndScanSupport != true) { mode_lib 5031 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c } else if (mode_lib->vba.NumberOfOTGSupport != true) { mode_lib 5033 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c } else if (mode_lib->vba.WritebackModeSupport != true) { mode_lib 5035 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c } else if (mode_lib->vba.WritebackLatencySupport != true) { mode_lib 5037 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c } else if (mode_lib->vba.WritebackScaleRatioAndTapsSupport != true) { mode_lib 5039 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c } else if (mode_lib->vba.CursorSupport != true) { mode_lib 5041 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c } else if (mode_lib->vba.PitchSupport != true) { mode_lib 5051 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c } else if (mode_lib->vba.NonsupportedDSCInputBPC != false) { mode_lib 5065 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.VoltageLevel = mode_lib->vba.soc.num_states + 1; mode_lib 5066 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c for (i = mode_lib->vba.VoltageOverrideLevel; i <= mode_lib->vba.soc.num_states; i++) { mode_lib 5068 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.VoltageLevel = i; mode_lib 5070 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c || mode_lib->vba.WhenToDoMPCCombine == dm_mpc_always_when_possible)) { mode_lib 5078 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.ImmediateFlipSupport = mode_lib 5079 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c locals->ImmediateFlipSupportedForState[mode_lib->vba.VoltageLevel][MaximumMPCCombine]; mode_lib 5080 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) { mode_lib 5081 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.DPPPerPlane[k] = locals->NoOfDPP[mode_lib->vba.VoltageLevel][MaximumMPCCombine][k]; mode_lib 5082 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c locals->DPPCLK[k] = locals->RequiredDPPCLK[mode_lib->vba.VoltageLevel][MaximumMPCCombine][k]; mode_lib 5084 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.DISPCLK = locals->RequiredDISPCLK[mode_lib->vba.VoltageLevel][MaximumMPCCombine]; mode_lib 5085 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.maxMpcComb = MaximumMPCCombine; mode_lib 5087 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.DCFCLK = mode_lib->vba.DCFCLKPerState[mode_lib->vba.VoltageLevel]; mode_lib 5088 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.DRAMSpeed = mode_lib->vba.DRAMSpeedPerState[mode_lib->vba.VoltageLevel]; mode_lib 5089 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.FabricClock = mode_lib->vba.FabricClockPerState[mode_lib->vba.VoltageLevel]; mode_lib 5090 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.SOCCLK = mode_lib->vba.SOCCLKPerState[mode_lib->vba.VoltageLevel]; mode_lib 5091 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.ReturnBW = locals->ReturnBWPerState[mode_lib->vba.VoltageLevel]; mode_lib 5092 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.FabricAndDRAMBandwidth = locals->FabricAndDRAMBandwidthPerState[mode_lib->vba.VoltageLevel]; mode_lib 5093 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) { mode_lib 5094 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c if (mode_lib->vba.BlendingAndTiming[k] == k) { mode_lib 5095 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.ODMCombineEnabled[k] = mode_lib 5096 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c locals->ODMCombineEnablePerState[mode_lib->vba.VoltageLevel][k]; mode_lib 5098 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.ODMCombineEnabled[k] = 0; mode_lib 5100 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.DSCEnabled[k] = mode_lib 5101 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c locals->RequiresDSC[mode_lib->vba.VoltageLevel][k]; mode_lib 5102 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c mode_lib->vba.OutputBpp[k] = mode_lib 5103 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c locals->OutputBppPerState[mode_lib->vba.VoltageLevel][k]; mode_lib 29 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.h void dml20_recalculate(struct display_mode_lib *mode_lib); mode_lib 30 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.h void dml20_ModeSupportAndSystemConfigurationFull(struct display_mode_lib *mode_lib); mode_lib 43 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c struct display_mode_lib *mode_lib, mode_lib 55 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c struct display_mode_lib *mode_lib, mode_lib 90 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c struct display_mode_lib *mode_lib, mode_lib 145 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c struct display_mode_lib *mode_lib, mode_lib 155 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c struct display_mode_lib *mode_lib, mode_lib 184 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c struct display_mode_lib *mode_lib, mode_lib 219 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c struct display_mode_lib *mode_lib, mode_lib 252 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c static void dml20v2_DisplayPipeConfiguration(struct display_mode_lib *mode_lib); mode_lib 254 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c struct display_mode_lib *mode_lib); mode_lib 256 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c void dml20v2_recalculate(struct display_mode_lib *mode_lib) mode_lib 258 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c ModeSupportAndSystemConfiguration(mode_lib); mode_lib 259 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.FabricAndDRAMBandwidth = dml_min( mode_lib 260 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.DRAMSpeed * mode_lib->vba.NumberOfChannels * mode_lib->vba.DRAMChannelWidth, mode_lib 261 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.FabricClock * mode_lib->vba.FabricDatapathToDCNDataReturn) / 1000.0; mode_lib 262 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c PixelClockAdjustmentForProgressiveToInterlaceUnit(mode_lib); mode_lib 263 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c dml20v2_DisplayPipeConfiguration(mode_lib); mode_lib 264 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c dml20v2_DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation(mode_lib); mode_lib 268 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c struct display_mode_lib *mode_lib, mode_lib 277 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c > mode_lib->vba.DCFCLK * mode_lib->vba.ReturnBusWidth / 4.0) mode_lib 283 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c - mode_lib->vba.UrgentLatencyPixelDataOnly mode_lib 284 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c / ((mode_lib->vba.ROBBufferSizeInKByte mode_lib 285 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c - mode_lib->vba.PixelChunkSizeInKByte) mode_lib 288 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c - mode_lib->vba.DCFCLK mode_lib 289 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c * mode_lib->vba.ReturnBusWidth mode_lib 291 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c + mode_lib->vba.UrgentLatencyPixelDataOnly)); mode_lib 293 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c CriticalCompression = 2.0 * mode_lib->vba.ReturnBusWidth * mode_lib->vba.DCFCLK mode_lib 294 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c * mode_lib->vba.UrgentLatencyPixelDataOnly mode_lib 295 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c / (ReturnBandwidthToDCN * mode_lib->vba.UrgentLatencyPixelDataOnly mode_lib 296 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c + (mode_lib->vba.ROBBufferSizeInKByte mode_lib 297 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c - mode_lib->vba.PixelChunkSizeInKByte) mode_lib 305 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c * (mode_lib->vba.ROBBufferSizeInKByte mode_lib 306 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c - mode_lib->vba.PixelChunkSizeInKByte) mode_lib 308 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c * mode_lib->vba.ReturnBusWidth mode_lib 309 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c * mode_lib->vba.DCFCLK mode_lib 310 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c * mode_lib->vba.UrgentLatencyPixelDataOnly mode_lib 313 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c * mode_lib->vba.UrgentLatencyPixelDataOnly mode_lib 314 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c + (mode_lib->vba.ROBBufferSizeInKByte mode_lib 315 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c - mode_lib->vba.PixelChunkSizeInKByte) mode_lib 462 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c struct display_mode_lib *mode_lib, mode_lib 501 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c DataFabricLineDeliveryTimeLuma = SwathWidthSingleDPPY * SwathHeightY * dml_ceil(BytePerPixelDETY, 1) / (mode_lib->vba.ReturnBW * ReadBandwidthPlaneLuma / TotalDataReadBandwidth); mode_lib 502 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.LastPixelOfLineExtraWatermark = dml_max(mode_lib->vba.LastPixelOfLineExtraWatermark, DataFabricLineDeliveryTimeLuma - DisplayPipeLineDeliveryTimeLuma); mode_lib 505 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c DataFabricLineDeliveryTimeChroma = SwathWidthSingleDPPY / 2 * SwathHeightC * dml_ceil(BytePerPixelDETC, 2) / (mode_lib->vba.ReturnBW * ReadBandwidthPlaneChroma / TotalDataReadBandwidth); mode_lib 506 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.LastPixelOfLineExtraWatermark = dml_max(mode_lib->vba.LastPixelOfLineExtraWatermark, DataFabricLineDeliveryTimeChroma - DisplayPipeLineDeliveryTimeChroma); mode_lib 540 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c struct display_mode_lib *mode_lib, mode_lib 871 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c struct display_mode_lib *mode_lib, mode_lib 888 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c if (!mode_lib->vba.IgnoreViewportPositioning) { mode_lib 918 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c struct display_mode_lib *mode_lib, mode_lib 988 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c MPDEBytesFrame = 128 * (mode_lib->vba.GPUVMMaxPageTableLevels - 1); mode_lib 1018 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c if (GPUVMEnable == true && mode_lib->vba.GPUVMMaxPageTableLevels > 1) { mode_lib 1050 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c ExtraDPDEBytesFrame = 128 * (mode_lib->vba.GPUVMMaxPageTableLevels - 2); mode_lib 1144 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c struct display_mode_lib *mode_lib) mode_lib 1148 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.WritebackDISPCLK = 0.0; mode_lib 1149 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.DISPCLKWithRamping = 0; mode_lib 1150 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.DISPCLKWithoutRamping = 0; mode_lib 1151 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.GlobalDPPCLK = 0.0; mode_lib 1155 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) { mode_lib 1156 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c if (mode_lib->vba.WritebackEnable[k]) { mode_lib 1157 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.WritebackDISPCLK = mode_lib 1159 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.WritebackDISPCLK, mode_lib 1161 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.WritebackPixelFormat[k], mode_lib 1162 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.PixelClock[k], mode_lib 1163 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.WritebackHRatio[k], mode_lib 1164 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.WritebackVRatio[k], mode_lib 1165 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.WritebackLumaHTaps[k], mode_lib 1166 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.WritebackLumaVTaps[k], mode_lib 1167 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.WritebackChromaHTaps[k], mode_lib 1168 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.WritebackChromaVTaps[k], mode_lib 1169 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.WritebackDestinationWidth[k], mode_lib 1170 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.HTotal[k], mode_lib 1171 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.WritebackChromaLineBufferWidth)); mode_lib 1175 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) { mode_lib 1176 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c if (mode_lib->vba.HRatio[k] > 1) { mode_lib 1177 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.PSCL_THROUGHPUT_LUMA[k] = dml_min( mode_lib 1178 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.MaxDCHUBToPSCLThroughput, mode_lib 1179 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.MaxPSCLToLBThroughput mode_lib 1180 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c * mode_lib->vba.HRatio[k] mode_lib 1182 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.htaps[k] mode_lib 1186 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.PSCL_THROUGHPUT_LUMA[k] = dml_min( mode_lib 1187 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.MaxDCHUBToPSCLThroughput, mode_lib 1188 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.MaxPSCLToLBThroughput); mode_lib 1191 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.DPPCLKUsingSingleDPPLuma = mode_lib 1192 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.PixelClock[k] mode_lib 1194 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.vtaps[k] / 6.0 mode_lib 1197 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.HRatio[k]), mode_lib 1199 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.HRatio[k] mode_lib 1200 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c * mode_lib->vba.VRatio[k] mode_lib 1201 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c / mode_lib->vba.PSCL_THROUGHPUT_LUMA[k], mode_lib 1204 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c if ((mode_lib->vba.htaps[k] > 6 || mode_lib->vba.vtaps[k] > 6) mode_lib 1205 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c && mode_lib->vba.DPPCLKUsingSingleDPPLuma mode_lib 1206 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c < 2 * mode_lib->vba.PixelClock[k]) { mode_lib 1207 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.DPPCLKUsingSingleDPPLuma = 2 * mode_lib->vba.PixelClock[k]; mode_lib 1210 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c if ((mode_lib->vba.SourcePixelFormat[k] != dm_420_8 mode_lib 1211 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c && mode_lib->vba.SourcePixelFormat[k] != dm_420_10)) { mode_lib 1212 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.PSCL_THROUGHPUT_CHROMA[k] = 0.0; mode_lib 1213 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.DPPCLKUsingSingleDPP[k] = mode_lib 1214 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.DPPCLKUsingSingleDPPLuma; mode_lib 1216 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c if (mode_lib->vba.HRatio[k] > 1) { mode_lib 1217 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.PSCL_THROUGHPUT_CHROMA[k] = mode_lib 1219 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.MaxDCHUBToPSCLThroughput, mode_lib 1220 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.MaxPSCLToLBThroughput mode_lib 1221 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c * mode_lib->vba.HRatio[k] mode_lib 1224 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.HTAPsChroma[k] mode_lib 1228 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.PSCL_THROUGHPUT_CHROMA[k] = dml_min( mode_lib 1229 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.MaxDCHUBToPSCLThroughput, mode_lib 1230 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.MaxPSCLToLBThroughput); mode_lib 1232 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.DPPCLKUsingSingleDPPChroma = mode_lib 1233 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.PixelClock[k] mode_lib 1235 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.VTAPsChroma[k] mode_lib 1239 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.HRatio[k] mode_lib 1242 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.HRatio[k] mode_lib 1243 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c * mode_lib->vba.VRatio[k] mode_lib 1245 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c / mode_lib->vba.PSCL_THROUGHPUT_CHROMA[k], mode_lib 1248 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c if ((mode_lib->vba.HTAPsChroma[k] > 6 || mode_lib->vba.VTAPsChroma[k] > 6) mode_lib 1249 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c && mode_lib->vba.DPPCLKUsingSingleDPPChroma mode_lib 1250 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c < 2 * mode_lib->vba.PixelClock[k]) { mode_lib 1251 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.DPPCLKUsingSingleDPPChroma = 2 mode_lib 1252 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c * mode_lib->vba.PixelClock[k]; mode_lib 1255 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.DPPCLKUsingSingleDPP[k] = dml_max( mode_lib 1256 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.DPPCLKUsingSingleDPPLuma, mode_lib 1257 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.DPPCLKUsingSingleDPPChroma); mode_lib 1261 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) { mode_lib 1262 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c if (mode_lib->vba.BlendingAndTiming[k] != k) mode_lib 1264 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c if (mode_lib->vba.ODMCombineEnabled[k]) { mode_lib 1265 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.DISPCLKWithRamping = mode_lib 1267 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.DISPCLKWithRamping, mode_lib 1268 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.PixelClock[k] / 2 mode_lib 1270 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c + mode_lib->vba.DISPCLKDPPCLKDSCCLKDownSpreading mode_lib 1273 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c + mode_lib->vba.DISPCLKRampingMargin mode_lib 1275 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.DISPCLKWithoutRamping = mode_lib 1277 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.DISPCLKWithoutRamping, mode_lib 1278 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.PixelClock[k] / 2 mode_lib 1280 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c + mode_lib->vba.DISPCLKDPPCLKDSCCLKDownSpreading mode_lib 1282 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c } else if (!mode_lib->vba.ODMCombineEnabled[k]) { mode_lib 1283 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.DISPCLKWithRamping = mode_lib 1285 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.DISPCLKWithRamping, mode_lib 1286 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.PixelClock[k] mode_lib 1288 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c + mode_lib->vba.DISPCLKDPPCLKDSCCLKDownSpreading mode_lib 1291 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c + mode_lib->vba.DISPCLKRampingMargin mode_lib 1293 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.DISPCLKWithoutRamping = mode_lib 1295 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.DISPCLKWithoutRamping, mode_lib 1296 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.PixelClock[k] mode_lib 1298 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c + mode_lib->vba.DISPCLKDPPCLKDSCCLKDownSpreading mode_lib 1303 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.DISPCLKWithRamping = dml_max( mode_lib 1304 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.DISPCLKWithRamping, mode_lib 1305 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.WritebackDISPCLK); mode_lib 1306 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.DISPCLKWithoutRamping = dml_max( mode_lib 1307 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.DISPCLKWithoutRamping, mode_lib 1308 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.WritebackDISPCLK); mode_lib 1310 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c ASSERT(mode_lib->vba.DISPCLKDPPCLKVCOSpeed != 0); mode_lib 1311 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.DISPCLKWithRampingRoundedToDFSGranularity = RoundToDFSGranularityUp( mode_lib 1312 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.DISPCLKWithRamping, mode_lib 1313 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.DISPCLKDPPCLKVCOSpeed); mode_lib 1314 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.DISPCLKWithoutRampingRoundedToDFSGranularity = RoundToDFSGranularityUp( mode_lib 1315 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.DISPCLKWithoutRamping, mode_lib 1316 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.DISPCLKDPPCLKVCOSpeed); mode_lib 1317 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.MaxDispclkRoundedToDFSGranularity = RoundToDFSGranularityDown( mode_lib 1318 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.soc.clock_limits[mode_lib->vba.soc.num_states].dispclk_mhz, mode_lib 1319 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.DISPCLKDPPCLKVCOSpeed); mode_lib 1320 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c if (mode_lib->vba.DISPCLKWithoutRampingRoundedToDFSGranularity mode_lib 1321 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c > mode_lib->vba.MaxDispclkRoundedToDFSGranularity) { mode_lib 1322 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.DISPCLK_calculated = mode_lib 1323 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.DISPCLKWithoutRampingRoundedToDFSGranularity; mode_lib 1324 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c } else if (mode_lib->vba.DISPCLKWithRampingRoundedToDFSGranularity mode_lib 1325 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c > mode_lib->vba.MaxDispclkRoundedToDFSGranularity) { mode_lib 1326 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.DISPCLK_calculated = mode_lib->vba.MaxDispclkRoundedToDFSGranularity; mode_lib 1328 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.DISPCLK_calculated = mode_lib 1329 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.DISPCLKWithRampingRoundedToDFSGranularity; mode_lib 1331 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c DTRACE(" dispclk_mhz (calculated) = %f", mode_lib->vba.DISPCLK_calculated); mode_lib 1333 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) { mode_lib 1334 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c if (mode_lib->vba.DPPPerPlane[k] == 0) { mode_lib 1335 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.DPPCLK_calculated[k] = 0; mode_lib 1337 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.DPPCLK_calculated[k] = mode_lib->vba.DPPCLKUsingSingleDPP[k] mode_lib 1338 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c / mode_lib->vba.DPPPerPlane[k] mode_lib 1339 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c * (1 + mode_lib->vba.DISPCLKDPPCLKDSCCLKDownSpreading / 100); mode_lib 1341 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.GlobalDPPCLK = dml_max( mode_lib 1342 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.GlobalDPPCLK, mode_lib 1343 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.DPPCLK_calculated[k]); mode_lib 1345 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.GlobalDPPCLK = RoundToDFSGranularityUp( mode_lib 1346 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.GlobalDPPCLK, mode_lib 1347 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.DISPCLKDPPCLKVCOSpeed); mode_lib 1348 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) { mode_lib 1349 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.DPPCLK_calculated[k] = mode_lib->vba.GlobalDPPCLK / 255 mode_lib 1351 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.DPPCLK_calculated[k] * 255 mode_lib 1352 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c / mode_lib->vba.GlobalDPPCLK, mode_lib 1354 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c DTRACE(" dppclk_mhz[%i] (calculated) = %f", k, mode_lib->vba.DPPCLK_calculated[k]); mode_lib 1358 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.DCCEnabledAnyPlane = false; mode_lib 1359 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) mode_lib 1360 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c if (mode_lib->vba.DCCEnable[k]) mode_lib 1361 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.DCCEnabledAnyPlane = true; mode_lib 1363 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.ReturnBandwidthToDCN = dml_min( mode_lib 1364 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.ReturnBusWidth * mode_lib->vba.DCFCLK, mode_lib 1365 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.FabricAndDRAMBandwidth * 1000) mode_lib 1366 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c * mode_lib->vba.PercentOfIdealDRAMFabricAndSDPPortBWReceivedAfterUrgLatencyPixelDataOnly / 100; mode_lib 1368 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.ReturnBW = mode_lib->vba.ReturnBandwidthToDCN; mode_lib 1369 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.ReturnBW = adjust_ReturnBW( mode_lib 1370 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib, mode_lib 1371 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.ReturnBW, mode_lib 1372 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.DCCEnabledAnyPlane, mode_lib 1373 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.ReturnBandwidthToDCN); mode_lib 1376 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.ReturnBandwidthToDCN = dml_min( mode_lib 1377 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.ReturnBusWidth * mode_lib->vba.DCFCLK, mode_lib 1378 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.FabricAndDRAMBandwidth * 1000); mode_lib 1379 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.ReturnBW = adjust_ReturnBW( mode_lib 1380 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib, mode_lib 1381 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.ReturnBW, mode_lib 1382 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.DCCEnabledAnyPlane, mode_lib 1383 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.ReturnBandwidthToDCN); mode_lib 1385 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c DTRACE(" dcfclk_mhz = %f", mode_lib->vba.DCFCLK); mode_lib 1386 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c DTRACE(" return_bw_to_dcn = %f", mode_lib->vba.ReturnBandwidthToDCN); mode_lib 1387 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c DTRACE(" return_bus_bw = %f", mode_lib->vba.ReturnBW); mode_lib 1389 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) { mode_lib 1392 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c if (mode_lib->vba.SourceScan[k] == dm_horz) mode_lib 1393 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.SwathWidthSingleDPPY[k] = mode_lib->vba.ViewportWidth[k]; mode_lib 1395 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.SwathWidthSingleDPPY[k] = mode_lib->vba.ViewportHeight[k]; mode_lib 1397 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c if (mode_lib->vba.ODMCombineEnabled[k] == true) mode_lib 1399 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c for (j = 0; j < mode_lib->vba.NumberOfActivePlanes; ++j) mode_lib 1400 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c if (mode_lib->vba.BlendingAndTiming[k] == j mode_lib 1401 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c && mode_lib->vba.ODMCombineEnabled[j] == true) mode_lib 1405 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.SwathWidthY[k] = dml_min( mode_lib 1406 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c (double) mode_lib->vba.SwathWidthSingleDPPY[k], mode_lib 1408 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.HActive[k] / 2.0 mode_lib 1409 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c * mode_lib->vba.HRatio[k])); mode_lib 1411 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c if (mode_lib->vba.DPPPerPlane[k] == 0) { mode_lib 1412 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.SwathWidthY[k] = 0; mode_lib 1414 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.SwathWidthY[k] = mode_lib->vba.SwathWidthSingleDPPY[k] mode_lib 1415 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c / mode_lib->vba.DPPPerPlane[k]; mode_lib 1420 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) { mode_lib 1421 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c if (mode_lib->vba.SourcePixelFormat[k] == dm_444_64) { mode_lib 1422 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.BytePerPixelDETY[k] = 8; mode_lib 1423 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.BytePerPixelDETC[k] = 0; mode_lib 1424 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c } else if (mode_lib->vba.SourcePixelFormat[k] == dm_444_32) { mode_lib 1425 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.BytePerPixelDETY[k] = 4; mode_lib 1426 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.BytePerPixelDETC[k] = 0; mode_lib 1427 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c } else if (mode_lib->vba.SourcePixelFormat[k] == dm_444_16) { mode_lib 1428 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.BytePerPixelDETY[k] = 2; mode_lib 1429 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.BytePerPixelDETC[k] = 0; mode_lib 1430 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c } else if (mode_lib->vba.SourcePixelFormat[k] == dm_444_8) { mode_lib 1431 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.BytePerPixelDETY[k] = 1; mode_lib 1432 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.BytePerPixelDETC[k] = 0; mode_lib 1433 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c } else if (mode_lib->vba.SourcePixelFormat[k] == dm_420_8) { mode_lib 1434 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.BytePerPixelDETY[k] = 1; mode_lib 1435 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.BytePerPixelDETC[k] = 2; mode_lib 1437 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.BytePerPixelDETY[k] = 4.0 / 3.0; mode_lib 1438 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.BytePerPixelDETC[k] = 8.0 / 3.0; mode_lib 1442 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.TotalDataReadBandwidth = 0.0; mode_lib 1443 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) { mode_lib 1444 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.ReadBandwidthPlaneLuma[k] = mode_lib->vba.SwathWidthSingleDPPY[k] mode_lib 1445 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c * dml_ceil(mode_lib->vba.BytePerPixelDETY[k], 1) mode_lib 1446 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c / (mode_lib->vba.HTotal[k] / mode_lib->vba.PixelClock[k]) mode_lib 1447 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c * mode_lib->vba.VRatio[k]; mode_lib 1448 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.ReadBandwidthPlaneChroma[k] = mode_lib->vba.SwathWidthSingleDPPY[k] mode_lib 1449 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c / 2 * dml_ceil(mode_lib->vba.BytePerPixelDETC[k], 2) mode_lib 1450 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c / (mode_lib->vba.HTotal[k] / mode_lib->vba.PixelClock[k]) mode_lib 1451 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c * mode_lib->vba.VRatio[k] / 2; mode_lib 1455 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.ReadBandwidthPlaneLuma[k] mode_lib 1456 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c + mode_lib->vba.ReadBandwidthPlaneChroma[k]); mode_lib 1457 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.TotalDataReadBandwidth += mode_lib->vba.ReadBandwidthPlaneLuma[k] mode_lib 1458 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c + mode_lib->vba.ReadBandwidthPlaneChroma[k]; mode_lib 1461 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.TotalDCCActiveDPP = 0; mode_lib 1462 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.TotalActiveDPP = 0; mode_lib 1463 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) { mode_lib 1464 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.TotalActiveDPP = mode_lib->vba.TotalActiveDPP mode_lib 1465 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c + mode_lib->vba.DPPPerPlane[k]; mode_lib 1466 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c if (mode_lib->vba.DCCEnable[k]) mode_lib 1467 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.TotalDCCActiveDPP = mode_lib->vba.TotalDCCActiveDPP mode_lib 1468 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c + mode_lib->vba.DPPPerPlane[k]; mode_lib 1471 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.UrgentRoundTripAndOutOfOrderLatency = mode_lib 1472 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c (mode_lib->vba.RoundTripPingLatencyCycles + 32) / mode_lib->vba.DCFCLK mode_lib 1473 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c + mode_lib->vba.UrgentOutOfOrderReturnPerChannelPixelDataOnly mode_lib 1474 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c * mode_lib->vba.NumberOfChannels mode_lib 1475 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c / mode_lib->vba.ReturnBW; mode_lib 1477 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.LastPixelOfLineExtraWatermark = 0; mode_lib 1478 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) { mode_lib 1479 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c if (mode_lib->vba.VRatio[k] <= 1.0) mode_lib 1480 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.DisplayPipeLineDeliveryTimeLuma[k] = mode_lib 1481 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c (double) mode_lib->vba.SwathWidthY[k] mode_lib 1482 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c * mode_lib->vba.DPPPerPlane[k] mode_lib 1483 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c / mode_lib->vba.HRatio[k] mode_lib 1484 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c / mode_lib->vba.PixelClock[k]; mode_lib 1486 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.DisplayPipeLineDeliveryTimeLuma[k] = mode_lib 1487 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c (double) mode_lib->vba.SwathWidthY[k] mode_lib 1488 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c / mode_lib->vba.PSCL_THROUGHPUT_LUMA[k] mode_lib 1489 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c / mode_lib->vba.DPPCLK[k]; mode_lib 1491 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c if (mode_lib->vba.BytePerPixelDETC[k] == 0) mode_lib 1492 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.DisplayPipeLineDeliveryTimeChroma[k] = 0.0; mode_lib 1493 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c else if (mode_lib->vba.VRatio[k] / 2.0 <= 1.0) mode_lib 1494 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.DisplayPipeLineDeliveryTimeChroma[k] = mode_lib 1495 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.SwathWidthY[k] / 2.0 mode_lib 1496 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c * mode_lib->vba.DPPPerPlane[k] mode_lib 1497 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c / (mode_lib->vba.HRatio[k] / 2.0) mode_lib 1498 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c / mode_lib->vba.PixelClock[k]; mode_lib 1500 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.DisplayPipeLineDeliveryTimeChroma[k] = mode_lib 1501 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.SwathWidthY[k] / 2.0 mode_lib 1502 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c / mode_lib->vba.PSCL_THROUGHPUT_CHROMA[k] mode_lib 1503 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c / mode_lib->vba.DPPCLK[k]; mode_lib 1506 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.UrgentExtraLatency = mode_lib->vba.UrgentRoundTripAndOutOfOrderLatency mode_lib 1507 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c + (mode_lib->vba.TotalActiveDPP * mode_lib->vba.PixelChunkSizeInKByte mode_lib 1508 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c + mode_lib->vba.TotalDCCActiveDPP mode_lib 1509 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c * mode_lib->vba.MetaChunkSize) * 1024.0 mode_lib 1510 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c / mode_lib->vba.ReturnBW; mode_lib 1512 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c if (mode_lib->vba.GPUVMEnable) mode_lib 1513 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.UrgentExtraLatency += mode_lib->vba.TotalActiveDPP mode_lib 1514 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c * mode_lib->vba.PTEGroupSize / mode_lib->vba.ReturnBW; mode_lib 1516 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.UrgentWatermark = mode_lib->vba.UrgentLatencyPixelDataOnly mode_lib 1517 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c + mode_lib->vba.LastPixelOfLineExtraWatermark mode_lib 1518 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c + mode_lib->vba.UrgentExtraLatency; mode_lib 1520 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c DTRACE(" urgent_extra_latency = %fus", mode_lib->vba.UrgentExtraLatency); mode_lib 1521 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c DTRACE(" wm_urgent = %fus", mode_lib->vba.UrgentWatermark); mode_lib 1523 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.UrgentLatency = mode_lib->vba.UrgentLatencyPixelDataOnly; mode_lib 1525 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.TotalActiveWriteback = 0; mode_lib 1526 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) { mode_lib 1527 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c if (mode_lib->vba.WritebackEnable[k]) mode_lib 1528 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.TotalActiveWriteback = mode_lib->vba.TotalActiveWriteback + mode_lib->vba.ActiveWritebacksPerPlane[k]; mode_lib 1531 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c if (mode_lib->vba.TotalActiveWriteback <= 1) mode_lib 1532 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.WritebackUrgentWatermark = mode_lib->vba.WritebackLatency; mode_lib 1534 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.WritebackUrgentWatermark = mode_lib->vba.WritebackLatency mode_lib 1535 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c + mode_lib->vba.WritebackChunkSize * 1024.0 / 32 mode_lib 1536 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c / mode_lib->vba.SOCCLK; mode_lib 1538 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c DTRACE(" wm_wb_urgent = %fus", mode_lib->vba.WritebackUrgentWatermark); mode_lib 1541 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.DRAMClockChangeWatermark = mode_lib->vba.DRAMClockChangeLatency mode_lib 1542 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c + mode_lib->vba.UrgentWatermark; mode_lib 1544 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c DTRACE(" wm_pstate_change = %fus", mode_lib->vba.DRAMClockChangeWatermark); mode_lib 1547 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c DTRACE(" total wb outputs %d", mode_lib->vba.TotalActiveWriteback); mode_lib 1548 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c DTRACE(" socclk frequency %f Mhz", mode_lib->vba.SOCCLK); mode_lib 1550 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c if (mode_lib->vba.TotalActiveWriteback <= 1) mode_lib 1551 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.WritebackDRAMClockChangeWatermark = mode_lib 1552 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.DRAMClockChangeLatency mode_lib 1553 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c + mode_lib->vba.WritebackLatency; mode_lib 1555 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.WritebackDRAMClockChangeWatermark = mode_lib 1556 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.DRAMClockChangeLatency mode_lib 1557 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c + mode_lib->vba.WritebackLatency mode_lib 1558 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c + mode_lib->vba.WritebackChunkSize * 1024.0 / 32 mode_lib 1559 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c / mode_lib->vba.SOCCLK; mode_lib 1561 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c DTRACE(" wm_wb_pstate %fus", mode_lib->vba.WritebackDRAMClockChangeWatermark); mode_lib 1564 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) { mode_lib 1565 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.LinesInDETY[k] = mode_lib->vba.DETBufferSizeY[k] mode_lib 1566 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c / mode_lib->vba.BytePerPixelDETY[k] / mode_lib->vba.SwathWidthY[k]; mode_lib 1567 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.LinesInDETYRoundedDownToSwath[k] = dml_floor( mode_lib 1568 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.LinesInDETY[k], mode_lib 1569 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.SwathHeightY[k]); mode_lib 1570 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.FullDETBufferingTimeY[k] = mode_lib 1571 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.LinesInDETYRoundedDownToSwath[k] mode_lib 1572 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c * (mode_lib->vba.HTotal[k] mode_lib 1573 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c / mode_lib->vba.PixelClock[k]) mode_lib 1574 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c / mode_lib->vba.VRatio[k]; mode_lib 1575 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c if (mode_lib->vba.BytePerPixelDETC[k] > 0) { mode_lib 1576 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.LinesInDETC[k] = mode_lib->vba.DETBufferSizeC[k] mode_lib 1577 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c / mode_lib->vba.BytePerPixelDETC[k] mode_lib 1578 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c / (mode_lib->vba.SwathWidthY[k] / 2); mode_lib 1579 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.LinesInDETCRoundedDownToSwath[k] = dml_floor( mode_lib 1580 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.LinesInDETC[k], mode_lib 1581 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.SwathHeightC[k]); mode_lib 1582 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.FullDETBufferingTimeC[k] = mode_lib 1583 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.LinesInDETCRoundedDownToSwath[k] mode_lib 1584 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c * (mode_lib->vba.HTotal[k] mode_lib 1585 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c / mode_lib->vba.PixelClock[k]) mode_lib 1586 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c / (mode_lib->vba.VRatio[k] / 2); mode_lib 1588 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.LinesInDETC[k] = 0; mode_lib 1589 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.LinesInDETCRoundedDownToSwath[k] = 0; mode_lib 1590 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.FullDETBufferingTimeC[k] = 999999; mode_lib 1594 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.MinFullDETBufferingTime = 999999.0; mode_lib 1595 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) { mode_lib 1596 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c if (mode_lib->vba.FullDETBufferingTimeY[k] mode_lib 1597 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c < mode_lib->vba.MinFullDETBufferingTime) { mode_lib 1598 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.MinFullDETBufferingTime = mode_lib 1599 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.FullDETBufferingTimeY[k]; mode_lib 1600 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.FrameTimeForMinFullDETBufferingTime = mode_lib 1601 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c (double) mode_lib->vba.VTotal[k] * mode_lib->vba.HTotal[k] mode_lib 1602 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c / mode_lib->vba.PixelClock[k]; mode_lib 1604 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c if (mode_lib->vba.FullDETBufferingTimeC[k] mode_lib 1605 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c < mode_lib->vba.MinFullDETBufferingTime) { mode_lib 1606 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.MinFullDETBufferingTime = mode_lib 1607 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.FullDETBufferingTimeC[k]; mode_lib 1608 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.FrameTimeForMinFullDETBufferingTime = mode_lib 1609 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c (double) mode_lib->vba.VTotal[k] * mode_lib->vba.HTotal[k] mode_lib 1610 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c / mode_lib->vba.PixelClock[k]; mode_lib 1614 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.AverageReadBandwidthGBytePerSecond = 0.0; mode_lib 1615 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) { mode_lib 1616 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c if (mode_lib->vba.DCCEnable[k]) { mode_lib 1617 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.AverageReadBandwidthGBytePerSecond = mode_lib 1618 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.AverageReadBandwidthGBytePerSecond mode_lib 1619 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c + mode_lib->vba.ReadBandwidthPlaneLuma[k] mode_lib 1620 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c / mode_lib->vba.DCCRate[k] mode_lib 1622 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c + mode_lib->vba.ReadBandwidthPlaneChroma[k] mode_lib 1623 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c / mode_lib->vba.DCCRate[k] mode_lib 1626 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.AverageReadBandwidthGBytePerSecond = mode_lib 1627 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.AverageReadBandwidthGBytePerSecond mode_lib 1628 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c + mode_lib->vba.ReadBandwidthPlaneLuma[k] mode_lib 1630 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c + mode_lib->vba.ReadBandwidthPlaneChroma[k] mode_lib 1633 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c if (mode_lib->vba.DCCEnable[k]) { mode_lib 1634 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.AverageReadBandwidthGBytePerSecond = mode_lib 1635 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.AverageReadBandwidthGBytePerSecond mode_lib 1636 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c + mode_lib->vba.ReadBandwidthPlaneLuma[k] mode_lib 1638 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c + mode_lib->vba.ReadBandwidthPlaneChroma[k] mode_lib 1641 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c if (mode_lib->vba.GPUVMEnable) { mode_lib 1642 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.AverageReadBandwidthGBytePerSecond = mode_lib 1643 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.AverageReadBandwidthGBytePerSecond mode_lib 1644 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c + mode_lib->vba.ReadBandwidthPlaneLuma[k] mode_lib 1646 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c + mode_lib->vba.ReadBandwidthPlaneChroma[k] mode_lib 1651 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.PartOfBurstThatFitsInROB = mode_lib 1653 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.MinFullDETBufferingTime mode_lib 1654 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c * mode_lib->vba.TotalDataReadBandwidth, mode_lib 1655 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.ROBBufferSizeInKByte * 1024 mode_lib 1656 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c * mode_lib->vba.TotalDataReadBandwidth mode_lib 1657 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c / (mode_lib->vba.AverageReadBandwidthGBytePerSecond mode_lib 1659 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.StutterBurstTime = mode_lib->vba.PartOfBurstThatFitsInROB mode_lib 1660 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c * (mode_lib->vba.AverageReadBandwidthGBytePerSecond * 1000) mode_lib 1661 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c / mode_lib->vba.TotalDataReadBandwidth / mode_lib->vba.ReturnBW mode_lib 1662 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c + (mode_lib->vba.MinFullDETBufferingTime mode_lib 1663 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c * mode_lib->vba.TotalDataReadBandwidth mode_lib 1664 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c - mode_lib->vba.PartOfBurstThatFitsInROB) mode_lib 1665 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c / (mode_lib->vba.DCFCLK * 64); mode_lib 1666 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c if (mode_lib->vba.TotalActiveWriteback == 0) { mode_lib 1667 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.StutterEfficiencyNotIncludingVBlank = (1 mode_lib 1668 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c - (mode_lib->vba.SRExitTime + mode_lib->vba.StutterBurstTime) mode_lib 1669 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c / mode_lib->vba.MinFullDETBufferingTime) * 100; mode_lib 1671 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.StutterEfficiencyNotIncludingVBlank = 0; mode_lib 1674 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.SmallestVBlank = 999999; mode_lib 1675 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) { mode_lib 1676 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c if (mode_lib->vba.SynchronizedVBlank || mode_lib->vba.NumberOfActivePlanes == 1) { mode_lib 1677 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.VBlankTime = (double) (mode_lib->vba.VTotal[k] mode_lib 1678 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c - mode_lib->vba.VActive[k]) * mode_lib->vba.HTotal[k] mode_lib 1679 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c / mode_lib->vba.PixelClock[k]; mode_lib 1681 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.VBlankTime = 0; mode_lib 1683 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.SmallestVBlank = dml_min( mode_lib 1684 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.SmallestVBlank, mode_lib 1685 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.VBlankTime); mode_lib 1688 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.StutterEfficiency = (mode_lib->vba.StutterEfficiencyNotIncludingVBlank / 100 mode_lib 1689 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c * (mode_lib->vba.FrameTimeForMinFullDETBufferingTime mode_lib 1690 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c - mode_lib->vba.SmallestVBlank) mode_lib 1691 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c + mode_lib->vba.SmallestVBlank) mode_lib 1692 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c / mode_lib->vba.FrameTimeForMinFullDETBufferingTime * 100; mode_lib 1695 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.DCFCLKDeepSleep = 8.0; mode_lib 1697 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; k++) { mode_lib 1698 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c if (mode_lib->vba.BytePerPixelDETC[k] > 0) { mode_lib 1699 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.DCFCLKDeepSleepPerPlane[k] = mode_lib 1701 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c 1.1 * mode_lib->vba.SwathWidthY[k] mode_lib 1703 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.BytePerPixelDETY[k], mode_lib 1705 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c / mode_lib->vba.DisplayPipeLineDeliveryTimeLuma[k], mode_lib 1706 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c 1.1 * mode_lib->vba.SwathWidthY[k] / 2.0 mode_lib 1708 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.BytePerPixelDETC[k], mode_lib 1710 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c / mode_lib->vba.DisplayPipeLineDeliveryTimeChroma[k]); mode_lib 1712 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.DCFCLKDeepSleepPerPlane[k] = 1.1 * mode_lib->vba.SwathWidthY[k] mode_lib 1713 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c * dml_ceil(mode_lib->vba.BytePerPixelDETY[k], 1) / 64.0 mode_lib 1714 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c / mode_lib->vba.DisplayPipeLineDeliveryTimeLuma[k]; mode_lib 1715 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.DCFCLKDeepSleepPerPlane[k] = dml_max( mode_lib 1716 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.DCFCLKDeepSleepPerPlane[k], mode_lib 1717 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.PixelClock[k] / 16.0); mode_lib 1718 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.DCFCLKDeepSleep = dml_max( mode_lib 1719 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.DCFCLKDeepSleep, mode_lib 1720 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.DCFCLKDeepSleepPerPlane[k]); mode_lib 1725 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.DCFCLKDeepSleepPerPlane[k]); mode_lib 1728 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c DTRACE(" dcfclk_deepsleep_mhz = %fMHz", mode_lib->vba.DCFCLKDeepSleep); mode_lib 1731 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.StutterExitWatermark = mode_lib->vba.SRExitTime mode_lib 1732 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c + mode_lib->vba.LastPixelOfLineExtraWatermark mode_lib 1733 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c + mode_lib->vba.UrgentExtraLatency + 10 / mode_lib->vba.DCFCLKDeepSleep; mode_lib 1734 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.StutterEnterPlusExitWatermark = mode_lib->vba.SREnterPlusExitTime mode_lib 1735 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c + mode_lib->vba.LastPixelOfLineExtraWatermark mode_lib 1736 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c + mode_lib->vba.UrgentExtraLatency; mode_lib 1738 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c DTRACE(" wm_cstate_exit = %fus", mode_lib->vba.StutterExitWatermark); mode_lib 1739 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c DTRACE(" wm_cstate_enter_exit = %fus", mode_lib->vba.StutterEnterPlusExitWatermark); mode_lib 1742 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) { mode_lib 1743 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.EffectiveDETPlusLBLinesLuma = mode_lib 1745 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.LinesInDETY[k] mode_lib 1747 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.LinesInDETY[k] mode_lib 1748 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c * mode_lib->vba.DPPCLK[k] mode_lib 1749 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c * mode_lib->vba.BytePerPixelDETY[k] mode_lib 1750 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c * mode_lib->vba.PSCL_THROUGHPUT_LUMA[k] mode_lib 1751 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c / (mode_lib->vba.ReturnBW mode_lib 1752 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c / mode_lib->vba.DPPPerPlane[k]), mode_lib 1753 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c (double) mode_lib->vba.EffectiveLBLatencyHidingSourceLinesLuma), mode_lib 1754 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.SwathHeightY[k]); mode_lib 1756 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.UrgentLatencySupportUsLuma = mode_lib->vba.EffectiveDETPlusLBLinesLuma mode_lib 1757 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c * (mode_lib->vba.HTotal[k] / mode_lib->vba.PixelClock[k]) mode_lib 1758 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c / mode_lib->vba.VRatio[k] mode_lib 1759 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c - mode_lib->vba.EffectiveDETPlusLBLinesLuma mode_lib 1760 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c * mode_lib->vba.SwathWidthY[k] mode_lib 1761 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c * mode_lib->vba.BytePerPixelDETY[k] mode_lib 1762 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c / (mode_lib->vba.ReturnBW mode_lib 1763 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c / mode_lib->vba.DPPPerPlane[k]); mode_lib 1765 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c if (mode_lib->vba.BytePerPixelDETC[k] > 0) { mode_lib 1766 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.EffectiveDETPlusLBLinesChroma = mode_lib 1768 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.LinesInDETC[k] mode_lib 1770 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.LinesInDETC[k] mode_lib 1771 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c * mode_lib->vba.DPPCLK[k] mode_lib 1772 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c * mode_lib->vba.BytePerPixelDETC[k] mode_lib 1773 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c * mode_lib->vba.PSCL_THROUGHPUT_CHROMA[k] mode_lib 1774 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c / (mode_lib->vba.ReturnBW mode_lib 1775 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c / mode_lib->vba.DPPPerPlane[k]), mode_lib 1776 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c (double) mode_lib->vba.EffectiveLBLatencyHidingSourceLinesChroma), mode_lib 1777 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.SwathHeightC[k]); mode_lib 1778 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.UrgentLatencySupportUsChroma = mode_lib 1779 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.EffectiveDETPlusLBLinesChroma mode_lib 1780 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c * (mode_lib->vba.HTotal[k] mode_lib 1781 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c / mode_lib->vba.PixelClock[k]) mode_lib 1782 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c / (mode_lib->vba.VRatio[k] / 2) mode_lib 1783 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c - mode_lib->vba.EffectiveDETPlusLBLinesChroma mode_lib 1784 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c * (mode_lib->vba.SwathWidthY[k] mode_lib 1786 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c * mode_lib->vba.BytePerPixelDETC[k] mode_lib 1787 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c / (mode_lib->vba.ReturnBW mode_lib 1788 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c / mode_lib->vba.DPPPerPlane[k]); mode_lib 1789 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.UrgentLatencySupportUs[k] = dml_min( mode_lib 1790 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.UrgentLatencySupportUsLuma, mode_lib 1791 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.UrgentLatencySupportUsChroma); mode_lib 1793 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.UrgentLatencySupportUs[k] = mode_lib 1794 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.UrgentLatencySupportUsLuma; mode_lib 1798 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.MinUrgentLatencySupportUs = 999999; mode_lib 1799 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) { mode_lib 1800 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.MinUrgentLatencySupportUs = dml_min( mode_lib 1801 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.MinUrgentLatencySupportUs, mode_lib 1802 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.UrgentLatencySupportUs[k]); mode_lib 1806 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.NonUrgentLatencyTolerance = mode_lib->vba.MinUrgentLatencySupportUs mode_lib 1807 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c - mode_lib->vba.UrgentWatermark; mode_lib 1810 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) { mode_lib 1811 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c if ((mode_lib->vba.BlendingAndTiming[k] != k) || !mode_lib->vba.DSCEnabled[k]) { mode_lib 1812 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.DSCCLK_calculated[k] = 0.0; mode_lib 1814 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c if (mode_lib->vba.OutputFormat[k] == dm_420 mode_lib 1815 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c || mode_lib->vba.OutputFormat[k] == dm_n422) mode_lib 1816 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.DSCFormatFactor = 2; mode_lib 1818 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.DSCFormatFactor = 1; mode_lib 1819 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c if (mode_lib->vba.ODMCombineEnabled[k]) mode_lib 1820 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.DSCCLK_calculated[k] = mode_lib 1821 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.PixelClockBackEnd[k] / 6 mode_lib 1822 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c / mode_lib->vba.DSCFormatFactor mode_lib 1824 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c - mode_lib->vba.DISPCLKDPPCLKDSCCLKDownSpreading mode_lib 1827 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.DSCCLK_calculated[k] = mode_lib 1828 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.PixelClockBackEnd[k] / 3 mode_lib 1829 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c / mode_lib->vba.DSCFormatFactor mode_lib 1831 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c - mode_lib->vba.DISPCLKDPPCLKDSCCLKDownSpreading mode_lib 1838 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) { mode_lib 1839 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c double bpp = mode_lib->vba.OutputBpp[k]; mode_lib 1840 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c unsigned int slices = mode_lib->vba.NumberOfDSCSlices[k]; mode_lib 1842 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c if (mode_lib->vba.DSCEnabled[k] && bpp != 0) { mode_lib 1843 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c if (!mode_lib->vba.ODMCombineEnabled[k]) { mode_lib 1844 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.DSCDelay[k] = mode_lib 1846 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.DSCInputBitPerComponent[k], mode_lib 1849 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c (double) mode_lib->vba.HActive[k] mode_lib 1850 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c / mode_lib->vba.NumberOfDSCSlices[k], mode_lib 1853 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.OutputFormat[k]) mode_lib 1855 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.OutputFormat[k]); mode_lib 1857 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.DSCDelay[k] = mode_lib 1860 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.DSCInputBitPerComponent[k], mode_lib 1863 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c (double) mode_lib->vba.HActive[k] mode_lib 1864 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c / mode_lib->vba.NumberOfDSCSlices[k], mode_lib 1867 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.OutputFormat[k]) mode_lib 1869 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.OutputFormat[k])); mode_lib 1871 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.DSCDelay[k] = mode_lib->vba.DSCDelay[k] mode_lib 1872 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c * mode_lib->vba.PixelClock[k] mode_lib 1873 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c / mode_lib->vba.PixelClockBackEnd[k]; mode_lib 1875 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.DSCDelay[k] = 0; mode_lib 1879 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) mode_lib 1880 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c for (j = 0; j < mode_lib->vba.NumberOfActivePlanes; ++j) // NumberOfPlanes mode_lib 1881 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c if (j != k && mode_lib->vba.BlendingAndTiming[k] == j mode_lib 1882 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c && mode_lib->vba.DSCEnabled[j]) mode_lib 1883 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.DSCDelay[k] = mode_lib->vba.DSCDelay[j]; mode_lib 1886 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) { mode_lib 1895 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.SourcePixelFormat[k], mode_lib 1896 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.SurfaceTiling[k], mode_lib 1897 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c dml_ceil(mode_lib->vba.BytePerPixelDETY[k], 1), mode_lib 1898 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c dml_ceil(mode_lib->vba.BytePerPixelDETC[k], 2), mode_lib 1899 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c &mode_lib->vba.BlockHeight256BytesY[k], mode_lib 1900 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c &mode_lib->vba.BlockHeight256BytesC[k], mode_lib 1901 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c &mode_lib->vba.BlockWidth256BytesY[k], mode_lib 1902 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c &mode_lib->vba.BlockWidth256BytesC[k]); mode_lib 1904 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib, mode_lib 1905 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.DCCEnable[k], mode_lib 1906 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.BlockHeight256BytesY[k], mode_lib 1907 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.BlockWidth256BytesY[k], mode_lib 1908 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.SourcePixelFormat[k], mode_lib 1909 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.SurfaceTiling[k], mode_lib 1910 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c dml_ceil(mode_lib->vba.BytePerPixelDETY[k], 1), mode_lib 1911 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.SourceScan[k], mode_lib 1912 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.ViewportWidth[k], mode_lib 1913 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.ViewportHeight[k], mode_lib 1914 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.SwathWidthY[k], mode_lib 1915 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.GPUVMEnable, mode_lib 1916 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.VMMPageSize, mode_lib 1917 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.PTEBufferSizeInRequestsLuma, mode_lib 1918 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.PDEProcessingBufIn64KBReqs, mode_lib 1919 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.PitchY[k], mode_lib 1920 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.DCCMetaPitchY[k], mode_lib 1921 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c &mode_lib->vba.MacroTileWidthY[k], mode_lib 1924 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c &mode_lib->vba.PTEBufferSizeNotExceeded[mode_lib->vba.VoltageLevel][0], mode_lib 1925 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c &mode_lib->vba.dpte_row_height[k], mode_lib 1926 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c &mode_lib->vba.meta_row_height[k]); mode_lib 1927 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.PrefetchSourceLinesY[k] = CalculatePrefetchSourceLines( mode_lib 1928 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib, mode_lib 1929 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.VRatio[k], mode_lib 1930 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.vtaps[k], mode_lib 1931 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.Interlace[k], mode_lib 1932 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.ProgressiveToInterlaceUnitInOPP, mode_lib 1933 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.SwathHeightY[k], mode_lib 1934 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.ViewportYStartY[k], mode_lib 1935 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c &mode_lib->vba.VInitPreFillY[k], mode_lib 1936 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c &mode_lib->vba.MaxNumSwathY[k]); mode_lib 1938 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c if ((mode_lib->vba.SourcePixelFormat[k] != dm_444_64 mode_lib 1939 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c && mode_lib->vba.SourcePixelFormat[k] != dm_444_32 mode_lib 1940 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c && mode_lib->vba.SourcePixelFormat[k] != dm_444_16 mode_lib 1941 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c && mode_lib->vba.SourcePixelFormat[k] != dm_444_8)) { mode_lib 1944 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib, mode_lib 1945 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.DCCEnable[k], mode_lib 1946 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.BlockHeight256BytesC[k], mode_lib 1947 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.BlockWidth256BytesC[k], mode_lib 1948 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.SourcePixelFormat[k], mode_lib 1949 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.SurfaceTiling[k], mode_lib 1951 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.BytePerPixelDETC[k], mode_lib 1953 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.SourceScan[k], mode_lib 1954 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.ViewportWidth[k] / 2, mode_lib 1955 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.ViewportHeight[k] / 2, mode_lib 1956 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.SwathWidthY[k] / 2, mode_lib 1957 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.GPUVMEnable, mode_lib 1958 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.VMMPageSize, mode_lib 1959 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.PTEBufferSizeInRequestsLuma, mode_lib 1960 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.PDEProcessingBufIn64KBReqs, mode_lib 1961 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.PitchC[k], mode_lib 1963 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c &mode_lib->vba.MacroTileWidthC[k], mode_lib 1966 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c &mode_lib->vba.PTEBufferSizeNotExceeded[mode_lib->vba.VoltageLevel][0], mode_lib 1967 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c &mode_lib->vba.dpte_row_height_chroma[k], mode_lib 1968 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c &mode_lib->vba.meta_row_height_chroma[k]); mode_lib 1969 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.PrefetchSourceLinesC[k] = CalculatePrefetchSourceLines( mode_lib 1970 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib, mode_lib 1971 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.VRatio[k] / 2, mode_lib 1972 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.VTAPsChroma[k], mode_lib 1973 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.Interlace[k], mode_lib 1974 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.ProgressiveToInterlaceUnitInOPP, mode_lib 1975 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.SwathHeightC[k], mode_lib 1976 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.ViewportYStartC[k], mode_lib 1977 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c &mode_lib->vba.VInitPreFillC[k], mode_lib 1978 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c &mode_lib->vba.MaxNumSwathC[k]); mode_lib 1983 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.MaxNumSwathC[k] = 0; mode_lib 1984 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.PrefetchSourceLinesC[k] = 0; mode_lib 1987 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.PixelPTEBytesPerRow[k] = PixelPTEBytesPerRowY + PixelPTEBytesPerRowC; mode_lib 1988 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.PDEAndMetaPTEBytesFrame[k] = PDEAndMetaPTEBytesFrameY mode_lib 1990 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.MetaRowByte[k] = MetaRowByteY + MetaRowByteC; mode_lib 1993 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.GPUVMEnable, mode_lib 1994 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.SourcePixelFormat[k], mode_lib 1995 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.VRatio[k], mode_lib 1996 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.DCCEnable[k], mode_lib 1997 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.HTotal[k] / mode_lib->vba.PixelClock[k], mode_lib 2000 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.meta_row_height[k], mode_lib 2001 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.meta_row_height_chroma[k], mode_lib 2004 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.dpte_row_height[k], mode_lib 2005 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.dpte_row_height_chroma[k], mode_lib 2006 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c &mode_lib->vba.meta_row_bw[k], mode_lib 2007 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c &mode_lib->vba.dpte_row_bw[k], mode_lib 2008 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c &mode_lib->vba.qual_row_bw[k]); mode_lib 2011 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.TCalc = 24.0 / mode_lib->vba.DCFCLKDeepSleep; mode_lib 2013 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) { mode_lib 2014 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c if (mode_lib->vba.BlendingAndTiming[k] == k) { mode_lib 2015 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c if (mode_lib->vba.WritebackEnable[k] == true) { mode_lib 2016 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.WritebackDelay[mode_lib->vba.VoltageLevel][k] = mode_lib 2017 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.WritebackLatency mode_lib 2019 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.WritebackPixelFormat[k], mode_lib 2020 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.WritebackHRatio[k], mode_lib 2021 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.WritebackVRatio[k], mode_lib 2022 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.WritebackLumaHTaps[k], mode_lib 2023 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.WritebackLumaVTaps[k], mode_lib 2024 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.WritebackChromaHTaps[k], mode_lib 2025 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.WritebackChromaVTaps[k], mode_lib 2026 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.WritebackDestinationWidth[k]) mode_lib 2027 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c / mode_lib->vba.DISPCLK; mode_lib 2029 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.WritebackDelay[mode_lib->vba.VoltageLevel][k] = 0; mode_lib 2030 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c for (j = 0; j < mode_lib->vba.NumberOfActivePlanes; ++j) { mode_lib 2031 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c if (mode_lib->vba.BlendingAndTiming[j] == k mode_lib 2032 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c && mode_lib->vba.WritebackEnable[j] == true) { mode_lib 2033 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.WritebackDelay[mode_lib->vba.VoltageLevel][k] = mode_lib 2035 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.WritebackDelay[mode_lib->vba.VoltageLevel][k], mode_lib 2036 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.WritebackLatency mode_lib 2038 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.WritebackPixelFormat[j], mode_lib 2039 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.WritebackHRatio[j], mode_lib 2040 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.WritebackVRatio[j], mode_lib 2041 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.WritebackLumaHTaps[j], mode_lib 2042 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.WritebackLumaVTaps[j], mode_lib 2043 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.WritebackChromaHTaps[j], mode_lib 2044 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.WritebackChromaVTaps[j], mode_lib 2045 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.WritebackDestinationWidth[j]) mode_lib 2046 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c / mode_lib->vba.DISPCLK); mode_lib 2052 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) mode_lib 2053 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c for (j = 0; j < mode_lib->vba.NumberOfActivePlanes; ++j) mode_lib 2054 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c if (mode_lib->vba.BlendingAndTiming[k] == j) mode_lib 2055 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.WritebackDelay[mode_lib->vba.VoltageLevel][k] = mode_lib 2056 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.WritebackDelay[mode_lib->vba.VoltageLevel][j]; mode_lib 2058 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.VStartupLines = 13; mode_lib 2059 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) { mode_lib 2060 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.MaxVStartupLines[k] = mode_lib 2061 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.VTotal[k] - mode_lib->vba.VActive[k] mode_lib 2065 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.WritebackDelay[mode_lib->vba.VoltageLevel][k] mode_lib 2066 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c / (mode_lib->vba.HTotal[k] mode_lib 2067 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c / mode_lib->vba.PixelClock[k]), mode_lib 2071 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) mode_lib 2072 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.MaximumMaxVStartupLines = dml_max( mode_lib 2073 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.MaximumMaxVStartupLines, mode_lib 2074 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.MaxVStartupLines[k]); mode_lib 2076 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) { mode_lib 2077 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.cursor_bw[k] = 0.0; mode_lib 2078 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c for (j = 0; j < mode_lib->vba.NumberOfCursors[k]; ++j) mode_lib 2079 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.cursor_bw[k] += mode_lib->vba.CursorWidth[k][j] mode_lib 2080 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c * mode_lib->vba.CursorBPP[k][j] / 8.0 mode_lib 2081 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c / (mode_lib->vba.HTotal[k] / mode_lib->vba.PixelClock[k]) mode_lib 2082 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c * mode_lib->vba.VRatio[k]; mode_lib 2092 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.PrefetchMode[mode_lib->vba.VoltageLevel][mode_lib->vba.maxMpcComb], mode_lib 2093 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.DRAMClockChangeLatency, mode_lib 2094 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.UrgentLatencyPixelDataOnly, mode_lib 2095 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.SREnterPlusExitTime); mode_lib 2097 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) { mode_lib 2098 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c if (mode_lib->vba.XFCEnabled[k] == true) { mode_lib 2099 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.XFCRemoteSurfaceFlipDelay = mode_lib 2101 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib, mode_lib 2102 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.VRatio[k], mode_lib 2103 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.SwathWidthY[k], mode_lib 2105 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.BytePerPixelDETY[k], mode_lib 2107 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.HTotal[k] mode_lib 2108 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c / mode_lib->vba.PixelClock[k], mode_lib 2109 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.XFCTSlvVupdateOffset, mode_lib 2110 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.XFCTSlvVupdateWidth, mode_lib 2111 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.XFCTSlvVreadyOffset, mode_lib 2112 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.XFCXBUFLatencyTolerance, mode_lib 2113 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.XFCFillBWOverhead, mode_lib 2114 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.XFCSlvChunkSize, mode_lib 2115 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.XFCBusTransportTime, mode_lib 2116 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.TCalc, mode_lib 2118 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c &mode_lib->vba.SrcActiveDrainRate, mode_lib 2119 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c &mode_lib->vba.TInitXFill, mode_lib 2120 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c &mode_lib->vba.TslvChk); mode_lib 2122 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.XFCRemoteSurfaceFlipDelay = 0; mode_lib 2125 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c CalculateDelayAfterScaler(mode_lib, mode_lib->vba.ReturnBW, mode_lib->vba.ReadBandwidthPlaneLuma[k], mode_lib->vba.ReadBandwidthPlaneChroma[k], mode_lib->vba.TotalDataReadBandwidth, mode_lib 2126 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.DisplayPipeLineDeliveryTimeLuma[k], mode_lib->vba.DisplayPipeLineDeliveryTimeChroma[k], mode_lib 2127 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.DPPCLK[k], mode_lib->vba.DISPCLK, mode_lib->vba.PixelClock[k], mode_lib->vba.DSCDelay[k], mode_lib->vba.DPPPerPlane[k], mode_lib->vba.ScalerEnabled[k], mode_lib->vba.NumberOfCursors[k], mode_lib 2128 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.DPPCLKDelaySubtotal, mode_lib->vba.DPPCLKDelaySCL, mode_lib->vba.DPPCLKDelaySCLLBOnly, mode_lib->vba.DPPCLKDelayCNVCFormater, mode_lib->vba.DPPCLKDelayCNVCCursor, mode_lib->vba.DISPCLKDelaySubtotal, mode_lib 2129 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.SwathWidthY[k] / mode_lib->vba.HRatio[k], mode_lib->vba.OutputFormat[k], mode_lib->vba.HTotal[k], mode_lib 2130 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.SwathWidthSingleDPPY[k], mode_lib->vba.BytePerPixelDETY[k], mode_lib->vba.BytePerPixelDETC[k], mode_lib->vba.SwathHeightY[k], mode_lib->vba.SwathHeightC[k], mode_lib->vba.Interlace[k], mode_lib 2131 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.ProgressiveToInterlaceUnitInOPP, &mode_lib->vba.DSTXAfterScaler[k], &mode_lib->vba.DSTYAfterScaler[k]); mode_lib 2133 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.ErrorResult[k] = mode_lib 2135 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib, mode_lib 2136 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.DPPCLK[k], mode_lib 2137 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.DISPCLK, mode_lib 2138 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.PixelClock[k], mode_lib 2139 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.DCFCLKDeepSleep, mode_lib 2140 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.DPPPerPlane[k], mode_lib 2141 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.NumberOfCursors[k], mode_lib 2142 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.VTotal[k] mode_lib 2143 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c - mode_lib->vba.VActive[k], mode_lib 2144 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.HTotal[k], mode_lib 2145 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.MaxInterDCNTileRepeaters, mode_lib 2147 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.VStartupLines, mode_lib 2148 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.MaxVStartupLines[k]), mode_lib 2149 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.GPUVMMaxPageTableLevels, mode_lib 2150 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.GPUVMEnable, mode_lib 2151 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.DynamicMetadataEnable[k], mode_lib 2152 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.DynamicMetadataLinesBeforeActiveRequired[k], mode_lib 2153 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.DynamicMetadataTransmittedBytes[k], mode_lib 2154 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.DCCEnable[k], mode_lib 2155 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.UrgentLatencyPixelDataOnly, mode_lib 2156 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.UrgentExtraLatency, mode_lib 2157 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.TCalc, mode_lib 2158 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.PDEAndMetaPTEBytesFrame[k], mode_lib 2159 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.MetaRowByte[k], mode_lib 2160 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.PixelPTEBytesPerRow[k], mode_lib 2161 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.PrefetchSourceLinesY[k], mode_lib 2162 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.SwathWidthY[k], mode_lib 2163 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.BytePerPixelDETY[k], mode_lib 2164 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.VInitPreFillY[k], mode_lib 2165 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.MaxNumSwathY[k], mode_lib 2166 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.PrefetchSourceLinesC[k], mode_lib 2167 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.BytePerPixelDETC[k], mode_lib 2168 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.VInitPreFillC[k], mode_lib 2169 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.MaxNumSwathC[k], mode_lib 2170 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.SwathHeightY[k], mode_lib 2171 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.SwathHeightC[k], mode_lib 2173 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.XFCEnabled[k], mode_lib 2174 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.XFCRemoteSurfaceFlipDelay, mode_lib 2175 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.Interlace[k], mode_lib 2176 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.ProgressiveToInterlaceUnitInOPP, mode_lib 2177 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.DSTXAfterScaler[k], mode_lib 2178 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.DSTYAfterScaler[k], mode_lib 2179 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c &mode_lib->vba.DestinationLinesForPrefetch[k], mode_lib 2180 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c &mode_lib->vba.PrefetchBandwidth[k], mode_lib 2181 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c &mode_lib->vba.DestinationLinesToRequestVMInVBlank[k], mode_lib 2182 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c &mode_lib->vba.DestinationLinesToRequestRowInVBlank[k], mode_lib 2183 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c &mode_lib->vba.VRatioPrefetchY[k], mode_lib 2184 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c &mode_lib->vba.VRatioPrefetchC[k], mode_lib 2185 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c &mode_lib->vba.RequiredPrefetchPixDataBWLuma[k], mode_lib 2186 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c &mode_lib->vba.Tno_bw[k], mode_lib 2187 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c &mode_lib->vba.VUpdateOffsetPix[k], mode_lib 2188 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c &mode_lib->vba.VUpdateWidthPix[k], mode_lib 2189 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c &mode_lib->vba.VReadyOffsetPix[k]); mode_lib 2191 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c if (mode_lib->vba.BlendingAndTiming[k] == k) { mode_lib 2192 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.VStartup[k] = dml_min( mode_lib 2193 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.VStartupLines, mode_lib 2194 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.MaxVStartupLines[k]); mode_lib 2195 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c if (mode_lib->vba.VStartupRequiredWhenNotEnoughTimeForDynamicMetadata mode_lib 2197 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.VStartup[k] = mode_lib 2198 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.VStartupRequiredWhenNotEnoughTimeForDynamicMetadata; mode_lib 2201 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.VStartup[k] = mode_lib 2203 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.VStartupLines, mode_lib 2204 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.MaxVStartupLines[mode_lib->vba.BlendingAndTiming[k]]); mode_lib 2208 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) { mode_lib 2210 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c if (mode_lib->vba.PDEAndMetaPTEBytesFrame[k] == 0) mode_lib 2211 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.prefetch_vm_bw[k] = 0; mode_lib 2212 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c else if (mode_lib->vba.DestinationLinesToRequestVMInVBlank[k] > 0) { mode_lib 2213 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.prefetch_vm_bw[k] = mode_lib 2214 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c (double) mode_lib->vba.PDEAndMetaPTEBytesFrame[k] mode_lib 2215 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c / (mode_lib->vba.DestinationLinesToRequestVMInVBlank[k] mode_lib 2216 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c * mode_lib->vba.HTotal[k] mode_lib 2217 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c / mode_lib->vba.PixelClock[k]); mode_lib 2219 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.prefetch_vm_bw[k] = 0; mode_lib 2222 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c if (mode_lib->vba.MetaRowByte[k] + mode_lib->vba.PixelPTEBytesPerRow[k] mode_lib 2224 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.prefetch_row_bw[k] = 0; mode_lib 2225 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c else if (mode_lib->vba.DestinationLinesToRequestRowInVBlank[k] > 0) { mode_lib 2226 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.prefetch_row_bw[k] = mode_lib 2227 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c (double) (mode_lib->vba.MetaRowByte[k] mode_lib 2228 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c + mode_lib->vba.PixelPTEBytesPerRow[k]) mode_lib 2229 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c / (mode_lib->vba.DestinationLinesToRequestRowInVBlank[k] mode_lib 2230 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c * mode_lib->vba.HTotal[k] mode_lib 2231 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c / mode_lib->vba.PixelClock[k]); mode_lib 2233 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.prefetch_row_bw[k] = 0; mode_lib 2238 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c MaxTotalRDBandwidth + mode_lib->vba.cursor_bw[k] mode_lib 2240 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.prefetch_vm_bw[k], mode_lib 2242 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.prefetch_row_bw[k], mode_lib 2244 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.ReadBandwidthPlaneLuma[k] mode_lib 2245 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c + mode_lib->vba.ReadBandwidthPlaneChroma[k], mode_lib 2246 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.RequiredPrefetchPixDataBWLuma[k]) mode_lib 2247 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c + mode_lib->vba.meta_row_bw[k] mode_lib 2248 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c + mode_lib->vba.dpte_row_bw[k])); mode_lib 2250 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c if (mode_lib->vba.DestinationLinesForPrefetch[k] < 2) mode_lib 2252 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c if (mode_lib->vba.VRatioPrefetchY[k] > 4 mode_lib 2253 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c || mode_lib->vba.VRatioPrefetchC[k] > 4) mode_lib 2257 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c if (MaxTotalRDBandwidth <= mode_lib->vba.ReturnBW && prefetch_vm_bw_valid mode_lib 2260 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.PrefetchModeSupported = true; mode_lib 2262 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.PrefetchModeSupported = false; mode_lib 2267 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c if (mode_lib->vba.PrefetchModeSupported == true) { mode_lib 2272 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.BandwidthAvailableForImmediateFlip = mode_lib->vba.ReturnBW; mode_lib 2273 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) { mode_lib 2274 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.BandwidthAvailableForImmediateFlip = mode_lib 2275 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.BandwidthAvailableForImmediateFlip mode_lib 2276 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c - mode_lib->vba.cursor_bw[k] mode_lib 2278 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.ReadBandwidthPlaneLuma[k] mode_lib 2279 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c + mode_lib->vba.ReadBandwidthPlaneChroma[k] mode_lib 2280 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c + mode_lib->vba.qual_row_bw[k], mode_lib 2281 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.PrefetchBandwidth[k]); mode_lib 2284 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) { mode_lib 2286 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c if ((mode_lib->vba.SourcePixelFormat[k] != dm_420_8 mode_lib 2287 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c && mode_lib->vba.SourcePixelFormat[k] != dm_420_10)) { mode_lib 2289 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.PDEAndMetaPTEBytesFrame[k] mode_lib 2290 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c + mode_lib->vba.MetaRowByte[k] mode_lib 2291 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c + mode_lib->vba.PixelPTEBytesPerRow[k]; mode_lib 2294 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.TotImmediateFlipBytes = 0; mode_lib 2295 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) { mode_lib 2296 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c if ((mode_lib->vba.SourcePixelFormat[k] != dm_420_8 mode_lib 2297 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c && mode_lib->vba.SourcePixelFormat[k] != dm_420_10)) { mode_lib 2298 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.TotImmediateFlipBytes = mode_lib 2299 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.TotImmediateFlipBytes mode_lib 2303 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) { mode_lib 2305 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib, mode_lib 2306 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.UrgentExtraLatency, mode_lib 2307 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.UrgentLatencyPixelDataOnly, mode_lib 2308 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.GPUVMMaxPageTableLevels, mode_lib 2309 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.GPUVMEnable, mode_lib 2310 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.BandwidthAvailableForImmediateFlip, mode_lib 2311 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.TotImmediateFlipBytes, mode_lib 2312 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.SourcePixelFormat[k], mode_lib 2314 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.HTotal[k] mode_lib 2315 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c / mode_lib->vba.PixelClock[k], mode_lib 2316 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.VRatio[k], mode_lib 2317 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.Tno_bw[k], mode_lib 2318 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.PDEAndMetaPTEBytesFrame[k], mode_lib 2319 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.MetaRowByte[k], mode_lib 2320 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.PixelPTEBytesPerRow[k], mode_lib 2321 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.DCCEnable[k], mode_lib 2322 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.dpte_row_height[k], mode_lib 2323 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.meta_row_height[k], mode_lib 2324 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.qual_row_bw[k], mode_lib 2325 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c &mode_lib->vba.DestinationLinesToRequestVMInImmediateFlip[k], mode_lib 2326 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c &mode_lib->vba.DestinationLinesToRequestRowInImmediateFlip[k], mode_lib 2328 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c &mode_lib->vba.ImmediateFlipSupportedForPipe[k]); mode_lib 2330 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) { mode_lib 2333 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c + mode_lib->vba.cursor_bw[k] mode_lib 2335 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.prefetch_vm_bw[k], mode_lib 2337 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.prefetch_row_bw[k], mode_lib 2340 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.ReadBandwidthPlaneLuma[k] mode_lib 2341 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c + mode_lib->vba.ReadBandwidthPlaneChroma[k], mode_lib 2342 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.RequiredPrefetchPixDataBWLuma[k]))); mode_lib 2344 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.ImmediateFlipSupported = true; mode_lib 2345 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c if (total_dcn_read_bw_with_flip > mode_lib->vba.ReturnBW) { mode_lib 2346 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.ImmediateFlipSupported = false; mode_lib 2348 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) { mode_lib 2349 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c if (mode_lib->vba.ImmediateFlipSupportedForPipe[k] == false) { mode_lib 2350 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.ImmediateFlipSupported = false; mode_lib 2354 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.ImmediateFlipSupported = false; mode_lib 2357 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) { mode_lib 2358 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c if (mode_lib->vba.ErrorResult[k]) { mode_lib 2359 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.PrefetchModeSupported = false; mode_lib 2365 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.VStartupLines = mode_lib->vba.VStartupLines + 1; mode_lib 2366 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c } while (!((mode_lib->vba.PrefetchModeSupported mode_lib 2367 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c && (!mode_lib->vba.ImmediateFlipSupport mode_lib 2368 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c || mode_lib->vba.ImmediateFlipSupported)) mode_lib 2369 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c || mode_lib->vba.MaximumMaxVStartupLines < mode_lib->vba.VStartupLines)); mode_lib 2372 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) { mode_lib 2373 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c if (mode_lib->vba.VRatioPrefetchY[k] <= 1) { mode_lib 2374 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.DisplayPipeLineDeliveryTimeLumaPrefetch[k] = mode_lib 2375 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.SwathWidthY[k] * mode_lib->vba.DPPPerPlane[k] mode_lib 2376 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c / mode_lib->vba.HRatio[k] mode_lib 2377 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c / mode_lib->vba.PixelClock[k]; mode_lib 2379 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.DisplayPipeLineDeliveryTimeLumaPrefetch[k] = mode_lib 2380 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.SwathWidthY[k] mode_lib 2381 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c / mode_lib->vba.PSCL_THROUGHPUT_LUMA[k] mode_lib 2382 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c / mode_lib->vba.DPPCLK[k]; mode_lib 2384 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c if (mode_lib->vba.BytePerPixelDETC[k] == 0) { mode_lib 2385 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.DisplayPipeLineDeliveryTimeChromaPrefetch[k] = 0; mode_lib 2387 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c if (mode_lib->vba.VRatioPrefetchC[k] <= 1) { mode_lib 2388 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.DisplayPipeLineDeliveryTimeChromaPrefetch[k] = mode_lib 2389 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.SwathWidthY[k] mode_lib 2390 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c * mode_lib->vba.DPPPerPlane[k] mode_lib 2391 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c / mode_lib->vba.HRatio[k] mode_lib 2392 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c / mode_lib->vba.PixelClock[k]; mode_lib 2394 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.DisplayPipeLineDeliveryTimeChromaPrefetch[k] = mode_lib 2395 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.SwathWidthY[k] mode_lib 2396 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c / mode_lib->vba.PSCL_THROUGHPUT_LUMA[k] mode_lib 2397 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c / mode_lib->vba.DPPCLK[k]; mode_lib 2403 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) { mode_lib 2404 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c if (mode_lib->vba.PrefetchMode[mode_lib->vba.VoltageLevel][mode_lib->vba.maxMpcComb] == 0) { mode_lib 2405 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.AllowDRAMClockChangeDuringVBlank[k] = true; mode_lib 2406 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.AllowDRAMSelfRefreshDuringVBlank[k] = true; mode_lib 2407 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.MinTTUVBlank[k] = dml_max( mode_lib 2408 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.DRAMClockChangeWatermark, mode_lib 2410 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.StutterEnterPlusExitWatermark, mode_lib 2411 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.UrgentWatermark)); mode_lib 2412 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c } else if (mode_lib->vba.PrefetchMode[mode_lib->vba.VoltageLevel][mode_lib->vba.maxMpcComb] == 1) { mode_lib 2413 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.AllowDRAMClockChangeDuringVBlank[k] = false; mode_lib 2414 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.AllowDRAMSelfRefreshDuringVBlank[k] = true; mode_lib 2415 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.MinTTUVBlank[k] = dml_max( mode_lib 2416 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.StutterEnterPlusExitWatermark, mode_lib 2417 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.UrgentWatermark); mode_lib 2419 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.AllowDRAMClockChangeDuringVBlank[k] = false; mode_lib 2420 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.AllowDRAMSelfRefreshDuringVBlank[k] = false; mode_lib 2421 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.MinTTUVBlank[k] = mode_lib->vba.UrgentWatermark; mode_lib 2423 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c if (!mode_lib->vba.DynamicMetadataEnable[k]) mode_lib 2424 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.MinTTUVBlank[k] = mode_lib->vba.TCalc mode_lib 2425 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c + mode_lib->vba.MinTTUVBlank[k]; mode_lib 2429 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.ActiveDPPs = 0; mode_lib 2431 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) { mode_lib 2432 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.ActiveDPPs = mode_lib->vba.ActiveDPPs + mode_lib->vba.DPPPerPlane[k]; mode_lib 2435 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) { mode_lib 2444 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.LBLatencyHidingSourceLinesY = mode_lib 2446 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.MaxLineBufferLines, mode_lib 2448 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c (double) mode_lib->vba.LineBufferSize mode_lib 2449 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c / mode_lib->vba.LBBitPerPixel[k] mode_lib 2450 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c / (mode_lib->vba.SwathWidthY[k] mode_lib 2452 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.HRatio[k], mode_lib 2454 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c 1)) - (mode_lib->vba.vtaps[k] - 1); mode_lib 2456 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.LBLatencyHidingSourceLinesC = mode_lib 2458 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.MaxLineBufferLines, mode_lib 2460 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c (double) mode_lib->vba.LineBufferSize mode_lib 2461 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c / mode_lib->vba.LBBitPerPixel[k] mode_lib 2462 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c / (mode_lib->vba.SwathWidthY[k] mode_lib 2465 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.HRatio[k] mode_lib 2469 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c - (mode_lib->vba.VTAPsChroma[k] - 1); mode_lib 2471 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c EffectiveLBLatencyHidingY = mode_lib->vba.LBLatencyHidingSourceLinesY mode_lib 2472 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c / mode_lib->vba.VRatio[k] mode_lib 2473 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c * (mode_lib->vba.HTotal[k] / mode_lib->vba.PixelClock[k]); mode_lib 2475 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c EffectiveLBLatencyHidingC = mode_lib->vba.LBLatencyHidingSourceLinesC mode_lib 2476 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c / (mode_lib->vba.VRatio[k] / 2) mode_lib 2477 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c * (mode_lib->vba.HTotal[k] / mode_lib->vba.PixelClock[k]); mode_lib 2479 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c if (mode_lib->vba.SwathWidthY[k] > 2 * mode_lib->vba.DPPOutputBufferPixels) { mode_lib 2480 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c DPPOutputBufferLinesY = mode_lib->vba.DPPOutputBufferPixels mode_lib 2481 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c / mode_lib->vba.SwathWidthY[k]; mode_lib 2482 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c } else if (mode_lib->vba.SwathWidthY[k] > mode_lib->vba.DPPOutputBufferPixels) { mode_lib 2488 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c if (mode_lib->vba.SwathWidthY[k] / 2 > 2 * mode_lib->vba.DPPOutputBufferPixels) { mode_lib 2489 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c DPPOutputBufferLinesC = mode_lib->vba.DPPOutputBufferPixels mode_lib 2490 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c / (mode_lib->vba.SwathWidthY[k] / 2); mode_lib 2491 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c } else if (mode_lib->vba.SwathWidthY[k] / 2 > mode_lib->vba.DPPOutputBufferPixels) { mode_lib 2497 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c DPPOPPBufferingY = (mode_lib->vba.HTotal[k] / mode_lib->vba.PixelClock[k]) mode_lib 2498 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c * (DPPOutputBufferLinesY + mode_lib->vba.OPPOutputBufferLines); mode_lib 2499 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c MaxDETBufferingTimeY = mode_lib->vba.FullDETBufferingTimeY[k] mode_lib 2500 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c + (mode_lib->vba.LinesInDETY[k] mode_lib 2501 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c - mode_lib->vba.LinesInDETYRoundedDownToSwath[k]) mode_lib 2502 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c / mode_lib->vba.SwathHeightY[k] mode_lib 2503 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c * (mode_lib->vba.HTotal[k] mode_lib 2504 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c / mode_lib->vba.PixelClock[k]); mode_lib 2507 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c + MaxDETBufferingTimeY - mode_lib->vba.DRAMClockChangeWatermark; mode_lib 2509 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c if (mode_lib->vba.ActiveDPPs > 1) { mode_lib 2512 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c - (1 - 1 / (mode_lib->vba.ActiveDPPs - 1)) mode_lib 2513 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c * mode_lib->vba.SwathHeightY[k] mode_lib 2514 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c * (mode_lib->vba.HTotal[k] mode_lib 2515 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c / mode_lib->vba.PixelClock[k]); mode_lib 2518 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c if (mode_lib->vba.BytePerPixelDETC[k] > 0) { mode_lib 2519 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c double DPPOPPBufferingC = (mode_lib->vba.HTotal[k] mode_lib 2520 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c / mode_lib->vba.PixelClock[k]) mode_lib 2522 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c + mode_lib->vba.OPPOutputBufferLines); mode_lib 2524 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.FullDETBufferingTimeC[k] mode_lib 2525 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c + (mode_lib->vba.LinesInDETC[k] mode_lib 2526 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c - mode_lib->vba.LinesInDETCRoundedDownToSwath[k]) mode_lib 2527 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c / mode_lib->vba.SwathHeightC[k] mode_lib 2528 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c * (mode_lib->vba.HTotal[k] mode_lib 2529 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c / mode_lib->vba.PixelClock[k]); mode_lib 2532 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c - mode_lib->vba.DRAMClockChangeWatermark; mode_lib 2534 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c if (mode_lib->vba.ActiveDPPs > 1) { mode_lib 2539 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c / (mode_lib->vba.ActiveDPPs mode_lib 2541 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c * mode_lib->vba.SwathHeightC[k] mode_lib 2542 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c * (mode_lib->vba.HTotal[k] mode_lib 2543 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c / mode_lib->vba.PixelClock[k]); mode_lib 2545 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.ActiveDRAMClockChangeLatencyMargin[k] = dml_min( mode_lib 2549 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.ActiveDRAMClockChangeLatencyMargin[k] = mode_lib 2553 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c if (mode_lib->vba.WritebackEnable[k]) { mode_lib 2556 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c if (mode_lib->vba.WritebackPixelFormat[k] == dm_444_32) { mode_lib 2558 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c (double) (mode_lib->vba.WritebackInterfaceLumaBufferSize mode_lib 2559 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c + mode_lib->vba.WritebackInterfaceChromaBufferSize) mode_lib 2560 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c / (mode_lib->vba.WritebackDestinationWidth[k] mode_lib 2561 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c * mode_lib->vba.WritebackDestinationHeight[k] mode_lib 2562 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c / (mode_lib->vba.WritebackSourceHeight[k] mode_lib 2563 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c * mode_lib->vba.HTotal[k] mode_lib 2564 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c / mode_lib->vba.PixelClock[k]) mode_lib 2566 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c - mode_lib->vba.WritebackDRAMClockChangeWatermark; mode_lib 2567 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c } else if (mode_lib->vba.WritebackPixelFormat[k] == dm_420_10) { mode_lib 2570 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c (double) mode_lib->vba.WritebackInterfaceLumaBufferSize mode_lib 2573 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c * mode_lib->vba.WritebackInterfaceChromaBufferSize mode_lib 2575 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c / (mode_lib->vba.WritebackDestinationWidth[k] mode_lib 2576 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c * mode_lib->vba.WritebackDestinationHeight[k] mode_lib 2577 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c / (mode_lib->vba.WritebackSourceHeight[k] mode_lib 2578 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c * mode_lib->vba.HTotal[k] mode_lib 2579 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c / mode_lib->vba.PixelClock[k])) mode_lib 2580 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c - mode_lib->vba.WritebackDRAMClockChangeWatermark; mode_lib 2584 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c (double) mode_lib->vba.WritebackInterfaceLumaBufferSize, mode_lib 2586 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c * mode_lib->vba.WritebackInterfaceChromaBufferSize) mode_lib 2587 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c / (mode_lib->vba.WritebackDestinationWidth[k] mode_lib 2588 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c * mode_lib->vba.WritebackDestinationHeight[k] mode_lib 2589 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c / (mode_lib->vba.WritebackSourceHeight[k] mode_lib 2590 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c * mode_lib->vba.HTotal[k] mode_lib 2591 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c / mode_lib->vba.PixelClock[k])) mode_lib 2592 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c - mode_lib->vba.WritebackDRAMClockChangeWatermark; mode_lib 2594 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.ActiveDRAMClockChangeLatencyMargin[k] = dml_min( mode_lib 2595 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.ActiveDRAMClockChangeLatencyMargin[k], mode_lib 2600 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.MinActiveDRAMClockChangeMargin = 999999; mode_lib 2601 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) { mode_lib 2602 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c if (mode_lib->vba.ActiveDRAMClockChangeLatencyMargin[k] mode_lib 2603 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c < mode_lib->vba.MinActiveDRAMClockChangeMargin) { mode_lib 2604 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.MinActiveDRAMClockChangeMargin = mode_lib 2605 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.ActiveDRAMClockChangeLatencyMargin[k]; mode_lib 2609 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.MinActiveDRAMClockChangeLatencySupported = mode_lib 2610 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.MinActiveDRAMClockChangeMargin mode_lib 2611 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c + mode_lib->vba.DRAMClockChangeLatency; mode_lib 2613 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c if (mode_lib->vba.MinActiveDRAMClockChangeMargin > 0) { mode_lib 2614 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.DRAMClockChangeSupport[0][0] = dm_dram_clock_change_vactive; mode_lib 2616 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c if (mode_lib->vba.SynchronizedVBlank || mode_lib->vba.NumberOfActivePlanes == 1) { mode_lib 2617 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.DRAMClockChangeSupport[0][0] = dm_dram_clock_change_vblank; mode_lib 2618 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) { mode_lib 2619 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c if (!mode_lib->vba.AllowDRAMClockChangeDuringVBlank[k]) { mode_lib 2620 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.DRAMClockChangeSupport[0][0] = mode_lib 2625 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.DRAMClockChangeSupport[0][0] = dm_dram_clock_change_unsupported; mode_lib 2628 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c for (k = 0; k <= mode_lib->vba.soc.num_states; k++) mode_lib 2630 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.DRAMClockChangeSupport[k][j] = mode_lib->vba.DRAMClockChangeSupport[0][0]; mode_lib 2633 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) { mode_lib 2634 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c if (mode_lib->vba.XFCEnabled[k] == true) { mode_lib 2637 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.XFCSlaveVUpdateOffset[k] = mode_lib->vba.XFCTSlvVupdateOffset; mode_lib 2638 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.XFCSlaveVupdateWidth[k] = mode_lib->vba.XFCTSlvVupdateWidth; mode_lib 2639 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.XFCSlaveVReadyOffset[k] = mode_lib->vba.XFCTSlvVreadyOffset; mode_lib 2641 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.PrefetchMode[mode_lib->vba.VoltageLevel][mode_lib->vba.maxMpcComb], mode_lib 2642 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.DRAMClockChangeLatency, mode_lib 2643 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.UrgentLatencyPixelDataOnly, mode_lib 2644 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.SREnterPlusExitTime); mode_lib 2645 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.XFCRemoteSurfaceFlipDelay = CalculateRemoteSurfaceFlipDelay( mode_lib 2646 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib, mode_lib 2647 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.VRatio[k], mode_lib 2648 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.SwathWidthY[k], mode_lib 2649 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c dml_ceil(mode_lib->vba.BytePerPixelDETY[k], 1), mode_lib 2650 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.HTotal[k] / mode_lib->vba.PixelClock[k], mode_lib 2651 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.XFCTSlvVupdateOffset, mode_lib 2652 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.XFCTSlvVupdateWidth, mode_lib 2653 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.XFCTSlvVreadyOffset, mode_lib 2654 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.XFCXBUFLatencyTolerance, mode_lib 2655 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.XFCFillBWOverhead, mode_lib 2656 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.XFCSlvChunkSize, mode_lib 2657 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.XFCBusTransportTime, mode_lib 2658 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.TCalc, mode_lib 2660 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c &mode_lib->vba.SrcActiveDrainRate, mode_lib 2661 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c &mode_lib->vba.TInitXFill, mode_lib 2662 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c &mode_lib->vba.TslvChk); mode_lib 2663 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.XFCRemoteSurfaceFlipLatency[k] = mode_lib 2665 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.XFCRemoteSurfaceFlipDelay mode_lib 2666 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c / (mode_lib->vba.HTotal[k] mode_lib 2667 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c / mode_lib->vba.PixelClock[k]), mode_lib 2669 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.XFCTransferDelay[k] = mode_lib 2671 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.XFCBusTransportTime mode_lib 2672 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c / (mode_lib->vba.HTotal[k] mode_lib 2673 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c / mode_lib->vba.PixelClock[k]), mode_lib 2675 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.XFCPrechargeDelay[k] = mode_lib 2677 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c (mode_lib->vba.XFCBusTransportTime mode_lib 2678 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c + mode_lib->vba.TInitXFill mode_lib 2679 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c + mode_lib->vba.TslvChk) mode_lib 2680 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c / (mode_lib->vba.HTotal[k] mode_lib 2681 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c / mode_lib->vba.PixelClock[k]), mode_lib 2683 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.InitFillLevel = mode_lib->vba.XFCXBUFLatencyTolerance mode_lib 2684 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c * mode_lib->vba.SrcActiveDrainRate; mode_lib 2685 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.FinalFillMargin = mode_lib 2686 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c (mode_lib->vba.DestinationLinesToRequestVMInVBlank[k] mode_lib 2687 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c + mode_lib->vba.DestinationLinesToRequestRowInVBlank[k]) mode_lib 2688 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c * mode_lib->vba.HTotal[k] mode_lib 2689 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c / mode_lib->vba.PixelClock[k] mode_lib 2690 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c * mode_lib->vba.SrcActiveDrainRate mode_lib 2691 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c + mode_lib->vba.XFCFillConstant; mode_lib 2692 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.FinalFillLevel = mode_lib->vba.XFCRemoteSurfaceFlipDelay mode_lib 2693 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c * mode_lib->vba.SrcActiveDrainRate mode_lib 2694 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c + mode_lib->vba.FinalFillMargin; mode_lib 2695 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.RemainingFillLevel = dml_max( mode_lib 2697 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.FinalFillLevel - mode_lib->vba.InitFillLevel); mode_lib 2698 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.TFinalxFill = mode_lib->vba.RemainingFillLevel mode_lib 2699 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c / (mode_lib->vba.SrcActiveDrainRate mode_lib 2700 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c * mode_lib->vba.XFCFillBWOverhead / 100); mode_lib 2701 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.XFCPrefetchMargin[k] = mode_lib 2702 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.XFCRemoteSurfaceFlipDelay mode_lib 2703 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c + mode_lib->vba.TFinalxFill mode_lib 2704 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c + (mode_lib->vba.DestinationLinesToRequestVMInVBlank[k] mode_lib 2705 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c + mode_lib->vba.DestinationLinesToRequestRowInVBlank[k]) mode_lib 2706 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c * mode_lib->vba.HTotal[k] mode_lib 2707 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c / mode_lib->vba.PixelClock[k]; mode_lib 2709 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.XFCSlaveVUpdateOffset[k] = 0; mode_lib 2710 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.XFCSlaveVupdateWidth[k] = 0; mode_lib 2711 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.XFCSlaveVReadyOffset[k] = 0; mode_lib 2712 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.XFCRemoteSurfaceFlipLatency[k] = 0; mode_lib 2713 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.XFCPrechargeDelay[k] = 0; mode_lib 2714 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.XFCTransferDelay[k] = 0; mode_lib 2715 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.XFCPrefetchMargin[k] = 0; mode_lib 2722 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) { mode_lib 2723 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c if (mode_lib->vba.BlendingAndTiming[k] == k) { mode_lib 2724 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c unsigned int Margin = (mode_lib->vba.MaxVStartupLines[k] - mode_lib->vba.VStartup[k]) mode_lib 2725 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c * mode_lib->vba.HTotal[k] / mode_lib->vba.PixelClock[k]; mode_lib 2734 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c if (mode_lib->vba.UseMaximumVStartup) { mode_lib 2735 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c if (mode_lib->vba.VTotal_Max[k] == mode_lib->vba.VTotal[k]) { mode_lib 2737 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.VStartup[k] = mode_lib->vba.MaxVStartupLines[mode_lib->vba.BlendingAndTiming[k]]; mode_lib 2744 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c static void dml20v2_DisplayPipeConfiguration(struct display_mode_lib *mode_lib) mode_lib 2763 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) { mode_lib 2766 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c if (mode_lib->vba.SourcePixelFormat[k] == dm_444_64) { mode_lib 2769 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c } else if (mode_lib->vba.SourcePixelFormat[k] == dm_444_32) { mode_lib 2772 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c } else if (mode_lib->vba.SourcePixelFormat[k] == dm_444_16) { mode_lib 2775 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c } else if (mode_lib->vba.SourcePixelFormat[k] == dm_444_8) { mode_lib 2778 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c } else if (mode_lib->vba.SourcePixelFormat[k] == dm_420_8) { mode_lib 2786 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c if ((mode_lib->vba.SourcePixelFormat[k] == dm_444_64 mode_lib 2787 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c || mode_lib->vba.SourcePixelFormat[k] == dm_444_32 mode_lib 2788 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c || mode_lib->vba.SourcePixelFormat[k] == dm_444_16 mode_lib 2789 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c || mode_lib->vba.SourcePixelFormat[k] == dm_444_8)) { mode_lib 2790 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c if (mode_lib->vba.SurfaceTiling[k] == dm_sw_linear) { mode_lib 2792 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c } else if (mode_lib->vba.SourcePixelFormat[k] == dm_444_64) { mode_lib 2794 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c } else if (mode_lib->vba.SourcePixelFormat[k] == dm_444_32 mode_lib 2795 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c || mode_lib->vba.SourcePixelFormat[k] == dm_444_16) { mode_lib 2805 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c if (mode_lib->vba.SurfaceTiling[k] == dm_sw_linear) { mode_lib 2808 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c } else if (mode_lib->vba.SourcePixelFormat[k] == dm_420_8) { mode_lib 2821 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c if (mode_lib->vba.SourceScan[k] == dm_horz) { mode_lib 2829 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c if ((mode_lib->vba.SourcePixelFormat[k] == dm_444_64 mode_lib 2830 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c || mode_lib->vba.SourcePixelFormat[k] == dm_444_32 mode_lib 2831 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c || mode_lib->vba.SourcePixelFormat[k] == dm_444_16 mode_lib 2832 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c || mode_lib->vba.SourcePixelFormat[k] == dm_444_8)) { mode_lib 2833 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c if (mode_lib->vba.SurfaceTiling[k] == dm_sw_linear mode_lib 2834 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c || (mode_lib->vba.SourcePixelFormat[k] == dm_444_64 mode_lib 2835 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c && (mode_lib->vba.SurfaceTiling[k] mode_lib 2837 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c || mode_lib->vba.SurfaceTiling[k] mode_lib 2839 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c || mode_lib->vba.SurfaceTiling[k] mode_lib 2841 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c || mode_lib->vba.SurfaceTiling[k] mode_lib 2843 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c || mode_lib->vba.SurfaceTiling[k] mode_lib 2845 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c || mode_lib->vba.SurfaceTiling[k] mode_lib 2847 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c || mode_lib->vba.SurfaceTiling[k] mode_lib 2849 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c && mode_lib->vba.SourceScan[k] == dm_horz)) { mode_lib 2851 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c } else if (mode_lib->vba.SourcePixelFormat[k] == dm_444_8 mode_lib 2852 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c && mode_lib->vba.SourceScan[k] != dm_horz) { mode_lib 2859 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c if (mode_lib->vba.SurfaceTiling[k] == dm_sw_linear) { mode_lib 2862 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c } else if (mode_lib->vba.SourcePixelFormat[k] == dm_420_8 mode_lib 2863 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c && mode_lib->vba.SourceScan[k] == dm_horz) { mode_lib 2866 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c } else if (mode_lib->vba.SourcePixelFormat[k] == dm_420_10 mode_lib 2867 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c && mode_lib->vba.SourceScan[k] == dm_horz) { mode_lib 2876 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c if (mode_lib->vba.SourceScan[k] == dm_horz) { mode_lib 2877 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c SwathWidth = mode_lib->vba.ViewportWidth[k]; mode_lib 2879 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c SwathWidth = mode_lib->vba.ViewportHeight[k]; mode_lib 2882 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c if (mode_lib->vba.ODMCombineEnabled[k] == true) { mode_lib 2885 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c for (j = 0; j < mode_lib->vba.NumberOfActivePlanes; ++j) { mode_lib 2886 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c if (mode_lib->vba.BlendingAndTiming[k] == j mode_lib 2887 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c && mode_lib->vba.ODMCombineEnabled[j] == true) { mode_lib 2895 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.HActive[k] / 2.0 * mode_lib->vba.HRatio[k]); mode_lib 2897 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c if (mode_lib->vba.DPPPerPlane[k] == 0) mode_lib 2900 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c SwathWidth = SwathWidth / mode_lib->vba.DPPPerPlane[k]; mode_lib 2908 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c if (mode_lib->vba.SourcePixelFormat[k] == dm_420_10) { mode_lib 2919 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c if (mode_lib->vba.SourcePixelFormat[k] == dm_420_10) { mode_lib 2928 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c <= mode_lib->vba.DETBufferSizeInKByte * 1024.0 / 2.0) { mode_lib 2929 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.SwathHeightY[k] = MaximumSwathHeightY; mode_lib 2930 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.SwathHeightC[k] = MaximumSwathHeightC; mode_lib 2932 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.SwathHeightY[k] = MinimumSwathHeightY; mode_lib 2933 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.SwathHeightC[k] = MinimumSwathHeightC; mode_lib 2936 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c if (mode_lib->vba.SwathHeightC[k] == 0) { mode_lib 2937 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.DETBufferSizeY[k] = mode_lib->vba.DETBufferSizeInKByte * 1024; mode_lib 2938 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.DETBufferSizeC[k] = 0; mode_lib 2939 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c } else if (mode_lib->vba.SwathHeightY[k] <= mode_lib->vba.SwathHeightC[k]) { mode_lib 2940 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.DETBufferSizeY[k] = mode_lib->vba.DETBufferSizeInKByte mode_lib 2942 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.DETBufferSizeC[k] = mode_lib->vba.DETBufferSizeInKByte mode_lib 2945 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.DETBufferSizeY[k] = mode_lib->vba.DETBufferSizeInKByte mode_lib 2947 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.DETBufferSizeC[k] = mode_lib->vba.DETBufferSizeInKByte mode_lib 2971 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c struct display_mode_lib *mode_lib, mode_lib 3114 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c struct display_mode_lib *mode_lib, mode_lib 3150 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.ImmediateFlipBW[0] = BandwidthAvailableForImmediateFlip mode_lib 3156 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c / mode_lib->vba.ImmediateFlipBW[0], mode_lib 3172 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.ImmediateFlipBW[0] = BandwidthAvailableForImmediateFlip mode_lib 3176 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c / mode_lib->vba.ImmediateFlipBW[0], mode_lib 3316 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c void dml20v2_ModeSupportAndSystemConfigurationFull(struct display_mode_lib *mode_lib) mode_lib 3318 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c struct vba_vars_st *locals = &mode_lib->vba; mode_lib 3327 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.ScaleRatioAndTapsSupport = true; mode_lib 3328 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) { mode_lib 3329 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c if (mode_lib->vba.ScalerEnabled[k] == false mode_lib 3330 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c && ((mode_lib->vba.SourcePixelFormat[k] != dm_444_64 mode_lib 3331 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c && mode_lib->vba.SourcePixelFormat[k] != dm_444_32 mode_lib 3332 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c && mode_lib->vba.SourcePixelFormat[k] != dm_444_16 mode_lib 3333 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c && mode_lib->vba.SourcePixelFormat[k] != dm_mono_16 mode_lib 3334 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c && mode_lib->vba.SourcePixelFormat[k] != dm_mono_8) mode_lib 3335 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c || mode_lib->vba.HRatio[k] != 1.0 mode_lib 3336 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c || mode_lib->vba.htaps[k] != 1.0 mode_lib 3337 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c || mode_lib->vba.VRatio[k] != 1.0 mode_lib 3338 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c || mode_lib->vba.vtaps[k] != 1.0)) { mode_lib 3339 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.ScaleRatioAndTapsSupport = false; mode_lib 3340 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c } else if (mode_lib->vba.vtaps[k] < 1.0 || mode_lib->vba.vtaps[k] > 8.0 mode_lib 3341 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c || mode_lib->vba.htaps[k] < 1.0 || mode_lib->vba.htaps[k] > 8.0 mode_lib 3342 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c || (mode_lib->vba.htaps[k] > 1.0 mode_lib 3343 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c && (mode_lib->vba.htaps[k] % 2) == 1) mode_lib 3344 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c || mode_lib->vba.HRatio[k] > mode_lib->vba.MaxHSCLRatio mode_lib 3345 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c || mode_lib->vba.VRatio[k] > mode_lib->vba.MaxVSCLRatio mode_lib 3346 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c || mode_lib->vba.HRatio[k] > mode_lib->vba.htaps[k] mode_lib 3347 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c || mode_lib->vba.VRatio[k] > mode_lib->vba.vtaps[k] mode_lib 3348 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c || (mode_lib->vba.SourcePixelFormat[k] != dm_444_64 mode_lib 3349 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c && mode_lib->vba.SourcePixelFormat[k] != dm_444_32 mode_lib 3350 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c && mode_lib->vba.SourcePixelFormat[k] != dm_444_16 mode_lib 3351 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c && mode_lib->vba.SourcePixelFormat[k] != dm_mono_16 mode_lib 3352 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c && mode_lib->vba.SourcePixelFormat[k] != dm_mono_8 mode_lib 3353 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c && (mode_lib->vba.HRatio[k] / 2.0 mode_lib 3354 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c > mode_lib->vba.HTAPsChroma[k] mode_lib 3355 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c || mode_lib->vba.VRatio[k] / 2.0 mode_lib 3356 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c > mode_lib->vba.VTAPsChroma[k]))) { mode_lib 3357 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.ScaleRatioAndTapsSupport = false; mode_lib 3362 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.SourceFormatPixelAndScanSupport = true; mode_lib 3363 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) { mode_lib 3364 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c if ((mode_lib->vba.SurfaceTiling[k] == dm_sw_linear mode_lib 3365 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c && mode_lib->vba.SourceScan[k] != dm_horz) mode_lib 3366 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c || ((mode_lib->vba.SurfaceTiling[k] == dm_sw_4kb_d mode_lib 3367 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c || mode_lib->vba.SurfaceTiling[k] == dm_sw_4kb_d_x mode_lib 3368 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c || mode_lib->vba.SurfaceTiling[k] == dm_sw_64kb_d mode_lib 3369 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c || mode_lib->vba.SurfaceTiling[k] == dm_sw_64kb_d_t mode_lib 3370 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c || mode_lib->vba.SurfaceTiling[k] == dm_sw_64kb_d_x mode_lib 3371 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c || mode_lib->vba.SurfaceTiling[k] == dm_sw_var_d mode_lib 3372 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c || mode_lib->vba.SurfaceTiling[k] == dm_sw_var_d_x) mode_lib 3373 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c && mode_lib->vba.SourcePixelFormat[k] != dm_444_64) mode_lib 3374 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c || (mode_lib->vba.SurfaceTiling[k] == dm_sw_64kb_r_x mode_lib 3375 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c && (mode_lib->vba.SourcePixelFormat[k] == dm_mono_8 mode_lib 3376 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c || mode_lib->vba.SourcePixelFormat[k] mode_lib 3378 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c || mode_lib->vba.SourcePixelFormat[k] mode_lib 3380 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c || (((mode_lib->vba.SurfaceTiling[k] == dm_sw_gfx7_2d_thin_gl mode_lib 3381 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c || mode_lib->vba.SurfaceTiling[k] mode_lib 3383 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c && !((mode_lib->vba.SourcePixelFormat[k] mode_lib 3385 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c || mode_lib->vba.SourcePixelFormat[k] mode_lib 3387 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c && mode_lib->vba.SourceScan[k] mode_lib 3389 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c && mode_lib->vba.SupportGFX7CompatibleTilingIn32bppAnd64bpp mode_lib 3391 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c && mode_lib->vba.DCCEnable[k] mode_lib 3393 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c || (mode_lib->vba.DCCEnable[k] == true mode_lib 3394 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c && (mode_lib->vba.SurfaceTiling[k] mode_lib 3396 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c || mode_lib->vba.SourcePixelFormat[k] mode_lib 3398 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c || mode_lib->vba.SourcePixelFormat[k] mode_lib 3400 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.SourceFormatPixelAndScanSupport = false; mode_lib 3405 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) { mode_lib 3406 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c if (mode_lib->vba.SourcePixelFormat[k] == dm_444_64) { mode_lib 3409 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c } else if (mode_lib->vba.SourcePixelFormat[k] == dm_444_32) { mode_lib 3412 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c } else if (mode_lib->vba.SourcePixelFormat[k] == dm_444_16 mode_lib 3413 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c || mode_lib->vba.SourcePixelFormat[k] == dm_mono_16) { mode_lib 3416 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c } else if (mode_lib->vba.SourcePixelFormat[k] == dm_mono_8) { mode_lib 3419 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c } else if (mode_lib->vba.SourcePixelFormat[k] == dm_420_8) { mode_lib 3426 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c if (mode_lib->vba.SourceScan[k] == dm_horz) { mode_lib 3427 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c locals->SwathWidthYSingleDPP[k] = mode_lib->vba.ViewportWidth[k]; mode_lib 3429 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c locals->SwathWidthYSingleDPP[k] = mode_lib->vba.ViewportHeight[k]; mode_lib 3432 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) { mode_lib 3434 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c / (mode_lib->vba.HTotal[k] / mode_lib->vba.PixelClock[k]) * mode_lib->vba.VRatio[k]; mode_lib 3436 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c / (mode_lib->vba.HTotal[k] / mode_lib->vba.PixelClock[k]) * mode_lib->vba.VRatio[k] / 2.0; mode_lib 3439 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) { mode_lib 3440 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c if (mode_lib->vba.WritebackEnable[k] == true mode_lib 3441 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c && mode_lib->vba.WritebackPixelFormat[k] == dm_444_32) { mode_lib 3442 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c locals->WriteBandwidth[k] = mode_lib->vba.WritebackDestinationWidth[k] mode_lib 3443 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c * mode_lib->vba.WritebackDestinationHeight[k] mode_lib 3444 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c / (mode_lib->vba.WritebackSourceHeight[k] mode_lib 3445 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c * mode_lib->vba.HTotal[k] mode_lib 3446 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c / mode_lib->vba.PixelClock[k]) * 4.0; mode_lib 3447 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c } else if (mode_lib->vba.WritebackEnable[k] == true mode_lib 3448 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c && mode_lib->vba.WritebackPixelFormat[k] == dm_420_10) { mode_lib 3449 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c locals->WriteBandwidth[k] = mode_lib->vba.WritebackDestinationWidth[k] mode_lib 3450 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c * mode_lib->vba.WritebackDestinationHeight[k] mode_lib 3451 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c / (mode_lib->vba.WritebackSourceHeight[k] mode_lib 3452 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c * mode_lib->vba.HTotal[k] mode_lib 3453 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c / mode_lib->vba.PixelClock[k]) * 3.0; mode_lib 3454 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c } else if (mode_lib->vba.WritebackEnable[k] == true) { mode_lib 3455 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c locals->WriteBandwidth[k] = mode_lib->vba.WritebackDestinationWidth[k] mode_lib 3456 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c * mode_lib->vba.WritebackDestinationHeight[k] mode_lib 3457 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c / (mode_lib->vba.WritebackSourceHeight[k] mode_lib 3458 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c * mode_lib->vba.HTotal[k] mode_lib 3459 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c / mode_lib->vba.PixelClock[k]) * 1.5; mode_lib 3464 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.DCCEnabledInAnyPlane = false; mode_lib 3465 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) { mode_lib 3466 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c if (mode_lib->vba.DCCEnable[k] == true) { mode_lib 3467 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.DCCEnabledInAnyPlane = true; mode_lib 3470 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c for (i = 0; i <= mode_lib->vba.soc.num_states; i++) { mode_lib 3472 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.DRAMSpeedPerState[i] * mode_lib->vba.NumberOfChannels mode_lib 3473 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c * mode_lib->vba.DRAMChannelWidth, mode_lib 3474 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.FabricClockPerState[i] mode_lib 3475 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c * mode_lib->vba.FabricDatapathToDCNDataReturn) / 1000; mode_lib 3527 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.WritebackLatencySupport = true; mode_lib 3528 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) { mode_lib 3529 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c if (mode_lib->vba.WritebackEnable[k] == true) { mode_lib 3530 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c if (mode_lib->vba.WritebackPixelFormat[k] == dm_444_32) { mode_lib 3532 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c > (mode_lib->vba.WritebackInterfaceLumaBufferSize mode_lib 3533 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c + mode_lib->vba.WritebackInterfaceChromaBufferSize) mode_lib 3534 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c / mode_lib->vba.WritebackLatency) { mode_lib 3535 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.WritebackLatencySupport = false; mode_lib 3541 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.WritebackInterfaceLumaBufferSize, mode_lib 3543 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c * mode_lib->vba.WritebackInterfaceChromaBufferSize) mode_lib 3544 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c / mode_lib->vba.WritebackLatency) { mode_lib 3545 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.WritebackLatencySupport = false; mode_lib 3552 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c for (i = 0; i <= mode_lib->vba.soc.num_states; i++) { mode_lib 3554 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c (mode_lib->vba.RoundTripPingLatencyCycles + 32.0) / mode_lib->vba.DCFCLKPerState[i] mode_lib 3555 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c + locals->UrgentOutOfOrderReturnPerChannel * mode_lib->vba.NumberOfChannels / locals->ReturnBWPerState[i]; mode_lib 3556 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c if ((mode_lib->vba.ROBBufferSizeInKByte - mode_lib->vba.PixelChunkSizeInKByte) * 1024.0 / locals->ReturnBWPerState[i] mode_lib 3565 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.TotalNumberOfActiveWriteback = 0; mode_lib 3566 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) { mode_lib 3567 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c if (mode_lib->vba.WritebackEnable[k] == true) { mode_lib 3568 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c if (mode_lib->vba.ActiveWritebacksPerPlane[k] == 0) mode_lib 3569 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.ActiveWritebacksPerPlane[k] = 1; mode_lib 3570 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.TotalNumberOfActiveWriteback = mode_lib 3571 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.TotalNumberOfActiveWriteback mode_lib 3572 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c + mode_lib->vba.ActiveWritebacksPerPlane[k]; mode_lib 3575 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.WritebackModeSupport = true; mode_lib 3576 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c if (mode_lib->vba.TotalNumberOfActiveWriteback > mode_lib->vba.MaxNumWriteback) { mode_lib 3577 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.WritebackModeSupport = false; mode_lib 3579 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) { mode_lib 3580 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c if (mode_lib->vba.WritebackEnable[k] == true mode_lib 3581 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c && mode_lib->vba.Writeback10bpc420Supported != true mode_lib 3582 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c && mode_lib->vba.WritebackPixelFormat[k] == dm_420_10) { mode_lib 3583 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.WritebackModeSupport = false; mode_lib 3588 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.WritebackScaleRatioAndTapsSupport = true; mode_lib 3589 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) { mode_lib 3590 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c if (mode_lib->vba.WritebackEnable[k] == true) { mode_lib 3591 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c if (mode_lib->vba.WritebackLumaAndChromaScalingSupported == false mode_lib 3592 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c && (mode_lib->vba.WritebackHRatio[k] != 1.0 mode_lib 3593 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c || mode_lib->vba.WritebackVRatio[k] != 1.0)) { mode_lib 3594 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.WritebackScaleRatioAndTapsSupport = false; mode_lib 3596 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c if (mode_lib->vba.WritebackHRatio[k] > mode_lib->vba.WritebackMaxHSCLRatio mode_lib 3597 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c || mode_lib->vba.WritebackVRatio[k] mode_lib 3598 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c > mode_lib->vba.WritebackMaxVSCLRatio mode_lib 3599 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c || mode_lib->vba.WritebackHRatio[k] mode_lib 3600 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c < mode_lib->vba.WritebackMinHSCLRatio mode_lib 3601 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c || mode_lib->vba.WritebackVRatio[k] mode_lib 3602 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c < mode_lib->vba.WritebackMinVSCLRatio mode_lib 3603 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c || mode_lib->vba.WritebackLumaHTaps[k] mode_lib 3604 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c > mode_lib->vba.WritebackMaxHSCLTaps mode_lib 3605 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c || mode_lib->vba.WritebackLumaVTaps[k] mode_lib 3606 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c > mode_lib->vba.WritebackMaxVSCLTaps mode_lib 3607 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c || mode_lib->vba.WritebackHRatio[k] mode_lib 3608 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c > mode_lib->vba.WritebackLumaHTaps[k] mode_lib 3609 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c || mode_lib->vba.WritebackVRatio[k] mode_lib 3610 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c > mode_lib->vba.WritebackLumaVTaps[k] mode_lib 3611 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c || (mode_lib->vba.WritebackLumaHTaps[k] > 2.0 mode_lib 3612 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c && ((mode_lib->vba.WritebackLumaHTaps[k] % 2) mode_lib 3614 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c || (mode_lib->vba.WritebackPixelFormat[k] != dm_444_32 mode_lib 3615 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c && (mode_lib->vba.WritebackChromaHTaps[k] mode_lib 3616 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c > mode_lib->vba.WritebackMaxHSCLTaps mode_lib 3617 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c || mode_lib->vba.WritebackChromaVTaps[k] mode_lib 3618 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c > mode_lib->vba.WritebackMaxVSCLTaps mode_lib 3620 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c * mode_lib->vba.WritebackHRatio[k] mode_lib 3621 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c > mode_lib->vba.WritebackChromaHTaps[k] mode_lib 3623 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c * mode_lib->vba.WritebackVRatio[k] mode_lib 3624 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c > mode_lib->vba.WritebackChromaVTaps[k] mode_lib 3625 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c || (mode_lib->vba.WritebackChromaHTaps[k] > 2.0 mode_lib 3626 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c && ((mode_lib->vba.WritebackChromaHTaps[k] % 2) == 1))))) { mode_lib 3627 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.WritebackScaleRatioAndTapsSupport = false; mode_lib 3629 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c if (mode_lib->vba.WritebackVRatio[k] < 1.0) { mode_lib 3630 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.WritebackLumaVExtra = mode_lib 3631 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c dml_max(1.0 - 2.0 / dml_ceil(1.0 / mode_lib->vba.WritebackVRatio[k], 1.0), 0.0); mode_lib 3633 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.WritebackLumaVExtra = -1; mode_lib 3635 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c if ((mode_lib->vba.WritebackPixelFormat[k] == dm_444_32 mode_lib 3636 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c && mode_lib->vba.WritebackLumaVTaps[k] mode_lib 3637 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c > (mode_lib->vba.WritebackLineBufferLumaBufferSize mode_lib 3638 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c + mode_lib->vba.WritebackLineBufferChromaBufferSize) mode_lib 3640 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c / mode_lib->vba.WritebackDestinationWidth[k] mode_lib 3641 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c - mode_lib->vba.WritebackLumaVExtra) mode_lib 3642 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c || (mode_lib->vba.WritebackPixelFormat[k] == dm_420_8 mode_lib 3643 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c && mode_lib->vba.WritebackLumaVTaps[k] mode_lib 3644 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c > mode_lib->vba.WritebackLineBufferLumaBufferSize mode_lib 3645 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c * 8.0 / 10.0 / mode_lib->vba.WritebackDestinationWidth[k] mode_lib 3646 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c - mode_lib->vba.WritebackLumaVExtra) mode_lib 3647 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c || (mode_lib->vba.WritebackPixelFormat[k] == dm_420_10 mode_lib 3648 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c && mode_lib->vba.WritebackLumaVTaps[k] mode_lib 3649 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c > mode_lib->vba.WritebackLineBufferLumaBufferSize mode_lib 3651 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c / mode_lib->vba.WritebackDestinationWidth[k] mode_lib 3652 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c - mode_lib->vba.WritebackLumaVExtra)) { mode_lib 3653 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.WritebackScaleRatioAndTapsSupport = false; mode_lib 3655 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c if (2.0 * mode_lib->vba.WritebackVRatio[k] < 1) { mode_lib 3656 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.WritebackChromaVExtra = 0.0; mode_lib 3658 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.WritebackChromaVExtra = -1; mode_lib 3660 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c if ((mode_lib->vba.WritebackPixelFormat[k] == dm_420_8 mode_lib 3661 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c && mode_lib->vba.WritebackChromaVTaps[k] mode_lib 3662 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c > mode_lib->vba.WritebackLineBufferChromaBufferSize mode_lib 3663 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c * 8.0 / 10.0 / mode_lib->vba.WritebackDestinationWidth[k] mode_lib 3664 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c - mode_lib->vba.WritebackChromaVExtra) mode_lib 3665 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c || (mode_lib->vba.WritebackPixelFormat[k] == dm_420_10 mode_lib 3666 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c && mode_lib->vba.WritebackChromaVTaps[k] mode_lib 3667 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c > mode_lib->vba.WritebackLineBufferChromaBufferSize mode_lib 3669 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c / mode_lib->vba.WritebackDestinationWidth[k] mode_lib 3670 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c - mode_lib->vba.WritebackChromaVExtra)) { mode_lib 3671 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.WritebackScaleRatioAndTapsSupport = false; mode_lib 3677 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.WritebackRequiredDISPCLK = 0.0; mode_lib 3678 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) { mode_lib 3679 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c if (mode_lib->vba.WritebackEnable[k] == true) { mode_lib 3680 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.WritebackRequiredDISPCLK = mode_lib 3682 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.WritebackRequiredDISPCLK, mode_lib 3684 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.WritebackPixelFormat[k], mode_lib 3685 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.PixelClock[k], mode_lib 3686 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.WritebackHRatio[k], mode_lib 3687 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.WritebackVRatio[k], mode_lib 3688 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.WritebackLumaHTaps[k], mode_lib 3689 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.WritebackLumaVTaps[k], mode_lib 3690 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.WritebackChromaHTaps[k], mode_lib 3691 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.WritebackChromaVTaps[k], mode_lib 3692 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.WritebackDestinationWidth[k], mode_lib 3693 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.HTotal[k], mode_lib 3694 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.WritebackChromaLineBufferWidth)); mode_lib 3697 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) { mode_lib 3698 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c if (mode_lib->vba.HRatio[k] > 1.0) { mode_lib 3700 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.MaxDCHUBToPSCLThroughput, mode_lib 3701 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.MaxPSCLToLBThroughput mode_lib 3702 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c * mode_lib->vba.HRatio[k] mode_lib 3704 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.htaps[k] mode_lib 3709 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.MaxDCHUBToPSCLThroughput, mode_lib 3710 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.MaxPSCLToLBThroughput); mode_lib 3715 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.PixelClock[k] mode_lib 3717 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.vtaps[k] / 6.0 mode_lib 3720 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.HRatio[k]), mode_lib 3721 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.HRatio[k] mode_lib 3722 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c * mode_lib->vba.VRatio[k] mode_lib 3725 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c if ((mode_lib->vba.htaps[k] > 6.0 || mode_lib->vba.vtaps[k] > 6.0) mode_lib 3727 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c < 2.0 * mode_lib->vba.PixelClock[k]) { mode_lib 3729 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c * mode_lib->vba.PixelClock[k]; mode_lib 3732 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c if (mode_lib->vba.HRatio[k] / 2.0 > 1.0) { mode_lib 3735 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.MaxDCHUBToPSCLThroughput, mode_lib 3736 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.MaxPSCLToLBThroughput mode_lib 3737 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c * mode_lib->vba.HRatio[k] mode_lib 3740 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.HTAPsChroma[k] mode_lib 3745 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.MaxDCHUBToPSCLThroughput, mode_lib 3746 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.MaxPSCLToLBThroughput); mode_lib 3749 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.PixelClock[k] mode_lib 3751 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.vtaps[k] / 6.0 mode_lib 3754 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.HRatio[k]), mode_lib 3755 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.HRatio[k] mode_lib 3756 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c * mode_lib->vba.VRatio[k] mode_lib 3758 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.VTAPsChroma[k] mode_lib 3762 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.HRatio[k] mode_lib 3764 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.HRatio[k] mode_lib 3765 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c * mode_lib->vba.VRatio[k] mode_lib 3769 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c if ((mode_lib->vba.htaps[k] > 6.0 || mode_lib->vba.vtaps[k] > 6.0 mode_lib 3770 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c || mode_lib->vba.HTAPsChroma[k] > 6.0 mode_lib 3771 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c || mode_lib->vba.VTAPsChroma[k] > 6.0) mode_lib 3773 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c < 2.0 * mode_lib->vba.PixelClock[k]) { mode_lib 3775 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c * mode_lib->vba.PixelClock[k]; mode_lib 3779 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) { mode_lib 3781 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.SourcePixelFormat[k], mode_lib 3782 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.SurfaceTiling[k], mode_lib 3789 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c if (mode_lib->vba.SourceScan[k] == dm_horz) { mode_lib 3796 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c if ((mode_lib->vba.SourcePixelFormat[k] == dm_444_64 mode_lib 3797 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c || mode_lib->vba.SourcePixelFormat[k] == dm_444_32 mode_lib 3798 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c || mode_lib->vba.SourcePixelFormat[k] == dm_444_16 mode_lib 3799 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c || mode_lib->vba.SourcePixelFormat[k] == dm_mono_16 mode_lib 3800 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c || mode_lib->vba.SourcePixelFormat[k] == dm_mono_8)) { mode_lib 3801 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c if (mode_lib->vba.SurfaceTiling[k] == dm_sw_linear mode_lib 3802 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c || (mode_lib->vba.SourcePixelFormat[k] == dm_444_64 mode_lib 3803 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c && (mode_lib->vba.SurfaceTiling[k] mode_lib 3805 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c || mode_lib->vba.SurfaceTiling[k] mode_lib 3807 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c || mode_lib->vba.SurfaceTiling[k] mode_lib 3809 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c || mode_lib->vba.SurfaceTiling[k] mode_lib 3811 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c || mode_lib->vba.SurfaceTiling[k] mode_lib 3813 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c || mode_lib->vba.SurfaceTiling[k] mode_lib 3815 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c || mode_lib->vba.SurfaceTiling[k] mode_lib 3817 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c && mode_lib->vba.SourceScan[k] == dm_horz)) { mode_lib 3825 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c if (mode_lib->vba.SurfaceTiling[k] == dm_sw_linear) { mode_lib 3828 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c } else if (mode_lib->vba.SourcePixelFormat[k] == dm_420_8 mode_lib 3829 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c && mode_lib->vba.SourceScan[k] == dm_horz) { mode_lib 3833 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c } else if (mode_lib->vba.SourcePixelFormat[k] == dm_420_10 mode_lib 3834 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c && mode_lib->vba.SourceScan[k] == dm_horz) { mode_lib 3843 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c if (mode_lib->vba.SurfaceTiling[k] == dm_sw_linear) { mode_lib 3844 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.MaximumSwathWidthSupport = 8192.0; mode_lib 3846 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.MaximumSwathWidthSupport = 5120.0; mode_lib 3848 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.MaximumSwathWidthInDETBuffer = mode_lib 3850 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.MaximumSwathWidthSupport, mode_lib 3851 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.DETBufferSizeInKByte * 1024.0 / 2.0 mode_lib 3858 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.MaximumSwathWidthInLineBuffer = mode_lib 3859 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.LineBufferSize mode_lib 3860 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c * dml_max(mode_lib->vba.HRatio[k], 1.0) mode_lib 3861 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c / mode_lib->vba.LBBitPerPixel[k] mode_lib 3862 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c / (mode_lib->vba.vtaps[k] mode_lib 3865 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.VRatio[k], mode_lib 3870 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.MaximumSwathWidthInLineBuffer = mode_lib 3872 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.LineBufferSize mode_lib 3874 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.HRatio[k], mode_lib 3876 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c / mode_lib->vba.LBBitPerPixel[k] mode_lib 3877 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c / (mode_lib->vba.vtaps[k] mode_lib 3880 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.VRatio[k], mode_lib 3884 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c 2.0 * mode_lib->vba.LineBufferSize mode_lib 3886 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.HRatio[k] mode_lib 3889 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c / mode_lib->vba.LBBitPerPixel[k] mode_lib 3890 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c / (mode_lib->vba.VTAPsChroma[k] mode_lib 3893 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.VRatio[k] mode_lib 3900 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.MaximumSwathWidthInDETBuffer, mode_lib 3901 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.MaximumSwathWidthInLineBuffer); mode_lib 3903 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c for (i = 0; i <= mode_lib->vba.soc.num_states; i++) { mode_lib 3905 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.MaxDispclkRoundedDownToDFSGranularity = RoundToDFSGranularityDown( mode_lib 3906 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.MaxDispclk[i], mode_lib 3907 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.DISPCLKDPPCLKVCOSpeed); mode_lib 3908 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.MaxDppclkRoundedDownToDFSGranularity = RoundToDFSGranularityDown( mode_lib 3909 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.MaxDppclk[i], mode_lib 3910 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.DISPCLKDPPCLKVCOSpeed); mode_lib 3913 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) { mode_lib 3914 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.PlaneRequiredDISPCLKWithoutODMCombine = mode_lib 3915 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.PixelClock[k] * (1.0 + mode_lib->vba.DISPCLKDPPCLKDSCCLKDownSpreading / 100.0) mode_lib 3916 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c * (1.0 + mode_lib->vba.DISPCLKRampingMargin / 100.0); mode_lib 3917 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c if (mode_lib->vba.PlaneRequiredDISPCLKWithoutODMCombine >= mode_lib->vba.MaxDispclk[i] mode_lib 3918 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c && i == mode_lib->vba.soc.num_states) mode_lib 3919 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.PlaneRequiredDISPCLKWithoutODMCombine = mode_lib->vba.PixelClock[k] mode_lib 3920 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c * (1 + mode_lib->vba.DISPCLKDPPCLKDSCCLKDownSpreading / 100.0); mode_lib 3922 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.PlaneRequiredDISPCLKWithODMCombine = mode_lib->vba.PixelClock[k] / 2 mode_lib 3923 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c * (1 + mode_lib->vba.DISPCLKDPPCLKDSCCLKDownSpreading / 100.0) * (1 + mode_lib->vba.DISPCLKRampingMargin / 100.0); mode_lib 3924 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c if (mode_lib->vba.PlaneRequiredDISPCLKWithODMCombine >= mode_lib->vba.MaxDispclk[i] mode_lib 3925 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c && i == mode_lib->vba.soc.num_states) mode_lib 3926 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.PlaneRequiredDISPCLKWithODMCombine = mode_lib->vba.PixelClock[k] / 2 mode_lib 3927 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c * (1 + mode_lib->vba.DISPCLKDPPCLKDSCCLKDownSpreading / 100.0); mode_lib 3928 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c if (mode_lib->vba.ODMCapability == false || mode_lib->vba.PlaneRequiredDISPCLKWithoutODMCombine <= mode_lib->vba.MaxDispclkRoundedDownToDFSGranularity) { mode_lib 3930 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.PlaneRequiredDISPCLK = mode_lib->vba.PlaneRequiredDISPCLKWithoutODMCombine; mode_lib 3933 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.PlaneRequiredDISPCLK = mode_lib->vba.PlaneRequiredDISPCLKWithODMCombine; mode_lib 3935 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c if (locals->MinDPPCLKUsingSingleDPP[k] * (1.0 + mode_lib->vba.DISPCLKDPPCLKDSCCLKDownSpreading / 100.0) <= mode_lib->vba.MaxDppclkRoundedDownToDFSGranularity mode_lib 3940 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c locals->MinDPPCLKUsingSingleDPP[k] * (1.0 + mode_lib->vba.DISPCLKDPPCLKDSCCLKDownSpreading / 100.0); mode_lib 3944 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c locals->MinDPPCLKUsingSingleDPP[k] * (1.0 + mode_lib->vba.DISPCLKDPPCLKDSCCLKDownSpreading / 100.0) / 2.0; mode_lib 3948 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.PlaneRequiredDISPCLK); mode_lib 3949 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c if ((locals->MinDPPCLKUsingSingleDPP[k] / locals->NoOfDPP[i][j][k] * (1.0 + mode_lib->vba.DISPCLKDPPCLKDSCCLKDownSpreading / 100.0) mode_lib 3950 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c > mode_lib->vba.MaxDppclkRoundedDownToDFSGranularity) mode_lib 3951 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c || (mode_lib->vba.PlaneRequiredDISPCLK > mode_lib->vba.MaxDispclkRoundedDownToDFSGranularity)) { mode_lib 3956 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) mode_lib 3959 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c while (locals->TotalNumberOfActiveDPP[i][j] < mode_lib->vba.MaxNumDPP mode_lib 3960 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c && locals->TotalNumberOfActiveDPP[i][j] < 2 * mode_lib->vba.NumberOfActivePlanes) { mode_lib 3966 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) { mode_lib 3975 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c * (1 + mode_lib->vba.DISPCLKDPPCLKDSCCLKDownSpreading / 100) / 2; mode_lib 3979 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c if (locals->TotalNumberOfActiveDPP[i][j] > mode_lib->vba.MaxNumDPP) { mode_lib 3982 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) { mode_lib 3987 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c * (1.0 + mode_lib->vba.DISPCLKDPPCLKDSCCLKDownSpreading / 100.0); mode_lib 3991 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c * (1.0 + mode_lib->vba.DISPCLKDPPCLKDSCCLKDownSpreading / 100.0) / 2.0; mode_lib 3993 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c if (i != mode_lib->vba.soc.num_states) { mode_lib 3994 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.PlaneRequiredDISPCLK = mode_lib 3995 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.PixelClock[k] mode_lib 3996 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c * (1.0 + mode_lib->vba.DISPCLKDPPCLKDSCCLKDownSpreading / 100.0) mode_lib 3997 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c * (1.0 + mode_lib->vba.DISPCLKRampingMargin / 100.0); mode_lib 3999 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.PlaneRequiredDISPCLK = mode_lib->vba.PixelClock[k] mode_lib 4000 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c * (1.0 + mode_lib->vba.DISPCLKDPPCLKDSCCLKDownSpreading / 100.0); mode_lib 4004 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.PlaneRequiredDISPCLK); mode_lib 4005 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c if (locals->MinDPPCLKUsingSingleDPP[k] / locals->NoOfDPP[i][j][k] * (1.0 + mode_lib->vba.DISPCLKDPPCLKDSCCLKDownSpreading / 100.0) mode_lib 4006 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c > mode_lib->vba.MaxDppclkRoundedDownToDFSGranularity mode_lib 4007 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c || mode_lib->vba.PlaneRequiredDISPCLK > mode_lib->vba.MaxDispclkRoundedDownToDFSGranularity) mode_lib 4011 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) mode_lib 4016 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.WritebackRequiredDISPCLK); mode_lib 4017 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c if (mode_lib->vba.MaxDispclkRoundedDownToDFSGranularity mode_lib 4018 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c < mode_lib->vba.WritebackRequiredDISPCLK) { mode_lib 4025 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c for (i = 0; i <= mode_lib->vba.soc.num_states; i++) { mode_lib 4027 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) { mode_lib 4029 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c if (dml_min(locals->SwathWidthYSingleDPP[k], dml_round(mode_lib->vba.HActive[k] / 2.0 * mode_lib->vba.HRatio[k])) mode_lib 4042 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c for (i = 0; i <= mode_lib->vba.soc.num_states; i++) { mode_lib 4044 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c if (locals->TotalNumberOfActiveDPP[i][j] <= mode_lib->vba.MaxNumDPP) mode_lib 4052 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.TotalNumberOfActiveOTG = 0.0; mode_lib 4053 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) { mode_lib 4054 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c if (mode_lib->vba.BlendingAndTiming[k] == k) { mode_lib 4055 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.TotalNumberOfActiveOTG = mode_lib->vba.TotalNumberOfActiveOTG mode_lib 4059 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c if (mode_lib->vba.TotalNumberOfActiveOTG <= mode_lib->vba.MaxNumOTG) { mode_lib 4060 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.NumberOfOTGSupport = true; mode_lib 4062 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.NumberOfOTGSupport = false; mode_lib 4066 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.NonsupportedDSCInputBPC = false; mode_lib 4067 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) { mode_lib 4068 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c if (!(mode_lib->vba.DSCInputBitPerComponent[k] == 12.0 mode_lib 4069 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c || mode_lib->vba.DSCInputBitPerComponent[k] == 10.0 mode_lib 4070 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c || mode_lib->vba.DSCInputBitPerComponent[k] == 8.0)) { mode_lib 4071 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.NonsupportedDSCInputBPC = true; mode_lib 4074 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c for (i = 0; i <= mode_lib->vba.soc.num_states; i++) { mode_lib 4075 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) { mode_lib 4078 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c if (mode_lib->vba.BlendingAndTiming[k] == k) { mode_lib 4079 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c if (mode_lib->vba.Output[k] == dm_hdmi) { mode_lib 4083 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c dml_min(600.0, mode_lib->vba.PHYCLKPerState[i]) / mode_lib->vba.PixelClockBackEnd[k] * 24, mode_lib 4085 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.Output[k], mode_lib 4086 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.OutputFormat[k], mode_lib 4087 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.DSCInputBitPerComponent[k]); mode_lib 4088 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c } else if (mode_lib->vba.Output[k] == dm_dp mode_lib 4089 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c || mode_lib->vba.Output[k] == dm_edp) { mode_lib 4090 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c if (mode_lib->vba.Output[k] == dm_edp) { mode_lib 4091 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.EffectiveFECOverhead = 0.0; mode_lib 4093 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.EffectiveFECOverhead = mode_lib 4094 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.FECOverhead; mode_lib 4096 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c if (mode_lib->vba.PHYCLKPerState[i] >= 270.0) { mode_lib 4097 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.Outbpp = TruncToValidBPP( mode_lib 4098 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c (1.0 - mode_lib->vba.Downspreading / 100.0) * 270.0 mode_lib 4099 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c * mode_lib->vba.OutputLinkDPLanes[k] / mode_lib->vba.PixelClockBackEnd[k] * 8.0, mode_lib 4101 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.Output[k], mode_lib 4102 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.OutputFormat[k], mode_lib 4103 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.DSCInputBitPerComponent[k]); mode_lib 4104 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.OutbppDSC = TruncToValidBPP( mode_lib 4105 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c (1.0 - mode_lib->vba.Downspreading / 100.0) * (1.0 - mode_lib->vba.EffectiveFECOverhead / 100.0) * 270.0 mode_lib 4106 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c * mode_lib->vba.OutputLinkDPLanes[k] / mode_lib->vba.PixelClockBackEnd[k] * 8.0, mode_lib 4108 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.Output[k], mode_lib 4109 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.OutputFormat[k], mode_lib 4110 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.DSCInputBitPerComponent[k]); mode_lib 4111 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c if (mode_lib->vba.DSCEnabled[k] == true) { mode_lib 4113 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c if (mode_lib->vba.Output[k] == dm_dp) { mode_lib 4118 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.Outbpp = mode_lib->vba.OutbppDSC; mode_lib 4123 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c locals->OutputBppPerState[i][k] = mode_lib->vba.Outbpp; mode_lib 4125 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c if (mode_lib->vba.Outbpp == BPP_INVALID && mode_lib->vba.PHYCLKPerState[i] >= 540.0) { mode_lib 4126 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.Outbpp = TruncToValidBPP( mode_lib 4127 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c (1.0 - mode_lib->vba.Downspreading / 100.0) * 540.0 mode_lib 4128 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c * mode_lib->vba.OutputLinkDPLanes[k] / mode_lib->vba.PixelClockBackEnd[k] * 8.0, mode_lib 4130 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.Output[k], mode_lib 4131 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.OutputFormat[k], mode_lib 4132 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.DSCInputBitPerComponent[k]); mode_lib 4133 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.OutbppDSC = TruncToValidBPP( mode_lib 4134 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c (1.0 - mode_lib->vba.Downspreading / 100.0) * (1.0 - mode_lib->vba.EffectiveFECOverhead / 100.0) * 540.0 mode_lib 4135 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c * mode_lib->vba.OutputLinkDPLanes[k] / mode_lib->vba.PixelClockBackEnd[k] * 8.0, mode_lib 4137 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.Output[k], mode_lib 4138 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.OutputFormat[k], mode_lib 4139 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.DSCInputBitPerComponent[k]); mode_lib 4140 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c if (mode_lib->vba.DSCEnabled[k] == true) { mode_lib 4142 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c if (mode_lib->vba.Output[k] == dm_dp) { mode_lib 4147 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.Outbpp = mode_lib->vba.OutbppDSC; mode_lib 4152 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c locals->OutputBppPerState[i][k] = mode_lib->vba.Outbpp; mode_lib 4154 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c if (mode_lib->vba.Outbpp == BPP_INVALID mode_lib 4155 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c && mode_lib->vba.PHYCLKPerState[i] mode_lib 4157 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.Outbpp = TruncToValidBPP( mode_lib 4158 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c (1.0 - mode_lib->vba.Downspreading / 100.0) * 810.0 mode_lib 4159 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c * mode_lib->vba.OutputLinkDPLanes[k] / mode_lib->vba.PixelClockBackEnd[k] * 8.0, mode_lib 4161 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.Output[k], mode_lib 4162 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.OutputFormat[k], mode_lib 4163 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.DSCInputBitPerComponent[k]); mode_lib 4164 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.OutbppDSC = TruncToValidBPP( mode_lib 4165 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c (1.0 - mode_lib->vba.Downspreading / 100.0) * (1.0 - mode_lib->vba.EffectiveFECOverhead / 100.0) * 810.0 mode_lib 4166 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c * mode_lib->vba.OutputLinkDPLanes[k] / mode_lib->vba.PixelClockBackEnd[k] * 8.0, mode_lib 4168 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.Output[k], mode_lib 4169 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.OutputFormat[k], mode_lib 4170 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.DSCInputBitPerComponent[k]); mode_lib 4171 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c if (mode_lib->vba.DSCEnabled[k] == true || mode_lib->vba.Outbpp == BPP_INVALID) { mode_lib 4173 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c if (mode_lib->vba.Output[k] == dm_dp) { mode_lib 4178 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.Outbpp = mode_lib->vba.OutbppDSC; mode_lib 4184 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.Outbpp; mode_lib 4192 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c for (i = 0; i <= mode_lib->vba.soc.num_states; i++) { mode_lib 4194 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) { mode_lib 4196 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c || (mode_lib->vba.OutputFormat[k] == dm_420 mode_lib 4197 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c && mode_lib->vba.Interlace[k] == true mode_lib 4198 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c && mode_lib->vba.ProgressiveToInterlaceUnitInOPP == true)) { mode_lib 4203 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c for (i = 0; i <= mode_lib->vba.soc.num_states; i++) { mode_lib 4204 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) { mode_lib 4206 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c if (mode_lib->vba.BlendingAndTiming[k] == k) { mode_lib 4207 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c if ((mode_lib->vba.Output[k] == dm_dp mode_lib 4208 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c || mode_lib->vba.Output[k] == dm_edp)) { mode_lib 4209 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c if (mode_lib->vba.OutputFormat[k] == dm_420 mode_lib 4210 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c || mode_lib->vba.OutputFormat[k] mode_lib 4212 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.DSCFormatFactor = 2; mode_lib 4214 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.DSCFormatFactor = 1; mode_lib 4219 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c if (mode_lib->vba.PixelClockBackEnd[k] / 6.0 / mode_lib->vba.DSCFormatFactor mode_lib 4220 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c > (1.0 - mode_lib->vba.DISPCLKDPPCLKDSCCLKDownSpreading / 100.0) * mode_lib->vba.MaxDSCCLK[i]) { mode_lib 4225 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c if (mode_lib->vba.PixelClockBackEnd[k] / 3.0 / mode_lib->vba.DSCFormatFactor mode_lib 4226 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c > (1.0 - mode_lib->vba.DISPCLKDPPCLKDSCCLKDownSpreading / 100.0) * mode_lib->vba.MaxDSCCLK[i]) { mode_lib 4236 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c for (i = 0; i <= mode_lib->vba.soc.num_states; i++) { mode_lib 4238 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.TotalDSCUnitsRequired = 0.0; mode_lib 4239 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) { mode_lib 4242 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.TotalDSCUnitsRequired = mode_lib 4243 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.TotalDSCUnitsRequired + 2.0; mode_lib 4245 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.TotalDSCUnitsRequired = mode_lib 4246 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.TotalDSCUnitsRequired + 1.0; mode_lib 4250 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c if (mode_lib->vba.TotalDSCUnitsRequired > mode_lib->vba.NumberOfDSC) { mode_lib 4256 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c for (i = 0; i <= mode_lib->vba.soc.num_states; i++) { mode_lib 4257 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) { mode_lib 4258 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c if (mode_lib->vba.BlendingAndTiming[k] != k) { mode_lib 4259 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.slices = 0; mode_lib 4262 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.slices = 0; mode_lib 4263 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c } else if (mode_lib->vba.PixelClockBackEnd[k] > 3200.0) { mode_lib 4264 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.slices = dml_ceil( mode_lib 4265 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.PixelClockBackEnd[k] / 400.0, mode_lib 4267 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c } else if (mode_lib->vba.PixelClockBackEnd[k] > 1360.0) { mode_lib 4268 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.slices = 8.0; mode_lib 4269 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c } else if (mode_lib->vba.PixelClockBackEnd[k] > 680.0) { mode_lib 4270 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.slices = 4.0; mode_lib 4271 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c } else if (mode_lib->vba.PixelClockBackEnd[k] > 340.0) { mode_lib 4272 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.slices = 2.0; mode_lib 4274 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.slices = 1.0; mode_lib 4278 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.bpp = 0.0; mode_lib 4280 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.bpp = locals->OutputBppPerState[i][k]; mode_lib 4282 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c if (locals->RequiresDSC[i][k] == true && mode_lib->vba.bpp != 0.0) { mode_lib 4286 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.DSCInputBitPerComponent[k], mode_lib 4287 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.bpp, mode_lib 4289 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.HActive[k] mode_lib 4290 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c / mode_lib->vba.slices, mode_lib 4292 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.slices, mode_lib 4293 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.OutputFormat[k]) mode_lib 4295 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.OutputFormat[k]); mode_lib 4299 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.DSCInputBitPerComponent[k], mode_lib 4300 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.bpp, mode_lib 4301 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c dml_ceil(mode_lib->vba.HActive[k] / mode_lib->vba.slices, 1.0), mode_lib 4302 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.slices / 2, mode_lib 4303 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.OutputFormat[k]) mode_lib 4304 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c + dscComputeDelay(mode_lib->vba.OutputFormat[k])); mode_lib 4307 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c locals->DSCDelayPerState[i][k] * mode_lib->vba.PixelClock[k] / mode_lib->vba.PixelClockBackEnd[k]; mode_lib 4312 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) { mode_lib 4313 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c for (m = 0; m <= mode_lib->vba.NumberOfActivePlanes - 1; m++) { mode_lib 4314 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c for (j = 0; j <= mode_lib->vba.NumberOfActivePlanes - 1; j++) { mode_lib 4315 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c if (mode_lib->vba.BlendingAndTiming[k] == m && locals->RequiresDSC[i][m] == true) mode_lib 4323 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c for (i = 0; i <= mode_lib->vba.soc.num_states; i++) { mode_lib 4325 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) { mode_lib 4445 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.ProjectedDCFCLKDeepSleep = dml_max( mode_lib 4446 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.ProjectedDCFCLKDeepSleep, mode_lib 4447 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.PixelClock[k] / 16.0); mode_lib 4448 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c if (mode_lib->vba.BytePerPixelInDETC[k] == 0.0) { mode_lib 4449 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c if (mode_lib->vba.VRatio[k] <= 1.0) { mode_lib 4450 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.ProjectedDCFCLKDeepSleep = mode_lib 4452 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.ProjectedDCFCLKDeepSleep, mode_lib 4455 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.BytePerPixelInDETY[k], mode_lib 4458 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c * mode_lib->vba.HRatio[k] mode_lib 4459 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c * mode_lib->vba.PixelClock[k] mode_lib 4460 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c / mode_lib->vba.NoOfDPP[i][j][k]); mode_lib 4462 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.ProjectedDCFCLKDeepSleep = mode_lib 4464 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.ProjectedDCFCLKDeepSleep, mode_lib 4467 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.BytePerPixelInDETY[k], mode_lib 4470 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c * mode_lib->vba.PSCL_FACTOR[k] mode_lib 4471 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c * mode_lib->vba.RequiredDPPCLK[i][j][k]); mode_lib 4474 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c if (mode_lib->vba.VRatio[k] <= 1.0) { mode_lib 4475 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.ProjectedDCFCLKDeepSleep = mode_lib 4477 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.ProjectedDCFCLKDeepSleep, mode_lib 4480 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.BytePerPixelInDETY[k], mode_lib 4483 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c * mode_lib->vba.HRatio[k] mode_lib 4484 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c * mode_lib->vba.PixelClock[k] mode_lib 4485 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c / mode_lib->vba.NoOfDPP[i][j][k]); mode_lib 4487 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.ProjectedDCFCLKDeepSleep = mode_lib 4489 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.ProjectedDCFCLKDeepSleep, mode_lib 4492 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.BytePerPixelInDETY[k], mode_lib 4495 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c * mode_lib->vba.PSCL_FACTOR[k] mode_lib 4496 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c * mode_lib->vba.RequiredDPPCLK[i][j][k]); mode_lib 4498 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c if (mode_lib->vba.VRatio[k] / 2.0 <= 1.0) { mode_lib 4499 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.ProjectedDCFCLKDeepSleep = mode_lib 4501 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.ProjectedDCFCLKDeepSleep, mode_lib 4504 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.BytePerPixelInDETC[k], mode_lib 4507 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c * mode_lib->vba.HRatio[k] mode_lib 4509 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c * mode_lib->vba.PixelClock[k] mode_lib 4510 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c / mode_lib->vba.NoOfDPP[i][j][k]); mode_lib 4512 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.ProjectedDCFCLKDeepSleep = mode_lib 4514 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.ProjectedDCFCLKDeepSleep, mode_lib 4517 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.BytePerPixelInDETC[k], mode_lib 4520 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c * mode_lib->vba.PSCL_FACTOR_CHROMA[k] mode_lib 4521 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c * mode_lib->vba.RequiredDPPCLK[i][j][k]); mode_lib 4525 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) { mode_lib 4526 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.PDEAndMetaPTEBytesPerFrameY = CalculateVMAndRowBytes( mode_lib 4527 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib, mode_lib 4528 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.DCCEnable[k], mode_lib 4529 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.Read256BlockHeightY[k], mode_lib 4530 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.Read256BlockWidthY[k], mode_lib 4531 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.SourcePixelFormat[k], mode_lib 4532 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.SurfaceTiling[k], mode_lib 4533 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c dml_ceil(mode_lib->vba.BytePerPixelInDETY[k], 1.0), mode_lib 4534 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.SourceScan[k], mode_lib 4535 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.ViewportWidth[k], mode_lib 4536 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.ViewportHeight[k], mode_lib 4537 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.SwathWidthYPerState[i][j][k], mode_lib 4538 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.GPUVMEnable, mode_lib 4539 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.VMMPageSize, mode_lib 4540 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.PTEBufferSizeInRequestsLuma, mode_lib 4541 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.PDEProcessingBufIn64KBReqs, mode_lib 4542 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.PitchY[k], mode_lib 4543 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.DCCMetaPitchY[k], mode_lib 4544 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c &mode_lib->vba.MacroTileWidthY[k], mode_lib 4545 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c &mode_lib->vba.MetaRowBytesY, mode_lib 4546 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c &mode_lib->vba.DPTEBytesPerRowY, mode_lib 4547 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c &mode_lib->vba.PTEBufferSizeNotExceededY[i][j][k], mode_lib 4548 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c &mode_lib->vba.dpte_row_height[k], mode_lib 4549 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c &mode_lib->vba.meta_row_height[k]); mode_lib 4550 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.PrefetchLinesY[k] = CalculatePrefetchSourceLines( mode_lib 4551 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib, mode_lib 4552 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.VRatio[k], mode_lib 4553 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.vtaps[k], mode_lib 4554 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.Interlace[k], mode_lib 4555 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.ProgressiveToInterlaceUnitInOPP, mode_lib 4556 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.SwathHeightYPerState[i][j][k], mode_lib 4557 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.ViewportYStartY[k], mode_lib 4558 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c &mode_lib->vba.PrefillY[k], mode_lib 4559 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c &mode_lib->vba.MaxNumSwY[k]); mode_lib 4560 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c if ((mode_lib->vba.SourcePixelFormat[k] != dm_444_64 mode_lib 4561 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c && mode_lib->vba.SourcePixelFormat[k] != dm_444_32 mode_lib 4562 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c && mode_lib->vba.SourcePixelFormat[k] != dm_444_16 mode_lib 4563 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c && mode_lib->vba.SourcePixelFormat[k] != dm_mono_16 mode_lib 4564 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c && mode_lib->vba.SourcePixelFormat[k] != dm_mono_8)) { mode_lib 4565 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.PDEAndMetaPTEBytesPerFrameC = CalculateVMAndRowBytes( mode_lib 4566 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib, mode_lib 4567 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.DCCEnable[k], mode_lib 4568 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.Read256BlockHeightY[k], mode_lib 4569 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.Read256BlockWidthY[k], mode_lib 4570 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.SourcePixelFormat[k], mode_lib 4571 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.SurfaceTiling[k], mode_lib 4572 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c dml_ceil(mode_lib->vba.BytePerPixelInDETC[k], 2.0), mode_lib 4573 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.SourceScan[k], mode_lib 4574 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.ViewportWidth[k] / 2.0, mode_lib 4575 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.ViewportHeight[k] / 2.0, mode_lib 4576 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.SwathWidthYPerState[i][j][k] / 2.0, mode_lib 4577 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.GPUVMEnable, mode_lib 4578 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.VMMPageSize, mode_lib 4579 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.PTEBufferSizeInRequestsLuma, mode_lib 4580 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.PDEProcessingBufIn64KBReqs, mode_lib 4581 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.PitchC[k], mode_lib 4583 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c &mode_lib->vba.MacroTileWidthC[k], mode_lib 4584 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c &mode_lib->vba.MetaRowBytesC, mode_lib 4585 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c &mode_lib->vba.DPTEBytesPerRowC, mode_lib 4586 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c &mode_lib->vba.PTEBufferSizeNotExceededC[i][j][k], mode_lib 4587 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c &mode_lib->vba.dpte_row_height_chroma[k], mode_lib 4588 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c &mode_lib->vba.meta_row_height_chroma[k]); mode_lib 4589 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.PrefetchLinesC[k] = CalculatePrefetchSourceLines( mode_lib 4590 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib, mode_lib 4591 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.VRatio[k] / 2.0, mode_lib 4592 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.VTAPsChroma[k], mode_lib 4593 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.Interlace[k], mode_lib 4594 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.ProgressiveToInterlaceUnitInOPP, mode_lib 4595 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.SwathHeightCPerState[i][j][k], mode_lib 4596 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.ViewportYStartC[k], mode_lib 4597 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c &mode_lib->vba.PrefillC[k], mode_lib 4598 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c &mode_lib->vba.MaxNumSwC[k]); mode_lib 4600 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.PDEAndMetaPTEBytesPerFrameC = 0.0; mode_lib 4601 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.MetaRowBytesC = 0.0; mode_lib 4602 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.DPTEBytesPerRowC = 0.0; mode_lib 4605 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c locals->PTEBufferSizeInRequestsForLuma = mode_lib->vba.PTEBufferSizeInRequestsLuma + mode_lib->vba.PTEBufferSizeInRequestsChroma; mode_lib 4608 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.PDEAndMetaPTEBytesPerFrameY + mode_lib->vba.PDEAndMetaPTEBytesPerFrameC; mode_lib 4609 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c locals->MetaRowBytes[k] = mode_lib->vba.MetaRowBytesY + mode_lib->vba.MetaRowBytesC; mode_lib 4610 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c locals->DPTEBytesPerRow[k] = mode_lib->vba.DPTEBytesPerRowY + mode_lib->vba.DPTEBytesPerRowC; mode_lib 4613 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.GPUVMEnable, mode_lib 4614 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.SourcePixelFormat[k], mode_lib 4615 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.VRatio[k], mode_lib 4616 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.DCCEnable[k], mode_lib 4617 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.HTotal[k] / mode_lib->vba.PixelClock[k], mode_lib 4618 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.MetaRowBytesY, mode_lib 4619 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.MetaRowBytesC, mode_lib 4620 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.meta_row_height[k], mode_lib 4621 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.meta_row_height_chroma[k], mode_lib 4622 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.DPTEBytesPerRowY, mode_lib 4623 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.DPTEBytesPerRowC, mode_lib 4624 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.dpte_row_height[k], mode_lib 4625 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.dpte_row_height_chroma[k], mode_lib 4626 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c &mode_lib->vba.meta_row_bw[k], mode_lib 4627 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c &mode_lib->vba.dpte_row_bw[k], mode_lib 4628 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c &mode_lib->vba.qual_row_bw[k]); mode_lib 4630 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.ExtraLatency = mode_lib 4631 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.UrgentRoundTripAndOutOfOrderLatencyPerState[i] mode_lib 4632 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c + (mode_lib->vba.TotalNumberOfActiveDPP[i][j] mode_lib 4633 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c * mode_lib->vba.PixelChunkSizeInKByte mode_lib 4634 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c + mode_lib->vba.TotalNumberOfDCCActiveDPP[i][j] mode_lib 4635 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c * mode_lib->vba.MetaChunkSize) mode_lib 4637 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c / mode_lib->vba.ReturnBWPerState[i]; mode_lib 4638 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c if (mode_lib->vba.GPUVMEnable == true) { mode_lib 4639 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.ExtraLatency = mode_lib->vba.ExtraLatency mode_lib 4640 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c + mode_lib->vba.TotalNumberOfActiveDPP[i][j] mode_lib 4641 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c * mode_lib->vba.PTEGroupSize mode_lib 4642 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c / mode_lib->vba.ReturnBWPerState[i]; mode_lib 4644 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.TimeCalc = 24.0 / mode_lib->vba.ProjectedDCFCLKDeepSleep; mode_lib 4646 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) { mode_lib 4647 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c if (mode_lib->vba.BlendingAndTiming[k] == k) { mode_lib 4648 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c if (mode_lib->vba.WritebackEnable[k] == true) { mode_lib 4649 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c locals->WritebackDelay[i][k] = mode_lib->vba.WritebackLatency mode_lib 4651 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.WritebackPixelFormat[k], mode_lib 4652 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.WritebackHRatio[k], mode_lib 4653 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.WritebackVRatio[k], mode_lib 4654 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.WritebackLumaHTaps[k], mode_lib 4655 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.WritebackLumaVTaps[k], mode_lib 4656 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.WritebackChromaHTaps[k], mode_lib 4657 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.WritebackChromaVTaps[k], mode_lib 4658 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.WritebackDestinationWidth[k]) / locals->RequiredDISPCLK[i][j]; mode_lib 4662 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c for (m = 0; m <= mode_lib->vba.NumberOfActivePlanes - 1; m++) { mode_lib 4663 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c if (mode_lib->vba.BlendingAndTiming[m] == k mode_lib 4664 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c && mode_lib->vba.WritebackEnable[m] mode_lib 4667 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.WritebackLatency + CalculateWriteBackDelay( mode_lib 4668 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.WritebackPixelFormat[m], mode_lib 4669 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.WritebackHRatio[m], mode_lib 4670 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.WritebackVRatio[m], mode_lib 4671 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.WritebackLumaHTaps[m], mode_lib 4672 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.WritebackLumaVTaps[m], mode_lib 4673 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.WritebackChromaHTaps[m], mode_lib 4674 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.WritebackChromaVTaps[m], mode_lib 4675 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.WritebackDestinationWidth[m]) / locals->RequiredDISPCLK[i][j]); mode_lib 4680 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) { mode_lib 4681 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c for (m = 0; m <= mode_lib->vba.NumberOfActivePlanes - 1; m++) { mode_lib 4682 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c if (mode_lib->vba.BlendingAndTiming[k] == m) { mode_lib 4687 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) { mode_lib 4693 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) { mode_lib 4694 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c locals->MaximumVStartup[k] = mode_lib->vba.VTotal[k] - mode_lib->vba.VActive[k] mode_lib 4695 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c - dml_max(1.0, dml_ceil(locals->WritebackDelay[i][k] / (mode_lib->vba.HTotal[k] / mode_lib->vba.PixelClock[k]), 1.0)); mode_lib 4698 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.NextPrefetchMode = mode_lib->vba.MinPrefetchMode; mode_lib 4700 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.PrefetchMode[i][j] = mode_lib->vba.NextPrefetchMode; mode_lib 4701 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.NextPrefetchMode = mode_lib->vba.NextPrefetchMode + 1; mode_lib 4703 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.TWait = CalculateTWait( mode_lib 4704 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.PrefetchMode[i][j], mode_lib 4705 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.DRAMClockChangeLatency, mode_lib 4706 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.UrgentLatency, mode_lib 4707 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.SREnterPlusExitTime); mode_lib 4708 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) { mode_lib 4710 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c if (mode_lib->vba.XFCEnabled[k] == true) { mode_lib 4711 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.XFCRemoteSurfaceFlipDelay = mode_lib 4713 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib, mode_lib 4714 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.VRatio[k], mode_lib 4717 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.HTotal[k] / mode_lib->vba.PixelClock[k], mode_lib 4718 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.XFCTSlvVupdateOffset, mode_lib 4719 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.XFCTSlvVupdateWidth, mode_lib 4720 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.XFCTSlvVreadyOffset, mode_lib 4721 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.XFCXBUFLatencyTolerance, mode_lib 4722 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.XFCFillBWOverhead, mode_lib 4723 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.XFCSlvChunkSize, mode_lib 4724 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.XFCBusTransportTime, mode_lib 4725 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.TimeCalc, mode_lib 4726 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.TWait, mode_lib 4727 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c &mode_lib->vba.SrcActiveDrainRate, mode_lib 4728 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c &mode_lib->vba.TInitXFill, mode_lib 4729 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c &mode_lib->vba.TslvChk); mode_lib 4731 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.XFCRemoteSurfaceFlipDelay = 0.0; mode_lib 4734 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c CalculateDelayAfterScaler(mode_lib, mode_lib->vba.ReturnBWPerState[i], mode_lib->vba.ReadBandwidthLuma[k], mode_lib->vba.ReadBandwidthChroma[k], mode_lib->vba.MaxTotalVActiveRDBandwidth, mode_lib 4735 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.DisplayPipeLineDeliveryTimeLuma[k], mode_lib->vba.DisplayPipeLineDeliveryTimeChroma[k], mode_lib 4736 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.RequiredDPPCLK[i][j][k], mode_lib->vba.RequiredDISPCLK[i][j], mode_lib->vba.PixelClock[k], mode_lib->vba.DSCDelayPerState[i][k], mode_lib->vba.NoOfDPP[i][j][k], mode_lib->vba.ScalerEnabled[k], mode_lib->vba.NumberOfCursors[k], mode_lib 4737 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.DPPCLKDelaySubtotal, mode_lib->vba.DPPCLKDelaySCL, mode_lib->vba.DPPCLKDelaySCLLBOnly, mode_lib->vba.DPPCLKDelayCNVCFormater, mode_lib->vba.DPPCLKDelayCNVCCursor, mode_lib->vba.DISPCLKDelaySubtotal, mode_lib 4738 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.SwathWidthYPerState[i][j][k] / mode_lib->vba.HRatio[k], mode_lib->vba.OutputFormat[k], mode_lib->vba.HTotal[k], mode_lib 4739 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.SwathWidthYSingleDPP[k], mode_lib->vba.BytePerPixelInDETY[k], mode_lib->vba.BytePerPixelInDETC[k], mode_lib->vba.SwathHeightYThisState[k], mode_lib->vba.SwathHeightCThisState[k], mode_lib->vba.Interlace[k], mode_lib->vba.ProgressiveToInterlaceUnitInOPP, mode_lib 4740 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c &mode_lib->vba.DSTXAfterScaler[k], &mode_lib->vba.DSTYAfterScaler[k]); mode_lib 4742 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.IsErrorResult[i][j][k] = mode_lib 4744 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib, mode_lib 4745 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.RequiredDPPCLK[i][j][k], mode_lib 4746 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.RequiredDISPCLK[i][j], mode_lib 4747 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.PixelClock[k], mode_lib 4748 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.ProjectedDCFCLKDeepSleep, mode_lib 4749 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.NoOfDPP[i][j][k], mode_lib 4750 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.NumberOfCursors[k], mode_lib 4751 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.VTotal[k] mode_lib 4752 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c - mode_lib->vba.VActive[k], mode_lib 4753 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.HTotal[k], mode_lib 4754 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.MaxInterDCNTileRepeaters, mode_lib 4755 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.MaximumVStartup[k], mode_lib 4756 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.GPUVMMaxPageTableLevels, mode_lib 4757 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.GPUVMEnable, mode_lib 4758 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.DynamicMetadataEnable[k], mode_lib 4759 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.DynamicMetadataLinesBeforeActiveRequired[k], mode_lib 4760 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.DynamicMetadataTransmittedBytes[k], mode_lib 4761 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.DCCEnable[k], mode_lib 4762 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.UrgentLatencyPixelDataOnly, mode_lib 4763 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.ExtraLatency, mode_lib 4764 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.TimeCalc, mode_lib 4765 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.PDEAndMetaPTEBytesPerFrame[k], mode_lib 4766 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.MetaRowBytes[k], mode_lib 4767 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.DPTEBytesPerRow[k], mode_lib 4768 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.PrefetchLinesY[k], mode_lib 4769 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.SwathWidthYPerState[i][j][k], mode_lib 4770 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.BytePerPixelInDETY[k], mode_lib 4771 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.PrefillY[k], mode_lib 4772 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.MaxNumSwY[k], mode_lib 4773 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.PrefetchLinesC[k], mode_lib 4774 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.BytePerPixelInDETC[k], mode_lib 4775 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.PrefillC[k], mode_lib 4776 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.MaxNumSwC[k], mode_lib 4777 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.SwathHeightYPerState[i][j][k], mode_lib 4778 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.SwathHeightCPerState[i][j][k], mode_lib 4779 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.TWait, mode_lib 4780 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.XFCEnabled[k], mode_lib 4781 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.XFCRemoteSurfaceFlipDelay, mode_lib 4782 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.Interlace[k], mode_lib 4783 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.ProgressiveToInterlaceUnitInOPP, mode_lib 4784 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.DSTXAfterScaler[k], mode_lib 4785 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.DSTYAfterScaler[k], mode_lib 4786 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c &mode_lib->vba.LineTimesForPrefetch[k], mode_lib 4787 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c &mode_lib->vba.PrefetchBW[k], mode_lib 4788 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c &mode_lib->vba.LinesForMetaPTE[k], mode_lib 4789 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c &mode_lib->vba.LinesForMetaAndDPTERow[k], mode_lib 4790 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c &mode_lib->vba.VRatioPreY[i][j][k], mode_lib 4791 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c &mode_lib->vba.VRatioPreC[i][j][k], mode_lib 4792 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c &mode_lib->vba.RequiredPrefetchPixelDataBWLuma[i][j][k], mode_lib 4793 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c &mode_lib->vba.Tno_bw[k], mode_lib 4794 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c &mode_lib->vba.VUpdateOffsetPix[k], mode_lib 4795 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c &mode_lib->vba.VUpdateWidthPix[k], mode_lib 4796 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c &mode_lib->vba.VReadyOffsetPix[k]); mode_lib 4798 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.MaximumReadBandwidthWithoutPrefetch = 0.0; mode_lib 4799 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.MaximumReadBandwidthWithPrefetch = 0.0; mode_lib 4802 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) { mode_lib 4822 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.MaximumReadBandwidthWithoutPrefetch = mode_lib->vba.MaximumReadBandwidthWithPrefetch mode_lib 4823 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c + mode_lib->vba.cursor_bw[k] + mode_lib->vba.ReadBandwidth[k] + mode_lib->vba.meta_row_bw[k] + mode_lib->vba.dpte_row_bw[k]; mode_lib 4824 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.MaximumReadBandwidthWithPrefetch = mode_lib 4825 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.MaximumReadBandwidthWithPrefetch mode_lib 4826 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c + mode_lib->vba.cursor_bw[k] mode_lib 4828 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.prefetch_vm_bw[k], mode_lib 4829 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.prefetch_row_bw[k], mode_lib 4830 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c dml_max(mode_lib->vba.ReadBandwidth[k], mode_lib 4831 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.RequiredPrefetchPixelDataBWLuma[i][j][k]) mode_lib 4832 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c + mode_lib->vba.meta_row_bw[k] + mode_lib->vba.dpte_row_bw[k]); mode_lib 4835 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c if (mode_lib->vba.MaximumReadBandwidthWithoutPrefetch > locals->ReturnBWPerState[i]) { mode_lib 4840 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c if (mode_lib->vba.MaximumReadBandwidthWithPrefetch > locals->ReturnBWPerState[i]) { mode_lib 4843 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) { mode_lib 4847 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c || mode_lib->vba.IsErrorResult[i][j][k] == true) { mode_lib 4852 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) { mode_lib 4855 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c || mode_lib->vba.IsErrorResult[i][j][k] == true) { mode_lib 4860 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c && mode_lib->vba.NextPrefetchMode < mode_lib->vba.MaxPrefetchMode); mode_lib 4862 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c if (mode_lib->vba.PrefetchSupported[i][j] == true mode_lib 4863 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c && mode_lib->vba.VRatioInPrefetchSupported[i][j] == true) { mode_lib 4864 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.BandwidthAvailableForImmediateFlip = mode_lib 4865 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.ReturnBWPerState[i]; mode_lib 4866 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) { mode_lib 4867 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.BandwidthAvailableForImmediateFlip = mode_lib 4868 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.BandwidthAvailableForImmediateFlip mode_lib 4869 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c - mode_lib->vba.cursor_bw[k] mode_lib 4871 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.ReadBandwidth[k] + mode_lib->vba.qual_row_bw[k], mode_lib 4872 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.PrefetchBW[k]); mode_lib 4874 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) { mode_lib 4875 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.ImmediateFlipBytes[k] = 0.0; mode_lib 4876 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c if ((mode_lib->vba.SourcePixelFormat[k] != dm_420_8 mode_lib 4877 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c && mode_lib->vba.SourcePixelFormat[k] != dm_420_10)) { mode_lib 4878 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.ImmediateFlipBytes[k] = mode_lib 4879 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.PDEAndMetaPTEBytesPerFrame[k] mode_lib 4880 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c + mode_lib->vba.MetaRowBytes[k] mode_lib 4881 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c + mode_lib->vba.DPTEBytesPerRow[k]; mode_lib 4884 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.TotImmediateFlipBytes = 0.0; mode_lib 4885 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) { mode_lib 4886 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c if ((mode_lib->vba.SourcePixelFormat[k] != dm_420_8 mode_lib 4887 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c && mode_lib->vba.SourcePixelFormat[k] != dm_420_10)) { mode_lib 4888 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.TotImmediateFlipBytes = mode_lib 4889 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.TotImmediateFlipBytes mode_lib 4890 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c + mode_lib->vba.ImmediateFlipBytes[k]; mode_lib 4894 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) { mode_lib 4896 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib, mode_lib 4897 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.ExtraLatency, mode_lib 4898 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.UrgentLatencyPixelDataOnly, mode_lib 4899 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.GPUVMMaxPageTableLevels, mode_lib 4900 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.GPUVMEnable, mode_lib 4901 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.BandwidthAvailableForImmediateFlip, mode_lib 4902 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.TotImmediateFlipBytes, mode_lib 4903 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.SourcePixelFormat[k], mode_lib 4904 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.ImmediateFlipBytes[k], mode_lib 4905 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.HTotal[k] mode_lib 4906 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c / mode_lib->vba.PixelClock[k], mode_lib 4907 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.VRatio[k], mode_lib 4908 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.Tno_bw[k], mode_lib 4909 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.PDEAndMetaPTEBytesPerFrame[k], mode_lib 4910 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.MetaRowBytes[k], mode_lib 4911 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.DPTEBytesPerRow[k], mode_lib 4912 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.DCCEnable[k], mode_lib 4913 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.dpte_row_height[k], mode_lib 4914 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.meta_row_height[k], mode_lib 4915 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.qual_row_bw[k], mode_lib 4916 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c &mode_lib->vba.DestinationLinesToRequestVMInImmediateFlip[k], mode_lib 4917 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c &mode_lib->vba.DestinationLinesToRequestRowInImmediateFlip[k], mode_lib 4918 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c &mode_lib->vba.final_flip_bw[k], mode_lib 4919 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c &mode_lib->vba.ImmediateFlipSupportedForPipe[k]); mode_lib 4921 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.total_dcn_read_bw_with_flip = 0.0; mode_lib 4922 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) { mode_lib 4923 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.total_dcn_read_bw_with_flip = mode_lib 4924 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.total_dcn_read_bw_with_flip mode_lib 4925 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c + mode_lib->vba.cursor_bw[k] mode_lib 4927 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.prefetch_vm_bw[k], mode_lib 4928 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.prefetch_row_bw[k], mode_lib 4929 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.final_flip_bw[k] mode_lib 4931 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.ReadBandwidth[k], mode_lib 4932 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.RequiredPrefetchPixelDataBWLuma[i][j][k])); mode_lib 4934 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.ImmediateFlipSupportedForState[i][j] = true; mode_lib 4935 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c if (mode_lib->vba.total_dcn_read_bw_with_flip mode_lib 4936 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c > mode_lib->vba.ReturnBWPerState[i]) { mode_lib 4937 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.ImmediateFlipSupportedForState[i][j] = false; mode_lib 4939 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) { mode_lib 4940 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c if (mode_lib->vba.ImmediateFlipSupportedForPipe[k] == false) { mode_lib 4941 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.ImmediateFlipSupportedForState[i][j] = false; mode_lib 4945 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.ImmediateFlipSupportedForState[i][j] = false; mode_lib 4951 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c for (i = 0; i <= mode_lib->vba.soc.num_states; i++) { mode_lib 4952 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.MaxTotalVerticalActiveAvailableBandwidth[i] = dml_min(mode_lib->vba.ReturnBusWidth * mode_lib 4953 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.DCFCLKPerState[i], mode_lib->vba.FabricAndDRAMBandwidthPerState[i] * 1000) * mode_lib 4954 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.MaxAveragePercentOfIdealDRAMBWDisplayCanUseInNormalSystemOperation / 100; mode_lib 4955 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c if (mode_lib->vba.MaxTotalVActiveRDBandwidth <= mode_lib->vba.MaxTotalVerticalActiveAvailableBandwidth[i]) mode_lib 4956 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.TotalVerticalActiveBandwidthSupport[i] = true; mode_lib 4958 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.TotalVerticalActiveBandwidthSupport[i] = false; mode_lib 4963 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c for (i = 0; i <= mode_lib->vba.soc.num_states; i++) { mode_lib 4966 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) { mode_lib 4975 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.CursorSupport = true; mode_lib 4976 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) { mode_lib 4978 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c if (mode_lib->vba.CursorWidth[k][j] > 0.0) { mode_lib 4981 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.CursorBufferSize mode_lib 4982 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c - mode_lib->vba.CursorChunkSize, mode_lib 4983 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.CursorChunkSize) * 1024.0 mode_lib 4984 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c / (mode_lib->vba.CursorWidth[k][j] mode_lib 4985 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c * mode_lib->vba.CursorBPP[k][j] mode_lib 4988 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c * (mode_lib->vba.HTotal[k] / mode_lib->vba.PixelClock[k]) mode_lib 4989 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c / mode_lib->vba.VRatio[k] < mode_lib->vba.UrgentLatencyPixelDataOnly mode_lib 4990 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c || (mode_lib->vba.CursorBPP[k][j] == 64.0 mode_lib 4991 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c && mode_lib->vba.Cursor64BppSupport == false)) { mode_lib 4992 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.CursorSupport = false; mode_lib 4999 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.PitchSupport = true; mode_lib 5000 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) { mode_lib 5002 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c dml_max(mode_lib->vba.PitchY[k], mode_lib->vba.ViewportWidth[k]), mode_lib 5004 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c if (locals->AlignedYPitch[k] > mode_lib->vba.PitchY[k]) { mode_lib 5005 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.PitchSupport = false; mode_lib 5007 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c if (mode_lib->vba.DCCEnable[k] == true) { mode_lib 5010 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.DCCMetaPitchY[k], mode_lib 5011 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.ViewportWidth[k]), mode_lib 5014 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c locals->AlignedDCCMetaPitch[k] = mode_lib->vba.DCCMetaPitchY[k]; mode_lib 5016 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c if (locals->AlignedDCCMetaPitch[k] > mode_lib->vba.DCCMetaPitchY[k]) { mode_lib 5017 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.PitchSupport = false; mode_lib 5019 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c if (mode_lib->vba.SourcePixelFormat[k] != dm_444_64 mode_lib 5020 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c && mode_lib->vba.SourcePixelFormat[k] != dm_444_32 mode_lib 5021 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c && mode_lib->vba.SourcePixelFormat[k] != dm_444_16 mode_lib 5022 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c && mode_lib->vba.SourcePixelFormat[k] != dm_mono_16 mode_lib 5023 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c && mode_lib->vba.SourcePixelFormat[k] != dm_mono_8) { mode_lib 5026 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.PitchC[k], mode_lib 5027 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.ViewportWidth[k] / 2.0), mode_lib 5030 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c locals->AlignedCPitch[k] = mode_lib->vba.PitchC[k]; mode_lib 5032 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c if (locals->AlignedCPitch[k] > mode_lib->vba.PitchC[k]) { mode_lib 5033 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.PitchSupport = false; mode_lib 5038 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c for (i = mode_lib->vba.soc.num_states; i >= 0; i--) { mode_lib 5042 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c if (mode_lib->vba.ScaleRatioAndTapsSupport != true) { mode_lib 5044 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c } else if (mode_lib->vba.SourceFormatPixelAndScanSupport != true) { mode_lib 5062 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c } else if (mode_lib->vba.NumberOfOTGSupport != true) { mode_lib 5064 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c } else if (mode_lib->vba.WritebackModeSupport != true) { mode_lib 5066 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c } else if (mode_lib->vba.WritebackLatencySupport != true) { mode_lib 5068 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c } else if (mode_lib->vba.WritebackScaleRatioAndTapsSupport != true) { mode_lib 5070 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c } else if (mode_lib->vba.CursorSupport != true) { mode_lib 5072 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c } else if (mode_lib->vba.PitchSupport != true) { mode_lib 5082 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c } else if (mode_lib->vba.NonsupportedDSCInputBPC != false) { mode_lib 5096 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.VoltageLevel = mode_lib->vba.soc.num_states + 1; mode_lib 5097 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c for (i = mode_lib->vba.VoltageOverrideLevel; i <= mode_lib->vba.soc.num_states; i++) { mode_lib 5099 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.VoltageLevel = i; mode_lib 5101 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c || mode_lib->vba.WhenToDoMPCCombine == dm_mpc_always_when_possible)) { mode_lib 5109 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.ImmediateFlipSupport = mode_lib 5110 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c locals->ImmediateFlipSupportedForState[mode_lib->vba.VoltageLevel][MaximumMPCCombine]; mode_lib 5111 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) { mode_lib 5112 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.DPPPerPlane[k] = locals->NoOfDPP[mode_lib->vba.VoltageLevel][MaximumMPCCombine][k]; mode_lib 5113 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c locals->DPPCLK[k] = locals->RequiredDPPCLK[mode_lib->vba.VoltageLevel][MaximumMPCCombine][k]; mode_lib 5115 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.DISPCLK = locals->RequiredDISPCLK[mode_lib->vba.VoltageLevel][MaximumMPCCombine]; mode_lib 5116 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.maxMpcComb = MaximumMPCCombine; mode_lib 5118 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.DCFCLK = mode_lib->vba.DCFCLKPerState[mode_lib->vba.VoltageLevel]; mode_lib 5119 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.DRAMSpeed = mode_lib->vba.DRAMSpeedPerState[mode_lib->vba.VoltageLevel]; mode_lib 5120 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.FabricClock = mode_lib->vba.FabricClockPerState[mode_lib->vba.VoltageLevel]; mode_lib 5121 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.SOCCLK = mode_lib->vba.SOCCLKPerState[mode_lib->vba.VoltageLevel]; mode_lib 5122 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.ReturnBW = locals->ReturnBWPerState[mode_lib->vba.VoltageLevel]; mode_lib 5123 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.FabricAndDRAMBandwidth = locals->FabricAndDRAMBandwidthPerState[mode_lib->vba.VoltageLevel]; mode_lib 5124 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) { mode_lib 5125 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c if (mode_lib->vba.BlendingAndTiming[k] == k) { mode_lib 5126 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.ODMCombineEnabled[k] = mode_lib 5127 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c locals->ODMCombineEnablePerState[mode_lib->vba.VoltageLevel][k]; mode_lib 5129 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.ODMCombineEnabled[k] = 0; mode_lib 5131 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.DSCEnabled[k] = mode_lib 5132 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c locals->RequiresDSC[mode_lib->vba.VoltageLevel][k]; mode_lib 5133 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c mode_lib->vba.OutputBpp[k] = mode_lib 5134 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.c locals->OutputBppPerState[mode_lib->vba.VoltageLevel][k]; mode_lib 29 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.h void dml20v2_recalculate(struct display_mode_lib *mode_lib); mode_lib 30 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20v2.h void dml20v2_ModeSupportAndSystemConfigurationFull(struct display_mode_lib *mode_lib); mode_lib 39 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20.c struct display_mode_lib *mode_lib, mode_lib 46 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20.c static void dml20_rq_dlg_get_dlg_params(struct display_mode_lib *mode_lib, mode_lib 65 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20.c static void calculate_ttu_cursor(struct display_mode_lib *mode_lib, mode_lib 118 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20.c static double get_refcyc_per_delivery(struct display_mode_lib *mode_lib, mode_lib 165 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20.c static void extract_rq_sizing_regs(struct display_mode_lib *mode_lib, mode_lib 170 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20.c print__data_rq_sizing_params_st(mode_lib, rq_sizing); mode_lib 189 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20.c static void extract_rq_regs(struct display_mode_lib *mode_lib, mode_lib 193 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20.c unsigned int detile_buf_size_in_bytes = mode_lib->ip.det_buffer_size_kbytes * 1024; mode_lib 196 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20.c extract_rq_sizing_regs(mode_lib, &(rq_regs->rq_regs_l), rq_param.sizing.rq_l); mode_lib 202 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20.c extract_rq_sizing_regs(mode_lib, &(rq_regs->rq_regs_c), rq_param.sizing.rq_c); mode_lib 234 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20.c static void handle_det_buf_split(struct display_mode_lib *mode_lib, mode_lib 249 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20.c unsigned int detile_buf_size_in_bytes = mode_lib->ip.det_buffer_size_kbytes * 1024; mode_lib 316 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20.c static void get_meta_and_pte_attr(struct display_mode_lib *mode_lib, mode_lib 378 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20.c const unsigned int log2_vmpg_bytes = dml_log2(mode_lib->soc.vmm_page_size_bytes); mode_lib 379 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20.c const unsigned int dpte_buf_in_pte_reqs = mode_lib->ip.dpte_buffer_size_in_pte_reqs_luma; mode_lib 381 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20.c mode_lib->ip.pde_proc_buffer_size_64k_reqs; mode_lib 519 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20.c vmpg_bytes = mode_lib->soc.vmm_page_size_bytes; mode_lib 666 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20.c static void get_surf_rq_param(struct display_mode_lib *mode_lib, mode_lib 705 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20.c get_meta_and_pte_attr(mode_lib, mode_lib 720 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20.c static void dml20_rq_dlg_get_rq_params(struct display_mode_lib *mode_lib, mode_lib 729 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20.c get_surf_rq_param(mode_lib, mode_lib 738 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20.c get_surf_rq_param(mode_lib, mode_lib 747 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20.c handle_det_buf_split(mode_lib, rq_param, pipe_src_param); mode_lib 748 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20.c print__rq_params_st(mode_lib, *rq_param); mode_lib 751 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20.c void dml20_rq_dlg_get_rq_reg(struct display_mode_lib *mode_lib, mode_lib 758 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20.c dml20_rq_dlg_get_rq_params(mode_lib, &rq_param, pipe_param.src); mode_lib 759 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20.c extract_rq_regs(mode_lib, rq_regs, rq_param); mode_lib 761 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20.c print__rq_regs_st(mode_lib, *rq_regs); mode_lib 766 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20.c static void dml20_rq_dlg_get_dlg_params(struct display_mode_lib *mode_lib, mode_lib 793 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20.c unsigned int min_vblank = mode_lib->ip.min_vblank_lines; mode_lib 926 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20.c t_calc_us = get_tcalc(mode_lib, e2e_pipe_param, num_pipes); mode_lib 927 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20.c min_ttu_vblank = get_min_ttu_vblank(mode_lib, e2e_pipe_param, num_pipes, pipe_idx); mode_lib 1004 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20.c dppclk_delay_subtotal = mode_lib->ip.dppclk_delay_subtotal; mode_lib 1005 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20.c dispclk_delay_subtotal = mode_lib->ip.dispclk_delay_subtotal; mode_lib 1008 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20.c dppclk_delay_subtotal += mode_lib->ip.dppclk_delay_scl; mode_lib 1010 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20.c dppclk_delay_subtotal += mode_lib->ip.dppclk_delay_scl_lb_only; mode_lib 1012 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20.c dppclk_delay_subtotal += mode_lib->ip.dppclk_delay_cnvc_formatter mode_lib 1013 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20.c + src->num_cursors * mode_lib->ip.dppclk_delay_cnvc_cursor; mode_lib 1016 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20.c double dsc_delay = get_dsc_delay(mode_lib, e2e_pipe_param, num_pipes, pipe_idx); mode_lib 1062 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20.c dst_x_after_scaler = get_dst_x_after_scaler(mode_lib, e2e_pipe_param, num_pipes, pipe_idx); mode_lib 1063 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20.c dst_y_after_scaler = get_dst_y_after_scaler(mode_lib, e2e_pipe_param, num_pipes, pipe_idx); mode_lib 1077 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20.c line_wait = mode_lib->soc.urgent_latency_us; mode_lib 1079 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20.c line_wait = dml_max(mode_lib->soc.sr_enter_plus_exit_time_us, line_wait); mode_lib 1081 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20.c line_wait = dml_max(mode_lib->soc.dram_clock_change_latency_us mode_lib 1082 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20.c + mode_lib->soc.urgent_latency_us, mode_lib 1086 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20.c dst_y_prefetch = get_dst_y_prefetch(mode_lib, e2e_pipe_param, num_pipes, pipe_idx); mode_lib 1089 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20.c dst_y_per_vm_vblank = get_dst_y_per_vm_vblank(mode_lib, mode_lib 1093 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20.c dst_y_per_row_vblank = get_dst_y_per_row_vblank(mode_lib, mode_lib 1097 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20.c dst_y_per_vm_flip = get_dst_y_per_vm_flip(mode_lib, e2e_pipe_param, num_pipes, pipe_idx); mode_lib 1098 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20.c dst_y_per_row_flip = get_dst_y_per_row_flip(mode_lib, e2e_pipe_param, num_pipes, pipe_idx); mode_lib 1121 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20.c vratio_pre_l = get_vratio_prefetch_l(mode_lib, e2e_pipe_param, num_pipes, pipe_idx); mode_lib 1122 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20.c vratio_pre_c = get_vratio_prefetch_c(mode_lib, e2e_pipe_param, num_pipes, pipe_idx); mode_lib 1209 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20.c refcyc_per_line_delivery_pre_l = get_refcyc_per_delivery(mode_lib, mode_lib 1220 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20.c refcyc_per_line_delivery_l = get_refcyc_per_delivery(mode_lib, mode_lib 1245 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20.c refcyc_per_line_delivery_pre_c = get_refcyc_per_delivery(mode_lib, mode_lib 1256 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20.c refcyc_per_line_delivery_c = get_refcyc_per_delivery(mode_lib, mode_lib 1284 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20.c refcyc_per_req_delivery_pre_l = get_refcyc_per_delivery(mode_lib, mode_lib 1294 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20.c refcyc_per_req_delivery_l = get_refcyc_per_delivery(mode_lib, mode_lib 1316 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20.c refcyc_per_req_delivery_pre_c = get_refcyc_per_delivery(mode_lib, mode_lib 1326 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20.c refcyc_per_req_delivery_c = get_refcyc_per_delivery(mode_lib, mode_lib 1349 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20.c xfc_transfer_delay = get_xfc_transfer_delay(mode_lib, e2e_pipe_param, num_pipes, pipe_idx); mode_lib 1350 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20.c xfc_precharge_delay = get_xfc_precharge_delay(mode_lib, mode_lib 1354 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20.c xfc_remote_surface_flip_latency = get_xfc_remote_surface_flip_latency(mode_lib, mode_lib 1359 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20.c xfc_prefetch_margin = get_xfc_prefetch_margin(mode_lib, mode_lib 1368 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20.c calculate_ttu_cursor(mode_lib, mode_lib 1384 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20.c calculate_ttu_cursor(mode_lib, mode_lib 1559 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20.c print__ttu_regs_st(mode_lib, *disp_ttu_regs); mode_lib 1560 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20.c print__dlg_regs_st(mode_lib, *disp_dlg_regs); mode_lib 1563 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20.c void dml20_rq_dlg_get_dlg_reg(struct display_mode_lib *mode_lib, mode_lib 1579 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20.c dlg_sys_param.t_urg_wm_us = get_wm_urgent(mode_lib, e2e_pipe_param, num_pipes); mode_lib 1580 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20.c dlg_sys_param.deepsleep_dcfclk_mhz = get_clk_dcf_deepsleep(mode_lib, mode_lib 1583 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20.c dlg_sys_param.t_extra_us = get_urgent_extra_latency(mode_lib, e2e_pipe_param, num_pipes); mode_lib 1584 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20.c dlg_sys_param.mem_trip_us = get_wm_memory_trip(mode_lib, e2e_pipe_param, num_pipes); mode_lib 1585 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20.c dlg_sys_param.t_mclk_wm_us = get_wm_dram_clock_change(mode_lib, e2e_pipe_param, num_pipes); mode_lib 1586 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20.c dlg_sys_param.t_sr_wm_us = get_wm_stutter_enter_exit(mode_lib, e2e_pipe_param, num_pipes); mode_lib 1587 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20.c dlg_sys_param.total_flip_bw = get_total_immediate_flip_bw(mode_lib, mode_lib 1590 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20.c dlg_sys_param.total_flip_bytes = get_total_immediate_flip_bytes(mode_lib, mode_lib 1593 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20.c dlg_sys_param.t_srx_delay_us = mode_lib->ip.dcfclk_cstate_latency mode_lib 1596 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20.c print__dlg_sys_params_st(mode_lib, dlg_sys_param); mode_lib 1601 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20.c dml20_rq_dlg_get_rq_params(mode_lib, &rq_param, e2e_pipe_param[pipe_idx].pipe.src); mode_lib 1602 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20.c dml20_rq_dlg_get_dlg_params(mode_lib, mode_lib 1615 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20.c static void calculate_ttu_cursor(struct display_mode_lib *mode_lib, mode_lib 45 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20.h struct display_mode_lib *mode_lib, mode_lib 62 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20.h struct display_mode_lib *mode_lib, mode_lib 39 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20v2.c struct display_mode_lib *mode_lib, mode_lib 46 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20v2.c static void dml20v2_rq_dlg_get_dlg_params(struct display_mode_lib *mode_lib, mode_lib 65 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20v2.c static void calculate_ttu_cursor(struct display_mode_lib *mode_lib, mode_lib 118 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20v2.c static double get_refcyc_per_delivery(struct display_mode_lib *mode_lib, mode_lib 165 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20v2.c static void extract_rq_sizing_regs(struct display_mode_lib *mode_lib, mode_lib 170 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20v2.c print__data_rq_sizing_params_st(mode_lib, rq_sizing); mode_lib 189 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20v2.c static void extract_rq_regs(struct display_mode_lib *mode_lib, mode_lib 193 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20v2.c unsigned int detile_buf_size_in_bytes = mode_lib->ip.det_buffer_size_kbytes * 1024; mode_lib 196 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20v2.c extract_rq_sizing_regs(mode_lib, &(rq_regs->rq_regs_l), rq_param.sizing.rq_l); mode_lib 202 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20v2.c extract_rq_sizing_regs(mode_lib, &(rq_regs->rq_regs_c), rq_param.sizing.rq_c); mode_lib 234 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20v2.c static void handle_det_buf_split(struct display_mode_lib *mode_lib, mode_lib 249 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20v2.c unsigned int detile_buf_size_in_bytes = mode_lib->ip.det_buffer_size_kbytes * 1024; mode_lib 316 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20v2.c static void get_meta_and_pte_attr(struct display_mode_lib *mode_lib, mode_lib 378 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20v2.c const unsigned int log2_vmpg_bytes = dml_log2(mode_lib->soc.vmm_page_size_bytes); mode_lib 379 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20v2.c const unsigned int dpte_buf_in_pte_reqs = mode_lib->ip.dpte_buffer_size_in_pte_reqs_luma; mode_lib 381 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20v2.c mode_lib->ip.pde_proc_buffer_size_64k_reqs; mode_lib 519 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20v2.c vmpg_bytes = mode_lib->soc.vmm_page_size_bytes; mode_lib 666 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20v2.c static void get_surf_rq_param(struct display_mode_lib *mode_lib, mode_lib 705 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20v2.c get_meta_and_pte_attr(mode_lib, mode_lib 720 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20v2.c static void dml20v2_rq_dlg_get_rq_params(struct display_mode_lib *mode_lib, mode_lib 729 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20v2.c get_surf_rq_param(mode_lib, mode_lib 738 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20v2.c get_surf_rq_param(mode_lib, mode_lib 747 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20v2.c handle_det_buf_split(mode_lib, rq_param, pipe_src_param); mode_lib 748 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20v2.c print__rq_params_st(mode_lib, *rq_param); mode_lib 751 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20v2.c void dml20v2_rq_dlg_get_rq_reg(struct display_mode_lib *mode_lib, mode_lib 758 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20v2.c dml20v2_rq_dlg_get_rq_params(mode_lib, &rq_param, pipe_param.src); mode_lib 759 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20v2.c extract_rq_regs(mode_lib, rq_regs, rq_param); mode_lib 761 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20v2.c print__rq_regs_st(mode_lib, *rq_regs); mode_lib 766 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20v2.c static void dml20v2_rq_dlg_get_dlg_params(struct display_mode_lib *mode_lib, mode_lib 793 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20v2.c unsigned int min_vblank = mode_lib->ip.min_vblank_lines; mode_lib 926 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20v2.c t_calc_us = get_tcalc(mode_lib, e2e_pipe_param, num_pipes); mode_lib 927 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20v2.c min_ttu_vblank = get_min_ttu_vblank(mode_lib, e2e_pipe_param, num_pipes, pipe_idx); mode_lib 1004 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20v2.c dppclk_delay_subtotal = mode_lib->ip.dppclk_delay_subtotal; mode_lib 1005 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20v2.c dispclk_delay_subtotal = mode_lib->ip.dispclk_delay_subtotal; mode_lib 1008 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20v2.c dppclk_delay_subtotal += mode_lib->ip.dppclk_delay_scl; mode_lib 1010 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20v2.c dppclk_delay_subtotal += mode_lib->ip.dppclk_delay_scl_lb_only; mode_lib 1012 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20v2.c dppclk_delay_subtotal += mode_lib->ip.dppclk_delay_cnvc_formatter mode_lib 1013 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20v2.c + src->num_cursors * mode_lib->ip.dppclk_delay_cnvc_cursor; mode_lib 1016 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20v2.c double dsc_delay = get_dsc_delay(mode_lib, e2e_pipe_param, num_pipes, pipe_idx); mode_lib 1062 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20v2.c dst_x_after_scaler = get_dst_x_after_scaler(mode_lib, e2e_pipe_param, num_pipes, pipe_idx); mode_lib 1063 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20v2.c dst_y_after_scaler = get_dst_y_after_scaler(mode_lib, e2e_pipe_param, num_pipes, pipe_idx); mode_lib 1077 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20v2.c line_wait = mode_lib->soc.urgent_latency_us; mode_lib 1079 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20v2.c line_wait = dml_max(mode_lib->soc.sr_enter_plus_exit_time_us, line_wait); mode_lib 1081 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20v2.c line_wait = dml_max(mode_lib->soc.dram_clock_change_latency_us mode_lib 1082 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20v2.c + mode_lib->soc.urgent_latency_us, mode_lib 1086 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20v2.c dst_y_prefetch = get_dst_y_prefetch(mode_lib, e2e_pipe_param, num_pipes, pipe_idx); mode_lib 1089 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20v2.c dst_y_per_vm_vblank = get_dst_y_per_vm_vblank(mode_lib, mode_lib 1093 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20v2.c dst_y_per_row_vblank = get_dst_y_per_row_vblank(mode_lib, mode_lib 1097 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20v2.c dst_y_per_vm_flip = get_dst_y_per_vm_flip(mode_lib, e2e_pipe_param, num_pipes, pipe_idx); mode_lib 1098 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20v2.c dst_y_per_row_flip = get_dst_y_per_row_flip(mode_lib, e2e_pipe_param, num_pipes, pipe_idx); mode_lib 1121 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20v2.c vratio_pre_l = get_vratio_prefetch_l(mode_lib, e2e_pipe_param, num_pipes, pipe_idx); mode_lib 1122 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20v2.c vratio_pre_c = get_vratio_prefetch_c(mode_lib, e2e_pipe_param, num_pipes, pipe_idx); mode_lib 1209 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20v2.c refcyc_per_line_delivery_pre_l = get_refcyc_per_delivery(mode_lib, mode_lib 1220 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20v2.c refcyc_per_line_delivery_l = get_refcyc_per_delivery(mode_lib, mode_lib 1245 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20v2.c refcyc_per_line_delivery_pre_c = get_refcyc_per_delivery(mode_lib, mode_lib 1256 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20v2.c refcyc_per_line_delivery_c = get_refcyc_per_delivery(mode_lib, mode_lib 1284 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20v2.c refcyc_per_req_delivery_pre_l = get_refcyc_per_delivery(mode_lib, mode_lib 1294 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20v2.c refcyc_per_req_delivery_l = get_refcyc_per_delivery(mode_lib, mode_lib 1316 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20v2.c refcyc_per_req_delivery_pre_c = get_refcyc_per_delivery(mode_lib, mode_lib 1326 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20v2.c refcyc_per_req_delivery_c = get_refcyc_per_delivery(mode_lib, mode_lib 1349 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20v2.c xfc_transfer_delay = get_xfc_transfer_delay(mode_lib, e2e_pipe_param, num_pipes, pipe_idx); mode_lib 1350 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20v2.c xfc_precharge_delay = get_xfc_precharge_delay(mode_lib, mode_lib 1354 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20v2.c xfc_remote_surface_flip_latency = get_xfc_remote_surface_flip_latency(mode_lib, mode_lib 1359 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20v2.c xfc_prefetch_margin = get_xfc_prefetch_margin(mode_lib, mode_lib 1368 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20v2.c calculate_ttu_cursor(mode_lib, mode_lib 1384 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20v2.c calculate_ttu_cursor(mode_lib, mode_lib 1559 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20v2.c print__ttu_regs_st(mode_lib, *disp_ttu_regs); mode_lib 1560 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20v2.c print__dlg_regs_st(mode_lib, *disp_dlg_regs); mode_lib 1563 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20v2.c void dml20v2_rq_dlg_get_dlg_reg(struct display_mode_lib *mode_lib, mode_lib 1579 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20v2.c dlg_sys_param.t_urg_wm_us = get_wm_urgent(mode_lib, e2e_pipe_param, num_pipes); mode_lib 1580 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20v2.c dlg_sys_param.deepsleep_dcfclk_mhz = get_clk_dcf_deepsleep(mode_lib, mode_lib 1583 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20v2.c dlg_sys_param.t_extra_us = get_urgent_extra_latency(mode_lib, e2e_pipe_param, num_pipes); mode_lib 1584 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20v2.c dlg_sys_param.mem_trip_us = get_wm_memory_trip(mode_lib, e2e_pipe_param, num_pipes); mode_lib 1585 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20v2.c dlg_sys_param.t_mclk_wm_us = get_wm_dram_clock_change(mode_lib, e2e_pipe_param, num_pipes); mode_lib 1586 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20v2.c dlg_sys_param.t_sr_wm_us = get_wm_stutter_enter_exit(mode_lib, e2e_pipe_param, num_pipes); mode_lib 1587 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20v2.c dlg_sys_param.total_flip_bw = get_total_immediate_flip_bw(mode_lib, mode_lib 1590 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20v2.c dlg_sys_param.total_flip_bytes = get_total_immediate_flip_bytes(mode_lib, mode_lib 1593 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20v2.c dlg_sys_param.t_srx_delay_us = mode_lib->ip.dcfclk_cstate_latency mode_lib 1596 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20v2.c print__dlg_sys_params_st(mode_lib, dlg_sys_param); mode_lib 1601 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20v2.c dml20v2_rq_dlg_get_rq_params(mode_lib, &rq_param, e2e_pipe_param[pipe_idx].pipe.src); mode_lib 1602 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20v2.c dml20v2_rq_dlg_get_dlg_params(mode_lib, mode_lib 1615 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20v2.c static void calculate_ttu_cursor(struct display_mode_lib *mode_lib, mode_lib 45 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20v2.h struct display_mode_lib *mode_lib, mode_lib 62 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20v2.h struct display_mode_lib *mode_lib, mode_lib 69 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c static void DisplayPipeConfiguration(struct display_mode_lib *mode_lib); mode_lib 71 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c struct display_mode_lib *mode_lib); mode_lib 81 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c struct display_mode_lib *mode_lib, mode_lib 160 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c struct display_mode_lib *mode_lib, mode_lib 170 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c struct display_mode_lib *mode_lib, mode_lib 213 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c struct display_mode_lib *mode_lib, mode_lib 247 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c struct display_mode_lib *mode_lib, mode_lib 285 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c struct display_mode_lib *mode_lib, mode_lib 342 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c struct display_mode_lib *mode_lib, mode_lib 486 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c void dml21_recalculate(struct display_mode_lib *mode_lib) mode_lib 488 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c ModeSupportAndSystemConfiguration(mode_lib); mode_lib 489 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c PixelClockAdjustmentForProgressiveToInterlaceUnit(mode_lib); mode_lib 490 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c DisplayPipeConfiguration(mode_lib); mode_lib 491 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation(mode_lib); mode_lib 634 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c struct display_mode_lib *mode_lib, mode_lib 1206 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c struct display_mode_lib *mode_lib, mode_lib 1223 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c if (!mode_lib->vba.IgnoreViewportPositioning) { mode_lib 1253 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c struct display_mode_lib *mode_lib, mode_lib 1330 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c MPDEBytesFrame = 128 * ((mode_lib->vba.GPUVMMaxPageTableLevels + 1) * (mode_lib->vba.HostVMMaxPageTableLevels + 1) - 2); mode_lib 1360 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c if (GPUVMEnable == true && (mode_lib->vba.GPUVMMaxPageTableLevels + 1) * (mode_lib->vba.HostVMMaxPageTableLevels + 1) > 2) { mode_lib 1366 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c ExtraDPDEBytesFrame = 128 * ((mode_lib->vba.GPUVMMaxPageTableLevels + 1) * (mode_lib->vba.HostVMMaxPageTableLevels + 1) - 3); mode_lib 1463 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c struct display_mode_lib *mode_lib) mode_lib 1465 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c struct vba_vars_st *locals = &mode_lib->vba; mode_lib 1468 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.WritebackDISPCLK = 0.0; mode_lib 1469 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.DISPCLKWithRamping = 0; mode_lib 1470 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.DISPCLKWithoutRamping = 0; mode_lib 1471 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.GlobalDPPCLK = 0.0; mode_lib 1475 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) { mode_lib 1476 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c if (mode_lib->vba.WritebackEnable[k]) { mode_lib 1477 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.WritebackDISPCLK = mode_lib 1479 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.WritebackDISPCLK, mode_lib 1481 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.WritebackPixelFormat[k], mode_lib 1482 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.PixelClock[k], mode_lib 1483 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.WritebackHRatio[k], mode_lib 1484 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.WritebackVRatio[k], mode_lib 1485 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.WritebackLumaHTaps[k], mode_lib 1486 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.WritebackLumaVTaps[k], mode_lib 1487 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.WritebackChromaHTaps[k], mode_lib 1488 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.WritebackChromaVTaps[k], mode_lib 1489 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.WritebackDestinationWidth[k], mode_lib 1490 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.HTotal[k], mode_lib 1491 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.WritebackChromaLineBufferWidth)); mode_lib 1495 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) { mode_lib 1496 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c if (mode_lib->vba.HRatio[k] > 1) { mode_lib 1498 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.MaxDCHUBToPSCLThroughput, mode_lib 1499 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.MaxPSCLToLBThroughput mode_lib 1500 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c * mode_lib->vba.HRatio[k] mode_lib 1502 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.htaps[k] mode_lib 1507 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.MaxDCHUBToPSCLThroughput, mode_lib 1508 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.MaxPSCLToLBThroughput); mode_lib 1511 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.DPPCLKUsingSingleDPPLuma = mode_lib 1512 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.PixelClock[k] mode_lib 1514 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.vtaps[k] / 6.0 mode_lib 1517 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.HRatio[k]), mode_lib 1519 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.HRatio[k] mode_lib 1520 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c * mode_lib->vba.VRatio[k] mode_lib 1524 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c if ((mode_lib->vba.htaps[k] > 6 || mode_lib->vba.vtaps[k] > 6) mode_lib 1525 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c && mode_lib->vba.DPPCLKUsingSingleDPPLuma mode_lib 1526 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c < 2 * mode_lib->vba.PixelClock[k]) { mode_lib 1527 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.DPPCLKUsingSingleDPPLuma = 2 * mode_lib->vba.PixelClock[k]; mode_lib 1530 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c if ((mode_lib->vba.SourcePixelFormat[k] != dm_420_8 mode_lib 1531 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c && mode_lib->vba.SourcePixelFormat[k] != dm_420_10)) { mode_lib 1534 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.DPPCLKUsingSingleDPPLuma; mode_lib 1536 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c if (mode_lib->vba.HRatio[k] > 1) { mode_lib 1539 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.MaxDCHUBToPSCLThroughput, mode_lib 1540 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.MaxPSCLToLBThroughput mode_lib 1541 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c * mode_lib->vba.HRatio[k] mode_lib 1544 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.HTAPsChroma[k] mode_lib 1549 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.MaxDCHUBToPSCLThroughput, mode_lib 1550 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.MaxPSCLToLBThroughput); mode_lib 1552 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.DPPCLKUsingSingleDPPChroma = mode_lib 1553 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.PixelClock[k] mode_lib 1555 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.VTAPsChroma[k] mode_lib 1559 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.HRatio[k] mode_lib 1562 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.HRatio[k] mode_lib 1563 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c * mode_lib->vba.VRatio[k] mode_lib 1568 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c if ((mode_lib->vba.HTAPsChroma[k] > 6 || mode_lib->vba.VTAPsChroma[k] > 6) mode_lib 1569 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c && mode_lib->vba.DPPCLKUsingSingleDPPChroma mode_lib 1570 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c < 2 * mode_lib->vba.PixelClock[k]) { mode_lib 1571 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.DPPCLKUsingSingleDPPChroma = 2 mode_lib 1572 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c * mode_lib->vba.PixelClock[k]; mode_lib 1576 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.DPPCLKUsingSingleDPPLuma, mode_lib 1577 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.DPPCLKUsingSingleDPPChroma); mode_lib 1581 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) { mode_lib 1582 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c if (mode_lib->vba.BlendingAndTiming[k] != k) mode_lib 1584 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c if (mode_lib->vba.ODMCombineEnabled[k]) { mode_lib 1585 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.DISPCLKWithRamping = mode_lib 1587 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.DISPCLKWithRamping, mode_lib 1588 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.PixelClock[k] / 2 mode_lib 1590 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c + mode_lib->vba.DISPCLKDPPCLKDSCCLKDownSpreading mode_lib 1593 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c + mode_lib->vba.DISPCLKRampingMargin mode_lib 1595 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.DISPCLKWithoutRamping = mode_lib 1597 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.DISPCLKWithoutRamping, mode_lib 1598 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.PixelClock[k] / 2 mode_lib 1600 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c + mode_lib->vba.DISPCLKDPPCLKDSCCLKDownSpreading mode_lib 1602 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c } else if (!mode_lib->vba.ODMCombineEnabled[k]) { mode_lib 1603 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.DISPCLKWithRamping = mode_lib 1605 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.DISPCLKWithRamping, mode_lib 1606 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.PixelClock[k] mode_lib 1608 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c + mode_lib->vba.DISPCLKDPPCLKDSCCLKDownSpreading mode_lib 1611 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c + mode_lib->vba.DISPCLKRampingMargin mode_lib 1613 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.DISPCLKWithoutRamping = mode_lib 1615 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.DISPCLKWithoutRamping, mode_lib 1616 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.PixelClock[k] mode_lib 1618 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c + mode_lib->vba.DISPCLKDPPCLKDSCCLKDownSpreading mode_lib 1623 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.DISPCLKWithRamping = dml_max( mode_lib 1624 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.DISPCLKWithRamping, mode_lib 1625 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.WritebackDISPCLK); mode_lib 1626 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.DISPCLKWithoutRamping = dml_max( mode_lib 1627 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.DISPCLKWithoutRamping, mode_lib 1628 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.WritebackDISPCLK); mode_lib 1630 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c ASSERT(mode_lib->vba.DISPCLKDPPCLKVCOSpeed != 0); mode_lib 1631 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.DISPCLKWithRampingRoundedToDFSGranularity = RoundToDFSGranularityUp( mode_lib 1632 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.DISPCLKWithRamping, mode_lib 1633 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.DISPCLKDPPCLKVCOSpeed); mode_lib 1634 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.DISPCLKWithoutRampingRoundedToDFSGranularity = RoundToDFSGranularityUp( mode_lib 1635 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.DISPCLKWithoutRamping, mode_lib 1636 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.DISPCLKDPPCLKVCOSpeed); mode_lib 1637 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.MaxDispclkRoundedToDFSGranularity = RoundToDFSGranularityDown( mode_lib 1638 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.soc.clock_limits[mode_lib->vba.soc.num_states - 1].dispclk_mhz, mode_lib 1639 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.DISPCLKDPPCLKVCOSpeed); mode_lib 1640 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c if (mode_lib->vba.DISPCLKWithoutRampingRoundedToDFSGranularity mode_lib 1641 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c > mode_lib->vba.MaxDispclkRoundedToDFSGranularity) { mode_lib 1642 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.DISPCLK_calculated = mode_lib 1643 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.DISPCLKWithoutRampingRoundedToDFSGranularity; mode_lib 1644 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c } else if (mode_lib->vba.DISPCLKWithRampingRoundedToDFSGranularity mode_lib 1645 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c > mode_lib->vba.MaxDispclkRoundedToDFSGranularity) { mode_lib 1646 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.DISPCLK_calculated = mode_lib->vba.MaxDispclkRoundedToDFSGranularity; mode_lib 1648 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.DISPCLK_calculated = mode_lib 1649 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.DISPCLKWithRampingRoundedToDFSGranularity; mode_lib 1651 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c DTRACE(" dispclk_mhz (calculated) = %f", mode_lib->vba.DISPCLK_calculated); mode_lib 1653 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) { mode_lib 1654 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.DPPCLK_calculated[k] = locals->DPPCLKUsingSingleDPP[k] mode_lib 1655 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c / mode_lib->vba.DPPPerPlane[k] mode_lib 1656 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c * (1 + mode_lib->vba.DISPCLKDPPCLKDSCCLKDownSpreading / 100); mode_lib 1657 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.GlobalDPPCLK = dml_max( mode_lib 1658 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.GlobalDPPCLK, mode_lib 1659 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.DPPCLK_calculated[k]); mode_lib 1661 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.GlobalDPPCLK = RoundToDFSGranularityUp( mode_lib 1662 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.GlobalDPPCLK, mode_lib 1663 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.DISPCLKDPPCLKVCOSpeed); mode_lib 1664 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) { mode_lib 1665 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.DPPCLK_calculated[k] = mode_lib->vba.GlobalDPPCLK / 255 mode_lib 1667 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.DPPCLK_calculated[k] * 255 mode_lib 1668 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c / mode_lib->vba.GlobalDPPCLK, mode_lib 1670 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c DTRACE(" dppclk_mhz[%i] (calculated) = %f", k, mode_lib->vba.DPPCLK_calculated[k]); mode_lib 1674 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c DTRACE(" dcfclk_mhz = %f", mode_lib->vba.DCFCLK); mode_lib 1675 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c DTRACE(" return_bw_to_dcn = %f", mode_lib->vba.ReturnBandwidthToDCN); mode_lib 1676 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c DTRACE(" return_bus_bw = %f", mode_lib->vba.ReturnBW); mode_lib 1678 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) { mode_lib 1681 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c if (mode_lib->vba.SourceScan[k] == dm_horz) mode_lib 1682 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c locals->SwathWidthSingleDPPY[k] = mode_lib->vba.ViewportWidth[k]; mode_lib 1684 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c locals->SwathWidthSingleDPPY[k] = mode_lib->vba.ViewportHeight[k]; mode_lib 1686 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c if (mode_lib->vba.ODMCombineEnabled[k] == true) mode_lib 1688 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c for (j = 0; j < mode_lib->vba.NumberOfActivePlanes; ++j) mode_lib 1689 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c if (mode_lib->vba.BlendingAndTiming[k] == j mode_lib 1690 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c && mode_lib->vba.ODMCombineEnabled[j] == true) mode_lib 1697 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.HActive[k] / 2.0 mode_lib 1698 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c * mode_lib->vba.HRatio[k])); mode_lib 1701 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c / mode_lib->vba.DPPPerPlane[k]; mode_lib 1704 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) { mode_lib 1705 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c if (mode_lib->vba.SourcePixelFormat[k] == dm_444_64) { mode_lib 1708 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c } else if (mode_lib->vba.SourcePixelFormat[k] == dm_444_32) { mode_lib 1711 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c } else if (mode_lib->vba.SourcePixelFormat[k] == dm_444_16 || mode_lib->vba.SourcePixelFormat[k] == dm_mono_16) { mode_lib 1714 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c } else if (mode_lib->vba.SourcePixelFormat[k] == dm_444_8 || mode_lib->vba.SourcePixelFormat[k] == dm_mono_8) { mode_lib 1717 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c } else if (mode_lib->vba.SourcePixelFormat[k] == dm_420_8) { mode_lib 1726 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.TotalDataReadBandwidth = 0.0; mode_lib 1727 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) { mode_lib 1730 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c / (mode_lib->vba.HTotal[k] / mode_lib->vba.PixelClock[k]) mode_lib 1731 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c * mode_lib->vba.VRatio[k]; mode_lib 1734 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c / (mode_lib->vba.HTotal[k] / mode_lib->vba.PixelClock[k]) mode_lib 1735 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c * mode_lib->vba.VRatio[k] / 2; mode_lib 1741 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.TotalDataReadBandwidth += locals->ReadBandwidthPlaneLuma[k] mode_lib 1747 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib, mode_lib 1748 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.NumberOfActivePlanes, mode_lib 1751 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.VRatio, mode_lib 1753 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.DPPPerPlane, mode_lib 1754 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.HRatio, mode_lib 1755 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.PixelClock, mode_lib 1759 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c &mode_lib->vba.DCFCLKDeepSleep); mode_lib 1762 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) { mode_lib 1763 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c if ((mode_lib->vba.BlendingAndTiming[k] != k) || !mode_lib->vba.DSCEnabled[k]) { mode_lib 1766 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c if (mode_lib->vba.OutputFormat[k] == dm_420 mode_lib 1767 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c || mode_lib->vba.OutputFormat[k] == dm_n422) mode_lib 1768 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.DSCFormatFactor = 2; mode_lib 1770 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.DSCFormatFactor = 1; mode_lib 1771 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c if (mode_lib->vba.ODMCombineEnabled[k]) mode_lib 1773 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.PixelClockBackEnd[k] / 6 mode_lib 1774 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c / mode_lib->vba.DSCFormatFactor mode_lib 1776 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c - mode_lib->vba.DISPCLKDPPCLKDSCCLKDownSpreading mode_lib 1780 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.PixelClockBackEnd[k] / 3 mode_lib 1781 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c / mode_lib->vba.DSCFormatFactor mode_lib 1783 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c - mode_lib->vba.DISPCLKDPPCLKDSCCLKDownSpreading mode_lib 1790 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) { mode_lib 1791 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c double bpp = mode_lib->vba.OutputBpp[k]; mode_lib 1792 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c unsigned int slices = mode_lib->vba.NumberOfDSCSlices[k]; mode_lib 1794 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c if (mode_lib->vba.DSCEnabled[k] && bpp != 0) { mode_lib 1795 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c if (!mode_lib->vba.ODMCombineEnabled[k]) { mode_lib 1798 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.DSCInputBitPerComponent[k], mode_lib 1801 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c (double) mode_lib->vba.HActive[k] mode_lib 1802 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c / mode_lib->vba.NumberOfDSCSlices[k], mode_lib 1805 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.OutputFormat[k]) mode_lib 1807 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.OutputFormat[k]); mode_lib 1812 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.DSCInputBitPerComponent[k], mode_lib 1815 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c (double) mode_lib->vba.HActive[k] mode_lib 1816 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c / mode_lib->vba.NumberOfDSCSlices[k], mode_lib 1819 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.OutputFormat[k]) mode_lib 1821 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.OutputFormat[k])); mode_lib 1824 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c * mode_lib->vba.PixelClock[k] mode_lib 1825 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c / mode_lib->vba.PixelClockBackEnd[k]; mode_lib 1831 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) mode_lib 1832 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c for (j = 0; j < mode_lib->vba.NumberOfActivePlanes; ++j) // NumberOfPlanes mode_lib 1833 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c if (j != k && mode_lib->vba.BlendingAndTiming[k] == j mode_lib 1834 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c && mode_lib->vba.DSCEnabled[j]) mode_lib 1838 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) { mode_lib 1849 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.SourcePixelFormat[k], mode_lib 1850 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.SurfaceTiling[k], mode_lib 1859 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib, mode_lib 1860 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.VRatio[k], mode_lib 1861 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.vtaps[k], mode_lib 1862 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.Interlace[k], mode_lib 1863 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.ProgressiveToInterlaceUnitInOPP, mode_lib 1864 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.SwathHeightY[k], mode_lib 1865 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.ViewportYStartY[k], mode_lib 1869 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c if ((mode_lib->vba.SourcePixelFormat[k] != dm_444_64 mode_lib 1870 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c && mode_lib->vba.SourcePixelFormat[k] != dm_444_32 mode_lib 1871 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c && mode_lib->vba.SourcePixelFormat[k] != dm_444_16 mode_lib 1872 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c && mode_lib->vba.SourcePixelFormat[k] != dm_444_8)) { mode_lib 1875 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib, mode_lib 1876 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.DCCEnable[k], mode_lib 1879 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.SourcePixelFormat[k], mode_lib 1880 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.SurfaceTiling[k], mode_lib 1884 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.SourceScan[k], mode_lib 1885 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.ViewportWidth[k] / 2, mode_lib 1886 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.ViewportHeight[k] / 2, mode_lib 1888 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.GPUVMEnable, mode_lib 1889 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.HostVMEnable, mode_lib 1890 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.HostVMMaxPageTableLevels, mode_lib 1891 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.HostVMCachedPageTableLevels, mode_lib 1892 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.VMMPageSize, mode_lib 1893 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.PTEBufferSizeInRequestsChroma, mode_lib 1894 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.PitchC[k], mode_lib 1895 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.DCCMetaPitchC[k], mode_lib 1915 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib, mode_lib 1916 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.VRatio[k] / 2, mode_lib 1917 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.VTAPsChroma[k], mode_lib 1918 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.Interlace[k], mode_lib 1919 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.ProgressiveToInterlaceUnitInOPP, mode_lib 1920 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.SwathHeightC[k], mode_lib 1921 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.ViewportYStartC[k], mode_lib 1930 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c locals->PTEBufferSizeInRequestsForLuma = mode_lib->vba.PTEBufferSizeInRequestsLuma + mode_lib->vba.PTEBufferSizeInRequestsChroma; mode_lib 1934 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib, mode_lib 1935 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.DCCEnable[k], mode_lib 1938 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.SourcePixelFormat[k], mode_lib 1939 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.SurfaceTiling[k], mode_lib 1941 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.SourceScan[k], mode_lib 1942 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.ViewportWidth[k], mode_lib 1943 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.ViewportHeight[k], mode_lib 1945 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.GPUVMEnable, mode_lib 1946 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.HostVMEnable, mode_lib 1947 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.HostVMMaxPageTableLevels, mode_lib 1948 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.HostVMCachedPageTableLevels, mode_lib 1949 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.VMMPageSize, mode_lib 1951 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.PitchY[k], mode_lib 1952 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.DCCMetaPitchY[k], mode_lib 1977 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.GPUVMEnable, mode_lib 1978 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.SourcePixelFormat[k], mode_lib 1979 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.VRatio[k], mode_lib 1980 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.DCCEnable[k], mode_lib 1981 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.HTotal[k] / mode_lib->vba.PixelClock[k], mode_lib 1994 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.TotalDCCActiveDPP = 0; mode_lib 1995 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.TotalActiveDPP = 0; mode_lib 1996 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) { mode_lib 1997 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.TotalActiveDPP = mode_lib->vba.TotalActiveDPP mode_lib 1998 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c + mode_lib->vba.DPPPerPlane[k]; mode_lib 1999 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c if (mode_lib->vba.DCCEnable[k]) mode_lib 2000 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.TotalDCCActiveDPP = mode_lib->vba.TotalDCCActiveDPP mode_lib 2001 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c + mode_lib->vba.DPPPerPlane[k]; mode_lib 2004 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.UrgentOutOfOrderReturnPerChannel = dml_max3( mode_lib 2005 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.UrgentOutOfOrderReturnPerChannelPixelDataOnly, mode_lib 2006 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.UrgentOutOfOrderReturnPerChannelPixelMixedWithVMData, mode_lib 2007 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.UrgentOutOfOrderReturnPerChannelVMDataOnly); mode_lib 2009 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.UrgentRoundTripAndOutOfOrderLatency = mode_lib 2010 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c (mode_lib->vba.RoundTripPingLatencyCycles + 32) / mode_lib->vba.DCFCLK mode_lib 2011 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c + mode_lib->vba.UrgentOutOfOrderReturnPerChannel mode_lib 2012 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c * mode_lib->vba.NumberOfChannels mode_lib 2013 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c / mode_lib->vba.ReturnBW; mode_lib 2015 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.UrgentExtraLatency = CalculateExtraLatency( mode_lib 2016 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.UrgentRoundTripAndOutOfOrderLatency, mode_lib 2017 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.TotalActiveDPP, mode_lib 2018 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.PixelChunkSizeInKByte, mode_lib 2019 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.TotalDCCActiveDPP, mode_lib 2020 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.MetaChunkSize, mode_lib 2021 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.ReturnBW, mode_lib 2022 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.GPUVMEnable, mode_lib 2023 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.HostVMEnable, mode_lib 2024 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.NumberOfActivePlanes, mode_lib 2025 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.DPPPerPlane, mode_lib 2027 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.PercentOfIdealDRAMFabricAndSDPPortBWReceivedAfterUrgLatencyPixelMixedWithVMData, mode_lib 2028 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.PercentOfIdealDRAMFabricAndSDPPortBWReceivedAfterUrgLatencyVMDataOnly, mode_lib 2029 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.HostVMMaxPageTableLevels, mode_lib 2030 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.HostVMCachedPageTableLevels); mode_lib 2033 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.TCalc = 24.0 / mode_lib->vba.DCFCLKDeepSleep; mode_lib 2035 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) { mode_lib 2036 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c if (mode_lib->vba.BlendingAndTiming[k] == k) { mode_lib 2037 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c if (mode_lib->vba.WritebackEnable[k] == true) { mode_lib 2038 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c locals->WritebackDelay[mode_lib->vba.VoltageLevel][k] = mode_lib 2039 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.WritebackLatency mode_lib 2041 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.WritebackPixelFormat[k], mode_lib 2042 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.WritebackHRatio[k], mode_lib 2043 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.WritebackVRatio[k], mode_lib 2044 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.WritebackLumaHTaps[k], mode_lib 2045 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.WritebackLumaVTaps[k], mode_lib 2046 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.WritebackChromaHTaps[k], mode_lib 2047 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.WritebackChromaVTaps[k], mode_lib 2048 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.WritebackDestinationWidth[k]) mode_lib 2049 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c / mode_lib->vba.DISPCLK; mode_lib 2051 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c locals->WritebackDelay[mode_lib->vba.VoltageLevel][k] = 0; mode_lib 2052 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c for (j = 0; j < mode_lib->vba.NumberOfActivePlanes; ++j) { mode_lib 2053 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c if (mode_lib->vba.BlendingAndTiming[j] == k mode_lib 2054 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c && mode_lib->vba.WritebackEnable[j] == true) { mode_lib 2055 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c locals->WritebackDelay[mode_lib->vba.VoltageLevel][k] = mode_lib 2057 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c locals->WritebackDelay[mode_lib->vba.VoltageLevel][k], mode_lib 2058 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.WritebackLatency mode_lib 2060 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.WritebackPixelFormat[j], mode_lib 2061 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.WritebackHRatio[j], mode_lib 2062 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.WritebackVRatio[j], mode_lib 2063 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.WritebackLumaHTaps[j], mode_lib 2064 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.WritebackLumaVTaps[j], mode_lib 2065 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.WritebackChromaHTaps[j], mode_lib 2066 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.WritebackChromaVTaps[j], mode_lib 2067 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.WritebackDestinationWidth[j]) mode_lib 2068 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c / mode_lib->vba.DISPCLK); mode_lib 2074 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) mode_lib 2075 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c for (j = 0; j < mode_lib->vba.NumberOfActivePlanes; ++j) mode_lib 2076 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c if (mode_lib->vba.BlendingAndTiming[k] == j) mode_lib 2077 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c locals->WritebackDelay[mode_lib->vba.VoltageLevel][k] = mode_lib 2078 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c locals->WritebackDelay[mode_lib->vba.VoltageLevel][j]; mode_lib 2080 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.VStartupLines = 13; mode_lib 2081 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) { mode_lib 2082 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c locals->MaxVStartupLines[k] = mode_lib->vba.VTotal[k] - mode_lib->vba.VActive[k] - dml_max(1.0, dml_ceil(locals->WritebackDelay[mode_lib->vba.VoltageLevel][k] / (mode_lib->vba.HTotal[k] / mode_lib->vba.PixelClock[k]), 1)); mode_lib 2085 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) mode_lib 2090 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.UrgentLatency = dml_max3(mode_lib->vba.UrgentLatencyPixelDataOnly, mode_lib->vba.UrgentLatencyPixelMixedWithVMData, mode_lib->vba.UrgentLatencyVMDataOnly); mode_lib 2098 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.PrefetchMode[mode_lib->vba.VoltageLevel][mode_lib->vba.maxMpcComb], mode_lib 2099 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.DRAMClockChangeLatency, mode_lib 2100 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.UrgentLatency, mode_lib 2101 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.SREnterPlusExitTime); mode_lib 2103 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) { mode_lib 2107 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c if (mode_lib->vba.XFCEnabled[k] == true) { mode_lib 2108 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.XFCRemoteSurfaceFlipDelay = mode_lib 2110 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib, mode_lib 2111 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.VRatio[k], mode_lib 2116 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.HTotal[k] mode_lib 2117 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c / mode_lib->vba.PixelClock[k], mode_lib 2118 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.XFCTSlvVupdateOffset, mode_lib 2119 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.XFCTSlvVupdateWidth, mode_lib 2120 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.XFCTSlvVreadyOffset, mode_lib 2121 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.XFCXBUFLatencyTolerance, mode_lib 2122 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.XFCFillBWOverhead, mode_lib 2123 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.XFCSlvChunkSize, mode_lib 2124 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.XFCBusTransportTime, mode_lib 2125 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.TCalc, mode_lib 2127 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c &mode_lib->vba.SrcActiveDrainRate, mode_lib 2128 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c &mode_lib->vba.TInitXFill, mode_lib 2129 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c &mode_lib->vba.TslvChk); mode_lib 2131 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.XFCRemoteSurfaceFlipDelay = 0; mode_lib 2135 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c myPipe.DISPCLK = mode_lib->vba.DISPCLK; mode_lib 2136 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c myPipe.PixelClock = mode_lib->vba.PixelClock[k]; mode_lib 2137 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c myPipe.DCFCLKDeepSleep = mode_lib->vba.DCFCLKDeepSleep; mode_lib 2138 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c myPipe.DPPPerPlane = mode_lib->vba.DPPPerPlane[k]; mode_lib 2139 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c myPipe.ScalerEnabled = mode_lib->vba.ScalerEnabled[k]; mode_lib 2140 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c myPipe.SourceScan = mode_lib->vba.SourceScan[k]; mode_lib 2145 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c myPipe.InterlaceEnable = mode_lib->vba.Interlace[k]; mode_lib 2146 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c myPipe.NumberOfCursors = mode_lib->vba.NumberOfCursors[k]; mode_lib 2147 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c myPipe.VBlank = mode_lib->vba.VTotal[k] - mode_lib->vba.VActive[k]; mode_lib 2148 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c myPipe.HTotal = mode_lib->vba.HTotal[k]; mode_lib 2151 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c myHostVM.Enable = mode_lib->vba.HostVMEnable; mode_lib 2152 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c myHostVM.MaxPageTableLevels = mode_lib->vba.HostVMMaxPageTableLevels; mode_lib 2153 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c myHostVM.CachedPageTableLevels = mode_lib->vba.HostVMCachedPageTableLevels; mode_lib 2155 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.ErrorResult[k] = mode_lib 2157 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib, mode_lib 2158 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.PercentOfIdealDRAMFabricAndSDPPortBWReceivedAfterUrgLatencyPixelMixedWithVMData, mode_lib 2159 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.PercentOfIdealDRAMFabricAndSDPPortBWReceivedAfterUrgLatencyVMDataOnly, mode_lib 2162 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.DPPCLKDelaySubtotal, mode_lib 2163 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.DPPCLKDelaySCL, mode_lib 2164 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.DPPCLKDelaySCLLBOnly, mode_lib 2165 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.DPPCLKDelayCNVCFormater, mode_lib 2166 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.DPPCLKDelayCNVCCursor, mode_lib 2167 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.DISPCLKDelaySubtotal, mode_lib 2169 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c / mode_lib->vba.HRatio[k]), mode_lib 2170 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.OutputFormat[k], mode_lib 2171 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.MaxInterDCNTileRepeaters, mode_lib 2172 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c dml_min(mode_lib->vba.VStartupLines, locals->MaxVStartupLines[k]), mode_lib 2174 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.GPUVMMaxPageTableLevels, mode_lib 2175 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.GPUVMEnable, mode_lib 2177 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.DynamicMetadataEnable[k], mode_lib 2178 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.DynamicMetadataLinesBeforeActiveRequired[k], mode_lib 2179 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.DynamicMetadataTransmittedBytes[k], mode_lib 2180 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.DCCEnable[k], mode_lib 2181 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.UrgentLatency, mode_lib 2182 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.UrgentExtraLatency, mode_lib 2183 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.TCalc, mode_lib 2196 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.SwathHeightY[k], mode_lib 2197 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.SwathHeightC[k], mode_lib 2199 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.XFCEnabled[k], mode_lib 2200 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.XFCRemoteSurfaceFlipDelay, mode_lib 2201 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.ProgressiveToInterlaceUnitInOPP, mode_lib 2217 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c &mode_lib->vba.VUpdateOffsetPix[k], mode_lib 2218 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c &mode_lib->vba.VUpdateWidthPix[k], mode_lib 2219 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c &mode_lib->vba.VReadyOffsetPix[k]); mode_lib 2220 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c if (mode_lib->vba.BlendingAndTiming[k] == k) { mode_lib 2222 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.VStartupLines, mode_lib 2232 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.VStartupLines, mode_lib 2233 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c locals->MaxVStartupLines[mode_lib->vba.BlendingAndTiming[k]]); mode_lib 2237 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) { mode_lib 2242 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c for (m = 0; m < mode_lib->vba.NumberOfCursors[k]; m++) { mode_lib 2243 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c locals->cursor_bw[k] += mode_lib->vba.CursorWidth[k][m] * mode_lib->vba.CursorBPP[k][m] / 8.0 / (mode_lib->vba.HTotal[k] / mode_lib->vba.PixelClock[k]) * mode_lib->vba.VRatio[k]; mode_lib 2244 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c locals->cursor_bw_pre[k] += mode_lib->vba.CursorWidth[k][m] * mode_lib->vba.CursorBPP[k][m] / 8.0 / (mode_lib->vba.HTotal[k] / mode_lib->vba.PixelClock[k]) * locals->VRatioPrefetchY[k]; mode_lib 2248 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.DETBufferSizeInKByte, mode_lib 2249 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.SwathHeightY[k], mode_lib 2250 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.SwathHeightC[k], mode_lib 2252 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.HTotal[k] / mode_lib 2253 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.PixelClock[k], mode_lib 2254 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.UrgentLatency, mode_lib 2255 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.CursorBufferSize, mode_lib 2256 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.CursorWidth[k][0] + mode_lib->vba.CursorWidth[k][1], mode_lib 2257 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c dml_max(mode_lib->vba.CursorBPP[k][0], mode_lib->vba.CursorBPP[k][1]), mode_lib 2258 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.VRatio[k], mode_lib 2272 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c if (mode_lib->vba.UseUrgentBurstBandwidth == false) { mode_lib 2300 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.FractionOfUrgentBandwidth = MaxTotalRDBandwidthNoUrgentBurst / mode_lib->vba.ReturnBW; mode_lib 2302 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c if (MaxTotalRDBandwidth <= mode_lib->vba.ReturnBW && locals->NotEnoughUrgentLatencyHiding == 0 && locals->NotEnoughUrgentLatencyHidingPre == 0 && !VRatioPrefetchMoreThan4 mode_lib 2304 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.PrefetchModeSupported = true; mode_lib 2306 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.PrefetchModeSupported = false; mode_lib 2311 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c if (mode_lib->vba.PrefetchModeSupported == true) { mode_lib 2312 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.BandwidthAvailableForImmediateFlip = mode_lib->vba.ReturnBW; mode_lib 2313 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) { mode_lib 2314 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.BandwidthAvailableForImmediateFlip = mode_lib 2315 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.BandwidthAvailableForImmediateFlip mode_lib 2325 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.TotImmediateFlipBytes = 0; mode_lib 2326 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) { mode_lib 2327 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.TotImmediateFlipBytes = mode_lib->vba.TotImmediateFlipBytes + locals->PDEAndMetaPTEBytesFrame[k] + locals->MetaRowByte[k] + locals->PixelPTEBytesPerRow[k]; mode_lib 2329 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) { mode_lib 2331 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib, mode_lib 2332 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.PercentOfIdealDRAMFabricAndSDPPortBWReceivedAfterUrgLatencyPixelMixedWithVMData, mode_lib 2333 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.PercentOfIdealDRAMFabricAndSDPPortBWReceivedAfterUrgLatencyVMDataOnly, mode_lib 2334 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.UrgentExtraLatency, mode_lib 2335 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.UrgentLatency, mode_lib 2336 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.GPUVMMaxPageTableLevels, mode_lib 2337 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.HostVMEnable, mode_lib 2338 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.HostVMMaxPageTableLevels, mode_lib 2339 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.HostVMCachedPageTableLevels, mode_lib 2340 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.GPUVMEnable, mode_lib 2344 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.BandwidthAvailableForImmediateFlip, mode_lib 2345 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.TotImmediateFlipBytes, mode_lib 2346 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.SourcePixelFormat[k], mode_lib 2347 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.HTotal[k] / mode_lib->vba.PixelClock[k], mode_lib 2348 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.VRatio[k], mode_lib 2350 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.DCCEnable[k], mode_lib 2360 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.total_dcn_read_bw_with_flip = 0.0; mode_lib 2361 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.total_dcn_read_bw_with_flip_no_urgent_burst = 0.0; mode_lib 2362 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) { mode_lib 2363 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.total_dcn_read_bw_with_flip = mode_lib 2364 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.total_dcn_read_bw_with_flip + dml_max3( mode_lib 2371 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.total_dcn_read_bw_with_flip_no_urgent_burst = mode_lib 2372 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.total_dcn_read_bw_with_flip_no_urgent_burst + mode_lib 2378 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.FractionOfUrgentBandwidthImmediateFlip = mode_lib->vba.total_dcn_read_bw_with_flip_no_urgent_burst / mode_lib->vba.ReturnBW; mode_lib 2380 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.ImmediateFlipSupported = true; mode_lib 2381 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c if (mode_lib->vba.total_dcn_read_bw_with_flip > mode_lib->vba.ReturnBW) { mode_lib 2382 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.ImmediateFlipSupported = false; mode_lib 2384 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) { mode_lib 2386 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.ImmediateFlipSupported = false; mode_lib 2390 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.ImmediateFlipSupported = false; mode_lib 2393 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) { mode_lib 2394 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c if (mode_lib->vba.ErrorResult[k]) { mode_lib 2395 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.PrefetchModeSupported = false; mode_lib 2401 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.VStartupLines = mode_lib->vba.VStartupLines + 1; mode_lib 2402 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c } while (!((mode_lib->vba.PrefetchModeSupported mode_lib 2403 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c && ((!mode_lib->vba.ImmediateFlipSupport && !mode_lib->vba.HostVMEnable) mode_lib 2404 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c || mode_lib->vba.ImmediateFlipSupported)) mode_lib 2405 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c || locals->MaximumMaxVStartupLines < mode_lib->vba.VStartupLines)); mode_lib 2411 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib, mode_lib 2412 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.PrefetchMode[mode_lib->vba.VoltageLevel][mode_lib->vba.maxMpcComb], mode_lib 2413 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.NumberOfActivePlanes, mode_lib 2414 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.MaxLineBufferLines, mode_lib 2415 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.LineBufferSize, mode_lib 2416 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.DPPOutputBufferPixels, mode_lib 2417 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.DETBufferSizeInKByte, mode_lib 2418 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.WritebackInterfaceLumaBufferSize, mode_lib 2419 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.WritebackInterfaceChromaBufferSize, mode_lib 2420 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.DCFCLK, mode_lib 2421 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.UrgentOutOfOrderReturnPerChannel * mode_lib->vba.NumberOfChannels, mode_lib 2422 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.ReturnBW, mode_lib 2423 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.GPUVMEnable, mode_lib 2425 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.MetaChunkSize, mode_lib 2426 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.UrgentLatency, mode_lib 2427 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.UrgentExtraLatency, mode_lib 2428 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.WritebackLatency, mode_lib 2429 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.WritebackChunkSize, mode_lib 2430 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.SOCCLK, mode_lib 2431 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.DRAMClockChangeLatency, mode_lib 2432 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.SRExitTime, mode_lib 2433 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.SREnterPlusExitTime, mode_lib 2434 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.DCFCLKDeepSleep, mode_lib 2435 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.DPPPerPlane, mode_lib 2436 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.DCCEnable, mode_lib 2439 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.SwathHeightY, mode_lib 2441 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.SwathHeightC, mode_lib 2443 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.LBBitPerPixel, mode_lib 2445 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.HRatio, mode_lib 2446 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.vtaps, mode_lib 2447 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.VTAPsChroma, mode_lib 2448 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.VRatio, mode_lib 2449 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.HTotal, mode_lib 2450 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.PixelClock, mode_lib 2451 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.BlendingAndTiming, mode_lib 2454 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.WritebackEnable, mode_lib 2455 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.WritebackPixelFormat, mode_lib 2456 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.WritebackDestinationWidth, mode_lib 2457 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.WritebackDestinationHeight, mode_lib 2458 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.WritebackSourceHeight, mode_lib 2460 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c &mode_lib->vba.UrgentWatermark, mode_lib 2461 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c &mode_lib->vba.WritebackUrgentWatermark, mode_lib 2462 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c &mode_lib->vba.DRAMClockChangeWatermark, mode_lib 2463 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c &mode_lib->vba.WritebackDRAMClockChangeWatermark, mode_lib 2464 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c &mode_lib->vba.StutterExitWatermark, mode_lib 2465 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c &mode_lib->vba.StutterEnterPlusExitWatermark, mode_lib 2466 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c &mode_lib->vba.MinActiveDRAMClockChangeLatencySupported); mode_lib 2472 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.NumberOfActivePlanes, mode_lib 2473 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.VRatio, mode_lib 2478 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.DPPPerPlane, mode_lib 2479 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.HRatio, mode_lib 2480 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.PixelClock, mode_lib 2485 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.SourceScan, mode_lib 2500 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.NumberOfActivePlanes, mode_lib 2501 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.GPUVMEnable, mode_lib 2502 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.MetaChunkSize, mode_lib 2503 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.MinMetaChunkSizeBytes, mode_lib 2504 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.GPUVMMaxPageTableLevels, mode_lib 2505 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.HTotal, mode_lib 2506 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.VRatio, mode_lib 2513 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.DCCEnable, mode_lib 2514 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.PixelClock, mode_lib 2517 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.SourceScan, mode_lib 2557 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) { mode_lib 2558 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c if (mode_lib->vba.PrefetchMode[mode_lib->vba.VoltageLevel][mode_lib->vba.maxMpcComb] == 0) { mode_lib 2562 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.DRAMClockChangeWatermark, mode_lib 2564 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.StutterEnterPlusExitWatermark, mode_lib 2565 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.UrgentWatermark)); mode_lib 2566 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c } else if (mode_lib->vba.PrefetchMode[mode_lib->vba.VoltageLevel][mode_lib->vba.maxMpcComb] == 1) { mode_lib 2570 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.StutterEnterPlusExitWatermark, mode_lib 2571 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.UrgentWatermark); mode_lib 2575 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c locals->MinTTUVBlank[k] = mode_lib->vba.UrgentWatermark; mode_lib 2577 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c if (!mode_lib->vba.DynamicMetadataEnable[k]) mode_lib 2578 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c locals->MinTTUVBlank[k] = mode_lib->vba.TCalc mode_lib 2583 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.ActiveDPPs = 0; mode_lib 2584 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) { mode_lib 2586 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.DCCEnable[k], mode_lib 2588 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.ViewportWidth[k], mode_lib 2589 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.ViewportHeight[k], mode_lib 2590 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.DETBufferSizeInKByte * 1024, mode_lib 2592 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.SwathHeightY[k], mode_lib 2593 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.SurfaceTiling[k], mode_lib 2595 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.SourceScan[k], mode_lib 2602 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) { mode_lib 2603 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c if (mode_lib->vba.XFCEnabled[k] == true) { mode_lib 2606 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c locals->XFCSlaveVUpdateOffset[k] = mode_lib->vba.XFCTSlvVupdateOffset; mode_lib 2607 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c locals->XFCSlaveVupdateWidth[k] = mode_lib->vba.XFCTSlvVupdateWidth; mode_lib 2608 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c locals->XFCSlaveVReadyOffset[k] = mode_lib->vba.XFCTSlvVreadyOffset; mode_lib 2610 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.PrefetchMode[mode_lib->vba.VoltageLevel][mode_lib->vba.maxMpcComb], mode_lib 2611 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.DRAMClockChangeLatency, mode_lib 2612 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.UrgentLatency, mode_lib 2613 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.SREnterPlusExitTime); mode_lib 2614 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.XFCRemoteSurfaceFlipDelay = CalculateRemoteSurfaceFlipDelay( mode_lib 2615 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib, mode_lib 2616 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.VRatio[k], mode_lib 2619 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.HTotal[k] / mode_lib->vba.PixelClock[k], mode_lib 2620 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.XFCTSlvVupdateOffset, mode_lib 2621 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.XFCTSlvVupdateWidth, mode_lib 2622 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.XFCTSlvVreadyOffset, mode_lib 2623 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.XFCXBUFLatencyTolerance, mode_lib 2624 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.XFCFillBWOverhead, mode_lib 2625 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.XFCSlvChunkSize, mode_lib 2626 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.XFCBusTransportTime, mode_lib 2627 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.TCalc, mode_lib 2629 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c &mode_lib->vba.SrcActiveDrainRate, mode_lib 2630 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c &mode_lib->vba.TInitXFill, mode_lib 2631 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c &mode_lib->vba.TslvChk); mode_lib 2634 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.XFCRemoteSurfaceFlipDelay mode_lib 2635 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c / (mode_lib->vba.HTotal[k] mode_lib 2636 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c / mode_lib->vba.PixelClock[k]), mode_lib 2640 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.XFCBusTransportTime mode_lib 2641 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c / (mode_lib->vba.HTotal[k] mode_lib 2642 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c / mode_lib->vba.PixelClock[k]), mode_lib 2646 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c (mode_lib->vba.XFCBusTransportTime mode_lib 2647 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c + mode_lib->vba.TInitXFill mode_lib 2648 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c + mode_lib->vba.TslvChk) mode_lib 2649 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c / (mode_lib->vba.HTotal[k] mode_lib 2650 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c / mode_lib->vba.PixelClock[k]), mode_lib 2652 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.InitFillLevel = mode_lib->vba.XFCXBUFLatencyTolerance mode_lib 2653 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c * mode_lib->vba.SrcActiveDrainRate; mode_lib 2654 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.FinalFillMargin = mode_lib 2657 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c * mode_lib->vba.HTotal[k] mode_lib 2658 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c / mode_lib->vba.PixelClock[k] mode_lib 2659 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c * mode_lib->vba.SrcActiveDrainRate mode_lib 2660 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c + mode_lib->vba.XFCFillConstant; mode_lib 2661 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.FinalFillLevel = mode_lib->vba.XFCRemoteSurfaceFlipDelay mode_lib 2662 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c * mode_lib->vba.SrcActiveDrainRate mode_lib 2663 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c + mode_lib->vba.FinalFillMargin; mode_lib 2664 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.RemainingFillLevel = dml_max( mode_lib 2666 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.FinalFillLevel - mode_lib->vba.InitFillLevel); mode_lib 2667 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.TFinalxFill = mode_lib->vba.RemainingFillLevel mode_lib 2668 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c / (mode_lib->vba.SrcActiveDrainRate mode_lib 2669 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c * mode_lib->vba.XFCFillBWOverhead / 100); mode_lib 2671 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.XFCRemoteSurfaceFlipDelay mode_lib 2672 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c + mode_lib->vba.TFinalxFill mode_lib 2675 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c * mode_lib->vba.HTotal[k] mode_lib 2676 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c / mode_lib->vba.PixelClock[k]; mode_lib 2689 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) { mode_lib 2691 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.DETBufferSizeInKByte, mode_lib 2692 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.SwathHeightY[k], mode_lib 2693 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.SwathHeightC[k], mode_lib 2701 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.SwathHeightY[k]); mode_lib 2704 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c * (mode_lib->vba.HTotal[k] mode_lib 2705 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c / mode_lib->vba.PixelClock[k]) mode_lib 2706 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c / mode_lib->vba.VRatio[k]; mode_lib 2709 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.StutterPeriod = 999999.0; mode_lib 2710 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) { mode_lib 2711 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c if (locals->FullDETBufferingTimeY[k] < mode_lib->vba.StutterPeriod) { mode_lib 2712 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.StutterPeriod = locals->FullDETBufferingTimeY[k]; mode_lib 2713 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.FrameTimeForMinFullDETBufferingTime = mode_lib 2714 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c (double) mode_lib->vba.VTotal[k] * mode_lib->vba.HTotal[k] mode_lib 2715 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c / mode_lib->vba.PixelClock[k]; mode_lib 2719 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.SwathHeightY[k] - (locals->LinesInDETY[k] - locals->LinesInDETYRoundedDownToSwath[k]); mode_lib 2723 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.AverageReadBandwidth = 0.0; mode_lib 2724 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.TotalRowReadBandwidth = 0.0; mode_lib 2725 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) { mode_lib 2728 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c if (mode_lib->vba.DCCEnable[k]) { mode_lib 2734 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.AverageReadBandwidth = mode_lib 2735 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.AverageReadBandwidth mode_lib 2737 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c dml_min(mode_lib->vba.DCCRate[k], DCCRateLimit); mode_lib 2739 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.AverageReadBandwidth = mode_lib 2740 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.AverageReadBandwidth mode_lib 2744 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.TotalRowReadBandwidth = mode_lib->vba.TotalRowReadBandwidth + mode_lib 2748 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.AverageDCCCompressionRate = mode_lib->vba.TotalDataReadBandwidth / mode_lib->vba.AverageReadBandwidth; mode_lib 2750 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.PartOfBurstThatFitsInROB = mode_lib 2752 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.StutterPeriod mode_lib 2753 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c * mode_lib->vba.TotalDataReadBandwidth, mode_lib 2754 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.ROBBufferSizeInKByte * 1024 mode_lib 2755 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c * mode_lib->vba.AverageDCCCompressionRate); mode_lib 2756 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.StutterBurstTime = mode_lib->vba.PartOfBurstThatFitsInROB mode_lib 2757 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c / mode_lib->vba.AverageDCCCompressionRate / mode_lib->vba.ReturnBW mode_lib 2758 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c + (mode_lib->vba.StutterPeriod * mode_lib->vba.TotalDataReadBandwidth mode_lib 2759 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c - mode_lib->vba.PartOfBurstThatFitsInROB) mode_lib 2760 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c / (mode_lib->vba.DCFCLK * 64) mode_lib 2761 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c + mode_lib->vba.StutterPeriod * mode_lib->vba.TotalRowReadBandwidth / mode_lib->vba.ReturnBW; mode_lib 2762 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.StutterBurstTime = dml_max( mode_lib 2763 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.StutterBurstTime, mode_lib 2765 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c locals->SwathWidthYCriticalPlane / mode_lib->vba.ReturnBW) mode_lib 2768 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.TotalActiveWriteback = 0; mode_lib 2769 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) { mode_lib 2770 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c if (mode_lib->vba.WritebackEnable[k] == true) { mode_lib 2771 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.TotalActiveWriteback = mode_lib->vba.TotalActiveWriteback + 1; mode_lib 2775 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c if (mode_lib->vba.TotalActiveWriteback == 0) { mode_lib 2776 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.StutterEfficiencyNotIncludingVBlank = (1 mode_lib 2777 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c - (mode_lib->vba.SRExitTime + mode_lib->vba.StutterBurstTime) mode_lib 2778 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c / mode_lib->vba.StutterPeriod) * 100; mode_lib 2780 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.StutterEfficiencyNotIncludingVBlank = 0; mode_lib 2783 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.SmallestVBlank = 999999; mode_lib 2784 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) { mode_lib 2785 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c if (mode_lib->vba.SynchronizedVBlank || mode_lib->vba.NumberOfActivePlanes == 1) { mode_lib 2786 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.VBlankTime = (double) (mode_lib->vba.VTotal[k] mode_lib 2787 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c - mode_lib->vba.VActive[k]) * mode_lib->vba.HTotal[k] mode_lib 2788 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c / mode_lib->vba.PixelClock[k]; mode_lib 2790 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.VBlankTime = 0; mode_lib 2792 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.SmallestVBlank = dml_min( mode_lib 2793 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.SmallestVBlank, mode_lib 2794 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.VBlankTime); mode_lib 2797 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.StutterEfficiency = (mode_lib->vba.StutterEfficiencyNotIncludingVBlank / 100 mode_lib 2798 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c * (mode_lib->vba.FrameTimeForMinFullDETBufferingTime mode_lib 2799 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c - mode_lib->vba.SmallestVBlank) mode_lib 2800 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c + mode_lib->vba.SmallestVBlank) mode_lib 2801 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c / mode_lib->vba.FrameTimeForMinFullDETBufferingTime * 100; mode_lib 2804 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c static void DisplayPipeConfiguration(struct display_mode_lib *mode_lib) mode_lib 2824 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) { mode_lib 2827 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c if (mode_lib->vba.SourcePixelFormat[k] == dm_444_64) { mode_lib 2830 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c } else if (mode_lib->vba.SourcePixelFormat[k] == dm_444_32) { mode_lib 2833 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c } else if (mode_lib->vba.SourcePixelFormat[k] == dm_444_16) { mode_lib 2836 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c } else if (mode_lib->vba.SourcePixelFormat[k] == dm_444_8) { mode_lib 2839 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c } else if (mode_lib->vba.SourcePixelFormat[k] == dm_420_8) { mode_lib 2847 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c if ((mode_lib->vba.SourcePixelFormat[k] == dm_444_64 mode_lib 2848 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c || mode_lib->vba.SourcePixelFormat[k] == dm_444_32 mode_lib 2849 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c || mode_lib->vba.SourcePixelFormat[k] == dm_444_16 mode_lib 2850 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c || mode_lib->vba.SourcePixelFormat[k] == dm_444_8)) { mode_lib 2851 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c if (mode_lib->vba.SurfaceTiling[k] == dm_sw_linear) { mode_lib 2853 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c } else if (mode_lib->vba.SourcePixelFormat[k] == dm_444_64) { mode_lib 2855 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c } else if (mode_lib->vba.SourcePixelFormat[k] == dm_444_32 mode_lib 2856 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c || mode_lib->vba.SourcePixelFormat[k] == dm_444_16) { mode_lib 2866 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c if (mode_lib->vba.SurfaceTiling[k] == dm_sw_linear) { mode_lib 2869 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c } else if (mode_lib->vba.SourcePixelFormat[k] == dm_420_8) { mode_lib 2882 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c if (mode_lib->vba.SourceScan[k] == dm_horz) { mode_lib 2890 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c if ((mode_lib->vba.SourcePixelFormat[k] == dm_444_64 mode_lib 2891 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c || mode_lib->vba.SourcePixelFormat[k] == dm_444_32 mode_lib 2892 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c || mode_lib->vba.SourcePixelFormat[k] == dm_444_16 mode_lib 2893 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c || mode_lib->vba.SourcePixelFormat[k] == dm_444_8)) { mode_lib 2894 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c if (mode_lib->vba.SurfaceTiling[k] == dm_sw_linear mode_lib 2895 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c || (mode_lib->vba.SourcePixelFormat[k] == dm_444_64 mode_lib 2896 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c && (mode_lib->vba.SurfaceTiling[k] mode_lib 2898 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c || mode_lib->vba.SurfaceTiling[k] mode_lib 2900 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c || mode_lib->vba.SurfaceTiling[k] mode_lib 2902 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c || mode_lib->vba.SurfaceTiling[k] mode_lib 2904 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c || mode_lib->vba.SurfaceTiling[k] mode_lib 2906 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c || mode_lib->vba.SurfaceTiling[k] mode_lib 2908 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c || mode_lib->vba.SurfaceTiling[k] mode_lib 2910 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c && mode_lib->vba.SourceScan[k] == dm_horz)) { mode_lib 2912 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c } else if (mode_lib->vba.SourcePixelFormat[k] == dm_444_8 mode_lib 2913 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c && mode_lib->vba.SourceScan[k] != dm_horz) { mode_lib 2920 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c if (mode_lib->vba.SurfaceTiling[k] == dm_sw_linear) { mode_lib 2923 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c } else if (mode_lib->vba.SourcePixelFormat[k] == dm_420_8 mode_lib 2924 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c && mode_lib->vba.SourceScan[k] == dm_horz) { mode_lib 2927 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c } else if (mode_lib->vba.SourcePixelFormat[k] == dm_420_10 mode_lib 2928 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c && mode_lib->vba.SourceScan[k] == dm_horz) { mode_lib 2937 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c if (mode_lib->vba.SourceScan[k] == dm_horz) { mode_lib 2938 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c SwathWidth = mode_lib->vba.ViewportWidth[k]; mode_lib 2940 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c SwathWidth = mode_lib->vba.ViewportHeight[k]; mode_lib 2943 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c if (mode_lib->vba.ODMCombineEnabled[k] == true) { mode_lib 2946 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c for (j = 0; j < mode_lib->vba.NumberOfActivePlanes; ++j) { mode_lib 2947 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c if (mode_lib->vba.BlendingAndTiming[k] == j mode_lib 2948 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c && mode_lib->vba.ODMCombineEnabled[j] == true) { mode_lib 2956 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.HActive[k] / 2.0 * mode_lib->vba.HRatio[k]); mode_lib 2958 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c SwathWidth = SwathWidth / mode_lib->vba.DPPPerPlane[k]; mode_lib 2966 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c if (mode_lib->vba.SourcePixelFormat[k] == dm_420_10) { mode_lib 2977 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c if (mode_lib->vba.SourcePixelFormat[k] == dm_420_10) { mode_lib 2986 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c <= mode_lib->vba.DETBufferSizeInKByte * 1024.0 / 2.0) { mode_lib 2987 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.SwathHeightY[k] = MaximumSwathHeightY; mode_lib 2988 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.SwathHeightC[k] = MaximumSwathHeightC; mode_lib 2990 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.SwathHeightY[k] = MinimumSwathHeightY; mode_lib 2991 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.SwathHeightC[k] = MinimumSwathHeightC; mode_lib 2995 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.DETBufferSizeInKByte, mode_lib 2996 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.SwathHeightY[k], mode_lib 2997 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.SwathHeightC[k], mode_lib 2998 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c &mode_lib->vba.DETBufferSizeY[k], mode_lib 2999 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c &mode_lib->vba.DETBufferSizeC[k]); mode_lib 3021 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c struct display_mode_lib *mode_lib, mode_lib 3157 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c struct display_mode_lib *mode_lib, mode_lib 3388 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c void dml21_ModeSupportAndSystemConfigurationFull(struct display_mode_lib *mode_lib) mode_lib 3390 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c struct vba_vars_st *locals = &mode_lib->vba; mode_lib 3399 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.ScaleRatioAndTapsSupport = true; mode_lib 3400 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) { mode_lib 3401 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c if (mode_lib->vba.ScalerEnabled[k] == false mode_lib 3402 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c && ((mode_lib->vba.SourcePixelFormat[k] != dm_444_64 mode_lib 3403 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c && mode_lib->vba.SourcePixelFormat[k] != dm_444_32 mode_lib 3404 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c && mode_lib->vba.SourcePixelFormat[k] != dm_444_16 mode_lib 3405 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c && mode_lib->vba.SourcePixelFormat[k] != dm_mono_16 mode_lib 3406 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c && mode_lib->vba.SourcePixelFormat[k] != dm_mono_8) mode_lib 3407 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c || mode_lib->vba.HRatio[k] != 1.0 mode_lib 3408 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c || mode_lib->vba.htaps[k] != 1.0 mode_lib 3409 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c || mode_lib->vba.VRatio[k] != 1.0 mode_lib 3410 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c || mode_lib->vba.vtaps[k] != 1.0)) { mode_lib 3411 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.ScaleRatioAndTapsSupport = false; mode_lib 3412 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c } else if (mode_lib->vba.vtaps[k] < 1.0 || mode_lib->vba.vtaps[k] > 8.0 mode_lib 3413 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c || mode_lib->vba.htaps[k] < 1.0 || mode_lib->vba.htaps[k] > 8.0 mode_lib 3414 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c || (mode_lib->vba.htaps[k] > 1.0 mode_lib 3415 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c && (mode_lib->vba.htaps[k] % 2) == 1) mode_lib 3416 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c || mode_lib->vba.HRatio[k] > mode_lib->vba.MaxHSCLRatio mode_lib 3417 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c || mode_lib->vba.VRatio[k] > mode_lib->vba.MaxVSCLRatio mode_lib 3418 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c || mode_lib->vba.HRatio[k] > mode_lib->vba.htaps[k] mode_lib 3419 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c || mode_lib->vba.VRatio[k] > mode_lib->vba.vtaps[k] mode_lib 3420 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c || (mode_lib->vba.SourcePixelFormat[k] != dm_444_64 mode_lib 3421 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c && mode_lib->vba.SourcePixelFormat[k] != dm_444_32 mode_lib 3422 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c && mode_lib->vba.SourcePixelFormat[k] != dm_444_16 mode_lib 3423 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c && mode_lib->vba.SourcePixelFormat[k] != dm_mono_16 mode_lib 3424 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c && mode_lib->vba.SourcePixelFormat[k] != dm_mono_8 mode_lib 3425 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c && (mode_lib->vba.HRatio[k] / 2.0 mode_lib 3426 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c > mode_lib->vba.HTAPsChroma[k] mode_lib 3427 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c || mode_lib->vba.VRatio[k] / 2.0 mode_lib 3428 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c > mode_lib->vba.VTAPsChroma[k]))) { mode_lib 3429 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.ScaleRatioAndTapsSupport = false; mode_lib 3434 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.SourceFormatPixelAndScanSupport = true; mode_lib 3435 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) { mode_lib 3436 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c if ((mode_lib->vba.SurfaceTiling[k] == dm_sw_linear mode_lib 3437 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c && mode_lib->vba.SourceScan[k] != dm_horz) mode_lib 3438 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c || ((mode_lib->vba.SurfaceTiling[k] == dm_sw_4kb_d mode_lib 3439 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c || mode_lib->vba.SurfaceTiling[k] == dm_sw_4kb_d_x mode_lib 3440 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c || mode_lib->vba.SurfaceTiling[k] == dm_sw_64kb_d mode_lib 3441 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c || mode_lib->vba.SurfaceTiling[k] == dm_sw_64kb_d_t mode_lib 3442 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c || mode_lib->vba.SurfaceTiling[k] == dm_sw_64kb_d_x mode_lib 3443 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c || mode_lib->vba.SurfaceTiling[k] == dm_sw_var_d mode_lib 3444 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c || mode_lib->vba.SurfaceTiling[k] == dm_sw_var_d_x) mode_lib 3445 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c && mode_lib->vba.SourcePixelFormat[k] != dm_444_64) mode_lib 3446 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c || (mode_lib->vba.SurfaceTiling[k] == dm_sw_64kb_r_x mode_lib 3447 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c && (mode_lib->vba.SourcePixelFormat[k] == dm_mono_8 mode_lib 3448 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c || mode_lib->vba.SourcePixelFormat[k] mode_lib 3450 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c || mode_lib->vba.SourcePixelFormat[k] mode_lib 3452 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c || (((mode_lib->vba.SurfaceTiling[k] == dm_sw_gfx7_2d_thin_gl mode_lib 3453 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c || mode_lib->vba.SurfaceTiling[k] mode_lib 3455 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c && !((mode_lib->vba.SourcePixelFormat[k] mode_lib 3457 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c || mode_lib->vba.SourcePixelFormat[k] mode_lib 3459 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c && mode_lib->vba.SourceScan[k] mode_lib 3461 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c && mode_lib->vba.SupportGFX7CompatibleTilingIn32bppAnd64bpp mode_lib 3463 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c && mode_lib->vba.DCCEnable[k] mode_lib 3465 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c || (mode_lib->vba.DCCEnable[k] == true mode_lib 3466 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c && (mode_lib->vba.SurfaceTiling[k] mode_lib 3468 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c || mode_lib->vba.SourcePixelFormat[k] mode_lib 3470 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c || mode_lib->vba.SourcePixelFormat[k] mode_lib 3472 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.SourceFormatPixelAndScanSupport = false; mode_lib 3477 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) { mode_lib 3478 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c if (mode_lib->vba.SourcePixelFormat[k] == dm_444_64) { mode_lib 3481 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c } else if (mode_lib->vba.SourcePixelFormat[k] == dm_444_32) { mode_lib 3484 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c } else if (mode_lib->vba.SourcePixelFormat[k] == dm_444_16 mode_lib 3485 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c || mode_lib->vba.SourcePixelFormat[k] == dm_mono_16) { mode_lib 3488 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c } else if (mode_lib->vba.SourcePixelFormat[k] == dm_mono_8) { mode_lib 3491 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c } else if (mode_lib->vba.SourcePixelFormat[k] == dm_420_8) { mode_lib 3498 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c if (mode_lib->vba.SourceScan[k] == dm_horz) { mode_lib 3499 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c locals->SwathWidthYSingleDPP[k] = mode_lib->vba.ViewportWidth[k]; mode_lib 3501 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c locals->SwathWidthYSingleDPP[k] = mode_lib->vba.ViewportHeight[k]; mode_lib 3504 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) { mode_lib 3506 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c / (mode_lib->vba.HTotal[k] / mode_lib->vba.PixelClock[k]) * mode_lib->vba.VRatio[k]; mode_lib 3508 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c / (mode_lib->vba.HTotal[k] / mode_lib->vba.PixelClock[k]) * mode_lib->vba.VRatio[k] / 2.0; mode_lib 3511 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) { mode_lib 3512 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c if (mode_lib->vba.WritebackEnable[k] == true mode_lib 3513 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c && mode_lib->vba.WritebackPixelFormat[k] == dm_444_32) { mode_lib 3514 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c locals->WriteBandwidth[k] = mode_lib->vba.WritebackDestinationWidth[k] mode_lib 3515 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c * mode_lib->vba.WritebackDestinationHeight[k] mode_lib 3516 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c / (mode_lib->vba.WritebackSourceHeight[k] mode_lib 3517 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c * mode_lib->vba.HTotal[k] mode_lib 3518 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c / mode_lib->vba.PixelClock[k]) * 4.0; mode_lib 3519 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c } else if (mode_lib->vba.WritebackEnable[k] == true mode_lib 3520 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c && mode_lib->vba.WritebackPixelFormat[k] == dm_420_10) { mode_lib 3521 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c locals->WriteBandwidth[k] = mode_lib->vba.WritebackDestinationWidth[k] mode_lib 3522 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c * mode_lib->vba.WritebackDestinationHeight[k] mode_lib 3523 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c / (mode_lib->vba.WritebackSourceHeight[k] mode_lib 3524 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c * mode_lib->vba.HTotal[k] mode_lib 3525 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c / mode_lib->vba.PixelClock[k]) * 3.0; mode_lib 3526 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c } else if (mode_lib->vba.WritebackEnable[k] == true) { mode_lib 3527 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c locals->WriteBandwidth[k] = mode_lib->vba.WritebackDestinationWidth[k] mode_lib 3528 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c * mode_lib->vba.WritebackDestinationHeight[k] mode_lib 3529 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c / (mode_lib->vba.WritebackSourceHeight[k] mode_lib 3530 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c * mode_lib->vba.HTotal[k] mode_lib 3531 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c / mode_lib->vba.PixelClock[k]) * 1.5; mode_lib 3536 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.DCCEnabledInAnyPlane = false; mode_lib 3537 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) { mode_lib 3538 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c if (mode_lib->vba.DCCEnable[k] == true) { mode_lib 3539 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.DCCEnabledInAnyPlane = true; mode_lib 3542 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c for (i = 0; i <= mode_lib->vba.soc.num_states; i++) { mode_lib 3544 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.ReturnBusWidth * mode_lib->vba.DCFCLKPerState[i], mode_lib 3545 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.DRAMSpeedPerState[i] * mode_lib->vba.NumberOfChannels mode_lib 3546 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c * mode_lib->vba.DRAMChannelWidth, mode_lib 3547 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.FabricClockPerState[i] mode_lib 3548 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c * mode_lib->vba.FabricDatapathToDCNDataReturn); mode_lib 3549 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c if (mode_lib->vba.HostVMEnable == false) { mode_lib 3551 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c * mode_lib->vba.PercentOfIdealDRAMFabricAndSDPPortBWReceivedAfterUrgLatencyPixelDataOnly / 100.0; mode_lib 3554 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c * mode_lib->vba.PercentOfIdealDRAMFabricAndSDPPortBWReceivedAfterUrgLatencyPixelMixedWithVMData / 100.0; mode_lib 3559 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.WritebackLatencySupport = true; mode_lib 3560 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) { mode_lib 3561 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c if (mode_lib->vba.WritebackEnable[k] == true) { mode_lib 3562 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c if (mode_lib->vba.WritebackPixelFormat[k] == dm_444_32) { mode_lib 3564 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c > (mode_lib->vba.WritebackInterfaceLumaBufferSize mode_lib 3565 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c + mode_lib->vba.WritebackInterfaceChromaBufferSize) mode_lib 3566 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c / mode_lib->vba.WritebackLatency) { mode_lib 3567 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.WritebackLatencySupport = false; mode_lib 3573 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.WritebackInterfaceLumaBufferSize, mode_lib 3575 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c * mode_lib->vba.WritebackInterfaceChromaBufferSize) mode_lib 3576 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c / mode_lib->vba.WritebackLatency) { mode_lib 3577 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.WritebackLatencySupport = false; mode_lib 3584 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c for (i = 0; i <= mode_lib->vba.soc.num_states; i++) { mode_lib 3586 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c (mode_lib->vba.RoundTripPingLatencyCycles + 32.0) / mode_lib->vba.DCFCLKPerState[i] mode_lib 3587 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c + dml_max3(mode_lib->vba.UrgentOutOfOrderReturnPerChannelPixelDataOnly, mode_lib 3588 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.UrgentOutOfOrderReturnPerChannelPixelMixedWithVMData, mode_lib 3589 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.UrgentOutOfOrderReturnPerChannelVMDataOnly) mode_lib 3590 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c * mode_lib->vba.NumberOfChannels / locals->ReturnBWPerState[i]; mode_lib 3591 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c if ((mode_lib->vba.ROBBufferSizeInKByte - mode_lib->vba.PixelChunkSizeInKByte) * 1024.0 / locals->ReturnBWPerState[i] mode_lib 3600 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.TotalNumberOfActiveWriteback = 0; mode_lib 3601 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) { mode_lib 3602 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c if (mode_lib->vba.WritebackEnable[k] == true) { mode_lib 3603 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c if (mode_lib->vba.ActiveWritebacksPerPlane[k] == 0) mode_lib 3604 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.ActiveWritebacksPerPlane[k] = 1; mode_lib 3605 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.TotalNumberOfActiveWriteback = mode_lib 3606 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.TotalNumberOfActiveWriteback mode_lib 3607 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c + mode_lib->vba.ActiveWritebacksPerPlane[k]; mode_lib 3610 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.WritebackModeSupport = true; mode_lib 3611 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c if (mode_lib->vba.TotalNumberOfActiveWriteback > mode_lib->vba.MaxNumWriteback) { mode_lib 3612 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.WritebackModeSupport = false; mode_lib 3614 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) { mode_lib 3615 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c if (mode_lib->vba.WritebackEnable[k] == true mode_lib 3616 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c && mode_lib->vba.Writeback10bpc420Supported != true mode_lib 3617 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c && mode_lib->vba.WritebackPixelFormat[k] == dm_420_10) { mode_lib 3618 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.WritebackModeSupport = false; mode_lib 3623 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.WritebackScaleRatioAndTapsSupport = true; mode_lib 3624 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) { mode_lib 3625 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c if (mode_lib->vba.WritebackEnable[k] == true) { mode_lib 3626 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c if (mode_lib->vba.WritebackLumaAndChromaScalingSupported == false mode_lib 3627 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c && (mode_lib->vba.WritebackHRatio[k] != 1.0 mode_lib 3628 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c || mode_lib->vba.WritebackVRatio[k] != 1.0)) { mode_lib 3629 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.WritebackScaleRatioAndTapsSupport = false; mode_lib 3631 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c if (mode_lib->vba.WritebackHRatio[k] > mode_lib->vba.WritebackMaxHSCLRatio mode_lib 3632 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c || mode_lib->vba.WritebackVRatio[k] mode_lib 3633 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c > mode_lib->vba.WritebackMaxVSCLRatio mode_lib 3634 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c || mode_lib->vba.WritebackHRatio[k] mode_lib 3635 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c < mode_lib->vba.WritebackMinHSCLRatio mode_lib 3636 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c || mode_lib->vba.WritebackVRatio[k] mode_lib 3637 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c < mode_lib->vba.WritebackMinVSCLRatio mode_lib 3638 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c || mode_lib->vba.WritebackLumaHTaps[k] mode_lib 3639 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c > mode_lib->vba.WritebackMaxHSCLTaps mode_lib 3640 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c || mode_lib->vba.WritebackLumaVTaps[k] mode_lib 3641 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c > mode_lib->vba.WritebackMaxVSCLTaps mode_lib 3642 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c || mode_lib->vba.WritebackHRatio[k] mode_lib 3643 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c > mode_lib->vba.WritebackLumaHTaps[k] mode_lib 3644 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c || mode_lib->vba.WritebackVRatio[k] mode_lib 3645 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c > mode_lib->vba.WritebackLumaVTaps[k] mode_lib 3646 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c || (mode_lib->vba.WritebackLumaHTaps[k] > 2.0 mode_lib 3647 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c && ((mode_lib->vba.WritebackLumaHTaps[k] % 2) mode_lib 3649 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c || (mode_lib->vba.WritebackPixelFormat[k] != dm_444_32 mode_lib 3650 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c && (mode_lib->vba.WritebackChromaHTaps[k] mode_lib 3651 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c > mode_lib->vba.WritebackMaxHSCLTaps mode_lib 3652 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c || mode_lib->vba.WritebackChromaVTaps[k] mode_lib 3653 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c > mode_lib->vba.WritebackMaxVSCLTaps mode_lib 3655 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c * mode_lib->vba.WritebackHRatio[k] mode_lib 3656 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c > mode_lib->vba.WritebackChromaHTaps[k] mode_lib 3658 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c * mode_lib->vba.WritebackVRatio[k] mode_lib 3659 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c > mode_lib->vba.WritebackChromaVTaps[k] mode_lib 3660 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c || (mode_lib->vba.WritebackChromaHTaps[k] > 2.0 mode_lib 3661 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c && ((mode_lib->vba.WritebackChromaHTaps[k] % 2) == 1))))) { mode_lib 3662 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.WritebackScaleRatioAndTapsSupport = false; mode_lib 3664 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c if (mode_lib->vba.WritebackVRatio[k] < 1.0) { mode_lib 3665 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.WritebackLumaVExtra = mode_lib 3666 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c dml_max(1.0 - 2.0 / dml_ceil(1.0 / mode_lib->vba.WritebackVRatio[k], 1.0), 0.0); mode_lib 3668 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.WritebackLumaVExtra = -1; mode_lib 3670 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c if ((mode_lib->vba.WritebackPixelFormat[k] == dm_444_32 mode_lib 3671 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c && mode_lib->vba.WritebackLumaVTaps[k] mode_lib 3672 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c > (mode_lib->vba.WritebackLineBufferLumaBufferSize mode_lib 3673 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c + mode_lib->vba.WritebackLineBufferChromaBufferSize) mode_lib 3675 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c / mode_lib->vba.WritebackDestinationWidth[k] mode_lib 3676 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c - mode_lib->vba.WritebackLumaVExtra) mode_lib 3677 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c || (mode_lib->vba.WritebackPixelFormat[k] == dm_420_8 mode_lib 3678 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c && mode_lib->vba.WritebackLumaVTaps[k] mode_lib 3679 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c > mode_lib->vba.WritebackLineBufferLumaBufferSize mode_lib 3680 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c * 8.0 / 10.0 / mode_lib->vba.WritebackDestinationWidth[k] mode_lib 3681 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c - mode_lib->vba.WritebackLumaVExtra) mode_lib 3682 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c || (mode_lib->vba.WritebackPixelFormat[k] == dm_420_10 mode_lib 3683 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c && mode_lib->vba.WritebackLumaVTaps[k] mode_lib 3684 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c > mode_lib->vba.WritebackLineBufferLumaBufferSize mode_lib 3686 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c / mode_lib->vba.WritebackDestinationWidth[k] mode_lib 3687 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c - mode_lib->vba.WritebackLumaVExtra)) { mode_lib 3688 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.WritebackScaleRatioAndTapsSupport = false; mode_lib 3690 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c if (2.0 * mode_lib->vba.WritebackVRatio[k] < 1) { mode_lib 3691 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.WritebackChromaVExtra = 0.0; mode_lib 3693 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.WritebackChromaVExtra = -1; mode_lib 3695 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c if ((mode_lib->vba.WritebackPixelFormat[k] == dm_420_8 mode_lib 3696 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c && mode_lib->vba.WritebackChromaVTaps[k] mode_lib 3697 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c > mode_lib->vba.WritebackLineBufferChromaBufferSize mode_lib 3698 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c * 8.0 / 10.0 / mode_lib->vba.WritebackDestinationWidth[k] mode_lib 3699 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c - mode_lib->vba.WritebackChromaVExtra) mode_lib 3700 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c || (mode_lib->vba.WritebackPixelFormat[k] == dm_420_10 mode_lib 3701 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c && mode_lib->vba.WritebackChromaVTaps[k] mode_lib 3702 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c > mode_lib->vba.WritebackLineBufferChromaBufferSize mode_lib 3704 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c / mode_lib->vba.WritebackDestinationWidth[k] mode_lib 3705 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c - mode_lib->vba.WritebackChromaVExtra)) { mode_lib 3706 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.WritebackScaleRatioAndTapsSupport = false; mode_lib 3712 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.WritebackRequiredDISPCLK = 0.0; mode_lib 3713 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) { mode_lib 3714 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c if (mode_lib->vba.WritebackEnable[k] == true) { mode_lib 3715 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.WritebackRequiredDISPCLK = mode_lib 3717 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.WritebackRequiredDISPCLK, mode_lib 3719 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.WritebackPixelFormat[k], mode_lib 3720 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.PixelClock[k], mode_lib 3721 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.WritebackHRatio[k], mode_lib 3722 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.WritebackVRatio[k], mode_lib 3723 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.WritebackLumaHTaps[k], mode_lib 3724 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.WritebackLumaVTaps[k], mode_lib 3725 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.WritebackChromaHTaps[k], mode_lib 3726 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.WritebackChromaVTaps[k], mode_lib 3727 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.WritebackDestinationWidth[k], mode_lib 3728 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.HTotal[k], mode_lib 3729 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.WritebackChromaLineBufferWidth)); mode_lib 3732 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) { mode_lib 3733 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c if (mode_lib->vba.HRatio[k] > 1.0) { mode_lib 3735 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.MaxDCHUBToPSCLThroughput, mode_lib 3736 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.MaxPSCLToLBThroughput mode_lib 3737 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c * mode_lib->vba.HRatio[k] mode_lib 3739 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.htaps[k] mode_lib 3744 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.MaxDCHUBToPSCLThroughput, mode_lib 3745 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.MaxPSCLToLBThroughput); mode_lib 3750 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.PixelClock[k] mode_lib 3752 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.vtaps[k] / 6.0 mode_lib 3755 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.HRatio[k]), mode_lib 3756 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.HRatio[k] mode_lib 3757 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c * mode_lib->vba.VRatio[k] mode_lib 3760 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c if ((mode_lib->vba.htaps[k] > 6.0 || mode_lib->vba.vtaps[k] > 6.0) mode_lib 3762 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c < 2.0 * mode_lib->vba.PixelClock[k]) { mode_lib 3764 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c * mode_lib->vba.PixelClock[k]; mode_lib 3767 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c if (mode_lib->vba.HRatio[k] / 2.0 > 1.0) { mode_lib 3770 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.MaxDCHUBToPSCLThroughput, mode_lib 3771 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.MaxPSCLToLBThroughput mode_lib 3772 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c * mode_lib->vba.HRatio[k] mode_lib 3775 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.HTAPsChroma[k] mode_lib 3780 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.MaxDCHUBToPSCLThroughput, mode_lib 3781 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.MaxPSCLToLBThroughput); mode_lib 3784 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.PixelClock[k] mode_lib 3786 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.vtaps[k] / 6.0 mode_lib 3789 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.HRatio[k]), mode_lib 3790 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.HRatio[k] mode_lib 3791 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c * mode_lib->vba.VRatio[k] mode_lib 3793 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.VTAPsChroma[k] mode_lib 3797 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.HRatio[k] mode_lib 3799 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.HRatio[k] mode_lib 3800 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c * mode_lib->vba.VRatio[k] mode_lib 3804 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c if ((mode_lib->vba.htaps[k] > 6.0 || mode_lib->vba.vtaps[k] > 6.0 mode_lib 3805 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c || mode_lib->vba.HTAPsChroma[k] > 6.0 mode_lib 3806 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c || mode_lib->vba.VTAPsChroma[k] > 6.0) mode_lib 3808 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c < 2.0 * mode_lib->vba.PixelClock[k]) { mode_lib 3810 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c * mode_lib->vba.PixelClock[k]; mode_lib 3814 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) { mode_lib 3816 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.SourcePixelFormat[k], mode_lib 3817 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.SurfaceTiling[k], mode_lib 3824 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c if (mode_lib->vba.SourceScan[k] == dm_horz) { mode_lib 3831 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c if ((mode_lib->vba.SourcePixelFormat[k] == dm_444_64 mode_lib 3832 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c || mode_lib->vba.SourcePixelFormat[k] == dm_444_32 mode_lib 3833 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c || mode_lib->vba.SourcePixelFormat[k] == dm_444_16 mode_lib 3834 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c || mode_lib->vba.SourcePixelFormat[k] == dm_mono_16 mode_lib 3835 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c || mode_lib->vba.SourcePixelFormat[k] == dm_mono_8)) { mode_lib 3836 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c if (mode_lib->vba.SurfaceTiling[k] == dm_sw_linear mode_lib 3837 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c || (mode_lib->vba.SourcePixelFormat[k] == dm_444_64 mode_lib 3838 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c && (mode_lib->vba.SurfaceTiling[k] mode_lib 3840 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c || mode_lib->vba.SurfaceTiling[k] mode_lib 3842 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c || mode_lib->vba.SurfaceTiling[k] mode_lib 3844 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c || mode_lib->vba.SurfaceTiling[k] mode_lib 3846 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c || mode_lib->vba.SurfaceTiling[k] mode_lib 3848 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c || mode_lib->vba.SurfaceTiling[k] mode_lib 3850 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c || mode_lib->vba.SurfaceTiling[k] mode_lib 3852 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c && mode_lib->vba.SourceScan[k] == dm_horz)) { mode_lib 3860 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c if (mode_lib->vba.SurfaceTiling[k] == dm_sw_linear) { mode_lib 3863 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c } else if (mode_lib->vba.SourcePixelFormat[k] == dm_420_8 mode_lib 3864 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c && mode_lib->vba.SourceScan[k] == dm_horz) { mode_lib 3868 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c } else if (mode_lib->vba.SourcePixelFormat[k] == dm_420_10 mode_lib 3869 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c && mode_lib->vba.SourceScan[k] == dm_horz) { mode_lib 3878 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c if (mode_lib->vba.SurfaceTiling[k] == dm_sw_linear) { mode_lib 3879 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.MaximumSwathWidthSupport = 8192.0; mode_lib 3881 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.MaximumSwathWidthSupport = 5120.0; mode_lib 3883 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.MaximumSwathWidthInDETBuffer = mode_lib 3885 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.MaximumSwathWidthSupport, mode_lib 3886 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.DETBufferSizeInKByte * 1024.0 / 2.0 mode_lib 3893 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.MaximumSwathWidthInLineBuffer = mode_lib 3894 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.LineBufferSize mode_lib 3895 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c * dml_max(mode_lib->vba.HRatio[k], 1.0) mode_lib 3896 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c / mode_lib->vba.LBBitPerPixel[k] mode_lib 3897 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c / (mode_lib->vba.vtaps[k] mode_lib 3900 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.VRatio[k], mode_lib 3905 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.MaximumSwathWidthInLineBuffer = mode_lib 3907 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.LineBufferSize mode_lib 3909 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.HRatio[k], mode_lib 3911 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c / mode_lib->vba.LBBitPerPixel[k] mode_lib 3912 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c / (mode_lib->vba.vtaps[k] mode_lib 3915 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.VRatio[k], mode_lib 3919 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c 2.0 * mode_lib->vba.LineBufferSize mode_lib 3921 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.HRatio[k] mode_lib 3924 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c / mode_lib->vba.LBBitPerPixel[k] mode_lib 3925 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c / (mode_lib->vba.VTAPsChroma[k] mode_lib 3928 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.VRatio[k] mode_lib 3935 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.MaximumSwathWidthInDETBuffer, mode_lib 3936 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.MaximumSwathWidthInLineBuffer); mode_lib 3938 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c for (i = 0; i <= mode_lib->vba.soc.num_states; i++) { mode_lib 3940 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.MaxDispclkRoundedDownToDFSGranularity = RoundToDFSGranularityDown( mode_lib 3941 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.MaxDispclk[i], mode_lib 3942 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.DISPCLKDPPCLKVCOSpeed); mode_lib 3943 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.MaxDppclkRoundedDownToDFSGranularity = RoundToDFSGranularityDown( mode_lib 3944 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.MaxDppclk[i], mode_lib 3945 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.DISPCLKDPPCLKVCOSpeed); mode_lib 3948 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) { mode_lib 3949 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.PlaneRequiredDISPCLKWithoutODMCombine = mode_lib 3950 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.PixelClock[k] mode_lib 3952 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c + mode_lib->vba.DISPCLKDPPCLKDSCCLKDownSpreading mode_lib 3955 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c + mode_lib->vba.DISPCLKRampingMargin mode_lib 3957 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c if (mode_lib->vba.PlaneRequiredDISPCLKWithoutODMCombine >= mode_lib->vba.MaxDispclk[i] mode_lib 3958 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c && i == mode_lib->vba.soc.num_states) mode_lib 3959 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.PlaneRequiredDISPCLKWithoutODMCombine = mode_lib->vba.PixelClock[k] mode_lib 3960 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c * (1 + mode_lib->vba.DISPCLKDPPCLKDSCCLKDownSpreading / 100.0); mode_lib 3962 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.PlaneRequiredDISPCLKWithODMCombine = mode_lib->vba.PixelClock[k] / 2 mode_lib 3963 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c * (1 + mode_lib->vba.DISPCLKDPPCLKDSCCLKDownSpreading / 100.0) * (1 + mode_lib->vba.DISPCLKRampingMargin / 100.0); mode_lib 3964 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c if (mode_lib->vba.PlaneRequiredDISPCLKWithODMCombine >= mode_lib->vba.MaxDispclk[i] mode_lib 3965 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c && i == mode_lib->vba.soc.num_states) mode_lib 3966 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.PlaneRequiredDISPCLKWithODMCombine = mode_lib->vba.PixelClock[k] / 2 mode_lib 3967 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c * (1 + mode_lib->vba.DISPCLKDPPCLKDSCCLKDownSpreading / 100.0); mode_lib 3968 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c if (mode_lib->vba.ODMCapability == false || mode_lib->vba.PlaneRequiredDISPCLKWithoutODMCombine <= mode_lib->vba.MaxDispclkRoundedDownToDFSGranularity) { mode_lib 3970 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.PlaneRequiredDISPCLK = mode_lib->vba.PlaneRequiredDISPCLKWithoutODMCombine; mode_lib 3973 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.PlaneRequiredDISPCLK = mode_lib->vba.PlaneRequiredDISPCLKWithODMCombine; mode_lib 3975 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c if (locals->MinDPPCLKUsingSingleDPP[k] * (1.0 + mode_lib->vba.DISPCLKDPPCLKDSCCLKDownSpreading / 100.0) <= mode_lib->vba.MaxDppclkRoundedDownToDFSGranularity mode_lib 3980 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c locals->MinDPPCLKUsingSingleDPP[k] * (1.0 + mode_lib->vba.DISPCLKDPPCLKDSCCLKDownSpreading / 100.0); mode_lib 3984 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c locals->MinDPPCLKUsingSingleDPP[k] * (1.0 + mode_lib->vba.DISPCLKDPPCLKDSCCLKDownSpreading / 100.0) / 2.0; mode_lib 3988 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.PlaneRequiredDISPCLK); mode_lib 3989 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c if ((locals->MinDPPCLKUsingSingleDPP[k] / locals->NoOfDPP[i][j][k] * (1.0 + mode_lib->vba.DISPCLKDPPCLKDSCCLKDownSpreading / 100.0) mode_lib 3990 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c > mode_lib->vba.MaxDppclkRoundedDownToDFSGranularity) mode_lib 3991 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c || (mode_lib->vba.PlaneRequiredDISPCLK > mode_lib->vba.MaxDispclkRoundedDownToDFSGranularity)) { mode_lib 3996 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) mode_lib 3999 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c while (locals->TotalNumberOfActiveDPP[i][j] < mode_lib->vba.MaxNumDPP mode_lib 4000 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c && locals->TotalNumberOfActiveDPP[i][j] < 2 * mode_lib->vba.NumberOfActivePlanes) { mode_lib 4006 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) { mode_lib 4015 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c * (1 + mode_lib->vba.DISPCLKDPPCLKDSCCLKDownSpreading / 100) / 2; mode_lib 4019 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c if (locals->TotalNumberOfActiveDPP[i][j] > mode_lib->vba.MaxNumDPP) { mode_lib 4022 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) { mode_lib 4027 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c * (1.0 + mode_lib->vba.DISPCLKDPPCLKDSCCLKDownSpreading / 100.0); mode_lib 4031 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c * (1.0 + mode_lib->vba.DISPCLKDPPCLKDSCCLKDownSpreading / 100.0) / 2.0; mode_lib 4033 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c if (i != mode_lib->vba.soc.num_states) { mode_lib 4034 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.PlaneRequiredDISPCLK = mode_lib 4035 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.PixelClock[k] mode_lib 4036 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c * (1.0 + mode_lib->vba.DISPCLKDPPCLKDSCCLKDownSpreading / 100.0) mode_lib 4037 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c * (1.0 + mode_lib->vba.DISPCLKRampingMargin / 100.0); mode_lib 4039 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.PlaneRequiredDISPCLK = mode_lib->vba.PixelClock[k] mode_lib 4040 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c * (1.0 + mode_lib->vba.DISPCLKDPPCLKDSCCLKDownSpreading / 100.0); mode_lib 4044 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.PlaneRequiredDISPCLK); mode_lib 4045 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c if (locals->MinDPPCLKUsingSingleDPP[k] / locals->NoOfDPP[i][j][k] * (1.0 + mode_lib->vba.DISPCLKDPPCLKDSCCLKDownSpreading / 100.0) mode_lib 4046 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c > mode_lib->vba.MaxDppclkRoundedDownToDFSGranularity mode_lib 4047 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c || mode_lib->vba.PlaneRequiredDISPCLK > mode_lib->vba.MaxDispclkRoundedDownToDFSGranularity) mode_lib 4051 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) mode_lib 4056 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.WritebackRequiredDISPCLK); mode_lib 4057 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c if (mode_lib->vba.MaxDispclkRoundedDownToDFSGranularity mode_lib 4058 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c < mode_lib->vba.WritebackRequiredDISPCLK) { mode_lib 4065 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c for (i = 0; i <= mode_lib->vba.soc.num_states; i++) { mode_lib 4067 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) { mode_lib 4069 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c if (dml_min(locals->SwathWidthYSingleDPP[k], dml_round(mode_lib->vba.HActive[k] / 2.0 * mode_lib->vba.HRatio[k])) mode_lib 4082 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c for (i = 0; i <= mode_lib->vba.soc.num_states; i++) { mode_lib 4084 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c if (locals->TotalNumberOfActiveDPP[i][j] <= mode_lib->vba.MaxNumDPP) mode_lib 4092 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.TotalNumberOfActiveOTG = 0.0; mode_lib 4093 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) { mode_lib 4094 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c if (mode_lib->vba.BlendingAndTiming[k] == k) { mode_lib 4095 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.TotalNumberOfActiveOTG = mode_lib->vba.TotalNumberOfActiveOTG mode_lib 4099 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c if (mode_lib->vba.TotalNumberOfActiveOTG <= mode_lib->vba.MaxNumOTG) { mode_lib 4100 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.NumberOfOTGSupport = true; mode_lib 4102 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.NumberOfOTGSupport = false; mode_lib 4106 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.NonsupportedDSCInputBPC = false; mode_lib 4107 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) { mode_lib 4108 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c if (!(mode_lib->vba.DSCInputBitPerComponent[k] == 12.0 mode_lib 4109 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c || mode_lib->vba.DSCInputBitPerComponent[k] == 10.0 mode_lib 4110 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c || mode_lib->vba.DSCInputBitPerComponent[k] == 8.0)) { mode_lib 4111 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.NonsupportedDSCInputBPC = true; mode_lib 4114 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c for (i = 0; i <= mode_lib->vba.soc.num_states; i++) { mode_lib 4115 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) { mode_lib 4118 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c if (mode_lib->vba.BlendingAndTiming[k] == k) { mode_lib 4119 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c if (mode_lib->vba.Output[k] == dm_hdmi) { mode_lib 4123 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c dml_min(600.0, mode_lib->vba.PHYCLKPerState[i]) / mode_lib->vba.PixelClockBackEnd[k] * 24, mode_lib 4124 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.ForcedOutputLinkBPP[k], mode_lib 4126 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.Output[k], mode_lib 4127 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.OutputFormat[k], mode_lib 4128 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.DSCInputBitPerComponent[k]); mode_lib 4129 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c } else if (mode_lib->vba.Output[k] == dm_dp mode_lib 4130 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c || mode_lib->vba.Output[k] == dm_edp) { mode_lib 4131 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c if (mode_lib->vba.Output[k] == dm_edp) { mode_lib 4132 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.EffectiveFECOverhead = 0.0; mode_lib 4134 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.EffectiveFECOverhead = mode_lib 4135 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.FECOverhead; mode_lib 4137 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c if (mode_lib->vba.PHYCLKPerState[i] >= 270.0) { mode_lib 4138 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.Outbpp = TruncToValidBPP( mode_lib 4139 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c (1.0 - mode_lib->vba.Downspreading / 100.0) * 270.0 mode_lib 4140 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c * mode_lib->vba.OutputLinkDPLanes[k] / mode_lib->vba.PixelClockBackEnd[k] * 8.0, mode_lib 4141 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.ForcedOutputLinkBPP[k], mode_lib 4143 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.Output[k], mode_lib 4144 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.OutputFormat[k], mode_lib 4145 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.DSCInputBitPerComponent[k]); mode_lib 4146 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.OutbppDSC = TruncToValidBPP( mode_lib 4147 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c (1.0 - mode_lib->vba.Downspreading / 100.0) * (1.0 - mode_lib->vba.EffectiveFECOverhead / 100.0) * 270.0 mode_lib 4148 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c * mode_lib->vba.OutputLinkDPLanes[k] / mode_lib->vba.PixelClockBackEnd[k] * 8.0, mode_lib 4149 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.ForcedOutputLinkBPP[k], mode_lib 4151 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.Output[k], mode_lib 4152 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.OutputFormat[k], mode_lib 4153 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.DSCInputBitPerComponent[k]); mode_lib 4154 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c if (mode_lib->vba.DSCEnabled[k] == true) { mode_lib 4156 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c if (mode_lib->vba.Output[k] == dm_dp) { mode_lib 4161 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.Outbpp = mode_lib->vba.OutbppDSC; mode_lib 4166 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c locals->OutputBppPerState[i][k] = mode_lib->vba.Outbpp; mode_lib 4168 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c if (mode_lib->vba.Outbpp == BPP_INVALID && mode_lib->vba.PHYCLKPerState[i] >= 540.0) { mode_lib 4169 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.Outbpp = TruncToValidBPP( mode_lib 4170 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c (1.0 - mode_lib->vba.Downspreading / 100.0) * 540.0 mode_lib 4171 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c * mode_lib->vba.OutputLinkDPLanes[k] / mode_lib->vba.PixelClockBackEnd[k] * 8.0, mode_lib 4172 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.ForcedOutputLinkBPP[k], mode_lib 4174 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.Output[k], mode_lib 4175 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.OutputFormat[k], mode_lib 4176 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.DSCInputBitPerComponent[k]); mode_lib 4177 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.OutbppDSC = TruncToValidBPP( mode_lib 4178 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c (1.0 - mode_lib->vba.Downspreading / 100.0) * (1.0 - mode_lib->vba.EffectiveFECOverhead / 100.0) * 540.0 mode_lib 4179 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c * mode_lib->vba.OutputLinkDPLanes[k] / mode_lib->vba.PixelClockBackEnd[k] * 8.0, mode_lib 4180 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.ForcedOutputLinkBPP[k], mode_lib 4182 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.Output[k], mode_lib 4183 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.OutputFormat[k], mode_lib 4184 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.DSCInputBitPerComponent[k]); mode_lib 4185 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c if (mode_lib->vba.DSCEnabled[k] == true) { mode_lib 4187 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c if (mode_lib->vba.Output[k] == dm_dp) { mode_lib 4192 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.Outbpp = mode_lib->vba.OutbppDSC; mode_lib 4197 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c locals->OutputBppPerState[i][k] = mode_lib->vba.Outbpp; mode_lib 4199 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c if (mode_lib->vba.Outbpp == BPP_INVALID mode_lib 4200 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c && mode_lib->vba.PHYCLKPerState[i] mode_lib 4202 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.Outbpp = TruncToValidBPP( mode_lib 4203 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c (1.0 - mode_lib->vba.Downspreading / 100.0) * 810.0 mode_lib 4204 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c * mode_lib->vba.OutputLinkDPLanes[k] / mode_lib->vba.PixelClockBackEnd[k] * 8.0, mode_lib 4205 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.ForcedOutputLinkBPP[k], mode_lib 4207 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.Output[k], mode_lib 4208 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.OutputFormat[k], mode_lib 4209 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.DSCInputBitPerComponent[k]); mode_lib 4210 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.OutbppDSC = TruncToValidBPP( mode_lib 4211 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c (1.0 - mode_lib->vba.Downspreading / 100.0) * (1.0 - mode_lib->vba.EffectiveFECOverhead / 100.0) * 810.0 mode_lib 4212 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c * mode_lib->vba.OutputLinkDPLanes[k] / mode_lib->vba.PixelClockBackEnd[k] * 8.0, mode_lib 4213 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.ForcedOutputLinkBPP[k], mode_lib 4215 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.Output[k], mode_lib 4216 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.OutputFormat[k], mode_lib 4217 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.DSCInputBitPerComponent[k]); mode_lib 4218 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c if (mode_lib->vba.DSCEnabled[k] == true || mode_lib->vba.Outbpp == BPP_INVALID) { mode_lib 4220 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c if (mode_lib->vba.Output[k] == dm_dp) { mode_lib 4225 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.Outbpp = mode_lib->vba.OutbppDSC; mode_lib 4231 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.Outbpp; mode_lib 4239 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c for (i = 0; i <= mode_lib->vba.soc.num_states; i++) { mode_lib 4241 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) { mode_lib 4243 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c || (mode_lib->vba.OutputFormat[k] == dm_420 mode_lib 4244 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c && mode_lib->vba.Interlace[k] == true mode_lib 4245 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c && mode_lib->vba.ProgressiveToInterlaceUnitInOPP == true)) { mode_lib 4250 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c for (i = 0; i <= mode_lib->vba.soc.num_states; i++) { mode_lib 4251 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) { mode_lib 4253 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c if (mode_lib->vba.BlendingAndTiming[k] == k) { mode_lib 4254 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c if ((mode_lib->vba.Output[k] == dm_dp mode_lib 4255 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c || mode_lib->vba.Output[k] == dm_edp)) { mode_lib 4256 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c if (mode_lib->vba.OutputFormat[k] == dm_420 mode_lib 4257 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c || mode_lib->vba.OutputFormat[k] mode_lib 4259 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.DSCFormatFactor = 2; mode_lib 4261 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.DSCFormatFactor = 1; mode_lib 4266 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c if (mode_lib->vba.PixelClockBackEnd[k] / 6.0 / mode_lib->vba.DSCFormatFactor mode_lib 4267 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c > (1.0 - mode_lib->vba.DISPCLKDPPCLKDSCCLKDownSpreading / 100.0) * mode_lib->vba.MaxDSCCLK[i]) { mode_lib 4272 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c if (mode_lib->vba.PixelClockBackEnd[k] / 3.0 / mode_lib->vba.DSCFormatFactor mode_lib 4273 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c > (1.0 - mode_lib->vba.DISPCLKDPPCLKDSCCLKDownSpreading / 100.0) * mode_lib->vba.MaxDSCCLK[i]) { mode_lib 4283 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c for (i = 0; i <= mode_lib->vba.soc.num_states; i++) { mode_lib 4285 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.TotalDSCUnitsRequired = 0.0; mode_lib 4286 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) { mode_lib 4289 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.TotalDSCUnitsRequired = mode_lib 4290 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.TotalDSCUnitsRequired + 2.0; mode_lib 4292 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.TotalDSCUnitsRequired = mode_lib 4293 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.TotalDSCUnitsRequired + 1.0; mode_lib 4297 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c if (mode_lib->vba.TotalDSCUnitsRequired > mode_lib->vba.NumberOfDSC) { mode_lib 4303 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c for (i = 0; i <= mode_lib->vba.soc.num_states; i++) { mode_lib 4304 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) { mode_lib 4305 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c if (mode_lib->vba.BlendingAndTiming[k] != k) { mode_lib 4306 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.slices = 0; mode_lib 4309 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.slices = 0; mode_lib 4310 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c } else if (mode_lib->vba.PixelClockBackEnd[k] > 3200.0) { mode_lib 4311 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.slices = dml_ceil( mode_lib 4312 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.PixelClockBackEnd[k] / 400.0, mode_lib 4314 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c } else if (mode_lib->vba.PixelClockBackEnd[k] > 1360.0) { mode_lib 4315 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.slices = 8.0; mode_lib 4316 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c } else if (mode_lib->vba.PixelClockBackEnd[k] > 680.0) { mode_lib 4317 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.slices = 4.0; mode_lib 4318 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c } else if (mode_lib->vba.PixelClockBackEnd[k] > 340.0) { mode_lib 4319 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.slices = 2.0; mode_lib 4321 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.slices = 1.0; mode_lib 4325 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.bpp = 0.0; mode_lib 4327 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.bpp = locals->OutputBppPerState[i][k]; mode_lib 4329 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c if (locals->RequiresDSC[i][k] == true && mode_lib->vba.bpp != 0.0) { mode_lib 4333 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.DSCInputBitPerComponent[k], mode_lib 4334 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.bpp, mode_lib 4336 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.HActive[k] mode_lib 4337 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c / mode_lib->vba.slices, mode_lib 4339 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.slices, mode_lib 4340 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.OutputFormat[k]) mode_lib 4342 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.OutputFormat[k]); mode_lib 4346 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.DSCInputBitPerComponent[k], mode_lib 4347 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.bpp, mode_lib 4348 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c dml_ceil(mode_lib->vba.HActive[k] / mode_lib->vba.slices, 1.0), mode_lib 4349 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.slices / 2, mode_lib 4350 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.OutputFormat[k]) mode_lib 4351 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c + dscComputeDelay(mode_lib->vba.OutputFormat[k])); mode_lib 4354 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c locals->DSCDelayPerState[i][k] * mode_lib->vba.PixelClock[k] / mode_lib->vba.PixelClockBackEnd[k]; mode_lib 4359 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) { mode_lib 4360 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c for (m = 0; m <= mode_lib->vba.NumberOfActivePlanes - 1; m++) { mode_lib 4361 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c for (j = 0; j <= mode_lib->vba.NumberOfActivePlanes - 1; j++) { mode_lib 4362 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c if (mode_lib->vba.BlendingAndTiming[k] == m && locals->RequiresDSC[i][m] == true) mode_lib 4370 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c for (i = 0; i <= mode_lib->vba.soc.num_states; ++i) { mode_lib 4373 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) { mode_lib 4374 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c if (mode_lib->vba.DCCEnable[k] == true) mode_lib 4380 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.UrgentLatency = dml_max3( mode_lib 4381 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.UrgentLatencyPixelDataOnly, mode_lib 4382 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.UrgentLatencyPixelMixedWithVMData, mode_lib 4383 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.UrgentLatencyVMDataOnly); mode_lib 4384 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.PrefetchERROR = CalculateMinAndMaxPrefetchMode( mode_lib 4385 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.AllowDRAMSelfRefreshOrDRAMClockChangeInVblank, mode_lib 4386 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c &mode_lib->vba.MinPrefetchMode, mode_lib 4387 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c &mode_lib->vba.MaxPrefetchMode); mode_lib 4389 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c for (i = 0; i <= mode_lib->vba.soc.num_states; i++) { mode_lib 4391 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) { mode_lib 4396 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c dml_min(locals->SwathWidthYSingleDPP[k], dml_round(mode_lib->vba.HActive[k] / 2.0 * mode_lib->vba.HRatio[k])); mode_lib 4400 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.SwathWidthGranularityY = 256.0 mode_lib 4403 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.RoundedUpMaxSwathSizeBytesY = mode_lib 4404 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c (dml_ceil(locals->SwathWidthYThisState[k] - 1.0, mode_lib->vba.SwathWidthGranularityY) mode_lib 4405 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c + mode_lib->vba.SwathWidthGranularityY) * locals->BytePerPixelInDETY[k] * locals->MaxSwathHeightY[k]; mode_lib 4406 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c if (mode_lib->vba.SourcePixelFormat[k] == dm_420_10) { mode_lib 4407 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.RoundedUpMaxSwathSizeBytesY = dml_ceil( mode_lib 4408 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.RoundedUpMaxSwathSizeBytesY, mode_lib 4412 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.SwathWidthGranularityC = 256.0 / dml_ceil(locals->BytePerPixelInDETC[k], 2.0) / locals->MaxSwathHeightC[k]; mode_lib 4413 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.RoundedUpMaxSwathSizeBytesC = (dml_ceil(locals->SwathWidthYThisState[k] / 2.0 - 1.0, mode_lib->vba.SwathWidthGranularityC) mode_lib 4414 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c + mode_lib->vba.SwathWidthGranularityC) * locals->BytePerPixelInDETC[k] * locals->MaxSwathHeightC[k]; mode_lib 4415 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c if (mode_lib->vba.SourcePixelFormat[k] == dm_420_10) { mode_lib 4416 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.RoundedUpMaxSwathSizeBytesC = dml_ceil(mode_lib->vba.RoundedUpMaxSwathSizeBytesC, 256.0) + 256; mode_lib 4419 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.RoundedUpMaxSwathSizeBytesC = 0.0; mode_lib 4421 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c if (mode_lib->vba.RoundedUpMaxSwathSizeBytesY + mode_lib->vba.RoundedUpMaxSwathSizeBytesC mode_lib 4422 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c <= mode_lib->vba.DETBufferSizeInKByte * 1024.0 / 2.0) { mode_lib 4434 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib, mode_lib 4435 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.NumberOfActivePlanes, mode_lib 4438 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.VRatio, mode_lib 4441 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.HRatio, mode_lib 4442 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.PixelClock, mode_lib 4446 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c &mode_lib->vba.ProjectedDCFCLKDeepSleep); mode_lib 4448 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) { mode_lib 4449 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c if ((mode_lib->vba.SourcePixelFormat[k] != dm_444_64 mode_lib 4450 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c && mode_lib->vba.SourcePixelFormat[k] != dm_444_32 mode_lib 4451 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c && mode_lib->vba.SourcePixelFormat[k] != dm_444_16 mode_lib 4452 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c && mode_lib->vba.SourcePixelFormat[k] != dm_mono_16 mode_lib 4453 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c && mode_lib->vba.SourcePixelFormat[k] != dm_mono_8)) { mode_lib 4454 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.PDEAndMetaPTEBytesPerFrameC = CalculateVMAndRowBytes( mode_lib 4455 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib, mode_lib 4456 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.DCCEnable[k], mode_lib 4459 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.SourcePixelFormat[k], mode_lib 4460 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.SurfaceTiling[k], mode_lib 4462 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.SourceScan[k], mode_lib 4463 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.ViewportWidth[k] / 2.0, mode_lib 4464 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.ViewportHeight[k] / 2.0, mode_lib 4466 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.GPUVMEnable, mode_lib 4467 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.HostVMEnable, mode_lib 4468 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.HostVMMaxPageTableLevels, mode_lib 4469 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.HostVMCachedPageTableLevels, mode_lib 4470 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.VMMPageSize, mode_lib 4471 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.PTEBufferSizeInRequestsChroma, mode_lib 4472 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.PitchC[k], mode_lib 4475 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c &mode_lib->vba.MetaRowBytesC, mode_lib 4476 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c &mode_lib->vba.DPTEBytesPerRowC, mode_lib 4492 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib, mode_lib 4493 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.VRatio[k]/2, mode_lib 4494 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.VTAPsChroma[k], mode_lib 4495 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.Interlace[k], mode_lib 4496 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.ProgressiveToInterlaceUnitInOPP, mode_lib 4498 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.ViewportYStartC[k], mode_lib 4501 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c locals->PTEBufferSizeInRequestsForLuma = mode_lib->vba.PTEBufferSizeInRequestsLuma; mode_lib 4503 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.PDEAndMetaPTEBytesPerFrameC = 0.0; mode_lib 4504 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.MetaRowBytesC = 0.0; mode_lib 4505 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.DPTEBytesPerRowC = 0.0; mode_lib 4508 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c locals->PTEBufferSizeInRequestsForLuma = mode_lib->vba.PTEBufferSizeInRequestsLuma + mode_lib->vba.PTEBufferSizeInRequestsChroma; mode_lib 4510 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.PDEAndMetaPTEBytesPerFrameY = CalculateVMAndRowBytes( mode_lib 4511 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib, mode_lib 4512 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.DCCEnable[k], mode_lib 4515 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.SourcePixelFormat[k], mode_lib 4516 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.SurfaceTiling[k], mode_lib 4518 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.SourceScan[k], mode_lib 4519 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.ViewportWidth[k], mode_lib 4520 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.ViewportHeight[k], mode_lib 4522 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.GPUVMEnable, mode_lib 4523 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.HostVMEnable, mode_lib 4524 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.HostVMMaxPageTableLevels, mode_lib 4525 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.HostVMCachedPageTableLevels, mode_lib 4526 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.VMMPageSize, mode_lib 4528 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.PitchY[k], mode_lib 4529 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.DCCMetaPitchY[k], mode_lib 4531 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c &mode_lib->vba.MetaRowBytesY, mode_lib 4532 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c &mode_lib->vba.DPTEBytesPerRowY, mode_lib 4548 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib, mode_lib 4549 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.VRatio[k], mode_lib 4550 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.vtaps[k], mode_lib 4551 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.Interlace[k], mode_lib 4552 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.ProgressiveToInterlaceUnitInOPP, mode_lib 4554 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.ViewportYStartY[k], mode_lib 4558 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.PDEAndMetaPTEBytesPerFrameY + mode_lib->vba.PDEAndMetaPTEBytesPerFrameC; mode_lib 4559 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c locals->MetaRowBytes[k] = mode_lib->vba.MetaRowBytesY + mode_lib->vba.MetaRowBytesC; mode_lib 4560 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c locals->DPTEBytesPerRow[k] = mode_lib->vba.DPTEBytesPerRowY + mode_lib->vba.DPTEBytesPerRowC; mode_lib 4563 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.GPUVMEnable, mode_lib 4564 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.SourcePixelFormat[k], mode_lib 4565 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.VRatio[k], mode_lib 4566 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.DCCEnable[k], mode_lib 4567 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.HTotal[k] / mode_lib 4568 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.PixelClock[k], mode_lib 4569 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.MetaRowBytesY, mode_lib 4570 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.MetaRowBytesC, mode_lib 4573 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.DPTEBytesPerRowY, mode_lib 4574 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.DPTEBytesPerRowC, mode_lib 4580 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.ExtraLatency = CalculateExtraLatency( mode_lib 4583 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.PixelChunkSizeInKByte, mode_lib 4585 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.MetaChunkSize, mode_lib 4587 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.GPUVMEnable, mode_lib 4588 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.HostVMEnable, mode_lib 4589 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.NumberOfActivePlanes, mode_lib 4592 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.PercentOfIdealDRAMFabricAndSDPPortBWReceivedAfterUrgLatencyPixelMixedWithVMData, mode_lib 4593 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.PercentOfIdealDRAMFabricAndSDPPortBWReceivedAfterUrgLatencyVMDataOnly, mode_lib 4594 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.HostVMMaxPageTableLevels, mode_lib 4595 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.HostVMCachedPageTableLevels); mode_lib 4597 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.TimeCalc = 24.0 / mode_lib->vba.ProjectedDCFCLKDeepSleep; mode_lib 4598 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) { mode_lib 4599 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c if (mode_lib->vba.BlendingAndTiming[k] == k) { mode_lib 4600 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c if (mode_lib->vba.WritebackEnable[k] == true) { mode_lib 4601 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c locals->WritebackDelay[i][k] = mode_lib->vba.WritebackLatency mode_lib 4603 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.WritebackPixelFormat[k], mode_lib 4604 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.WritebackHRatio[k], mode_lib 4605 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.WritebackVRatio[k], mode_lib 4606 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.WritebackLumaHTaps[k], mode_lib 4607 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.WritebackLumaVTaps[k], mode_lib 4608 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.WritebackChromaHTaps[k], mode_lib 4609 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.WritebackChromaVTaps[k], mode_lib 4610 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.WritebackDestinationWidth[k]) / locals->RequiredDISPCLK[i][j]; mode_lib 4614 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c for (m = 0; m <= mode_lib->vba.NumberOfActivePlanes - 1; m++) { mode_lib 4615 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c if (mode_lib->vba.BlendingAndTiming[m] == k mode_lib 4616 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c && mode_lib->vba.WritebackEnable[m] mode_lib 4619 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.WritebackLatency + CalculateWriteBackDelay( mode_lib 4620 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.WritebackPixelFormat[m], mode_lib 4621 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.WritebackHRatio[m], mode_lib 4622 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.WritebackVRatio[m], mode_lib 4623 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.WritebackLumaHTaps[m], mode_lib 4624 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.WritebackLumaVTaps[m], mode_lib 4625 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.WritebackChromaHTaps[m], mode_lib 4626 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.WritebackChromaVTaps[m], mode_lib 4627 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.WritebackDestinationWidth[m]) / locals->RequiredDISPCLK[i][j]); mode_lib 4632 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) { mode_lib 4633 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c for (m = 0; m <= mode_lib->vba.NumberOfActivePlanes - 1; m++) { mode_lib 4634 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c if (mode_lib->vba.BlendingAndTiming[k] == m) { mode_lib 4639 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.MaxMaxVStartup = 0; mode_lib 4640 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) { mode_lib 4641 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c locals->MaximumVStartup[k] = mode_lib->vba.VTotal[k] - mode_lib->vba.VActive[k] mode_lib 4642 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c - dml_max(1.0, dml_ceil(locals->WritebackDelay[i][k] / (mode_lib->vba.HTotal[k] / mode_lib->vba.PixelClock[k]), 1.0)); mode_lib 4643 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.MaxMaxVStartup = dml_max(mode_lib->vba.MaxMaxVStartup, locals->MaximumVStartup[k]); mode_lib 4646 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.NextPrefetchMode = mode_lib->vba.MinPrefetchMode; mode_lib 4647 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.NextMaxVStartup = mode_lib->vba.MaxMaxVStartup; mode_lib 4649 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.PrefetchMode[i][j] = mode_lib->vba.NextPrefetchMode; mode_lib 4650 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.MaxVStartup = mode_lib->vba.NextMaxVStartup; mode_lib 4652 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.TWait = CalculateTWait( mode_lib 4653 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.PrefetchMode[i][j], mode_lib 4654 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.DRAMClockChangeLatency, mode_lib 4655 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.UrgentLatency, mode_lib 4656 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.SREnterPlusExitTime); mode_lib 4657 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) { mode_lib 4661 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c if (mode_lib->vba.XFCEnabled[k] == true) { mode_lib 4662 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.XFCRemoteSurfaceFlipDelay = mode_lib 4664 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib, mode_lib 4665 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.VRatio[k], mode_lib 4668 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.HTotal[k] / mode_lib->vba.PixelClock[k], mode_lib 4669 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.XFCTSlvVupdateOffset, mode_lib 4670 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.XFCTSlvVupdateWidth, mode_lib 4671 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.XFCTSlvVreadyOffset, mode_lib 4672 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.XFCXBUFLatencyTolerance, mode_lib 4673 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.XFCFillBWOverhead, mode_lib 4674 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.XFCSlvChunkSize, mode_lib 4675 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.XFCBusTransportTime, mode_lib 4676 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.TimeCalc, mode_lib 4677 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.TWait, mode_lib 4678 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c &mode_lib->vba.SrcActiveDrainRate, mode_lib 4679 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c &mode_lib->vba.TInitXFill, mode_lib 4680 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c &mode_lib->vba.TslvChk); mode_lib 4682 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.XFCRemoteSurfaceFlipDelay = 0.0; mode_lib 4687 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c myPipe.PixelClock = mode_lib->vba.PixelClock[k]; mode_lib 4688 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c myPipe.DCFCLKDeepSleep = mode_lib->vba.ProjectedDCFCLKDeepSleep; mode_lib 4690 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c myPipe.ScalerEnabled = mode_lib->vba.ScalerEnabled[k]; mode_lib 4691 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c myPipe.SourceScan = mode_lib->vba.SourceScan[k]; mode_lib 4696 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c myPipe.InterlaceEnable = mode_lib->vba.Interlace[k]; mode_lib 4697 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c myPipe.NumberOfCursors = mode_lib->vba.NumberOfCursors[k]; mode_lib 4698 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c myPipe.VBlank = mode_lib->vba.VTotal[k] - mode_lib->vba.VActive[k]; mode_lib 4699 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c myPipe.HTotal = mode_lib->vba.HTotal[k]; mode_lib 4702 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c myHostVM.Enable = mode_lib->vba.HostVMEnable; mode_lib 4703 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c myHostVM.MaxPageTableLevels = mode_lib->vba.HostVMMaxPageTableLevels; mode_lib 4704 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c myHostVM.CachedPageTableLevels = mode_lib->vba.HostVMCachedPageTableLevels; mode_lib 4707 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.IsErrorResult[i][j][k] = CalculatePrefetchSchedule( mode_lib 4708 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib, mode_lib 4709 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.PercentOfIdealDRAMFabricAndSDPPortBWReceivedAfterUrgLatencyPixelMixedWithVMData, mode_lib 4710 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.PercentOfIdealDRAMFabricAndSDPPortBWReceivedAfterUrgLatencyVMDataOnly, mode_lib 4713 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.DPPCLKDelaySubtotal, mode_lib 4714 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.DPPCLKDelaySCL, mode_lib 4715 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.DPPCLKDelaySCLLBOnly, mode_lib 4716 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.DPPCLKDelayCNVCFormater, mode_lib 4717 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.DPPCLKDelayCNVCCursor, mode_lib 4718 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.DISPCLKDelaySubtotal, mode_lib 4719 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c locals->SwathWidthYThisState[k] / mode_lib->vba.HRatio[k], mode_lib 4720 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.OutputFormat[k], mode_lib 4721 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.MaxInterDCNTileRepeaters, mode_lib 4722 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c dml_min(mode_lib->vba.MaxVStartup, locals->MaximumVStartup[k]), mode_lib 4724 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.GPUVMMaxPageTableLevels, mode_lib 4725 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.GPUVMEnable, mode_lib 4727 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.DynamicMetadataEnable[k], mode_lib 4728 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.DynamicMetadataLinesBeforeActiveRequired[k], mode_lib 4729 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.DynamicMetadataTransmittedBytes[k], mode_lib 4730 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.DCCEnable[k], mode_lib 4731 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.UrgentLatency, mode_lib 4732 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.ExtraLatency, mode_lib 4733 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.TimeCalc, mode_lib 4748 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.TWait, mode_lib 4749 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.XFCEnabled[k], mode_lib 4750 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.XFCRemoteSurfaceFlipDelay, mode_lib 4751 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.ProgressiveToInterlaceUnitInOPP, mode_lib 4767 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c &mode_lib->vba.VUpdateOffsetPix[k], mode_lib 4768 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c &mode_lib->vba.VUpdateWidthPix[k], mode_lib 4769 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c &mode_lib->vba.VReadyOffsetPix[k]); mode_lib 4771 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.MaximumReadBandwidthWithoutPrefetch = 0.0; mode_lib 4772 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.MaximumReadBandwidthWithPrefetch = 0.0; mode_lib 4773 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) { mode_lib 4778 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c for (m = 0; m < mode_lib->vba.NumberOfCursors[k]; m++) { mode_lib 4779 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c locals->cursor_bw[k] = mode_lib->vba.CursorWidth[k][m] * mode_lib->vba.CursorBPP[k][m] mode_lib 4780 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c / 8.0 / (mode_lib->vba.HTotal[k] / mode_lib->vba.PixelClock[k]) * mode_lib->vba.VRatio[k]; mode_lib 4781 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c locals->cursor_bw_pre[k] = mode_lib->vba.CursorWidth[k][m] * mode_lib->vba.CursorBPP[k][m] mode_lib 4782 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c / 8.0 / (mode_lib->vba.HTotal[k] / mode_lib->vba.PixelClock[k]) * locals->VRatioPreY[i][j][k]; mode_lib 4786 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.DETBufferSizeInKByte, mode_lib 4790 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.HTotal[k] / mode_lib->vba.PixelClock[k], mode_lib 4791 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.UrgentLatency, mode_lib 4792 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.CursorBufferSize, mode_lib 4793 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.CursorWidth[k][0] + mode_lib->vba.CursorWidth[k][1], mode_lib 4794 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c dml_max(mode_lib->vba.CursorBPP[k][0], mode_lib->vba.CursorBPP[k][1]), mode_lib 4795 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.VRatio[k], mode_lib 4809 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c if (mode_lib->vba.UseUrgentBurstBandwidth == false) { mode_lib 4818 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.MaximumReadBandwidthWithoutPrefetch = mode_lib->vba.MaximumReadBandwidthWithoutPrefetch mode_lib 4822 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.MaximumReadBandwidthWithPrefetch = mode_lib->vba.MaximumReadBandwidthWithPrefetch mode_lib 4832 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c if (mode_lib->vba.MaximumReadBandwidthWithoutPrefetch > locals->ReturnBWPerState[i] mode_lib 4838 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c if (mode_lib->vba.MaximumReadBandwidthWithPrefetch > locals->ReturnBWPerState[i] mode_lib 4843 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) { mode_lib 4847 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c || mode_lib->vba.IsErrorResult[i][j][k] == true) { mode_lib 4852 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) { mode_lib 4855 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c || mode_lib->vba.IsErrorResult[i][j][k] == true) { mode_lib 4859 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.AnyLinesForVMOrRowTooLarge = false; mode_lib 4860 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) { mode_lib 4862 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.AnyLinesForVMOrRowTooLarge = true; mode_lib 4866 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c if (mode_lib->vba.MaxVStartup <= 13 || mode_lib->vba.AnyLinesForVMOrRowTooLarge == false) { mode_lib 4867 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.NextMaxVStartup = mode_lib->vba.MaxMaxVStartup; mode_lib 4868 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.NextPrefetchMode = mode_lib->vba.NextPrefetchMode + 1; mode_lib 4870 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.NextMaxVStartup = mode_lib->vba.NextMaxVStartup - 1; mode_lib 4873 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c && (mode_lib->vba.NextMaxVStartup != mode_lib->vba.MaxMaxVStartup mode_lib 4874 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c || mode_lib->vba.NextPrefetchMode < mode_lib->vba.MaxPrefetchMode)); mode_lib 4877 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.BandwidthAvailableForImmediateFlip = locals->ReturnBWPerState[i]; mode_lib 4878 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) { mode_lib 4879 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.BandwidthAvailableForImmediateFlip = mode_lib->vba.BandwidthAvailableForImmediateFlip mode_lib 4887 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.TotImmediateFlipBytes = 0.0; mode_lib 4888 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) { mode_lib 4889 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.TotImmediateFlipBytes = mode_lib->vba.TotImmediateFlipBytes mode_lib 4893 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) { mode_lib 4895 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib, mode_lib 4896 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.PercentOfIdealDRAMFabricAndSDPPortBWReceivedAfterUrgLatencyPixelMixedWithVMData, mode_lib 4897 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.PercentOfIdealDRAMFabricAndSDPPortBWReceivedAfterUrgLatencyVMDataOnly, mode_lib 4898 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.ExtraLatency, mode_lib 4899 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.UrgentLatency, mode_lib 4900 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.GPUVMMaxPageTableLevels, mode_lib 4901 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.HostVMEnable, mode_lib 4902 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.HostVMMaxPageTableLevels, mode_lib 4903 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.HostVMCachedPageTableLevels, mode_lib 4904 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.GPUVMEnable, mode_lib 4908 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.BandwidthAvailableForImmediateFlip, mode_lib 4909 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.TotImmediateFlipBytes, mode_lib 4910 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.SourcePixelFormat[k], mode_lib 4911 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.HTotal[k] / mode_lib->vba.PixelClock[k], mode_lib 4912 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.VRatio[k], mode_lib 4914 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.DCCEnable[k], mode_lib 4924 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.total_dcn_read_bw_with_flip = 0.0; mode_lib 4925 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) { mode_lib 4926 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.total_dcn_read_bw_with_flip = mode_lib->vba.total_dcn_read_bw_with_flip + dml_max3( mode_lib 4937 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c if (mode_lib->vba.total_dcn_read_bw_with_flip mode_lib 4941 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) { mode_lib 4949 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.UrgentOutOfOrderReturnPerChannel = dml_max3( mode_lib 4950 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.UrgentOutOfOrderReturnPerChannelPixelDataOnly, mode_lib 4951 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.UrgentOutOfOrderReturnPerChannelPixelMixedWithVMData, mode_lib 4952 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.UrgentOutOfOrderReturnPerChannelVMDataOnly); mode_lib 4954 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib, mode_lib 4955 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.PrefetchMode[i][j], mode_lib 4956 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.NumberOfActivePlanes, mode_lib 4957 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.MaxLineBufferLines, mode_lib 4958 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.LineBufferSize, mode_lib 4959 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.DPPOutputBufferPixels, mode_lib 4960 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.DETBufferSizeInKByte, mode_lib 4961 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.WritebackInterfaceLumaBufferSize, mode_lib 4962 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.WritebackInterfaceChromaBufferSize, mode_lib 4963 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.DCFCLKPerState[i], mode_lib 4964 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.UrgentOutOfOrderReturnPerChannel * mode_lib->vba.NumberOfChannels, mode_lib 4966 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.GPUVMEnable, mode_lib 4968 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.MetaChunkSize, mode_lib 4969 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.UrgentLatency, mode_lib 4970 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.ExtraLatency, mode_lib 4971 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.WritebackLatency, mode_lib 4972 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.WritebackChunkSize, mode_lib 4973 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.SOCCLKPerState[i], mode_lib 4974 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.DRAMClockChangeLatency, mode_lib 4975 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.SRExitTime, mode_lib 4976 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.SREnterPlusExitTime, mode_lib 4977 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.ProjectedDCFCLKDeepSleep, mode_lib 4979 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.DCCEnable, mode_lib 4986 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.LBBitPerPixel, mode_lib 4988 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.HRatio, mode_lib 4989 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.vtaps, mode_lib 4990 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.VTAPsChroma, mode_lib 4991 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.VRatio, mode_lib 4992 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.HTotal, mode_lib 4993 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.PixelClock, mode_lib 4994 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.BlendingAndTiming, mode_lib 4997 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.WritebackEnable, mode_lib 4998 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.WritebackPixelFormat, mode_lib 4999 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.WritebackDestinationWidth, mode_lib 5000 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.WritebackDestinationHeight, mode_lib 5001 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.WritebackSourceHeight, mode_lib 5003 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c &mode_lib->vba.UrgentWatermark, mode_lib 5004 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c &mode_lib->vba.WritebackUrgentWatermark, mode_lib 5005 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c &mode_lib->vba.DRAMClockChangeWatermark, mode_lib 5006 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c &mode_lib->vba.WritebackDRAMClockChangeWatermark, mode_lib 5007 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c &mode_lib->vba.StutterExitWatermark, mode_lib 5008 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c &mode_lib->vba.StutterEnterPlusExitWatermark, mode_lib 5009 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c &mode_lib->vba.MinActiveDRAMClockChangeLatencySupported); mode_lib 5016 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) { mode_lib 5019 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c for (i = 0; i <= mode_lib->vba.soc.num_states; ++i) { mode_lib 5022 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.MaxAveragePercentOfIdealSDPPortBWDisplayCanUseInNormalSystemOperation mode_lib 5023 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c / 100.0, mode_lib->vba.DRAMSpeedPerState[i] * mode_lib 5024 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.NumberOfChannels * mode_lib 5025 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.DRAMChannelWidth * mode_lib 5026 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.MaxAveragePercentOfIdealDRAMBWDisplayCanUseInNormalSystemOperation mode_lib 5039 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c for (i = 0; i <= mode_lib->vba.soc.num_states; i++) { mode_lib 5042 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) { mode_lib 5052 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.CursorSupport = true; mode_lib 5053 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) { mode_lib 5054 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c if (mode_lib->vba.CursorWidth[k][0] > 0.0) { mode_lib 5055 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c for (m = 0; m < mode_lib->vba.NumberOfCursors[k]; m++) { mode_lib 5056 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c if (mode_lib->vba.CursorBPP[k][m] == 64 && mode_lib->vba.Cursor64BppSupport == false) { mode_lib 5057 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.CursorSupport = false; mode_lib 5064 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.PitchSupport = true; mode_lib 5065 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) { mode_lib 5067 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c dml_max(mode_lib->vba.PitchY[k], mode_lib->vba.ViewportWidth[k]), mode_lib 5069 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c if (locals->AlignedYPitch[k] > mode_lib->vba.PitchY[k]) { mode_lib 5070 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.PitchSupport = false; mode_lib 5072 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c if (mode_lib->vba.DCCEnable[k] == true) { mode_lib 5075 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.DCCMetaPitchY[k], mode_lib 5076 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.ViewportWidth[k]), mode_lib 5079 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c locals->AlignedDCCMetaPitch[k] = mode_lib->vba.DCCMetaPitchY[k]; mode_lib 5081 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c if (locals->AlignedDCCMetaPitch[k] > mode_lib->vba.DCCMetaPitchY[k]) { mode_lib 5082 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.PitchSupport = false; mode_lib 5084 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c if (mode_lib->vba.SourcePixelFormat[k] != dm_444_64 mode_lib 5085 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c && mode_lib->vba.SourcePixelFormat[k] != dm_444_32 mode_lib 5086 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c && mode_lib->vba.SourcePixelFormat[k] != dm_444_16 mode_lib 5087 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c && mode_lib->vba.SourcePixelFormat[k] != dm_mono_16 mode_lib 5088 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c && mode_lib->vba.SourcePixelFormat[k] != dm_mono_8) { mode_lib 5091 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.PitchC[k], mode_lib 5092 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.ViewportWidth[k] / 2.0), mode_lib 5095 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c locals->AlignedCPitch[k] = mode_lib->vba.PitchC[k]; mode_lib 5097 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c if (locals->AlignedCPitch[k] > mode_lib->vba.PitchC[k]) { mode_lib 5098 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.PitchSupport = false; mode_lib 5103 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c for (i = mode_lib->vba.soc.num_states; i >= 0; i--) { mode_lib 5107 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c if (mode_lib->vba.ScaleRatioAndTapsSupport != true) { mode_lib 5109 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c } else if (mode_lib->vba.SourceFormatPixelAndScanSupport != true) { mode_lib 5125 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c } else if (mode_lib->vba.NumberOfOTGSupport != true) { mode_lib 5127 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c } else if (mode_lib->vba.WritebackModeSupport != true) { mode_lib 5129 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c } else if (mode_lib->vba.WritebackLatencySupport != true) { mode_lib 5131 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c } else if (mode_lib->vba.WritebackScaleRatioAndTapsSupport != true) { mode_lib 5133 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c } else if (mode_lib->vba.CursorSupport != true) { mode_lib 5135 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c } else if (mode_lib->vba.PitchSupport != true) { mode_lib 5141 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c } else if (mode_lib->vba.NonsupportedDSCInputBPC != false) { mode_lib 5143 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c } else if ((mode_lib->vba.HostVMEnable != false mode_lib 5162 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.VoltageLevel = mode_lib->vba.soc.num_states + 1; mode_lib 5163 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c for (i = mode_lib->vba.VoltageOverrideLevel; i <= mode_lib->vba.soc.num_states; i++) { mode_lib 5165 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.VoltageLevel = i; mode_lib 5167 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c || mode_lib->vba.WhenToDoMPCCombine == dm_mpc_always_when_possible mode_lib 5168 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c || (mode_lib->vba.WhenToDoMPCCombine == dm_mpc_reduce_voltage_and_clocks mode_lib 5180 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.ImmediateFlipSupport = mode_lib 5181 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c locals->ImmediateFlipSupportedForState[mode_lib->vba.VoltageLevel][MaximumMPCCombine]; mode_lib 5182 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) { mode_lib 5183 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.DPPPerPlane[k] = locals->NoOfDPP[mode_lib->vba.VoltageLevel][MaximumMPCCombine][k]; mode_lib 5184 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c locals->DPPCLK[k] = locals->RequiredDPPCLK[mode_lib->vba.VoltageLevel][MaximumMPCCombine][k]; mode_lib 5186 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.DISPCLK = locals->RequiredDISPCLK[mode_lib->vba.VoltageLevel][MaximumMPCCombine]; mode_lib 5187 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.maxMpcComb = MaximumMPCCombine; mode_lib 5189 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.DCFCLK = mode_lib->vba.DCFCLKPerState[mode_lib->vba.VoltageLevel]; mode_lib 5190 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.DRAMSpeed = mode_lib->vba.DRAMSpeedPerState[mode_lib->vba.VoltageLevel]; mode_lib 5191 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.FabricClock = mode_lib->vba.FabricClockPerState[mode_lib->vba.VoltageLevel]; mode_lib 5192 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.SOCCLK = mode_lib->vba.SOCCLKPerState[mode_lib->vba.VoltageLevel]; mode_lib 5193 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.ReturnBW = locals->ReturnBWPerState[mode_lib->vba.VoltageLevel]; mode_lib 5194 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c for (k = 0; k <= mode_lib->vba.NumberOfActivePlanes - 1; k++) { mode_lib 5195 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c if (mode_lib->vba.BlendingAndTiming[k] == k) { mode_lib 5196 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.ODMCombineEnabled[k] = mode_lib 5197 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c locals->ODMCombineEnablePerState[mode_lib->vba.VoltageLevel][k]; mode_lib 5199 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.ODMCombineEnabled[k] = 0; mode_lib 5201 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.DSCEnabled[k] = mode_lib 5202 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c locals->RequiresDSC[mode_lib->vba.VoltageLevel][k]; mode_lib 5203 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.OutputBpp[k] = mode_lib 5204 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c locals->OutputBppPerState[mode_lib->vba.VoltageLevel][k]; mode_lib 5209 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c struct display_mode_lib *mode_lib, mode_lib 5287 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.TotalActiveDPP = 0; mode_lib 5288 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.TotalDCCActiveDPP = 0; mode_lib 5290 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.TotalActiveDPP = mode_lib->vba.TotalActiveDPP + DPPPerPlane[k]; mode_lib 5292 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.TotalDCCActiveDPP = mode_lib->vba.TotalDCCActiveDPP + DPPPerPlane[k]; mode_lib 5296 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.TotalDataReadBandwidth = 0; mode_lib 5298 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.TotalDataReadBandwidth = mode_lib->vba.TotalDataReadBandwidth mode_lib 5306 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.TotalActiveWriteback = 0; mode_lib 5309 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.TotalActiveWriteback = mode_lib->vba.TotalActiveWriteback + 1; mode_lib 5313 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c if (mode_lib->vba.TotalActiveWriteback <= 1) { mode_lib 5320 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c if (mode_lib->vba.TotalActiveWriteback <= 1) { mode_lib 5329 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.LBLatencyHidingSourceLinesY = dml_min((double) MaxLineBufferLines, mode_lib 5333 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.LBLatencyHidingSourceLinesC = dml_min((double) MaxLineBufferLines, mode_lib 5337 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c EffectiveLBLatencyHidingY = mode_lib->vba.LBLatencyHidingSourceLinesY / VRatio[k] mode_lib 5340 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c EffectiveLBLatencyHidingC = mode_lib->vba.LBLatencyHidingSourceLinesC mode_lib 5398 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.ActiveDRAMClockChangeLatencyMargin[k] = dml_min( mode_lib 5402 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.ActiveDRAMClockChangeLatencyMargin[k] = ActiveDRAMClockChangeLatencyMarginY; mode_lib 5418 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.ActiveDRAMClockChangeLatencyMargin[k] = dml_min( mode_lib 5419 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.ActiveDRAMClockChangeLatencyMargin[k], mode_lib 5424 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.MinActiveDRAMClockChangeMargin = 999999; mode_lib 5427 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c if (mode_lib->vba.ActiveDRAMClockChangeLatencyMargin[k] mode_lib 5428 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c < mode_lib->vba.MinActiveDRAMClockChangeMargin) { mode_lib 5429 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.MinActiveDRAMClockChangeMargin = mode_lib 5430 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.ActiveDRAMClockChangeLatencyMargin[k]; mode_lib 5443 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c *MinActiveDRAMClockChangeLatencySupported = mode_lib->vba.MinActiveDRAMClockChangeMargin + DRAMClockChangeLatency; mode_lib 5449 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c && mode_lib->vba.ActiveDRAMClockChangeLatencyMargin[k] mode_lib 5452 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.ActiveDRAMClockChangeLatencyMargin[k]; mode_lib 5456 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.TotalNumberOfActiveOTG = 0; mode_lib 5459 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.TotalNumberOfActiveOTG = mode_lib->vba.TotalNumberOfActiveOTG + 1; mode_lib 5463 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c if (mode_lib->vba.MinActiveDRAMClockChangeMargin > 0) { mode_lib 5465 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c } else if (((mode_lib->vba.SynchronizedVBlank == true mode_lib 5466 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c || mode_lib->vba.TotalNumberOfActiveOTG == 1 mode_lib 5483 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c *StutterExitWatermark = SRExitTime + mode_lib->vba.LastPixelOfLineExtraWatermark mode_lib 5486 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c SREnterPlusExitTime + mode_lib->vba.LastPixelOfLineExtraWatermark mode_lib 5493 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c struct display_mode_lib *mode_lib, mode_lib 5533 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.DCFCLKDeepSleepPerPlane[k] = dml_max( mode_lib 5540 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.DCFCLKDeepSleepPerPlane[k] = 1.1 * SwathWidthY[k] mode_lib 5544 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.DCFCLKDeepSleepPerPlane[k] = dml_max( mode_lib 5545 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.DCFCLKDeepSleepPerPlane[k], mode_lib 5554 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.c mode_lib->vba.DCFCLKDeepSleepPerPlane[k]); mode_lib 29 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.h void dml21_recalculate(struct display_mode_lib *mode_lib); mode_lib 30 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_mode_vba_21.h void dml21_ModeSupportAndSystemConfigurationFull(struct display_mode_lib *mode_lib); mode_lib 43 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_rq_dlg_calc_21.c struct display_mode_lib *mode_lib, mode_lib 95 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_rq_dlg_calc_21.c struct display_mode_lib *mode_lib, mode_lib 143 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_rq_dlg_calc_21.c struct display_mode_lib *mode_lib, mode_lib 148 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_rq_dlg_calc_21.c print__data_rq_sizing_params_st(mode_lib, rq_sizing); mode_lib 168 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_rq_dlg_calc_21.c struct display_mode_lib *mode_lib, mode_lib 172 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_rq_dlg_calc_21.c unsigned int detile_buf_size_in_bytes = mode_lib->ip.det_buffer_size_kbytes * 1024; mode_lib 175 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_rq_dlg_calc_21.c extract_rq_sizing_regs(mode_lib, &(rq_regs->rq_regs_l), rq_param.sizing.rq_l); mode_lib 182 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_rq_dlg_calc_21.c extract_rq_sizing_regs(mode_lib, &(rq_regs->rq_regs_c), rq_param.sizing.rq_c); mode_lib 217 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_rq_dlg_calc_21.c struct display_mode_lib *mode_lib, mode_lib 232 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_rq_dlg_calc_21.c unsigned int detile_buf_size_in_bytes = mode_lib->ip.det_buffer_size_kbytes * 1024; mode_lib 304 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_rq_dlg_calc_21.c struct display_mode_lib *mode_lib, mode_lib 369 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_rq_dlg_calc_21.c const unsigned int log2_vmpg_bytes = dml_log2(mode_lib->soc.vmm_page_size_bytes); mode_lib 371 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_rq_dlg_calc_21.c mode_lib->ip.dpte_buffer_size_in_pte_reqs_luma + mode_lib->ip.dpte_buffer_size_in_pte_reqs_chroma; mode_lib 373 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_rq_dlg_calc_21.c mode_lib->ip.pde_proc_buffer_size_64k_reqs; mode_lib 514 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_rq_dlg_calc_21.c vmpg_bytes = mode_lib->soc.vmm_page_size_bytes; mode_lib 676 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_rq_dlg_calc_21.c struct display_mode_lib *mode_lib, mode_lib 746 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_rq_dlg_calc_21.c mode_lib, mode_lib 763 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_rq_dlg_calc_21.c struct display_mode_lib *mode_lib, mode_lib 773 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_rq_dlg_calc_21.c mode_lib, mode_lib 783 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_rq_dlg_calc_21.c mode_lib, mode_lib 792 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_rq_dlg_calc_21.c handle_det_buf_split(mode_lib, rq_param, pipe_param.src); mode_lib 793 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_rq_dlg_calc_21.c print__rq_params_st(mode_lib, *rq_param); mode_lib 797 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_rq_dlg_calc_21.c struct display_mode_lib *mode_lib, mode_lib 804 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_rq_dlg_calc_21.c dml_rq_dlg_get_rq_params(mode_lib, &rq_param, pipe_param); mode_lib 805 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_rq_dlg_calc_21.c extract_rq_regs(mode_lib, rq_regs, rq_param); mode_lib 807 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_rq_dlg_calc_21.c print__rq_regs_st(mode_lib, *rq_regs); mode_lib 813 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_rq_dlg_calc_21.c struct display_mode_lib *mode_lib, mode_lib 840 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_rq_dlg_calc_21.c unsigned int min_vblank = mode_lib->ip.min_vblank_lines; mode_lib 973 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_rq_dlg_calc_21.c t_calc_us = get_tcalc(mode_lib, e2e_pipe_param, num_pipes); mode_lib 974 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_rq_dlg_calc_21.c min_ttu_vblank = get_min_ttu_vblank(mode_lib, e2e_pipe_param, num_pipes, pipe_idx); mode_lib 1044 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_rq_dlg_calc_21.c dppclk_delay_subtotal = mode_lib->ip.dppclk_delay_subtotal; mode_lib 1045 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_rq_dlg_calc_21.c dispclk_delay_subtotal = mode_lib->ip.dispclk_delay_subtotal; mode_lib 1048 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_rq_dlg_calc_21.c dppclk_delay_subtotal += mode_lib->ip.dppclk_delay_scl; mode_lib 1050 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_rq_dlg_calc_21.c dppclk_delay_subtotal += mode_lib->ip.dppclk_delay_scl_lb_only; mode_lib 1052 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_rq_dlg_calc_21.c dppclk_delay_subtotal += mode_lib->ip.dppclk_delay_cnvc_formatter mode_lib 1053 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_rq_dlg_calc_21.c + src->num_cursors * mode_lib->ip.dppclk_delay_cnvc_cursor; mode_lib 1056 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_rq_dlg_calc_21.c double dsc_delay = get_dsc_delay(mode_lib, e2e_pipe_param, num_pipes, pipe_idx); mode_lib 1105 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_rq_dlg_calc_21.c dst_x_after_scaler = get_dst_x_after_scaler(mode_lib, e2e_pipe_param, num_pipes, pipe_idx); mode_lib 1106 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_rq_dlg_calc_21.c dst_y_after_scaler = get_dst_y_after_scaler(mode_lib, e2e_pipe_param, num_pipes, pipe_idx); mode_lib 1124 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_rq_dlg_calc_21.c line_wait = mode_lib->soc.urgent_latency_pixel_data_only_us; mode_lib 1126 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_rq_dlg_calc_21.c line_wait = dml_max(mode_lib->soc.sr_enter_plus_exit_time_us, line_wait); mode_lib 1129 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_rq_dlg_calc_21.c mode_lib->soc.dram_clock_change_latency_us mode_lib 1130 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_rq_dlg_calc_21.c + mode_lib->soc.urgent_latency_pixel_data_only_us, // TODO: Should this be urgent_latency_pixel_mixed_with_vm_data_us? mode_lib 1134 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_rq_dlg_calc_21.c dst_y_prefetch = get_dst_y_prefetch(mode_lib, e2e_pipe_param, num_pipes, pipe_idx); mode_lib 1138 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_rq_dlg_calc_21.c mode_lib, mode_lib 1143 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_rq_dlg_calc_21.c mode_lib, mode_lib 1147 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_rq_dlg_calc_21.c dst_y_per_vm_flip = get_dst_y_per_vm_flip(mode_lib, e2e_pipe_param, num_pipes, pipe_idx); mode_lib 1148 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_rq_dlg_calc_21.c dst_y_per_row_flip = get_dst_y_per_row_flip(mode_lib, e2e_pipe_param, num_pipes, pipe_idx); mode_lib 1173 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_rq_dlg_calc_21.c vratio_pre_l = get_vratio_prefetch_l(mode_lib, e2e_pipe_param, num_pipes, pipe_idx); mode_lib 1174 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_rq_dlg_calc_21.c vratio_pre_c = get_vratio_prefetch_c(mode_lib, e2e_pipe_param, num_pipes, pipe_idx); mode_lib 1263 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_rq_dlg_calc_21.c mode_lib, mode_lib 1275 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_rq_dlg_calc_21.c mode_lib, mode_lib 1302 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_rq_dlg_calc_21.c mode_lib, mode_lib 1314 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_rq_dlg_calc_21.c mode_lib, mode_lib 1345 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_rq_dlg_calc_21.c mode_lib, mode_lib 1356 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_rq_dlg_calc_21.c mode_lib, mode_lib 1381 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_rq_dlg_calc_21.c mode_lib, mode_lib 1392 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_rq_dlg_calc_21.c mode_lib, mode_lib 1417 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_rq_dlg_calc_21.c xfc_transfer_delay = get_xfc_transfer_delay(mode_lib, e2e_pipe_param, num_pipes, pipe_idx); mode_lib 1419 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_rq_dlg_calc_21.c mode_lib, mode_lib 1424 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_rq_dlg_calc_21.c mode_lib, mode_lib 1430 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_rq_dlg_calc_21.c mode_lib, mode_lib 1440 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_rq_dlg_calc_21.c mode_lib, mode_lib 1457 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_rq_dlg_calc_21.c mode_lib, mode_lib 1524 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_rq_dlg_calc_21.c disp_dlg_regs->refcyc_per_vm_group_vblank = get_refcyc_per_vm_group_vblank(mode_lib, e2e_pipe_param, num_pipes, pipe_idx) * refclk_freq_in_mhz; mode_lib 1525 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_rq_dlg_calc_21.c disp_dlg_regs->refcyc_per_vm_group_flip = get_refcyc_per_vm_group_flip(mode_lib, e2e_pipe_param, num_pipes, pipe_idx) * refclk_freq_in_mhz; mode_lib 1526 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_rq_dlg_calc_21.c disp_dlg_regs->refcyc_per_vm_req_vblank = get_refcyc_per_vm_req_vblank(mode_lib, e2e_pipe_param, num_pipes, pipe_idx) * refclk_freq_in_mhz;; mode_lib 1527 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_rq_dlg_calc_21.c disp_dlg_regs->refcyc_per_vm_req_flip = get_refcyc_per_vm_req_flip(mode_lib, e2e_pipe_param, num_pipes, pipe_idx) * refclk_freq_in_mhz;; mode_lib 1659 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_rq_dlg_calc_21.c print__ttu_regs_st(mode_lib, *disp_ttu_regs); mode_lib 1660 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_rq_dlg_calc_21.c print__dlg_regs_st(mode_lib, *disp_dlg_regs); mode_lib 1664 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_rq_dlg_calc_21.c struct display_mode_lib *mode_lib, mode_lib 1680 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_rq_dlg_calc_21.c dlg_sys_param.t_urg_wm_us = get_wm_urgent(mode_lib, e2e_pipe_param, num_pipes); mode_lib 1682 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_rq_dlg_calc_21.c mode_lib, mode_lib 1685 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_rq_dlg_calc_21.c dlg_sys_param.t_extra_us = get_urgent_extra_latency(mode_lib, e2e_pipe_param, num_pipes); mode_lib 1686 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_rq_dlg_calc_21.c dlg_sys_param.mem_trip_us = get_wm_memory_trip(mode_lib, e2e_pipe_param, num_pipes); mode_lib 1687 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_rq_dlg_calc_21.c dlg_sys_param.t_mclk_wm_us = get_wm_dram_clock_change(mode_lib, e2e_pipe_param, num_pipes); mode_lib 1688 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_rq_dlg_calc_21.c dlg_sys_param.t_sr_wm_us = get_wm_stutter_enter_exit(mode_lib, e2e_pipe_param, num_pipes); mode_lib 1690 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_rq_dlg_calc_21.c mode_lib, mode_lib 1694 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_rq_dlg_calc_21.c mode_lib, mode_lib 1697 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_rq_dlg_calc_21.c dlg_sys_param.t_srx_delay_us = mode_lib->ip.dcfclk_cstate_latency mode_lib 1700 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_rq_dlg_calc_21.c print__dlg_sys_params_st(mode_lib, dlg_sys_param); mode_lib 1705 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_rq_dlg_calc_21.c dml_rq_dlg_get_rq_params(mode_lib, &rq_param, e2e_pipe_param[pipe_idx].pipe); mode_lib 1707 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_rq_dlg_calc_21.c mode_lib, mode_lib 1720 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_rq_dlg_calc_21.c void dml_rq_dlg_get_arb_params(struct display_mode_lib *mode_lib, display_arb_params_st *arb_param) mode_lib 1729 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_rq_dlg_calc_21.c struct display_mode_lib *mode_lib, mode_lib 45 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_rq_dlg_calc_21.h struct display_mode_lib *mode_lib, mode_lib 61 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_rq_dlg_calc_21.h struct display_mode_lib *mode_lib, mode_lib 50 drivers/gpu/drm/amd/display/dc/dml/display_mode_lib.h struct display_mode_lib *mode_lib, mode_lib 62 drivers/gpu/drm/amd/display/dc/dml/display_mode_lib.h struct display_mode_lib *mode_lib, mode_lib 65 drivers/gpu/drm/amd/display/dc/dml/display_mode_lib.h void (*recalculate)(struct display_mode_lib *mode_lib); mode_lib 66 drivers/gpu/drm/amd/display/dc/dml/display_mode_lib.h void (*validate)(struct display_mode_lib *mode_lib); mode_lib 42 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c static void fetch_socbb_params(struct display_mode_lib *mode_lib); mode_lib 43 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c static void fetch_ip_params(struct display_mode_lib *mode_lib); mode_lib 44 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c static void fetch_pipe_params(struct display_mode_lib *mode_lib); mode_lib 46 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c struct display_mode_lib *mode_lib, mode_lib 53 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c struct display_mode_lib *mode_lib, mode_lib 57 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c bool need_recalculate = memcmp(&mode_lib->soc, &mode_lib->vba.soc, sizeof(mode_lib->vba.soc)) != 0 mode_lib 58 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c || memcmp(&mode_lib->ip, &mode_lib->vba.ip, sizeof(mode_lib->vba.ip)) != 0 mode_lib 59 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c || num_pipes != mode_lib->vba.cache_num_pipes mode_lib 60 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c || memcmp(pipes, mode_lib->vba.cache_pipes, mode_lib 63 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.soc = mode_lib->soc; mode_lib 64 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.ip = mode_lib->ip; mode_lib 65 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c memcpy(mode_lib->vba.cache_pipes, pipes, sizeof(*pipes) * num_pipes); mode_lib 66 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.cache_num_pipes = num_pipes; mode_lib 69 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->funcs.recalculate(mode_lib); mode_lib 71 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c fetch_socbb_params(mode_lib); mode_lib 72 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c fetch_ip_params(mode_lib); mode_lib 73 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c fetch_pipe_params(mode_lib); mode_lib 74 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c PixelClockAdjustmentForProgressiveToInterlaceUnit(mode_lib); mode_lib 76 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->funcs.validate(mode_lib); mode_lib 78 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c return mode_lib->vba.VoltageLevel; mode_lib 81 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c #define dml_get_attr_func(attr, var) double get_##attr(struct display_mode_lib *mode_lib, const display_e2e_pipe_params_st *pipes, unsigned int num_pipes) \ mode_lib 83 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c recalculate_params(mode_lib, pipes, num_pipes); \ mode_lib 87 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c dml_get_attr_func(clk_dcf_deepsleep, mode_lib->vba.DCFCLKDeepSleep); mode_lib 88 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c dml_get_attr_func(wm_urgent, mode_lib->vba.UrgentWatermark); mode_lib 89 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c dml_get_attr_func(wm_memory_trip, mode_lib->vba.UrgentLatency); mode_lib 90 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c dml_get_attr_func(wm_writeback_urgent, mode_lib->vba.WritebackUrgentWatermark); mode_lib 91 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c dml_get_attr_func(wm_stutter_exit, mode_lib->vba.StutterExitWatermark); mode_lib 92 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c dml_get_attr_func(wm_stutter_enter_exit, mode_lib->vba.StutterEnterPlusExitWatermark); mode_lib 93 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c dml_get_attr_func(wm_dram_clock_change, mode_lib->vba.DRAMClockChangeWatermark); mode_lib 94 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c dml_get_attr_func(wm_writeback_dram_clock_change, mode_lib->vba.WritebackDRAMClockChangeWatermark); mode_lib 95 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c dml_get_attr_func(wm_xfc_underflow, mode_lib->vba.UrgentWatermark); // xfc_underflow maps to urgent mode_lib 96 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c dml_get_attr_func(stutter_efficiency, mode_lib->vba.StutterEfficiency); mode_lib 97 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c dml_get_attr_func(stutter_efficiency_no_vblank, mode_lib->vba.StutterEfficiencyNotIncludingVBlank); mode_lib 98 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c dml_get_attr_func(urgent_latency, mode_lib->vba.UrgentLatency); mode_lib 99 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c dml_get_attr_func(urgent_extra_latency, mode_lib->vba.UrgentExtraLatency); mode_lib 100 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c dml_get_attr_func(nonurgent_latency, mode_lib->vba.NonUrgentLatencyTolerance); mode_lib 103 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.MinActiveDRAMClockChangeLatencySupported); mode_lib 104 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c dml_get_attr_func(dispclk_calculated, mode_lib->vba.DISPCLK_calculated); mode_lib 105 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c dml_get_attr_func(total_data_read_bw, mode_lib->vba.TotalDataReadBandwidth); mode_lib 106 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c dml_get_attr_func(return_bw, mode_lib->vba.ReturnBW); mode_lib 107 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c dml_get_attr_func(tcalc, mode_lib->vba.TCalc); mode_lib 108 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c dml_get_attr_func(fraction_of_urgent_bandwidth, mode_lib->vba.FractionOfUrgentBandwidth); mode_lib 109 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c dml_get_attr_func(fraction_of_urgent_bandwidth_imm_flip, mode_lib->vba.FractionOfUrgentBandwidthImmediateFlip); mode_lib 111 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c #define dml_get_pipe_attr_func(attr, var) double get_##attr(struct display_mode_lib *mode_lib, const display_e2e_pipe_params_st *pipes, unsigned int num_pipes, unsigned int which_pipe) \ mode_lib 114 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c recalculate_params(mode_lib, pipes, num_pipes); \ mode_lib 115 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c which_plane = mode_lib->vba.pipe_plane[which_pipe]; \ mode_lib 119 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c dml_get_pipe_attr_func(dsc_delay, mode_lib->vba.DSCDelay); mode_lib 120 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c dml_get_pipe_attr_func(dppclk_calculated, mode_lib->vba.DPPCLK_calculated); mode_lib 121 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c dml_get_pipe_attr_func(dscclk_calculated, mode_lib->vba.DSCCLK_calculated); mode_lib 122 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c dml_get_pipe_attr_func(min_ttu_vblank, mode_lib->vba.MinTTUVBlank); mode_lib 123 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c dml_get_pipe_attr_func(vratio_prefetch_l, mode_lib->vba.VRatioPrefetchY); mode_lib 124 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c dml_get_pipe_attr_func(vratio_prefetch_c, mode_lib->vba.VRatioPrefetchC); mode_lib 125 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c dml_get_pipe_attr_func(dst_x_after_scaler, mode_lib->vba.DSTXAfterScaler); mode_lib 126 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c dml_get_pipe_attr_func(dst_y_after_scaler, mode_lib->vba.DSTYAfterScaler); mode_lib 127 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c dml_get_pipe_attr_func(dst_y_per_vm_vblank, mode_lib->vba.DestinationLinesToRequestVMInVBlank); mode_lib 128 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c dml_get_pipe_attr_func(dst_y_per_row_vblank, mode_lib->vba.DestinationLinesToRequestRowInVBlank); mode_lib 129 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c dml_get_pipe_attr_func(dst_y_prefetch, mode_lib->vba.DestinationLinesForPrefetch); mode_lib 130 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c dml_get_pipe_attr_func(dst_y_per_vm_flip, mode_lib->vba.DestinationLinesToRequestVMInImmediateFlip); mode_lib 133 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.DestinationLinesToRequestRowInImmediateFlip); mode_lib 135 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c dml_get_pipe_attr_func(xfc_transfer_delay, mode_lib->vba.XFCTransferDelay); mode_lib 136 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c dml_get_pipe_attr_func(xfc_precharge_delay, mode_lib->vba.XFCPrechargeDelay); mode_lib 137 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c dml_get_pipe_attr_func(xfc_remote_surface_flip_latency, mode_lib->vba.XFCRemoteSurfaceFlipLatency); mode_lib 138 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c dml_get_pipe_attr_func(xfc_prefetch_margin, mode_lib->vba.XFCPrefetchMargin); mode_lib 139 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c dml_get_pipe_attr_func(refcyc_per_vm_group_vblank, mode_lib->vba.TimePerVMGroupVBlank); mode_lib 140 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c dml_get_pipe_attr_func(refcyc_per_vm_group_flip, mode_lib->vba.TimePerVMGroupFlip); mode_lib 141 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c dml_get_pipe_attr_func(refcyc_per_vm_req_vblank, mode_lib->vba.TimePerVMRequestVBlank); mode_lib 142 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c dml_get_pipe_attr_func(refcyc_per_vm_req_flip, mode_lib->vba.TimePerVMRequestFlip); mode_lib 145 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c struct display_mode_lib *mode_lib, mode_lib 152 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c recalculate_params(mode_lib, pipes, num_pipes); mode_lib 153 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c which_plane = mode_lib->vba.pipe_plane[which_pipe]; mode_lib 154 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c return mode_lib->vba.VStartup[which_plane]; mode_lib 158 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c struct display_mode_lib *mode_lib, mode_lib 162 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c recalculate_params(mode_lib, pipes, num_pipes); mode_lib 163 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c return mode_lib->vba.TotImmediateFlipBytes; mode_lib 167 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c struct display_mode_lib *mode_lib, mode_lib 173 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c recalculate_params(mode_lib, pipes, num_pipes); mode_lib 174 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) mode_lib 175 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c immediate_flip_bw += mode_lib->vba.ImmediateFlipBW[k]; mode_lib 180 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c struct display_mode_lib *mode_lib, mode_lib 187 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c recalculate_params(mode_lib, pipes, num_pipes); mode_lib 188 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) mode_lib 189 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c total_prefetch_bw += mode_lib->vba.PrefetchBandwidth[k]; mode_lib 193 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c static void fetch_socbb_params(struct display_mode_lib *mode_lib) mode_lib 195 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c soc_bounding_box_st *soc = &mode_lib->vba.soc; mode_lib 199 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.ReturnBusWidth = soc->return_bus_width_bytes; mode_lib 200 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.NumberOfChannels = soc->num_chans; mode_lib 201 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.PercentOfIdealDRAMFabricAndSDPPortBWReceivedAfterUrgLatencyPixelDataOnly = mode_lib 203 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.PercentOfIdealDRAMFabricAndSDPPortBWReceivedAfterUrgLatencyPixelMixedWithVMData = mode_lib 205 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.PercentOfIdealDRAMFabricAndSDPPortBWReceivedAfterUrgLatencyVMDataOnly = mode_lib 207 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.MaxAveragePercentOfIdealSDPPortBWDisplayCanUseInNormalSystemOperation = mode_lib 209 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.MaxAveragePercentOfIdealDRAMBWDisplayCanUseInNormalSystemOperation = mode_lib 211 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.UrgentLatencyPixelDataOnly = soc->urgent_latency_pixel_data_only_us; mode_lib 212 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.UrgentLatencyPixelMixedWithVMData = soc->urgent_latency_pixel_mixed_with_vm_data_us; mode_lib 213 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.UrgentLatencyVMDataOnly = soc->urgent_latency_vm_data_only_us; mode_lib 214 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.RoundTripPingLatencyCycles = soc->round_trip_ping_latency_dcfclk_cycles; mode_lib 215 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.UrgentOutOfOrderReturnPerChannelPixelDataOnly = mode_lib 217 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.UrgentOutOfOrderReturnPerChannelPixelMixedWithVMData = mode_lib 219 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.UrgentOutOfOrderReturnPerChannelVMDataOnly = mode_lib 221 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.WritebackLatency = soc->writeback_latency_us; mode_lib 222 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.SRExitTime = soc->sr_exit_time_us; mode_lib 223 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.SREnterPlusExitTime = soc->sr_enter_plus_exit_time_us; mode_lib 224 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.DRAMClockChangeLatency = soc->dram_clock_change_latency_us; mode_lib 225 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.Downspreading = soc->downspread_percent; mode_lib 226 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.DRAMChannelWidth = soc->dram_channel_width_bytes; // new! mode_lib 227 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.FabricDatapathToDCNDataReturn = soc->fabric_datapath_to_dcn_data_return_bytes; // new! mode_lib 228 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.DISPCLKDPPCLKDSCCLKDownSpreading = soc->dcn_downspread_percent; // new mode_lib 229 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.DISPCLKDPPCLKVCOSpeed = soc->dispclk_dppclk_vco_speed_mhz; // new mode_lib 230 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.VMMPageSize = soc->vmm_page_size_bytes; mode_lib 231 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.GPUVMMinPageSize = soc->vmm_page_size_bytes / 1024; mode_lib 232 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.HostVMMinPageSize = soc->hostvm_min_page_size_bytes / 1024; mode_lib 235 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c for (i = 0; i < mode_lib->vba.soc.num_states; i++) mode_lib 236 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c if (soc->clock_limits[i].state == mode_lib->vba.VoltageLevel) mode_lib 239 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.DCFCLK = soc->clock_limits[i].dcfclk_mhz; mode_lib 240 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.SOCCLK = soc->clock_limits[i].socclk_mhz; mode_lib 241 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.DRAMSpeed = soc->clock_limits[i].dram_speed_mts; mode_lib 242 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.FabricClock = soc->clock_limits[i].fabricclk_mhz; mode_lib 244 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.XFCBusTransportTime = soc->xfc_bus_transport_time_us; mode_lib 245 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.XFCXBUFLatencyTolerance = soc->xfc_xbuf_latency_tolerance_us; mode_lib 246 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.UseUrgentBurstBandwidth = soc->use_urgent_burst_bw; mode_lib 248 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.SupportGFX7CompatibleTilingIn32bppAnd64bpp = false; mode_lib 249 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.WritebackLumaAndChromaScalingSupported = true; mode_lib 250 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.MaxHSCLRatio = 4; mode_lib 251 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.MaxVSCLRatio = 4; mode_lib 252 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.Cursor64BppSupport = true; mode_lib 253 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c for (i = 0; i <= mode_lib->vba.soc.num_states; i++) { mode_lib 254 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.DCFCLKPerState[i] = soc->clock_limits[i].dcfclk_mhz; mode_lib 255 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.FabricClockPerState[i] = soc->clock_limits[i].fabricclk_mhz; mode_lib 256 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.SOCCLKPerState[i] = soc->clock_limits[i].socclk_mhz; mode_lib 257 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.PHYCLKPerState[i] = soc->clock_limits[i].phyclk_mhz; mode_lib 258 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.PHYCLKD18PerState[i] = soc->clock_limits[i].phyclk_d18_mhz; mode_lib 259 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.MaxDppclk[i] = soc->clock_limits[i].dppclk_mhz; mode_lib 260 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.MaxDSCCLK[i] = soc->clock_limits[i].dscclk_mhz; mode_lib 261 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.DRAMSpeedPerState[i] = soc->clock_limits[i].dram_speed_mts; mode_lib 263 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.MaxDispclk[i] = soc->clock_limits[i].dispclk_mhz; mode_lib 266 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.DoUrgentLatencyAdjustment = mode_lib 268 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.UrgentLatencyAdjustmentFabricClockComponent = mode_lib 270 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.UrgentLatencyAdjustmentFabricClockReference = mode_lib 274 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c static void fetch_ip_params(struct display_mode_lib *mode_lib) mode_lib 276 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c ip_params_st *ip = &mode_lib->vba.ip; mode_lib 279 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.MaxNumDPP = ip->max_num_dpp; mode_lib 280 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.MaxNumOTG = ip->max_num_otg; mode_lib 281 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.MaxNumHDMIFRLOutputs = ip->max_num_hdmi_frl_outputs; mode_lib 282 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.MaxNumWriteback = ip->max_num_wb; mode_lib 283 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.CursorChunkSize = ip->cursor_chunk_size; mode_lib 284 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.CursorBufferSize = ip->cursor_buffer_size; mode_lib 286 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.MaxDCHUBToPSCLThroughput = ip->max_dchub_pscl_bw_pix_per_clk; mode_lib 287 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.MaxPSCLToLBThroughput = ip->max_pscl_lb_bw_pix_per_clk; mode_lib 288 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.ROBBufferSizeInKByte = ip->rob_buffer_size_kbytes; mode_lib 289 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.DETBufferSizeInKByte = ip->det_buffer_size_kbytes; mode_lib 290 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.PixelChunkSizeInKByte = ip->pixel_chunk_size_kbytes; mode_lib 291 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.MetaChunkSize = ip->meta_chunk_size_kbytes; mode_lib 292 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.WritebackChunkSize = ip->writeback_chunk_size_kbytes; mode_lib 293 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.LineBufferSize = ip->line_buffer_size_bits; mode_lib 294 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.MaxLineBufferLines = ip->max_line_buffer_lines; mode_lib 295 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.PTEBufferSizeInRequestsLuma = ip->dpte_buffer_size_in_pte_reqs_luma; mode_lib 296 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.PTEBufferSizeInRequestsChroma = ip->dpte_buffer_size_in_pte_reqs_chroma; mode_lib 297 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.DPPOutputBufferPixels = ip->dpp_output_buffer_pixels; mode_lib 298 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.OPPOutputBufferLines = ip->opp_output_buffer_lines; mode_lib 299 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.MaxHSCLRatio = ip->max_hscl_ratio; mode_lib 300 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.MaxVSCLRatio = ip->max_vscl_ratio; mode_lib 301 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.WritebackInterfaceLumaBufferSize = ip->writeback_luma_buffer_size_kbytes * 1024; mode_lib 302 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.WritebackInterfaceChromaBufferSize = ip->writeback_chroma_buffer_size_kbytes * 1024; mode_lib 304 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.WritebackInterfaceBufferSize = ip->writeback_interface_buffer_size_kbytes; mode_lib 305 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.WritebackLineBufferSize = ip->writeback_line_buffer_buffer_size; mode_lib 306 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.MinVoltageLevel = 0; mode_lib 307 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.MaxVoltageLevel = 5; mode_lib 309 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.WritebackChromaLineBufferWidth = mode_lib 311 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.WritebackLineBufferLumaBufferSize = mode_lib 313 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.WritebackLineBufferChromaBufferSize = mode_lib 315 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.Writeback10bpc420Supported = ip->writeback_10bpc420_supported; mode_lib 316 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.WritebackMaxHSCLRatio = ip->writeback_max_hscl_ratio; mode_lib 317 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.WritebackMaxVSCLRatio = ip->writeback_max_vscl_ratio; mode_lib 318 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.WritebackMinHSCLRatio = ip->writeback_min_hscl_ratio; mode_lib 319 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.WritebackMinVSCLRatio = ip->writeback_min_vscl_ratio; mode_lib 320 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.WritebackMaxHSCLTaps = ip->writeback_max_hscl_taps; mode_lib 321 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.WritebackMaxVSCLTaps = ip->writeback_max_vscl_taps; mode_lib 322 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.WritebackConfiguration = dm_normal; mode_lib 323 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.GPUVMMaxPageTableLevels = ip->gpuvm_max_page_table_levels; mode_lib 324 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.HostVMMaxNonCachedPageTableLevels = ip->hostvm_max_page_table_levels; mode_lib 325 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.HostVMMaxPageTableLevels = ip->hostvm_max_page_table_levels; mode_lib 326 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.HostVMCachedPageTableLevels = ip->hostvm_cached_page_table_levels; mode_lib 327 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.MaxInterDCNTileRepeaters = ip->max_inter_dcn_tile_repeaters; mode_lib 328 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.NumberOfDSC = ip->num_dsc; mode_lib 329 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.ODMCapability = ip->odm_capable; mode_lib 330 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.DISPCLKRampingMargin = ip->dispclk_ramp_margin_percent; mode_lib 332 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.XFCSupported = ip->xfc_supported; mode_lib 333 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.XFCFillBWOverhead = ip->xfc_fill_bw_overhead_percent; mode_lib 334 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.XFCFillConstant = ip->xfc_fill_constant_bytes; mode_lib 335 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.DPPCLKDelaySubtotal = ip->dppclk_delay_subtotal; mode_lib 336 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.DPPCLKDelaySCL = ip->dppclk_delay_scl; mode_lib 337 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.DPPCLKDelaySCLLBOnly = ip->dppclk_delay_scl_lb_only; mode_lib 338 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.DPPCLKDelayCNVCFormater = ip->dppclk_delay_cnvc_formatter; mode_lib 339 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.DPPCLKDelayCNVCCursor = ip->dppclk_delay_cnvc_cursor; mode_lib 340 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.DISPCLKDelaySubtotal = ip->dispclk_delay_subtotal; mode_lib 341 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.DynamicMetadataVMEnabled = ip->dynamic_metadata_vm_enabled; mode_lib 342 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.ODMCombine4To1Supported = ip->odm_combine_4to1_supported; mode_lib 343 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.ProgressiveToInterlaceUnitInOPP = ip->ptoi_supported; mode_lib 344 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.PDEProcessingBufIn64KBReqs = ip->pde_proc_buffer_size_64k_reqs; mode_lib 345 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.PTEGroupSize = ip->pte_group_size_bytes; mode_lib 346 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.SupportGFX7CompatibleTilingIn32bppAnd64bpp = ip->gfx7_compat_tiling_supported; mode_lib 349 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c static void fetch_pipe_params(struct display_mode_lib *mode_lib) mode_lib 351 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c display_e2e_pipe_params_st *pipes = mode_lib->vba.cache_pipes; mode_lib 352 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c ip_params_st *ip = &mode_lib->vba.ip; mode_lib 360 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c for (k = 0; k < mode_lib->vba.cache_num_pipes; ++k) mode_lib 363 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.NumberOfActivePlanes = 0; mode_lib 364 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c for (j = 0; j < mode_lib->vba.cache_num_pipes; ++j) { mode_lib 376 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.pipe_plane[j] = mode_lib->vba.NumberOfActivePlanes; mode_lib 378 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.DPPPerPlane[mode_lib->vba.NumberOfActivePlanes] = 1; mode_lib 379 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.SourceScan[mode_lib->vba.NumberOfActivePlanes] = mode_lib 381 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.ViewportWidth[mode_lib->vba.NumberOfActivePlanes] = mode_lib 383 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.ViewportWidthChroma[mode_lib->vba.NumberOfActivePlanes] = mode_lib 385 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.ViewportHeight[mode_lib->vba.NumberOfActivePlanes] = mode_lib 387 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.ViewportHeightChroma[mode_lib->vba.NumberOfActivePlanes] = mode_lib 389 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.ViewportYStartY[mode_lib->vba.NumberOfActivePlanes] = mode_lib 391 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.ViewportYStartC[mode_lib->vba.NumberOfActivePlanes] = mode_lib 393 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.PitchY[mode_lib->vba.NumberOfActivePlanes] = src->data_pitch; mode_lib 394 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.SurfaceHeightY[mode_lib->vba.NumberOfActivePlanes] = src->viewport_height; mode_lib 395 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.SurfaceWidthY[mode_lib->vba.NumberOfActivePlanes] = src->viewport_width; mode_lib 396 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.PitchC[mode_lib->vba.NumberOfActivePlanes] = src->data_pitch_c; mode_lib 397 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.SurfaceHeightC[mode_lib->vba.NumberOfActivePlanes] = src->viewport_height_c; mode_lib 398 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.SurfaceWidthC[mode_lib->vba.NumberOfActivePlanes] = src->viewport_width_c; mode_lib 399 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.DCCMetaPitchY[mode_lib->vba.NumberOfActivePlanes] = src->meta_pitch; mode_lib 400 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.DCCMetaPitchC[mode_lib->vba.NumberOfActivePlanes] = src->meta_pitch_c; mode_lib 401 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.HRatio[mode_lib->vba.NumberOfActivePlanes] = scl->hscl_ratio; mode_lib 402 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.HRatioChroma[mode_lib->vba.NumberOfActivePlanes] = scl->hscl_ratio_c; mode_lib 403 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.VRatio[mode_lib->vba.NumberOfActivePlanes] = scl->vscl_ratio; mode_lib 404 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.VRatioChroma[mode_lib->vba.NumberOfActivePlanes] = scl->vscl_ratio_c; mode_lib 405 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.ScalerEnabled[mode_lib->vba.NumberOfActivePlanes] = scl->scl_enable; mode_lib 406 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.Interlace[mode_lib->vba.NumberOfActivePlanes] = dst->interlaced; mode_lib 408 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.VRatio[mode_lib->vba.NumberOfActivePlanes] *= 2.0; mode_lib 409 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.VRatioChroma[mode_lib->vba.NumberOfActivePlanes] *= 2.0; mode_lib 411 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.htaps[mode_lib->vba.NumberOfActivePlanes] = taps->htaps; mode_lib 412 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.vtaps[mode_lib->vba.NumberOfActivePlanes] = taps->vtaps; mode_lib 413 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.HTAPsChroma[mode_lib->vba.NumberOfActivePlanes] = taps->htaps_c; mode_lib 414 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.VTAPsChroma[mode_lib->vba.NumberOfActivePlanes] = taps->vtaps_c; mode_lib 415 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.HTotal[mode_lib->vba.NumberOfActivePlanes] = dst->htotal; mode_lib 416 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.VTotal[mode_lib->vba.NumberOfActivePlanes] = dst->vtotal; mode_lib 417 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.DCCEnable[mode_lib->vba.NumberOfActivePlanes] = mode_lib 420 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.DCCRate[mode_lib->vba.NumberOfActivePlanes] = src->dcc_rate; mode_lib 422 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.DCCRateLuma[mode_lib->vba.NumberOfActivePlanes] = 0; mode_lib 423 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.DCCRateChroma[mode_lib->vba.NumberOfActivePlanes] = 0; mode_lib 425 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.SourcePixelFormat[mode_lib->vba.NumberOfActivePlanes] = mode_lib 427 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.HActive[mode_lib->vba.NumberOfActivePlanes] = dst->hactive; mode_lib 428 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.VActive[mode_lib->vba.NumberOfActivePlanes] = dst->vactive; mode_lib 429 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.SurfaceTiling[mode_lib->vba.NumberOfActivePlanes] = mode_lib 431 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.ScalerRecoutWidth[mode_lib->vba.NumberOfActivePlanes] = mode_lib 433 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.ODMCombineEnabled[mode_lib->vba.NumberOfActivePlanes] = mode_lib 435 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.OutputFormat[mode_lib->vba.NumberOfActivePlanes] = mode_lib 437 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.Output[mode_lib->vba.NumberOfActivePlanes] = mode_lib 441 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.ForcedOutputLinkBPP[mode_lib->vba.NumberOfActivePlanes] = dout->output_bpp; mode_lib 443 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.ForcedOutputLinkBPP[mode_lib->vba.NumberOfActivePlanes] = 0.0; mode_lib 445 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.OutputLinkDPLanes[mode_lib->vba.NumberOfActivePlanes] = mode_lib 448 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.AudioSampleRate[mode_lib->vba.NumberOfActivePlanes] = mode_lib 450 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.AudioSampleLayout[mode_lib->vba.NumberOfActivePlanes] = mode_lib 452 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.DRAMClockChangeLatencyOverride = 0.0; mode_lib 453 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.DSCEnabled[mode_lib->vba.NumberOfActivePlanes] = dout->dsc_enable; mode_lib 454 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.NumberOfDSCSlices[mode_lib->vba.NumberOfActivePlanes] = mode_lib 456 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.DSCInputBitPerComponent[mode_lib->vba.NumberOfActivePlanes] = mode_lib 458 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.WritebackEnable[mode_lib->vba.NumberOfActivePlanes] = dout->wb_enable; mode_lib 459 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.ActiveWritebacksPerPlane[mode_lib->vba.NumberOfActivePlanes] = mode_lib 461 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.WritebackSourceHeight[mode_lib->vba.NumberOfActivePlanes] = mode_lib 463 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.WritebackSourceWidth[mode_lib->vba.NumberOfActivePlanes] = mode_lib 465 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.WritebackDestinationWidth[mode_lib->vba.NumberOfActivePlanes] = mode_lib 467 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.WritebackDestinationHeight[mode_lib->vba.NumberOfActivePlanes] = mode_lib 469 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.WritebackHRatio[mode_lib->vba.NumberOfActivePlanes] = mode_lib 471 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.WritebackVRatio[mode_lib->vba.NumberOfActivePlanes] = mode_lib 473 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.WritebackPixelFormat[mode_lib->vba.NumberOfActivePlanes] = mode_lib 475 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.WritebackHTaps[mode_lib->vba.NumberOfActivePlanes] = mode_lib 477 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.WritebackVTaps[mode_lib->vba.NumberOfActivePlanes] = mode_lib 479 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.WritebackLumaHTaps[mode_lib->vba.NumberOfActivePlanes] = mode_lib 481 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.WritebackLumaVTaps[mode_lib->vba.NumberOfActivePlanes] = mode_lib 483 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.WritebackChromaHTaps[mode_lib->vba.NumberOfActivePlanes] = mode_lib 485 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.WritebackChromaVTaps[mode_lib->vba.NumberOfActivePlanes] = mode_lib 487 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.WritebackHRatio[mode_lib->vba.NumberOfActivePlanes] = mode_lib 489 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.WritebackVRatio[mode_lib->vba.NumberOfActivePlanes] = mode_lib 492 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.DynamicMetadataEnable[mode_lib->vba.NumberOfActivePlanes] = mode_lib 494 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.DynamicMetadataLinesBeforeActiveRequired[mode_lib->vba.NumberOfActivePlanes] = mode_lib 496 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.DynamicMetadataTransmittedBytes[mode_lib->vba.NumberOfActivePlanes] = mode_lib 499 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.XFCEnabled[mode_lib->vba.NumberOfActivePlanes] = src->xfc_enable mode_lib 501 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.XFCSlvChunkSize = src->xfc_params.xfc_slv_chunk_size_bytes; mode_lib 502 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.XFCTSlvVupdateOffset = src->xfc_params.xfc_tslv_vupdate_offset_us; mode_lib 503 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.XFCTSlvVupdateWidth = src->xfc_params.xfc_tslv_vupdate_width_us; mode_lib 504 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.XFCTSlvVreadyOffset = src->xfc_params.xfc_tslv_vready_offset_us; mode_lib 505 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.PixelClock[mode_lib->vba.NumberOfActivePlanes] = dst->pixel_rate_mhz; mode_lib 506 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.PixelClockBackEnd[mode_lib->vba.NumberOfActivePlanes] = dst->pixel_rate_mhz; mode_lib 507 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.DPPCLK[mode_lib->vba.NumberOfActivePlanes] = clks->dppclk_mhz; mode_lib 509 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.LBBitPerPixel[mode_lib->vba.NumberOfActivePlanes] = mode_lib 536 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.LBBitPerPixel[mode_lib->vba.NumberOfActivePlanes] = lb_depth; mode_lib 538 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.NumberOfCursors[mode_lib->vba.NumberOfActivePlanes] = 0; mode_lib 544 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.CursorBPP[mode_lib->vba.NumberOfActivePlanes][0] = mode_lib 547 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.CursorWidth[mode_lib->vba.NumberOfActivePlanes][0] = mode_lib 550 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.NumberOfCursors[mode_lib->vba.NumberOfActivePlanes]++; mode_lib 553 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.CursorBPP[mode_lib->vba.NumberOfActivePlanes][1] = mode_lib 556 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.CursorWidth[mode_lib->vba.NumberOfActivePlanes][1] = mode_lib 559 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.NumberOfCursors[mode_lib->vba.NumberOfActivePlanes]++; mode_lib 568 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c OTGInstPlane[mode_lib->vba.NumberOfActivePlanes] = dst->otg_inst; mode_lib 571 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.UseMaximumVStartup = dst->use_maximum_vstartup; mode_lib 573 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.UseMaximumVStartup = mode_lib->vba.UseMaximumVStartup mode_lib 582 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c for (k = j + 1; k < mode_lib->vba.cache_num_pipes; ++k) { mode_lib 588 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.pipe_plane[k] = mode_lib 589 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.NumberOfActivePlanes; mode_lib 590 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.DPPPerPlane[mode_lib->vba.NumberOfActivePlanes]++; mode_lib 591 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c if (mode_lib->vba.SourceScan[mode_lib->vba.NumberOfActivePlanes] mode_lib 593 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.ViewportWidth[mode_lib->vba.NumberOfActivePlanes] += mode_lib 595 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.ScalerRecoutWidth[mode_lib->vba.NumberOfActivePlanes] += mode_lib 598 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.ViewportHeight[mode_lib->vba.NumberOfActivePlanes] += mode_lib 608 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.ImmediateFlipSupport = true; mode_lib 610 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.NumberOfActivePlanes++; mode_lib 616 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c for (j = 0; j < mode_lib->vba.NumberOfActivePlanes; ++j) mode_lib 619 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c for (j = 0; j < mode_lib->vba.NumberOfActivePlanes; ++j) { mode_lib 620 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c for (k = j + 1; k < mode_lib->vba.NumberOfActivePlanes; ++k) { mode_lib 623 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.BlendingAndTiming[j] = j; mode_lib 625 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.BlendingAndTiming[k] = j; mode_lib 631 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.BlendingAndTiming[j] = j; mode_lib 639 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.SynchronizedVBlank = pipes[0].pipe.dest.synchronized_vblank_all_planes; mode_lib 640 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c for (k = 1; k < mode_lib->vba.cache_num_pipes; ++k) mode_lib 641 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c ASSERT(mode_lib->vba.SynchronizedVBlank == pipes[k].pipe.dest.synchronized_vblank_all_planes); mode_lib 643 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.GPUVMEnable = false; mode_lib 644 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.HostVMEnable = false; mode_lib 645 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.OverrideGPUVMPageTableLevels = 0; mode_lib 646 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.OverrideHostVMPageTableLevels = 0; mode_lib 648 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c for (k = 0; k < mode_lib->vba.cache_num_pipes; ++k) { mode_lib 649 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.GPUVMEnable = mode_lib->vba.GPUVMEnable || !!pipes[k].pipe.src.gpuvm || !!pipes[k].pipe.src.vm; mode_lib 650 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.OverrideGPUVMPageTableLevels = mode_lib 652 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c && mode_lib->vba.OverrideGPUVMPageTableLevels mode_lib 655 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.OverrideGPUVMPageTableLevels; mode_lib 657 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.HostVMEnable = mode_lib->vba.HostVMEnable || !!pipes[k].pipe.src.hostvm || !!pipes[k].pipe.src.vm; mode_lib 658 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.OverrideHostVMPageTableLevels = mode_lib 660 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c && mode_lib->vba.OverrideHostVMPageTableLevels mode_lib 663 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.OverrideHostVMPageTableLevels; mode_lib 666 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.AllowDRAMSelfRefreshOrDRAMClockChangeInVblank = dm_try_to_allow_self_refresh_and_mclk_switch; mode_lib 668 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c if (mode_lib->vba.OverrideGPUVMPageTableLevels) mode_lib 669 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.GPUVMMaxPageTableLevels = mode_lib->vba.OverrideGPUVMPageTableLevels; mode_lib 671 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c if (mode_lib->vba.OverrideHostVMPageTableLevels) mode_lib 672 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.HostVMMaxPageTableLevels = mode_lib->vba.OverrideHostVMPageTableLevels; mode_lib 674 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.GPUVMEnable = mode_lib->vba.GPUVMEnable && !!ip->gpuvm_enable; mode_lib 675 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.HostVMEnable = mode_lib->vba.HostVMEnable && !!ip->hostvm_enable; mode_lib 681 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c struct display_mode_lib *mode_lib, mode_lib 686 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c if (memcmp(&mode_lib->soc, &mode_lib->vba.soc, sizeof(mode_lib->vba.soc)) != 0 mode_lib 687 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c || memcmp(&mode_lib->ip, &mode_lib->vba.ip, sizeof(mode_lib->vba.ip)) != 0 mode_lib 688 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c || num_pipes != mode_lib->vba.cache_num_pipes mode_lib 691 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.cache_pipes, mode_lib 693 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.soc = mode_lib->soc; mode_lib 694 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.ip = mode_lib->ip; mode_lib 695 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c memcpy(mode_lib->vba.cache_pipes, pipes, sizeof(*pipes) * num_pipes); mode_lib 696 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.cache_num_pipes = num_pipes; mode_lib 697 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->funcs.recalculate(mode_lib); mode_lib 772 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c void PixelClockAdjustmentForProgressiveToInterlaceUnit(struct display_mode_lib *mode_lib) mode_lib 777 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) { mode_lib 778 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c if (mode_lib->vba.Interlace[k] == 1 mode_lib 779 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c && mode_lib->vba.ProgressiveToInterlaceUnitInOPP == true) { mode_lib 780 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.PixelClock[k] = 2 * mode_lib->vba.PixelClockBackEnd[k]; mode_lib 799 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c void ModeSupportAndSystemConfiguration(struct display_mode_lib *mode_lib) mode_lib 801 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c soc_bounding_box_st *soc = &mode_lib->vba.soc; mode_lib 805 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.VoltageLevel = mode_lib->vba.cache_pipes[0].clks_cfg.voltage; mode_lib 806 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.ReturnBW = mode_lib->vba.ReturnBWPerState[mode_lib->vba.VoltageLevel]; mode_lib 807 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.FabricAndDRAMBandwidth = mode_lib->vba.FabricAndDRAMBandwidthPerState[mode_lib->vba.VoltageLevel]; mode_lib 809 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c fetch_socbb_params(mode_lib); mode_lib 810 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c fetch_ip_params(mode_lib); mode_lib 811 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c fetch_pipe_params(mode_lib); mode_lib 813 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.DCFCLK = mode_lib->vba.cache_pipes[0].clks_cfg.dcfclk_mhz; mode_lib 814 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.SOCCLK = mode_lib->vba.cache_pipes[0].clks_cfg.socclk_mhz; mode_lib 815 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c if (mode_lib->vba.cache_pipes[0].clks_cfg.dispclk_mhz > 0.0) mode_lib 816 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.DISPCLK = mode_lib->vba.cache_pipes[0].clks_cfg.dispclk_mhz; mode_lib 818 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c mode_lib->vba.DISPCLK = soc->clock_limits[mode_lib->vba.VoltageLevel].dispclk_mhz; mode_lib 821 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c for (k = 0; k < mode_lib->vba.NumberOfActivePlanes; ++k) mode_lib 822 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c total_pipes += mode_lib->vba.DPPPerPlane[k]; mode_lib 35 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.h void ModeSupportAndSystemConfiguration(struct display_mode_lib *mode_lib); mode_lib 37 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.h #define dml_get_attr_decl(attr) double get_##attr(struct display_mode_lib *mode_lib, const display_e2e_pipe_params_st *pipes, unsigned int num_pipes) mode_lib 61 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.h #define dml_get_pipe_attr_decl(attr) double get_##attr(struct display_mode_lib *mode_lib, const display_e2e_pipe_params_st *pipes, unsigned int num_pipes, unsigned int which_pipe) mode_lib 86 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.h struct display_mode_lib *mode_lib, mode_lib 92 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.h struct display_mode_lib *mode_lib, mode_lib 96 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.h struct display_mode_lib *mode_lib, mode_lib 100 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.h struct display_mode_lib *mode_lib, mode_lib 104 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.h struct display_mode_lib *mode_lib, mode_lib 108 drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.h void PixelClockAdjustmentForProgressiveToInterlaceUnit(struct display_mode_lib *mode_lib); mode_lib 29 drivers/gpu/drm/amd/display/dc/dml/display_rq_dlg_helpers.c void print__rq_params_st(struct display_mode_lib *mode_lib, display_rq_params_st rq_param) mode_lib 34 drivers/gpu/drm/amd/display/dc/dml/display_rq_dlg_helpers.c print__data_rq_sizing_params_st(mode_lib, rq_param.sizing.rq_l); mode_lib 36 drivers/gpu/drm/amd/display/dc/dml/display_rq_dlg_helpers.c print__data_rq_sizing_params_st(mode_lib, rq_param.sizing.rq_c); mode_lib 39 drivers/gpu/drm/amd/display/dc/dml/display_rq_dlg_helpers.c print__data_rq_dlg_params_st(mode_lib, rq_param.dlg.rq_l); mode_lib 41 drivers/gpu/drm/amd/display/dc/dml/display_rq_dlg_helpers.c print__data_rq_dlg_params_st(mode_lib, rq_param.dlg.rq_c); mode_lib 44 drivers/gpu/drm/amd/display/dc/dml/display_rq_dlg_helpers.c print__data_rq_misc_params_st(mode_lib, rq_param.misc.rq_l); mode_lib 46 drivers/gpu/drm/amd/display/dc/dml/display_rq_dlg_helpers.c print__data_rq_misc_params_st(mode_lib, rq_param.misc.rq_c); mode_lib 50 drivers/gpu/drm/amd/display/dc/dml/display_rq_dlg_helpers.c void print__data_rq_sizing_params_st(struct display_mode_lib *mode_lib, display_data_rq_sizing_params_st rq_sizing) mode_lib 65 drivers/gpu/drm/amd/display/dc/dml/display_rq_dlg_helpers.c void print__data_rq_dlg_params_st(struct display_mode_lib *mode_lib, display_data_rq_dlg_params_st rq_dlg_param) mode_lib 108 drivers/gpu/drm/amd/display/dc/dml/display_rq_dlg_helpers.c void print__data_rq_misc_params_st(struct display_mode_lib *mode_lib, display_data_rq_misc_params_st rq_misc_param) mode_lib 125 drivers/gpu/drm/amd/display/dc/dml/display_rq_dlg_helpers.c void print__rq_dlg_params_st(struct display_mode_lib *mode_lib, display_rq_dlg_params_st rq_dlg_param) mode_lib 130 drivers/gpu/drm/amd/display/dc/dml/display_rq_dlg_helpers.c print__data_rq_dlg_params_st(mode_lib, rq_dlg_param.rq_l); mode_lib 132 drivers/gpu/drm/amd/display/dc/dml/display_rq_dlg_helpers.c print__data_rq_dlg_params_st(mode_lib, rq_dlg_param.rq_c); mode_lib 136 drivers/gpu/drm/amd/display/dc/dml/display_rq_dlg_helpers.c void print__dlg_sys_params_st(struct display_mode_lib *mode_lib, display_dlg_sys_params_st dlg_sys_param) mode_lib 159 drivers/gpu/drm/amd/display/dc/dml/display_rq_dlg_helpers.c void print__data_rq_regs_st(struct display_mode_lib *mode_lib, display_data_rq_regs_st rq_regs) mode_lib 178 drivers/gpu/drm/amd/display/dc/dml/display_rq_dlg_helpers.c void print__rq_regs_st(struct display_mode_lib *mode_lib, display_rq_regs_st rq_regs) mode_lib 183 drivers/gpu/drm/amd/display/dc/dml/display_rq_dlg_helpers.c print__data_rq_regs_st(mode_lib, rq_regs.rq_regs_l); mode_lib 185 drivers/gpu/drm/amd/display/dc/dml/display_rq_dlg_helpers.c print__data_rq_regs_st(mode_lib, rq_regs.rq_regs_c); mode_lib 194 drivers/gpu/drm/amd/display/dc/dml/display_rq_dlg_helpers.c void print__dlg_regs_st(struct display_mode_lib *mode_lib, display_dlg_regs_st dlg_regs) mode_lib 331 drivers/gpu/drm/amd/display/dc/dml/display_rq_dlg_helpers.c void print__ttu_regs_st(struct display_mode_lib *mode_lib, display_ttu_regs_st ttu_regs) mode_lib 35 drivers/gpu/drm/amd/display/dc/dml/display_rq_dlg_helpers.h void print__rq_params_st(struct display_mode_lib *mode_lib, display_rq_params_st rq_param); mode_lib 36 drivers/gpu/drm/amd/display/dc/dml/display_rq_dlg_helpers.h void print__data_rq_sizing_params_st(struct display_mode_lib *mode_lib, display_data_rq_sizing_params_st rq_sizing); mode_lib 37 drivers/gpu/drm/amd/display/dc/dml/display_rq_dlg_helpers.h void print__data_rq_dlg_params_st(struct display_mode_lib *mode_lib, display_data_rq_dlg_params_st rq_dlg_param); mode_lib 38 drivers/gpu/drm/amd/display/dc/dml/display_rq_dlg_helpers.h void print__data_rq_misc_params_st(struct display_mode_lib *mode_lib, display_data_rq_misc_params_st rq_misc_param); mode_lib 39 drivers/gpu/drm/amd/display/dc/dml/display_rq_dlg_helpers.h void print__rq_dlg_params_st(struct display_mode_lib *mode_lib, display_rq_dlg_params_st rq_dlg_param); mode_lib 40 drivers/gpu/drm/amd/display/dc/dml/display_rq_dlg_helpers.h void print__dlg_sys_params_st(struct display_mode_lib *mode_lib, display_dlg_sys_params_st dlg_sys_param); mode_lib 42 drivers/gpu/drm/amd/display/dc/dml/display_rq_dlg_helpers.h void print__data_rq_regs_st(struct display_mode_lib *mode_lib, display_data_rq_regs_st data_rq_regs); mode_lib 43 drivers/gpu/drm/amd/display/dc/dml/display_rq_dlg_helpers.h void print__rq_regs_st(struct display_mode_lib *mode_lib, display_rq_regs_st rq_regs); mode_lib 44 drivers/gpu/drm/amd/display/dc/dml/display_rq_dlg_helpers.h void print__dlg_regs_st(struct display_mode_lib *mode_lib, display_dlg_regs_st dlg_regs); mode_lib 45 drivers/gpu/drm/amd/display/dc/dml/display_rq_dlg_helpers.h void print__ttu_regs_st(struct display_mode_lib *mode_lib, display_ttu_regs_st ttu_regs); mode_lib 98 drivers/gpu/drm/amd/display/dc/dml/dml1_display_rq_dlg_calc.c struct display_mode_lib *mode_lib, mode_lib 129 drivers/gpu/drm/amd/display/dc/dml/dml1_display_rq_dlg_calc.c struct display_mode_lib *mode_lib, mode_lib 171 drivers/gpu/drm/amd/display/dc/dml/dml1_display_rq_dlg_calc.c struct display_mode_lib *mode_lib, mode_lib 207 drivers/gpu/drm/amd/display/dc/dml/dml1_display_rq_dlg_calc.c struct display_mode_lib *mode_lib, mode_lib 212 drivers/gpu/drm/amd/display/dc/dml/dml1_display_rq_dlg_calc.c print__data_rq_sizing_params_st(mode_lib, rq_sizing); mode_lib 232 drivers/gpu/drm/amd/display/dc/dml/dml1_display_rq_dlg_calc.c struct display_mode_lib *mode_lib, mode_lib 236 drivers/gpu/drm/amd/display/dc/dml/dml1_display_rq_dlg_calc.c unsigned int detile_buf_size_in_bytes = mode_lib->ip.det_buffer_size_kbytes * 1024; mode_lib 239 drivers/gpu/drm/amd/display/dc/dml/dml1_display_rq_dlg_calc.c extract_rq_sizing_regs(mode_lib, &(rq_regs->rq_regs_l), rq_param.sizing.rq_l); mode_lib 241 drivers/gpu/drm/amd/display/dc/dml/dml1_display_rq_dlg_calc.c extract_rq_sizing_regs(mode_lib, &(rq_regs->rq_regs_c), rq_param.sizing.rq_c); mode_lib 273 drivers/gpu/drm/amd/display/dc/dml/dml1_display_rq_dlg_calc.c struct display_mode_lib *mode_lib, mode_lib 288 drivers/gpu/drm/amd/display/dc/dml/dml1_display_rq_dlg_calc.c unsigned int detile_buf_size_in_bytes = mode_lib->ip.det_buffer_size_kbytes * 1024; mode_lib 365 drivers/gpu/drm/amd/display/dc/dml/dml1_display_rq_dlg_calc.c struct display_mode_lib *mode_lib, mode_lib 461 drivers/gpu/drm/amd/display/dc/dml/dml1_display_rq_dlg_calc.c log2_vmpg_bytes = dml_log2(mode_lib->soc.vmm_page_size_bytes); mode_lib 462 drivers/gpu/drm/amd/display/dc/dml/dml1_display_rq_dlg_calc.c dpte_buf_in_pte_reqs = mode_lib->ip.dpte_buffer_size_in_pte_reqs_luma; mode_lib 537 drivers/gpu/drm/amd/display/dc/dml/dml1_display_rq_dlg_calc.c struct display_mode_lib *mode_lib, mode_lib 749 drivers/gpu/drm/amd/display/dc/dml/dml1_display_rq_dlg_calc.c vmpg_bytes = mode_lib->soc.vmm_page_size_bytes; mode_lib 778 drivers/gpu/drm/amd/display/dc/dml/dml1_display_rq_dlg_calc.c log2_vmpg_bytes = dml_log2(mode_lib->soc.vmm_page_size_bytes); mode_lib 779 drivers/gpu/drm/amd/display/dc/dml/dml1_display_rq_dlg_calc.c dpte_buf_in_pte_reqs = mode_lib->ip.dpte_buffer_size_in_pte_reqs_luma; mode_lib 910 drivers/gpu/drm/amd/display/dc/dml/dml1_display_rq_dlg_calc.c mode_lib, mode_lib 943 drivers/gpu/drm/amd/display/dc/dml/dml1_display_rq_dlg_calc.c struct display_mode_lib *mode_lib, mode_lib 953 drivers/gpu/drm/amd/display/dc/dml/dml1_display_rq_dlg_calc.c mode_lib, mode_lib 963 drivers/gpu/drm/amd/display/dc/dml/dml1_display_rq_dlg_calc.c mode_lib, mode_lib 972 drivers/gpu/drm/amd/display/dc/dml/dml1_display_rq_dlg_calc.c handle_det_buf_split(mode_lib, rq_param, pipe_src_param); mode_lib 973 drivers/gpu/drm/amd/display/dc/dml/dml1_display_rq_dlg_calc.c print__rq_params_st(mode_lib, *rq_param); mode_lib 980 drivers/gpu/drm/amd/display/dc/dml/dml1_display_rq_dlg_calc.c struct display_mode_lib *mode_lib, mode_lib 997 drivers/gpu/drm/amd/display/dc/dml/dml1_display_rq_dlg_calc.c unsigned int min_vblank = mode_lib->ip.min_vblank_lines; mode_lib 1229 drivers/gpu/drm/amd/display/dc/dml/dml1_display_rq_dlg_calc.c dppclk_delay_subtotal = mode_lib->ip.dppclk_delay_subtotal; mode_lib 1230 drivers/gpu/drm/amd/display/dc/dml/dml1_display_rq_dlg_calc.c dispclk_delay_subtotal = mode_lib->ip.dispclk_delay_subtotal; mode_lib 1285 drivers/gpu/drm/amd/display/dc/dml/dml1_display_rq_dlg_calc.c line_wait = mode_lib->soc.urgent_latency_us; mode_lib 1287 drivers/gpu/drm/amd/display/dc/dml/dml1_display_rq_dlg_calc.c line_wait = dml_max(mode_lib->soc.sr_enter_plus_exit_time_us, line_wait); mode_lib 1290 drivers/gpu/drm/amd/display/dc/dml/dml1_display_rq_dlg_calc.c mode_lib->soc.dram_clock_change_latency_us mode_lib 1291 drivers/gpu/drm/amd/display/dc/dml/dml1_display_rq_dlg_calc.c + mode_lib->soc.urgent_latency_us, mode_lib 1302 drivers/gpu/drm/amd/display/dc/dml/dml1_display_rq_dlg_calc.c (double) mode_lib->soc.sr_enter_plus_exit_time_us); mode_lib 1306 drivers/gpu/drm/amd/display/dc/dml/dml1_display_rq_dlg_calc.c (double) mode_lib->soc.dram_clock_change_latency_us); mode_lib 1310 drivers/gpu/drm/amd/display/dc/dml/dml1_display_rq_dlg_calc.c mode_lib->soc.urgent_latency_us); mode_lib 1355 drivers/gpu/drm/amd/display/dc/dml/dml1_display_rq_dlg_calc.c get_swath_need(mode_lib, &max_num_sw_l, &max_partial_sw_l, swath_height_l, max_vinit_l); mode_lib 1358 drivers/gpu/drm/amd/display/dc/dml/dml1_display_rq_dlg_calc.c mode_lib, mode_lib 1402 drivers/gpu/drm/amd/display/dc/dml/dml1_display_rq_dlg_calc.c t_vm_us = dml_max(mode_lib->soc.urgent_latency_us, t_vm_us); mode_lib 1417 drivers/gpu/drm/amd/display/dc/dml/dml1_display_rq_dlg_calc.c t_r0_us = dml_max(mode_lib->soc.urgent_latency_us * 2.0, t_r0_us); mode_lib 1485 drivers/gpu/drm/amd/display/dc/dml/dml1_display_rq_dlg_calc.c mode_lib, mode_lib 1494 drivers/gpu/drm/amd/display/dc/dml/dml1_display_rq_dlg_calc.c mode_lib, mode_lib 1645 drivers/gpu/drm/amd/display/dc/dml/dml1_display_rq_dlg_calc.c mode_lib, mode_lib 1655 drivers/gpu/drm/amd/display/dc/dml/dml1_display_rq_dlg_calc.c mode_lib, mode_lib 1686 drivers/gpu/drm/amd/display/dc/dml/dml1_display_rq_dlg_calc.c mode_lib, mode_lib 1696 drivers/gpu/drm/amd/display/dc/dml/dml1_display_rq_dlg_calc.c mode_lib, mode_lib 1735 drivers/gpu/drm/amd/display/dc/dml/dml1_display_rq_dlg_calc.c mode_lib, mode_lib 1744 drivers/gpu/drm/amd/display/dc/dml/dml1_display_rq_dlg_calc.c mode_lib, mode_lib 1772 drivers/gpu/drm/amd/display/dc/dml/dml1_display_rq_dlg_calc.c mode_lib, mode_lib 1781 drivers/gpu/drm/amd/display/dc/dml/dml1_display_rq_dlg_calc.c mode_lib, mode_lib 1912 drivers/gpu/drm/amd/display/dc/dml/dml1_display_rq_dlg_calc.c print__ttu_regs_st(mode_lib, *disp_ttu_regs); mode_lib 1913 drivers/gpu/drm/amd/display/dc/dml/dml1_display_rq_dlg_calc.c print__dlg_regs_st(mode_lib, *disp_dlg_regs); mode_lib 36 drivers/gpu/drm/amd/display/dc/dml/dml1_display_rq_dlg_calc.h struct display_mode_lib *mode_lib, mode_lib 48 drivers/gpu/drm/amd/display/dc/dml/dml1_display_rq_dlg_calc.h struct display_mode_lib *mode_lib, mode_lib 57 drivers/gpu/drm/amd/display/dc/dml/dml1_display_rq_dlg_calc.h struct display_mode_lib *mode_lib, mode_lib 31 drivers/gpu/drm/amd/display/dc/dml/dml_logger.h mode_lib->logger