From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by gabe.freedesktop.org (Postfix) with ESMTPS id DE53810E4A8 for ; Wed, 19 Jul 2023 13:40:20 +0000 (UTC) Date: Wed, 19 Jul 2023 06:40:18 -0700 Message-ID: <87a5vshvel.wl-ashutosh.dixit@intel.com> From: "Dixit, Ashutosh" To: "Nilawar, Badal" In-Reply-To: <5471e751-f249-bbd3-b622-a408dd04efc1@intel.com> References: <20230718111736.3324211-1-badal.nilawar@intel.com> <87edl5hybs.wl-ashutosh.dixit@intel.com> <87cz0phy5u.wl-ashutosh.dixit@intel.com> <5471e751-f249-bbd3-b622-a408dd04efc1@intel.com> MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Subject: Re: [igt-dev] [PATCH i-g-t v3] 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 Tue, 18 Jul 2023 22:54:41 -0700, Nilawar, Badal wrote: > Hi Badal, > On 19-07-2023 11:05, Nilawar, Badal wrote: > > > > > > On 18-07-2023 23:58, Dixit, Ashutosh wrote: > >> On Tue, 18 Jul 2023 11:24:55 -0700, Dixit, Ashutosh wrote: > >>> > >>> Sorry I missed this yesterday. Basically why do we have the > >>> igt_wait(xe_is_gt_in_c6()) above at the top when we are waking up the= gt > >>> when reading cur freq later? > >>> > >>> Maybe instead of this usleep, we can this do here: > >>> > >>> =A0=A0=A0=A0=A0=A0=A0 igt_assert(igt_wait(xe_is_gt_in_c6(fd, gt_id), = 1000, 1)); > >> > >> Actually, maybe: > >> > >> =A0=A0=A0=A0=A0=A0=A0 igt_assert(igt_wait(xe_is_gt_in_c6(fd, gt_id), 1= 000, 10))Sure I > >> will make this change. > Is it ok to use igt_warn_on here. igt_assert is anyway being done in next > instruction while checking act freq? Yes sure, makes sense. Also, the "if (gt_idle) igt_require()" at the top of the two functions, either leave as is or move to igt_main in both places where gt_idle is true. Thanks. -- Ashutosh > >> > >>> > >>> And get rid of the igt_require(igt_wait()) at the top? > > This is added to skip test if RC6 disabled or not working. As discussed > > offline I will move this to igt_main.