History

drm/i915/get_params: Add HuC status to getparams

This patch will allow for getparams to return the status of the HuC. As the HuC has to be validated by the GuC this patch uses the validated status to show when the HuC is loaded and ready for use. You cannot use the loaded status as with the GuC as the HuC is verified after it is loaded and is not usable until it is verified. v2: removed the forewakes as the registers are already force-woken. (T.Ursulin) v3: rebased on top of drm-tip. Removed any reference to intel_huc.h v4: rebased. Rename I915_PARAM_HAS_HUC to I915_PARAM_HUC_STATUS. Remove intel_is_huc_valid() since it is used only in one place. Put the case of I915_PARAM_HAS_HUC() in the right place. v5: rebased. Add a comment to specify that I915_READ(reg) does not read garbage value. The register HUC_STATUS2 is force woken and no rpm is needed.

Anusha Srivatsa committed 9 years ago

Commit 5464cd61 parent dac84a32 files · +8 −0Browse files

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

Unified · Split

include/uapi/drm/i915_drm.h+1−0
@@ -395,6 +395,7 @@ typedef struct drm_i915_irq_wait { · 394 unmodified lines
395395 * priorities and the driver will attempt to execute batches in priority order.
396396 */
397397 #define I915_PARAM_HAS_SCHEDULER 41
398+#define I915_PARAM_HUC_STATUS 42
398399
399400 typedef struct drm_i915_getparam {
400401 __s32 param;

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