Convert to use the freshly available made INTEL_GEN_MASK for easier grepping and improve function readability and clarify the UABI documentation. No functional changes. v2: - Lift GEM_BUG_ONs and use is_power_of_2 (Chris) - Retain -EINVAL on bad flags behavior (Chris) v3: - Extract flags with 'entry->size - 1' (Chris) v4: - Add GEM_BUG_ON on for flags vs entry offset (Chris) v5: - Use 'u16' to match 'dev_priv' (Ville) v6: - Fix checkpatch.pl errors
Showing the changes to include/uapi (1 of 2 files). Show all
Unified · Split
| @@ -1308,14 +1308,16 @@ struct drm_i915_reg_read { · 1307 unmodified lines | |||
| 1308 | * be specified | 1308 | * be specified |
| 1309 | */ | 1309 | */ |
| 1310 | __u64 offset; | 1310 | __u64 offset; |
| 1311 | #define I915_REG_READ_8B_WA BIT(0) | ||
| 1312 | |||
| 1311 | __u64 val; /* Return value */ | 1313 | __u64 val; /* Return value */ |
| 1312 | }; | 1314 | }; |
| 1313 | /* Known registers: | 1315 | /* Known registers: |
| 1314 | * | 1316 | * |
| 1315 | * Render engine timestamp - 0x2358 + 64bit - gen7+ | 1317 | * Render engine timestamp - 0x2358 + 64bit - gen7+ |
| 1316 | * - Note this register returns an invalid value if using the default | 1318 | * - Note this register returns an invalid value if using the default |
| 1317 | * single instruction 8byte read, in order to workaround that use | 1319 | * single instruction 8byte read, in order to workaround that pass |
| 1318 | * offset (0x2538 | 1) instead. | 1320 | * flag I915_REG_READ_8B_WA in offset field. |
| 1319 | * | 1321 | * |
| 1320 | */ | 1322 | */ |
| 1321 | 1323 | ||