From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by gabe.freedesktop.org (Postfix) with ESMTPS id 76F1010E1D6 for ; Mon, 17 Apr 2023 05:07:34 +0000 (UTC) Message-ID: <0635610d-2d46-59ea-612e-9e7d28786cd0@intel.com> Date: Mon, 17 Apr 2023 10:37:21 +0530 Content-Language: en-US To: Bhanuprakash Modem , References: <20230413162732.1155058-1-bhanuprakash.modem@intel.com> <20230413162732.1155058-4-bhanuprakash.modem@intel.com> From: Karthik B S In-Reply-To: <20230413162732.1155058-4-bhanuprakash.modem@intel.com> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit MIME-Version: 1.0 Subject: Re: [igt-dev] [i-g-t 3/7] lib: Use i915 namespace for XE debugfs List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: igt-dev-bounces@lists.freedesktop.org Sender: "igt-dev" List-ID: On 4/13/2023 9:57 PM, Bhanuprakash Modem wrote: > As of now XE is going to use i915 namesapce for their debugfs. > Example: i915_current_bpc is applicable for both i915 & XE > > Signed-off-by: Bhanuprakash Modem Reviewed-by: Karthik B S > --- > lib/igt_kms.c | 2 +- > lib/igt_psr.c | 4 ++-- > 2 files changed, 3 insertions(+), 3 deletions(-) > > diff --git a/lib/igt_kms.c b/lib/igt_kms.c > index 50655f136b8..720e68ca7c9 100644 > --- a/lib/igt_kms.c > +++ b/lib/igt_kms.c > @@ -5706,7 +5706,7 @@ unsigned int igt_get_pipe_current_bpc(int drmfd, enum pipe pipe) > fd = igt_debugfs_pipe_dir(drmfd, pipe, O_RDONLY); > igt_assert(fd >= 0); > > - if (is_i915_device(drmfd)) > + if (is_intel_device(drmfd)) > strcpy(debugfs_name, "i915_current_bpc"); > else if (is_amdgpu_device(drmfd)) > strcpy(debugfs_name, "amdgpu_current_bpc"); > diff --git a/lib/igt_psr.c b/lib/igt_psr.c > index a2d88031268..13f7c567dc9 100644 > --- a/lib/igt_psr.c > +++ b/lib/igt_psr.c > @@ -277,7 +277,7 @@ bool i915_psr2_selective_fetch_check(int drm_fd) > int debugfs_fd; > bool ret; > > - if (!is_i915_device(drm_fd)) > + if (!is_intel_device(drm_fd)) > return false; > > debugfs_fd = igt_debugfs_dir(drm_fd); > @@ -303,7 +303,7 @@ bool i915_psr2_sel_fetch_to_psr1(int drm_fd) > int debugfs_fd; > bool ret = false; > > - if (!is_i915_device(drm_fd)) > + if (!is_intel_device(drm_fd)) > return ret; > > debugfs_fd = igt_debugfs_dir(drm_fd);