From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by gabe.freedesktop.org (Postfix) with ESMTPS id 39BD210E4B9 for ; Wed, 19 Jul 2023 14:25:26 +0000 (UTC) Date: Wed, 19 Jul 2023 07:25:18 -0700 Message-ID: <87ttu09dwx.wl-ashutosh.dixit@intel.com> From: "Dixit, Ashutosh" To: Badal Nilawar In-Reply-To: <20230719141744.3419462-1-badal.nilawar@intel.com> References: <20230719141744.3419462-1-badal.nilawar@intel.com> MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII Subject: Re: [igt-dev] [PATCH i-g-t v4] tests/xe: Verify actual frequency on the basis of GT state List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: igt-dev@lists.freedesktop.org Errors-To: igt-dev-bounces@lists.freedesktop.org Sender: "igt-dev" List-ID: On Wed, 19 Jul 2023 07:17:44 -0700, Badal Nilawar wrote: > > @@ -266,7 +284,7 @@ static void test_freq_fixed(int fd, int gt_id) > * Run type: FULL > */ > > -static void test_freq_range(int fd, int gt_id) > +static void test_freq_range(int fd, int gt_id, bool gt_idle) > { > uint32_t rpn = get_freq(fd, gt_id, "rpn"); > uint32_t rpe = get_freq(fd, gt_id, "rpe"); > @@ -274,13 +292,22 @@ static void test_freq_range(int fd, int gt_id) > > igt_debug("Starting testing range request\n"); > > + if (gt_idle) > + igt_require(igt_wait(xe_is_gt_in_c6(fd, gt_id), 1000, 1)); Forgot to delete this? After deleting this is: Reviewed-by: Ashutosh Dixit