History

drm/i915: Simplify i915_reg_read_ioctl

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

Joonas Lahtinen committed 9 years ago

Commit 3fd3a6f1 parent fe52e592 files · +48 −53Browse files

Showing the changes to include/uapi (1 of 2 files). Show all

Unified · Split

include/uapi/drm/i915_drm.h+4−2
@@ -1308,14 +1308,16 @@ struct drm_i915_reg_read { · 1307 unmodified lines
1308 * be specified1308 * 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 default1318 * - Note this register returns an invalid value if using the default
1317 * single instruction 8byte read, in order to workaround that use1319 * 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

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t