[Intel-gfx] [PATCH v4] drm/i915/debugfs : PM_REQ and PM_RES registers

Chris Wilson chris at chris-wilson.co.uk
Fri Jan 15 13:20:38 UTC 2021


Quoting Saichandana S (2021-01-15 13:01:10)
> +static int i915_pm_req_res_info(struct seq_file *m, void *unused)
> +{
> +       struct drm_i915_private *i915 = node_to_i915(m->private);
> +       struct intel_csr *csr = &i915->csr;
> +       u32 DC9_status;
> +
> +       if (!HAS_CSR(i915))
> +               return -ENODEV;
> +       if (!csr->dmc_payload)
> +               return 0;
> +       DC9_status = intel_de_read(i915, PM_RSP_DBG_1) & PM_RESP_DC9_READY;

A read without waking the device up? Wait until IGT sees this.
[wrap with with_intel_runtime_pm(&i915->runtime_pm, wakeref)]
-Chris


More information about the Intel-gfx mailing list