Lines Matching +full:0 +full:xcfff
72 uncore->debug->unclaimed_mmio_check = 0; in mmio_debug_suspend()
121 if (id >= 0 && id < FW_DOMAIN_ID_COUNT) in intel_uncore_forcewake_domain_to_str()
143 fw_clear(d, 0xefff); in fw_domain_reset()
145 fw_clear(d, 0xffff); in fw_domain_reset()
173 return __wait_for_ack(d, ack, 0); in wait_ack_clear()
189 if (fw_ack(d) == ~0) { in fw_domain_wait_ack_clear()
191 "%s: MMIO unreliable (forcewake register returns 0xFFFFFFFF)!\n", in fw_domain_wait_ack_clear()
204 ACK_CLEAR = 0,
213 const u32 value = type == ACK_SET ? ack_bit : 0; in fw_domain_wait_ack_with_fallback()
246 "%s had to use fallback to %s ack, 0x%x (passes %u)\n", in fw_domain_wait_ack_with_fallback()
252 return ack_detected ? 0 : -ETIMEDOUT; in fw_domain_wait_ack_with_fallback()
380 * w/a for a sporadic read returning 0 by waiting for the GT in __gen6_gt_wait_for_thread_c0()
384 wait_for_atomic_us(gt_thread_status(uncore) == 0, 5000), in __gen6_gt_wait_for_thread_c0()
446 if (--domain->wake_count == 0) in intel_uncore_fw_release_timer()
472 active_domains = 0; in intel_uncore_forcewake_reset()
476 if (hrtimer_cancel(&domain->timer) == 0) in intel_uncore_forcewake_reset()
489 if (active_domains == 0) in intel_uncore_forcewake_reset()
492 if (--retry_count == 0) { in intel_uncore_forcewake_reset()
527 * reads will come back with 0xFFFFFFFF for every register and things in fpga_check_for_unclaimed_mmio()
533 * bits that will always read back as 0's so we can use them as canaries in fpga_check_for_unclaimed_mmio()
536 if (unlikely(dbg == ~0)) in fpga_check_for_unclaimed_mmio()
538 "Lost access to MMIO BAR; all registers now read back as 0xFFFFFFFF!\n"); in fpga_check_for_unclaimed_mmio()
567 drm_dbg(&uncore->i915->drm, "GTFIFODBG = 0x08%x\n", fifodbg); in gen6_check_for_fifo_debug()
916 __reg < 0x40000 || __reg >= 0x116000; \
926 return 0; in fw_range_cmp()
931 unsigned int start__ = 0, end__ = (num); \
936 if (ret__ < 0) { \
938 } else if (ret__ > 0) { \
962 return 0; in find_fw_domain()
973 "Uninitialized forcewake domain(s) 0x%x accessed at 0x%x\n", in find_fw_domain()
1000 { .start = 0x2030, .end = 0x2030 },
1001 { .start = 0xA008, .end = 0xA00C },
1002 { .start = 0x12030, .end = 0x12030 },
1003 { .start = 0x1a030, .end = 0x1a030 },
1004 { .start = 0x22030, .end = 0x22030 },
1008 { .start = 0x2030, .end = 0x2030 },
1009 { .start = 0x2550, .end = 0x2550 },
1010 { .start = 0xA008, .end = 0xA00C },
1011 { .start = 0x22030, .end = 0x22030 },
1012 { .start = 0x22230, .end = 0x22230 },
1013 { .start = 0x22510, .end = 0x22550 },
1014 { .start = 0x1C0030, .end = 0x1C0030 },
1015 { .start = 0x1C0230, .end = 0x1C0230 },
1016 { .start = 0x1C0510, .end = 0x1C0550 },
1017 { .start = 0x1C4030, .end = 0x1C4030 },
1018 { .start = 0x1C4230, .end = 0x1C4230 },
1019 { .start = 0x1C4510, .end = 0x1C4550 },
1020 { .start = 0x1C8030, .end = 0x1C8030 },
1021 { .start = 0x1C8230, .end = 0x1C8230 },
1022 { .start = 0x1C8510, .end = 0x1C8550 },
1023 { .start = 0x1D0030, .end = 0x1D0030 },
1024 { .start = 0x1D0230, .end = 0x1D0230 },
1025 { .start = 0x1D0510, .end = 0x1D0550 },
1026 { .start = 0x1D4030, .end = 0x1D4030 },
1027 { .start = 0x1D4230, .end = 0x1D4230 },
1028 { .start = 0x1D4510, .end = 0x1D4550 },
1029 { .start = 0x1D8030, .end = 0x1D8030 },
1030 { .start = 0x1D8230, .end = 0x1D8230 },
1031 { .start = 0x1D8510, .end = 0x1D8550 },
1035 { .start = 0x2030, .end = 0x2030 },
1036 { .start = 0x2510, .end = 0x2550 },
1037 { .start = 0xA008, .end = 0xA00C },
1038 { .start = 0xA188, .end = 0xA188 },
1039 { .start = 0xA278, .end = 0xA278 },
1040 { .start = 0xA540, .end = 0xA56C },
1041 { .start = 0xC4C8, .end = 0xC4C8 },
1042 { .start = 0xC4D4, .end = 0xC4D4 },
1043 { .start = 0xC600, .end = 0xC600 },
1044 { .start = 0x22030, .end = 0x22030 },
1045 { .start = 0x22510, .end = 0x22550 },
1046 { .start = 0x1C0030, .end = 0x1C0030 },
1047 { .start = 0x1C0510, .end = 0x1C0550 },
1048 { .start = 0x1C4030, .end = 0x1C4030 },
1049 { .start = 0x1C4510, .end = 0x1C4550 },
1050 { .start = 0x1C8030, .end = 0x1C8030 },
1051 { .start = 0x1C8510, .end = 0x1C8550 },
1052 { .start = 0x1D0030, .end = 0x1D0030 },
1053 { .start = 0x1D0510, .end = 0x1D0550 },
1054 { .start = 0x1D4030, .end = 0x1D4030 },
1055 { .start = 0x1D4510, .end = 0x1D4550 },
1056 { .start = 0x1D8030, .end = 0x1D8030 },
1057 { .start = 0x1D8510, .end = 0x1D8550 },
1064 { .start = 0x1E0030, .end = 0x1E0030 },
1065 { .start = 0x1E0510, .end = 0x1E0550 },
1066 { .start = 0x1E4030, .end = 0x1E4030 },
1067 { .start = 0x1E4510, .end = 0x1E4550 },
1068 { .start = 0x1E8030, .end = 0x1E8030 },
1069 { .start = 0x1E8510, .end = 0x1E8550 },
1070 { .start = 0x1F0030, .end = 0x1F0030 },
1071 { .start = 0x1F0510, .end = 0x1F0550 },
1072 { .start = 0x1F4030, .end = 0x1F4030 },
1073 { .start = 0x1F4510, .end = 0x1F4550 },
1074 { .start = 0x1F8030, .end = 0x1F8030 },
1075 { .start = 0x1F8510, .end = 0x1F8550 },
1079 { .start = 0x2030, .end = 0x2030 },
1080 { .start = 0x2510, .end = 0x2550 },
1081 { .start = 0xA008, .end = 0xA00C },
1082 { .start = 0xA188, .end = 0xA188 },
1083 { .start = 0xA278, .end = 0xA278 },
1084 { .start = 0xA540, .end = 0xA56C },
1085 { .start = 0xC4C8, .end = 0xC4C8 },
1086 { .start = 0xC4E0, .end = 0xC4E0 },
1087 { .start = 0xC600, .end = 0xC600 },
1088 { .start = 0xC658, .end = 0xC658 },
1089 { .start = 0x22030, .end = 0x22030 },
1090 { .start = 0x22510, .end = 0x22550 },
1091 { .start = 0x1C0030, .end = 0x1C0030 },
1092 { .start = 0x1C0510, .end = 0x1C0550 },
1093 { .start = 0x1C4030, .end = 0x1C4030 },
1094 { .start = 0x1C4510, .end = 0x1C4550 },
1095 { .start = 0x1C8030, .end = 0x1C8030 },
1096 { .start = 0x1C8510, .end = 0x1C8550 },
1097 { .start = 0x1D0030, .end = 0x1D0030 },
1098 { .start = 0x1D0510, .end = 0x1D0550 },
1099 { .start = 0x1D4030, .end = 0x1D4030 },
1100 { .start = 0x1D4510, .end = 0x1D4550 },
1101 { .start = 0x1D8030, .end = 0x1D8030 },
1102 { .start = 0x1D8510, .end = 0x1D8550 },
1103 { .start = 0x1E0030, .end = 0x1E0030 },
1104 { .start = 0x1E0510, .end = 0x1E0550 },
1105 { .start = 0x1E4030, .end = 0x1E4030 },
1106 { .start = 0x1E4510, .end = 0x1E4550 },
1107 { .start = 0x1E8030, .end = 0x1E8030 },
1108 { .start = 0x1E8510, .end = 0x1E8550 },
1109 { .start = 0x1F0030, .end = 0x1F0030 },
1110 { .start = 0x1F0510, .end = 0x1F0550 },
1111 { .start = 0x1F4030, .end = 0x1F4030 },
1112 { .start = 0x1F4510, .end = 0x1F4550 },
1113 { .start = 0x1F8030, .end = 0x1F8030 },
1114 { .start = 0x1F8510, .end = 0x1F8550 },
1118 { .start = 0x2030, .end = 0x2030 },
1119 { .start = 0x2510, .end = 0x2550 },
1120 { .start = 0xA008, .end = 0xA00C },
1121 { .start = 0xA188, .end = 0xA188 },
1122 { .start = 0xA278, .end = 0xA278 },
1123 { .start = 0xA540, .end = 0xA56C },
1124 { .start = 0xC050, .end = 0xC050 },
1125 { .start = 0xC340, .end = 0xC340 },
1126 { .start = 0xC4C8, .end = 0xC4C8 },
1127 { .start = 0xC4E0, .end = 0xC4E0 },
1128 { .start = 0xC600, .end = 0xC600 },
1129 { .start = 0xC658, .end = 0xC658 },
1130 { .start = 0xCFD4, .end = 0xCFDC },
1131 { .start = 0x22030, .end = 0x22030 },
1132 { .start = 0x22510, .end = 0x22550 },
1136 { .start = 0x1C0030, .end = 0x1C0030 },
1137 { .start = 0x1C0510, .end = 0x1C0550 },
1138 { .start = 0x1C8030, .end = 0x1C8030 },
1139 { .start = 0x1C8510, .end = 0x1C8550 },
1140 { .start = 0x1D0030, .end = 0x1D0030 },
1141 { .start = 0x1D0510, .end = 0x1D0550 },
1142 { .start = 0x38A008, .end = 0x38A00C },
1143 { .start = 0x38A188, .end = 0x38A188 },
1144 { .start = 0x38A278, .end = 0x38A278 },
1145 { .start = 0x38A540, .end = 0x38A56C },
1146 { .start = 0x38A618, .end = 0x38A618 },
1147 { .start = 0x38C050, .end = 0x38C050 },
1148 { .start = 0x38C340, .end = 0x38C340 },
1149 { .start = 0x38C4C8, .end = 0x38C4C8 },
1150 { .start = 0x38C4E0, .end = 0x38C4E4 },
1151 { .start = 0x38C600, .end = 0x38C600 },
1152 { .start = 0x38C658, .end = 0x38C658 },
1153 { .start = 0x38CFD4, .end = 0x38CFDC },
1163 return 0; in mmio_range_cmp()
1188 enum forcewake_domains __fwd = 0; \
1196 enum forcewake_domains __fwd = 0; \
1221 * 0x1000 - 0x1fff: GT
1222 * 0x2000 - 0x2cff: GT
1223 * 0x2d00 - 0x2fff: unused/reserved
1224 * 0x3000 - 0xffff: GT
1229 * GEN_FW_RANGE(0x1000, 0xffff, FORCEWAKE_GT)
1237 GEN_FW_RANGE(0x0, 0x3ffff, FORCEWAKE_RENDER),
1241 GEN_FW_RANGE(0x2000, 0x3fff, FORCEWAKE_RENDER),
1242 GEN_FW_RANGE(0x5000, 0x7fff, FORCEWAKE_RENDER),
1243 GEN_FW_RANGE(0xb000, 0x11fff, FORCEWAKE_RENDER),
1244 GEN_FW_RANGE(0x12000, 0x13fff, FORCEWAKE_MEDIA),
1245 GEN_FW_RANGE(0x22000, 0x23fff, FORCEWAKE_MEDIA),
1246 GEN_FW_RANGE(0x2e000, 0x2ffff, FORCEWAKE_RENDER),
1247 GEN_FW_RANGE(0x30000, 0x3ffff, FORCEWAKE_MEDIA),
1251 GEN_FW_RANGE(0x2000, 0x3fff, FORCEWAKE_RENDER),
1252 GEN_FW_RANGE(0x4000, 0x4fff, FORCEWAKE_RENDER | FORCEWAKE_MEDIA),
1253 GEN_FW_RANGE(0x5200, 0x7fff, FORCEWAKE_RENDER),
1254 GEN_FW_RANGE(0x8000, 0x82ff, FORCEWAKE_RENDER | FORCEWAKE_MEDIA),
1255 GEN_FW_RANGE(0x8300, 0x84ff, FORCEWAKE_RENDER),
1256 GEN_FW_RANGE(0x8500, 0x85ff, FORCEWAKE_RENDER | FORCEWAKE_MEDIA),
1257 GEN_FW_RANGE(0x8800, 0x88ff, FORCEWAKE_MEDIA),
1258 GEN_FW_RANGE(0x9000, 0xafff, FORCEWAKE_RENDER | FORCEWAKE_MEDIA),
1259 GEN_FW_RANGE(0xb000, 0xb47f, FORCEWAKE_RENDER),
1260 GEN_FW_RANGE(0xd000, 0xd7ff, FORCEWAKE_MEDIA),
1261 GEN_FW_RANGE(0xe000, 0xe7ff, FORCEWAKE_RENDER),
1262 GEN_FW_RANGE(0xf000, 0xffff, FORCEWAKE_RENDER | FORCEWAKE_MEDIA),
1263 GEN_FW_RANGE(0x12000, 0x13fff, FORCEWAKE_MEDIA),
1264 GEN_FW_RANGE(0x1a000, 0x1bfff, FORCEWAKE_MEDIA),
1265 GEN_FW_RANGE(0x1e800, 0x1e9ff, FORCEWAKE_MEDIA),
1266 GEN_FW_RANGE(0x30000, 0x37fff, FORCEWAKE_MEDIA),
1270 GEN_FW_RANGE(0x0, 0xaff, FORCEWAKE_GT),
1271 GEN_FW_RANGE(0xb00, 0x1fff, 0), /* uncore range */
1272 GEN_FW_RANGE(0x2000, 0x26ff, FORCEWAKE_RENDER),
1273 GEN_FW_RANGE(0x2700, 0x2fff, FORCEWAKE_GT),
1274 GEN_FW_RANGE(0x3000, 0x3fff, FORCEWAKE_RENDER),
1275 GEN_FW_RANGE(0x4000, 0x51ff, FORCEWAKE_GT),
1276 GEN_FW_RANGE(0x5200, 0x7fff, FORCEWAKE_RENDER),
1277 GEN_FW_RANGE(0x8000, 0x812f, FORCEWAKE_GT),
1278 GEN_FW_RANGE(0x8130, 0x813f, FORCEWAKE_MEDIA),
1279 GEN_FW_RANGE(0x8140, 0x815f, FORCEWAKE_RENDER),
1280 GEN_FW_RANGE(0x8160, 0x82ff, FORCEWAKE_GT),
1281 GEN_FW_RANGE(0x8300, 0x84ff, FORCEWAKE_RENDER),
1282 GEN_FW_RANGE(0x8500, 0x87ff, FORCEWAKE_GT),
1283 GEN_FW_RANGE(0x8800, 0x89ff, FORCEWAKE_MEDIA),
1284 GEN_FW_RANGE(0x8a00, 0x8bff, FORCEWAKE_GT),
1285 GEN_FW_RANGE(0x8c00, 0x8cff, FORCEWAKE_RENDER),
1286 GEN_FW_RANGE(0x8d00, 0x93ff, FORCEWAKE_GT),
1287 GEN_FW_RANGE(0x9400, 0x97ff, FORCEWAKE_RENDER | FORCEWAKE_MEDIA),
1288 GEN_FW_RANGE(0x9800, 0xafff, FORCEWAKE_GT),
1289 GEN_FW_RANGE(0xb000, 0xb47f, FORCEWAKE_RENDER),
1290 GEN_FW_RANGE(0xb480, 0xcfff, FORCEWAKE_GT),
1291 GEN_FW_RANGE(0xd000, 0xd7ff, FORCEWAKE_MEDIA),
1292 GEN_FW_RANGE(0xd800, 0xdfff, FORCEWAKE_GT),
1293 GEN_FW_RANGE(0xe000, 0xe8ff, FORCEWAKE_RENDER),
1294 GEN_FW_RANGE(0xe900, 0x11fff, FORCEWAKE_GT),
1295 GEN_FW_RANGE(0x12000, 0x13fff, FORCEWAKE_MEDIA),
1296 GEN_FW_RANGE(0x14000, 0x19fff, FORCEWAKE_GT),
1297 GEN_FW_RANGE(0x1a000, 0x1e9ff, FORCEWAKE_MEDIA),
1298 GEN_FW_RANGE(0x1ea00, 0x243ff, FORCEWAKE_GT),
1299 GEN_FW_RANGE(0x24400, 0x247ff, FORCEWAKE_RENDER),
1300 GEN_FW_RANGE(0x24800, 0x2ffff, FORCEWAKE_GT),
1301 GEN_FW_RANGE(0x30000, 0x3ffff, FORCEWAKE_MEDIA),
1305 GEN_FW_RANGE(0x0, 0x1fff, 0), /* uncore range */
1306 GEN_FW_RANGE(0x2000, 0x26ff, FORCEWAKE_RENDER),
1307 GEN_FW_RANGE(0x2700, 0x2fff, FORCEWAKE_GT),
1308 GEN_FW_RANGE(0x3000, 0x3fff, FORCEWAKE_RENDER),
1309 GEN_FW_RANGE(0x4000, 0x51ff, FORCEWAKE_GT),
1310 GEN_FW_RANGE(0x5200, 0x7fff, FORCEWAKE_RENDER),
1311 GEN_FW_RANGE(0x8000, 0x813f, FORCEWAKE_GT),
1312 GEN_FW_RANGE(0x8140, 0x815f, FORCEWAKE_RENDER),
1313 GEN_FW_RANGE(0x8160, 0x82ff, FORCEWAKE_GT),
1314 GEN_FW_RANGE(0x8300, 0x84ff, FORCEWAKE_RENDER),
1315 GEN_FW_RANGE(0x8500, 0x87ff, FORCEWAKE_GT),
1316 GEN_FW_RANGE(0x8800, 0x8bff, 0),
1317 GEN_FW_RANGE(0x8c00, 0x8cff, FORCEWAKE_RENDER),
1318 GEN_FW_RANGE(0x8d00, 0x94cf, FORCEWAKE_GT),
1319 GEN_FW_RANGE(0x94d0, 0x955f, FORCEWAKE_RENDER),
1320 GEN_FW_RANGE(0x9560, 0x95ff, 0),
1321 GEN_FW_RANGE(0x9600, 0xafff, FORCEWAKE_GT),
1322 GEN_FW_RANGE(0xb000, 0xb47f, FORCEWAKE_RENDER),
1323 GEN_FW_RANGE(0xb480, 0xdeff, FORCEWAKE_GT),
1324 GEN_FW_RANGE(0xdf00, 0xe8ff, FORCEWAKE_RENDER),
1325 GEN_FW_RANGE(0xe900, 0x16dff, FORCEWAKE_GT),
1326 GEN_FW_RANGE(0x16e00, 0x19fff, FORCEWAKE_RENDER),
1327 GEN_FW_RANGE(0x1a000, 0x23fff, FORCEWAKE_GT),
1328 GEN_FW_RANGE(0x24000, 0x2407f, 0),
1329 GEN_FW_RANGE(0x24080, 0x2417f, FORCEWAKE_GT),
1330 GEN_FW_RANGE(0x24180, 0x242ff, FORCEWAKE_RENDER),
1331 GEN_FW_RANGE(0x24300, 0x243ff, FORCEWAKE_GT),
1332 GEN_FW_RANGE(0x24400, 0x24fff, FORCEWAKE_RENDER),
1333 GEN_FW_RANGE(0x25000, 0x3ffff, FORCEWAKE_GT),
1334 GEN_FW_RANGE(0x40000, 0x1bffff, 0),
1335 GEN_FW_RANGE(0x1c0000, 0x1c3fff, FORCEWAKE_MEDIA_VDBOX0),
1336 GEN_FW_RANGE(0x1c4000, 0x1c7fff, 0),
1337 GEN_FW_RANGE(0x1c8000, 0x1cffff, FORCEWAKE_MEDIA_VEBOX0),
1338 GEN_FW_RANGE(0x1d0000, 0x1d3fff, FORCEWAKE_MEDIA_VDBOX2),
1339 GEN_FW_RANGE(0x1d4000, 0x1dbfff, 0)
1343 GEN_FW_RANGE(0x0, 0x1fff, 0), /*
1344 0x0 - 0xaff: reserved
1345 0xb00 - 0x1fff: always on */
1346 GEN_FW_RANGE(0x2000, 0x26ff, FORCEWAKE_RENDER),
1347 GEN_FW_RANGE(0x2700, 0x27ff, FORCEWAKE_GT),
1348 GEN_FW_RANGE(0x2800, 0x2aff, FORCEWAKE_RENDER),
1349 GEN_FW_RANGE(0x2b00, 0x2fff, FORCEWAKE_GT),
1350 GEN_FW_RANGE(0x3000, 0x3fff, FORCEWAKE_RENDER),
1351 GEN_FW_RANGE(0x4000, 0x51ff, FORCEWAKE_GT), /*
1352 0x4000 - 0x48ff: gt
1353 0x4900 - 0x51ff: reserved */
1354 GEN_FW_RANGE(0x5200, 0x7fff, FORCEWAKE_RENDER), /*
1355 0x5200 - 0x53ff: render
1356 0x5400 - 0x54ff: reserved
1357 0x5500 - 0x7fff: render */
1358 GEN_FW_RANGE(0x8000, 0x813f, FORCEWAKE_GT),
1359 GEN_FW_RANGE(0x8140, 0x815f, FORCEWAKE_RENDER),
1360 GEN_FW_RANGE(0x8160, 0x81ff, 0), /*
1361 0x8160 - 0x817f: reserved
1362 0x8180 - 0x81ff: always on */
1363 GEN_FW_RANGE(0x8200, 0x82ff, FORCEWAKE_GT),
1364 GEN_FW_RANGE(0x8300, 0x84ff, FORCEWAKE_RENDER),
1365 GEN_FW_RANGE(0x8500, 0x94cf, FORCEWAKE_GT), /*
1366 0x8500 - 0x87ff: gt
1367 0x8800 - 0x8fff: reserved
1368 0x9000 - 0x947f: gt
1369 0x9480 - 0x94cf: reserved */
1370 GEN_FW_RANGE(0x94d0, 0x955f, FORCEWAKE_RENDER),
1371 GEN_FW_RANGE(0x9560, 0x97ff, 0), /*
1372 0x9560 - 0x95ff: always on
1373 0x9600 - 0x97ff: reserved */
1374 GEN_FW_RANGE(0x9800, 0xafff, FORCEWAKE_GT),
1375 GEN_FW_RANGE(0xb000, 0xb3ff, FORCEWAKE_RENDER),
1376 GEN_FW_RANGE(0xb400, 0xcfff, FORCEWAKE_GT), /*
1377 0xb400 - 0xbf7f: gt
1378 0xb480 - 0xbfff: reserved
1379 0xc000 - 0xcfff: gt */
1380 GEN_FW_RANGE(0xd000, 0xd7ff, 0),
1381 GEN_FW_RANGE(0xd800, 0xd8ff, FORCEWAKE_RENDER),
1382 GEN_FW_RANGE(0xd900, 0xdbff, FORCEWAKE_GT),
1383 GEN_FW_RANGE(0xdc00, 0xefff, FORCEWAKE_RENDER), /*
1384 0xdc00 - 0xddff: render
1385 0xde00 - 0xde7f: reserved
1386 0xde80 - 0xe8ff: render
1387 0xe900 - 0xefff: reserved */
1388 GEN_FW_RANGE(0xf000, 0x147ff, FORCEWAKE_GT), /*
1389 0xf000 - 0xffff: gt
1390 0x10000 - 0x147ff: reserved */
1391 GEN_FW_RANGE(0x14800, 0x1ffff, FORCEWAKE_RENDER), /*
1392 0x14800 - 0x14fff: render
1393 0x15000 - 0x16dff: reserved
1394 0x16e00 - 0x1bfff: render
1395 0x1c000 - 0x1ffff: reserved */
1396 GEN_FW_RANGE(0x20000, 0x20fff, FORCEWAKE_MEDIA_VDBOX0),
1397 GEN_FW_RANGE(0x21000, 0x21fff, FORCEWAKE_MEDIA_VDBOX2),
1398 GEN_FW_RANGE(0x22000, 0x23fff, FORCEWAKE_GT),
1399 GEN_FW_RANGE(0x24000, 0x2417f, 0), /*
1400 0x24000 - 0x2407f: always on
1401 0x24080 - 0x2417f: reserved */
1402 GEN_FW_RANGE(0x24180, 0x249ff, FORCEWAKE_GT), /*
1403 0x24180 - 0x241ff: gt
1404 0x24200 - 0x249ff: reserved */
1405 GEN_FW_RANGE(0x24a00, 0x251ff, FORCEWAKE_RENDER), /*
1406 0x24a00 - 0x24a7f: render
1407 0x24a80 - 0x251ff: reserved */
1408 GEN_FW_RANGE(0x25200, 0x255ff, FORCEWAKE_GT), /*
1409 0x25200 - 0x252ff: gt
1410 0x25300 - 0x255ff: reserved */
1411 GEN_FW_RANGE(0x25600, 0x2567f, FORCEWAKE_MEDIA_VDBOX0),
1412 GEN_FW_RANGE(0x25680, 0x259ff, FORCEWAKE_MEDIA_VDBOX2), /*
1413 0x25680 - 0x256ff: VD2
1414 0x25700 - 0x259ff: reserved */
1415 GEN_FW_RANGE(0x25a00, 0x25a7f, FORCEWAKE_MEDIA_VDBOX0),
1416 GEN_FW_RANGE(0x25a80, 0x2ffff, FORCEWAKE_MEDIA_VDBOX2), /*
1417 0x25a80 - 0x25aff: VD2
1418 0x25b00 - 0x2ffff: reserved */
1419 GEN_FW_RANGE(0x30000, 0x3ffff, FORCEWAKE_GT),
1420 GEN_FW_RANGE(0x40000, 0x1bffff, 0),
1421 GEN_FW_RANGE(0x1c0000, 0x1c3fff, FORCEWAKE_MEDIA_VDBOX0), /*
1422 0x1c0000 - 0x1c2bff: VD0
1423 0x1c2c00 - 0x1c2cff: reserved
1424 0x1c2d00 - 0x1c2dff: VD0
1425 0x1c2e00 - 0x1c3eff: reserved
1426 0x1c3f00 - 0x1c3fff: VD0 */
1427 GEN_FW_RANGE(0x1c4000, 0x1c7fff, 0),
1428 GEN_FW_RANGE(0x1c8000, 0x1cbfff, FORCEWAKE_MEDIA_VEBOX0), /*
1429 0x1c8000 - 0x1ca0ff: VE0
1430 0x1ca100 - 0x1cbeff: reserved
1431 0x1cbf00 - 0x1cbfff: VE0 */
1432 GEN_FW_RANGE(0x1cc000, 0x1cffff, FORCEWAKE_MEDIA_VDBOX0), /*
1433 0x1cc000 - 0x1ccfff: VD0
1434 0x1cd000 - 0x1cffff: reserved */
1435 GEN_FW_RANGE(0x1d0000, 0x1d3fff, FORCEWAKE_MEDIA_VDBOX2), /*
1436 0x1d0000 - 0x1d2bff: VD2
1437 0x1d2c00 - 0x1d2cff: reserved
1438 0x1d2d00 - 0x1d2dff: VD2
1439 0x1d2e00 - 0x1d3eff: reserved
1440 0x1d3f00 - 0x1d3fff: VD2 */
1444 GEN_FW_RANGE(0x0, 0x1fff, 0), /*
1445 0x0 - 0xaff: reserved
1446 0xb00 - 0x1fff: always on */
1447 GEN_FW_RANGE(0x2000, 0x26ff, FORCEWAKE_RENDER),
1448 GEN_FW_RANGE(0x2700, 0x4aff, FORCEWAKE_GT),
1449 GEN_FW_RANGE(0x4b00, 0x51ff, 0), /*
1450 0x4b00 - 0x4fff: reserved
1451 0x5000 - 0x51ff: always on */
1452 GEN_FW_RANGE(0x5200, 0x7fff, FORCEWAKE_RENDER),
1453 GEN_FW_RANGE(0x8000, 0x813f, FORCEWAKE_GT),
1454 GEN_FW_RANGE(0x8140, 0x815f, FORCEWAKE_RENDER),
1455 GEN_FW_RANGE(0x8160, 0x81ff, 0), /*
1456 0x8160 - 0x817f: reserved
1457 0x8180 - 0x81ff: always on */
1458 GEN_FW_RANGE(0x8200, 0x82ff, FORCEWAKE_GT),
1459 GEN_FW_RANGE(0x8300, 0x84ff, FORCEWAKE_RENDER),
1460 GEN_FW_RANGE(0x8500, 0x8cff, FORCEWAKE_GT), /*
1461 0x8500 - 0x87ff: gt
1462 0x8800 - 0x8c7f: reserved
1463 0x8c80 - 0x8cff: gt (DG2 only) */
1464 GEN_FW_RANGE(0x8d00, 0x8fff, FORCEWAKE_RENDER), /*
1465 0x8d00 - 0x8dff: render (DG2 only)
1466 0x8e00 - 0x8fff: reserved */
1467 GEN_FW_RANGE(0x9000, 0x94cf, FORCEWAKE_GT), /*
1468 0x9000 - 0x947f: gt
1469 0x9480 - 0x94cf: reserved */
1470 GEN_FW_RANGE(0x94d0, 0x955f, FORCEWAKE_RENDER),
1471 GEN_FW_RANGE(0x9560, 0x967f, 0), /*
1472 0x9560 - 0x95ff: always on
1473 0x9600 - 0x967f: reserved */
1474 GEN_FW_RANGE(0x9680, 0x97ff, FORCEWAKE_RENDER), /*
1475 0x9680 - 0x96ff: render
1476 0x9700 - 0x97ff: reserved */
1477 GEN_FW_RANGE(0x9800, 0xcfff, FORCEWAKE_GT), /*
1478 0x9800 - 0xb4ff: gt
1479 0xb500 - 0xbfff: reserved
1480 0xc000 - 0xcfff: gt */
1481 GEN_FW_RANGE(0xd000, 0xd7ff, 0),
1482 GEN_FW_RANGE(0xd800, 0xd87f, FORCEWAKE_RENDER),
1483 GEN_FW_RANGE(0xd880, 0xdbff, FORCEWAKE_GT),
1484 GEN_FW_RANGE(0xdc00, 0xdcff, FORCEWAKE_RENDER),
1485 GEN_FW_RANGE(0xdd00, 0xde7f, FORCEWAKE_GT), /*
1486 0xdd00 - 0xddff: gt
1487 0xde00 - 0xde7f: reserved */
1488 GEN_FW_RANGE(0xde80, 0xe8ff, FORCEWAKE_RENDER), /*
1489 0xde80 - 0xdfff: render
1490 0xe000 - 0xe0ff: reserved
1491 0xe100 - 0xe8ff: render */
1492 GEN_FW_RANGE(0xe900, 0xffff, FORCEWAKE_GT), /*
1493 0xe900 - 0xe9ff: gt
1494 0xea00 - 0xefff: reserved
1495 0xf000 - 0xffff: gt */
1496 GEN_FW_RANGE(0x10000, 0x12fff, 0), /*
1497 0x10000 - 0x11fff: reserved
1498 0x12000 - 0x127ff: always on
1499 0x12800 - 0x12fff: reserved */
1500 GEN_FW_RANGE(0x13000, 0x131ff, FORCEWAKE_MEDIA_VDBOX0),
1501 GEN_FW_RANGE(0x13200, 0x147ff, FORCEWAKE_MEDIA_VDBOX2), /*
1502 0x13200 - 0x133ff: VD2 (DG2 only)
1503 0x13400 - 0x147ff: reserved */
1504 GEN_FW_RANGE(0x14800, 0x14fff, FORCEWAKE_RENDER),
1505 GEN_FW_RANGE(0x15000, 0x16dff, FORCEWAKE_GT), /*
1506 0x15000 - 0x15fff: gt (DG2 only)
1507 0x16000 - 0x16dff: reserved */
1508 GEN_FW_RANGE(0x16e00, 0x21fff, FORCEWAKE_RENDER), /*
1509 0x16e00 - 0x1ffff: render
1510 0x20000 - 0x21fff: reserved */
1511 GEN_FW_RANGE(0x22000, 0x23fff, FORCEWAKE_GT),
1512 GEN_FW_RANGE(0x24000, 0x2417f, 0), /*
1513 0x24000 - 0x2407f: always on
1514 0x24080 - 0x2417f: reserved */
1515 GEN_FW_RANGE(0x24180, 0x249ff, FORCEWAKE_GT), /*
1516 0x24180 - 0x241ff: gt
1517 0x24200 - 0x249ff: reserved */
1518 GEN_FW_RANGE(0x24a00, 0x251ff, FORCEWAKE_RENDER), /*
1519 0x24a00 - 0x24a7f: render
1520 0x24a80 - 0x251ff: reserved */
1521 GEN_FW_RANGE(0x25200, 0x25fff, FORCEWAKE_GT), /*
1522 0x25200 - 0x252ff: gt
1523 0x25300 - 0x25fff: reserved */
1524 GEN_FW_RANGE(0x26000, 0x2ffff, FORCEWAKE_RENDER), /*
1525 0x26000 - 0x27fff: render
1526 0x28000 - 0x29fff: reserved
1527 0x2a000 - 0x2ffff: undocumented */
1528 GEN_FW_RANGE(0x30000, 0x3ffff, FORCEWAKE_GT),
1529 GEN_FW_RANGE(0x40000, 0x1bffff, 0),
1530 GEN_FW_RANGE(0x1c0000, 0x1c3fff, FORCEWAKE_MEDIA_VDBOX0), /*
1531 0x1c0000 - 0x1c2bff: VD0
1532 0x1c2c00 - 0x1c2cff: reserved
1533 0x1c2d00 - 0x1c2dff: VD0
1534 0x1c2e00 - 0x1c3eff: VD0
1535 0x1c3f00 - 0x1c3fff: VD0 */
1536 GEN_FW_RANGE(0x1c4000, 0x1c7fff, FORCEWAKE_MEDIA_VDBOX1), /*
1537 0x1c4000 - 0x1c6bff: VD1
1538 0x1c6c00 - 0x1c6cff: reserved
1539 0x1c6d00 - 0x1c6dff: VD1
1540 0x1c6e00 - 0x1c7fff: reserved */
1541 GEN_FW_RANGE(0x1c8000, 0x1cbfff, FORCEWAKE_MEDIA_VEBOX0), /*
1542 0x1c8000 - 0x1ca0ff: VE0
1543 0x1ca100 - 0x1cbfff: reserved */
1544 GEN_FW_RANGE(0x1cc000, 0x1ccfff, FORCEWAKE_MEDIA_VDBOX0),
1545 GEN_FW_RANGE(0x1cd000, 0x1cdfff, FORCEWAKE_MEDIA_VDBOX2),
1546 GEN_FW_RANGE(0x1ce000, 0x1cefff, FORCEWAKE_MEDIA_VDBOX4),
1547 GEN_FW_RANGE(0x1cf000, 0x1cffff, FORCEWAKE_MEDIA_VDBOX6),
1548 GEN_FW_RANGE(0x1d0000, 0x1d3fff, FORCEWAKE_MEDIA_VDBOX2), /*
1549 0x1d0000 - 0x1d2bff: VD2
1550 0x1d2c00 - 0x1d2cff: reserved
1551 0x1d2d00 - 0x1d2dff: VD2
1552 0x1d2e00 - 0x1d3dff: VD2
1553 0x1d3e00 - 0x1d3eff: reserved
1554 0x1d3f00 - 0x1d3fff: VD2 */
1555 GEN_FW_RANGE(0x1d4000, 0x1d7fff, FORCEWAKE_MEDIA_VDBOX3), /*
1556 0x1d4000 - 0x1d6bff: VD3
1557 0x1d6c00 - 0x1d6cff: reserved
1558 0x1d6d00 - 0x1d6dff: VD3
1559 0x1d6e00 - 0x1d7fff: reserved */
1560 GEN_FW_RANGE(0x1d8000, 0x1dffff, FORCEWAKE_MEDIA_VEBOX1), /*
1561 0x1d8000 - 0x1da0ff: VE1
1562 0x1da100 - 0x1dffff: reserved */
1563 GEN_FW_RANGE(0x1e0000, 0x1e3fff, FORCEWAKE_MEDIA_VDBOX4), /*
1564 0x1e0000 - 0x1e2bff: VD4
1565 0x1e2c00 - 0x1e2cff: reserved
1566 0x1e2d00 - 0x1e2dff: VD4
1567 0x1e2e00 - 0x1e3eff: reserved
1568 0x1e3f00 - 0x1e3fff: VD4 */
1569 GEN_FW_RANGE(0x1e4000, 0x1e7fff, FORCEWAKE_MEDIA_VDBOX5), /*
1570 0x1e4000 - 0x1e6bff: VD5
1571 0x1e6c00 - 0x1e6cff: reserved
1572 0x1e6d00 - 0x1e6dff: VD5
1573 0x1e6e00 - 0x1e7fff: reserved */
1574 GEN_FW_RANGE(0x1e8000, 0x1effff, FORCEWAKE_MEDIA_VEBOX2), /*
1575 0x1e8000 - 0x1ea0ff: VE2
1576 0x1ea100 - 0x1effff: reserved */
1577 GEN_FW_RANGE(0x1f0000, 0x1f3fff, FORCEWAKE_MEDIA_VDBOX6), /*
1578 0x1f0000 - 0x1f2bff: VD6
1579 0x1f2c00 - 0x1f2cff: reserved
1580 0x1f2d00 - 0x1f2dff: VD6
1581 0x1f2e00 - 0x1f3eff: reserved
1582 0x1f3f00 - 0x1f3fff: VD6 */
1583 GEN_FW_RANGE(0x1f4000, 0x1f7fff, FORCEWAKE_MEDIA_VDBOX7), /*
1584 0x1f4000 - 0x1f6bff: VD7
1585 0x1f6c00 - 0x1f6cff: reserved
1586 0x1f6d00 - 0x1f6dff: VD7
1587 0x1f6e00 - 0x1f7fff: reserved */
1588 GEN_FW_RANGE(0x1f8000, 0x1fa0ff, FORCEWAKE_MEDIA_VEBOX3),
1592 GEN_FW_RANGE(0x0, 0xaff, 0),
1593 GEN_FW_RANGE(0xb00, 0xbff, FORCEWAKE_GT),
1594 GEN_FW_RANGE(0xc00, 0xfff, 0),
1595 GEN_FW_RANGE(0x1000, 0x1fff, FORCEWAKE_GT),
1596 GEN_FW_RANGE(0x2000, 0x26ff, FORCEWAKE_RENDER),
1597 GEN_FW_RANGE(0x2700, 0x2fff, FORCEWAKE_GT),
1598 GEN_FW_RANGE(0x3000, 0x3fff, FORCEWAKE_RENDER),
1599 GEN_FW_RANGE(0x4000, 0x51ff, FORCEWAKE_GT), /*
1600 0x4000 - 0x48ff: render
1601 0x4900 - 0x51ff: reserved */
1602 GEN_FW_RANGE(0x5200, 0x7fff, FORCEWAKE_RENDER), /*
1603 0x5200 - 0x53ff: render
1604 0x5400 - 0x54ff: reserved
1605 0x5500 - 0x7fff: render */
1606 GEN_FW_RANGE(0x8000, 0x813f, FORCEWAKE_GT),
1607 GEN_FW_RANGE(0x8140, 0x817f, FORCEWAKE_RENDER), /*
1608 0x8140 - 0x815f: render
1609 0x8160 - 0x817f: reserved */
1610 GEN_FW_RANGE(0x8180, 0x81ff, 0),
1611 GEN_FW_RANGE(0x8200, 0x94cf, FORCEWAKE_GT), /*
1612 0x8200 - 0x87ff: gt
1613 0x8800 - 0x8dff: reserved
1614 0x8e00 - 0x8f7f: gt
1615 0x8f80 - 0x8fff: reserved
1616 0x9000 - 0x947f: gt
1617 0x9480 - 0x94cf: reserved */
1618 GEN_FW_RANGE(0x94d0, 0x955f, FORCEWAKE_RENDER),
1619 GEN_FW_RANGE(0x9560, 0x967f, 0), /*
1620 0x9560 - 0x95ff: always on
1621 0x9600 - 0x967f: reserved */
1622 GEN_FW_RANGE(0x9680, 0x97ff, FORCEWAKE_RENDER), /*
1623 0x9680 - 0x96ff: render
1624 0x9700 - 0x97ff: reserved */
1625 GEN_FW_RANGE(0x9800, 0xcfff, FORCEWAKE_GT), /*
1626 0x9800 - 0xb4ff: gt
1627 0xb500 - 0xbfff: reserved
1628 0xc000 - 0xcfff: gt */
1629 GEN_FW_RANGE(0xd000, 0xd7ff, 0), /*
1630 0xd000 - 0xd3ff: always on
1631 0xd400 - 0xd7ff: reserved */
1632 GEN_FW_RANGE(0xd800, 0xd87f, FORCEWAKE_RENDER),
1633 GEN_FW_RANGE(0xd880, 0xdbff, FORCEWAKE_GT),
1634 GEN_FW_RANGE(0xdc00, 0xdcff, FORCEWAKE_RENDER),
1635 GEN_FW_RANGE(0xdd00, 0xde7f, FORCEWAKE_GT), /*
1636 0xdd00 - 0xddff: gt
1637 0xde00 - 0xde7f: reserved */
1638 GEN_FW_RANGE(0xde80, 0xe8ff, FORCEWAKE_RENDER), /*
1639 0xde80 - 0xdfff: render
1640 0xe000 - 0xe0ff: reserved
1641 0xe100 - 0xe8ff: render */
1642 GEN_FW_RANGE(0xe900, 0xe9ff, FORCEWAKE_GT),
1643 GEN_FW_RANGE(0xea00, 0x147ff, 0), /*
1644 0xea00 - 0x11fff: reserved
1645 0x12000 - 0x127ff: always on
1646 0x12800 - 0x147ff: reserved */
1647 GEN_FW_RANGE(0x14800, 0x19fff, FORCEWAKE_GT), /*
1648 0x14800 - 0x153ff: gt
1649 0x15400 - 0x19fff: reserved */
1650 GEN_FW_RANGE(0x1a000, 0x21fff, FORCEWAKE_RENDER), /*
1651 0x1a000 - 0x1bfff: render
1652 0x1c000 - 0x21fff: reserved */
1653 GEN_FW_RANGE(0x22000, 0x23fff, FORCEWAKE_GT),
1654 GEN_FW_RANGE(0x24000, 0x2ffff, 0), /*
1655 0x24000 - 0x2407f: always on
1656 0x24080 - 0x2ffff: reserved */
1657 GEN_FW_RANGE(0x30000, 0x3ffff, FORCEWAKE_GT),
1658 GEN_FW_RANGE(0x40000, 0x1901ef, 0),
1659 GEN_FW_RANGE(0x1901f0, 0x1901f3, FORCEWAKE_GT)
1665 * translation of the GSI block to the 0x380000 offset.
1678 GEN_FW_RANGE(0x0, 0x115fff, 0), /* render GT range */
1679 GEN_FW_RANGE(0x116000, 0x11ffff, FORCEWAKE_GSC), /*
1680 0x116000 - 0x117fff: gsc
1681 0x118000 - 0x119fff: reserved
1682 0x11a000 - 0x11efff: gsc
1683 0x11f000 - 0x11ffff: reserved */
1684 GEN_FW_RANGE(0x120000, 0x1bffff, 0), /* non-GT range */
1685 GEN_FW_RANGE(0x1c0000, 0x1c7fff, FORCEWAKE_MEDIA_VDBOX0), /*
1686 0x1c0000 - 0x1c3dff: VD0
1687 0x1c3e00 - 0x1c3eff: reserved
1688 0x1c3f00 - 0x1c3fff: VD0
1689 0x1c4000 - 0x1c7fff: reserved */
1690 GEN_FW_RANGE(0x1c8000, 0x1cbfff, FORCEWAKE_MEDIA_VEBOX0), /*
1691 0x1c8000 - 0x1ca0ff: VE0
1692 0x1ca100 - 0x1cbfff: reserved */
1693 GEN_FW_RANGE(0x1cc000, 0x1cffff, FORCEWAKE_MEDIA_VDBOX0), /*
1694 0x1cc000 - 0x1cdfff: VD0
1695 0x1ce000 - 0x1cffff: reserved */
1696 GEN_FW_RANGE(0x1d0000, 0x1d7fff, FORCEWAKE_MEDIA_VDBOX2), /*
1697 0x1d0000 - 0x1d3dff: VD2
1698 0x1d3e00 - 0x1d3eff: reserved
1699 0x1d4000 - 0x1d7fff: VD2 */
1700 GEN_FW_RANGE(0x1d8000, 0x1da0ff, FORCEWAKE_MEDIA_VEBOX1),
1701 GEN_FW_RANGE(0x1da100, 0x380aff, 0), /*
1702 0x1da100 - 0x23ffff: reserved
1703 0x240000 - 0x37ffff: non-GT range
1704 0x380000 - 0x380aff: reserved */
1705 GEN_FW_RANGE(0x380b00, 0x380bff, FORCEWAKE_GT),
1706 GEN_FW_RANGE(0x380c00, 0x380fff, 0),
1707 GEN_FW_RANGE(0x381000, 0x38817f, FORCEWAKE_GT), /*
1708 0x381000 - 0x381fff: gt
1709 0x382000 - 0x383fff: reserved
1710 0x384000 - 0x384aff: gt
1711 0x384b00 - 0x3851ff: reserved
1712 0x385200 - 0x3871ff: gt
1713 0x387200 - 0x387fff: reserved
1714 0x388000 - 0x38813f: gt
1715 0x388140 - 0x38817f: reserved */
1716 GEN_FW_RANGE(0x388180, 0x3882ff, 0), /*
1717 0x388180 - 0x3881ff: always on
1718 0x388200 - 0x3882ff: reserved */
1719 GEN_FW_RANGE(0x388300, 0x38955f, FORCEWAKE_GT), /*
1720 0x388300 - 0x38887f: gt
1721 0x388880 - 0x388fff: reserved
1722 0x389000 - 0x38947f: gt
1723 0x389480 - 0x38955f: reserved */
1724 GEN_FW_RANGE(0x389560, 0x389fff, 0), /*
1725 0x389560 - 0x3895ff: always on
1726 0x389600 - 0x389fff: reserved */
1727 GEN_FW_RANGE(0x38a000, 0x38cfff, FORCEWAKE_GT), /*
1728 0x38a000 - 0x38afff: gt
1729 0x38b000 - 0x38bfff: reserved
1730 0x38c000 - 0x38cfff: gt */
1731 GEN_FW_RANGE(0x38d000, 0x38d11f, 0),
1732 GEN_FW_RANGE(0x38d120, 0x391fff, FORCEWAKE_GT), /*
1733 0x38d120 - 0x38dfff: gt
1734 0x38e000 - 0x38efff: reserved
1735 0x38f000 - 0x38ffff: gt
1736 0x389000 - 0x391fff: reserved */
1737 GEN_FW_RANGE(0x392000, 0x392fff, 0), /*
1738 0x392000 - 0x3927ff: always on
1739 0x392800 - 0x292fff: reserved */
1740 GEN_FW_RANGE(0x393000, 0x3931ff, FORCEWAKE_GT),
1741 GEN_FW_RANGE(0x393200, 0x39323f, FORCEWAKE_ALL), /* instance-based, see note above */
1742 GEN_FW_RANGE(0x393240, 0x3933ff, FORCEWAKE_GT),
1743 GEN_FW_RANGE(0x393400, 0x3934ff, FORCEWAKE_ALL), /* instance-based, see note above */
1744 GEN_FW_RANGE(0x393500, 0x393c7f, 0), /*
1745 0x393500 - 0x393bff: reserved
1746 0x393c00 - 0x393c7f: always on */
1747 GEN_FW_RANGE(0x393c80, 0x393dff, FORCEWAKE_GT),
1755 * hence harmless to write 0 into. */ in ilk_dummy_write()
1756 __raw_uncore_write32(uncore, RING_MI_MODE(RENDER_RING_BASE), 0); in ilk_dummy_write()
1766 "Unclaimed %s register 0x%x\n", in __unclaimed_reg_debug()
1780 "Unclaimed access detected before %s register 0x%x\n", in __unclaimed_previous_reg_debug()
1825 u##x val = 0; \
1868 u##x val = 0; \
2038 } while (0)
2046 } while (0)
2052 } while (0)
2058 } while (0)
2081 d->wake_count = 0; in __fw_domain_init()
2114 return 0; in __fw_domain_init()
2158 int ret = 0; in intel_uncore_fw_domains_init()
2187 for (i = 0; i < I915_MAX_VCS; i++) { in intel_uncore_fw_domains_init()
2195 for (i = 0; i < I915_MAX_VECS; i++) { in intel_uncore_fw_domains_init()
2248 __raw_uncore_write32(uncore, FORCEWAKE, 0); in intel_uncore_fw_domains_init()
2278 drm_WARN_ON(&i915->drm, !ret && uncore->fw_domains == 0); in intel_uncore_fw_domains_init()
2408 return 0; in uncore_media_forcewake_init()
2421 forcewake_early_sanitize(uncore, 0); in uncore_forcewake_init()
2467 return 0; in uncore_forcewake_init()
2475 return 0; in sanity_check_mmio_access()
2480 * return 0xFFFFFFFF. Let's make sure the device isn't in this state in sanity_check_mmio_access()
2491 #define COND (__raw_uncore_read32(uncore, FORCEWAKE_MT) != ~0) in sanity_check_mmio_access()
2493 drm_err(&i915->drm, "Device is non-operational; MMIO access returns 0xFFFFFFFF!\n"); in sanity_check_mmio_access()
2497 return 0; in sanity_check_mmio_access()
2550 return 0; in intel_uncore_init_mmio()
2568 for (i = 0; i < I915_MAX_VCS; i++) { in intel_uncore_prune_engine_fw_domains()
2582 if (GRAPHICS_VER_FULL(uncore->i915) >= IP_VER(12, 55) && i % 2 == 0) { in intel_uncore_prune_engine_fw_domains()
2594 for (i = 0; i < I915_MAX_VECS; i++) { in intel_uncore_prune_engine_fw_domains()
2645 ret = intel_wait_for_register_fw(uncore, GU_CNTL, DRIVERFLR, 0, flr_timeout_ms); in driver_initiated_flr()
2655 intel_uncore_rmw_fw(uncore, GU_CNTL, 0, DRIVERFLR); in driver_initiated_flr()
2659 DRIVERFLR, 0, in driver_initiated_flr()
2721 * Return: 0 if the register matches the desired condition, or -ETIMEDOUT.
2731 u32 reg_value = 0; in __intel_wait_for_register_fw()
2742 ret = _wait_for_atomic(done, fast_timeout_us, 0); in __intel_wait_for_register_fw()
2770 * Return: 0 if the register matches the desired condition, or -ETIMEDOUT.
2792 fast_timeout_us, 0, ®_value); in __intel_wait_for_register()
2836 if (unlikely(uncore->debug->unclaimed_mmio_check <= 0)) in intel_uncore_arm_unclaimed_mmio_detection()
2875 enum forcewake_domains fw_domains = 0; in intel_uncore_forcewake_for_reg()
2880 return 0; in intel_uncore_forcewake_for_reg()