[igt-dev] [PATCH i-g-t v11] tests/i915/i915_pm_dc: Add DC9 igt test
Dixit, Ashutosh
ashutosh.dixit at intel.com
Tue Mar 23 17:41:26 UTC 2021
On Mon, 22 Mar 2021 00:46:01 -0700, Jigar Bhatt wrote:
>
> +static bool support_dc6(int debugfs_fd)
> +{
> + char buf[4096];
> +
> + igt_debugfs_simple_read(debugfs_fd, "i915_dmc_info",
> + buf, sizeof(buf));
> + return strstr(buf, "DC5 -> DC6 count");
> +}
> +
> +static bool check_dc9(uint32_t debugfs_fd, int prev_dc, bool dc6_supported, int seconds)
> +{
> +/*
> + * Since we do not have DC9 Counter,
> + * So we rely on dc5/dc6 counter reset to check if Display Engine was in DC9.
> + */
Please fix this comment too when you fix the compile warning. The comment
indentation is wrong.
More information about the igt-dev
mailing list