From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by gabe.freedesktop.org (Postfix) with ESMTPS id ABD166E911 for ; Tue, 23 Mar 2021 17:41:27 +0000 (UTC) Date: Tue, 23 Mar 2021 10:41:26 -0700 Message-ID: <8735wl4vjt.wl-ashutosh.dixit@intel.com> From: "Dixit, Ashutosh" In-Reply-To: <1616399161-26567-1-git-send-email-jigar.bhatt@intel.com> References: <20210121083432.526247-1-jigar.bhatt@intel.com> <1616399161-26567-1-git-send-email-jigar.bhatt@intel.com> MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Subject: Re: [igt-dev] [PATCH i-g-t v11] tests/i915/i915_pm_dc: Add DC9 igt test List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: igt-dev-bounces@lists.freedesktop.org Sender: "igt-dev" To: Jigar Bhatt , anshuman.gupta@intel.com Cc: igt-dev@lists.freedesktop.org List-ID: 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. _______________________________________________ igt-dev mailing list igt-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/igt-dev