From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 7BB27C05023 for ; Wed, 17 Apr 2024 11:32:56 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 96DA8113411; Wed, 17 Apr 2024 11:32:54 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.b="bcHAxoY7"; dkim-atps=neutral Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.19]) by gabe.freedesktop.org (Postfix) with ESMTPS id 2280E11340C for ; Wed, 17 Apr 2024 11:32:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1713353565; x=1744889565; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=ixZrJj3hOWDh8trTLw+o31kqKhs2YRPpp2DmsuRZiAY=; b=bcHAxoY7KIlpzJXTa8v9VHgb6f+ALJeq2FHgAfH/VXXQTIXxmm78yMfI kJ9znQYeBjSa4IWEt1KjHXFTERqKhzMSBCk5krxI7Zi/jCPBj5vKOwnqJ MSbr3nzhBPhIK2hSt9uWbD+Ni6Rq0PA1EWjdow9ZO1DivOlhdq9I2Zblm IvDOSD+DCeXIQFMdU7mmuFSfJlrnf07F+QuSlZjiPn1Qhvlrl1/zd2x7+ +cPocKf1lCl2Qd+8REDPMj0M+DRZCt+ekgKvvUad5zFph+8n3g3ovX/0v amRwAy2LUWHbCP8uO303K/s4xCyyYRjxPZgceFjMbUK6BlFfu0TcL8J7p A==; X-CSE-ConnectionGUID: /Hvz3V2TRBe2mTBm2OT5/g== X-CSE-MsgGUID: QZYGa2y5TM6UcewYMLwAMw== X-IronPort-AV: E=McAfee;i="6600,9927,11046"; a="8719256" X-IronPort-AV: E=Sophos;i="6.07,209,1708416000"; d="scan'208";a="8719256" Received: from fmviesa006.fm.intel.com ([10.60.135.146]) by orvoesa111.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Apr 2024 04:32:45 -0700 X-CSE-ConnectionGUID: rcXHgcARSWKDhE8yNd6zww== X-CSE-MsgGUID: WbsjSbOzT3KhE2O0T/VDlQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,209,1708416000"; d="scan'208";a="22658155" Received: from kunal-x299-aorus-gaming-3-pro.iind.intel.com ([10.190.239.13]) by fmviesa006-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Apr 2024 04:32:43 -0700 From: Kunal Joshi To: igt-dev@lists.freedesktop.org Cc: Kunal Joshi , =?UTF-8?q?Ville=20Syrj=C3=A4l=C3=A4?= , Ankit Nautiyal , Bhanuprakash Modem Subject: [PATCH i-g-t 5/6] lib/igt_kms: remove unused igt_force_and_check_bigjoiner_status Date: Wed, 17 Apr 2024 17:13:25 +0530 Message-Id: <20240417114326.2245087-6-kunal1.joshi@intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240417114326.2245087-1-kunal1.joshi@intel.com> References: <20240417114326.2245087-1-kunal1.joshi@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: igt-dev@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development mailing list for IGT GPU Tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: igt-dev-bounces@lists.freedesktop.org Sender: "igt-dev" remove unused igt_force_and_check_bigjoiner_status Cc: Ville Syrjälä Cc: Ankit Nautiyal Cc: Bhanuprakash Modem Signed-off-by: Kunal Joshi --- lib/igt_kms.c | 28 ---------------------------- lib/igt_kms.h | 1 - 2 files changed, 29 deletions(-) diff --git a/lib/igt_kms.c b/lib/igt_kms.c index 5332a7a9a..f85cd4a51 100644 --- a/lib/igt_kms.c +++ b/lib/igt_kms.c @@ -6342,34 +6342,6 @@ bool igt_has_force_joiner_debugfs(int drmfd, igt_output_t *output) return ret >= 0; } -/** - * Forces the enable/disable state of big joiner for a specific connector. - * - * @drmfd The file descriptor of the DRM device. - * @connector_name The name of the connector. - * @enable The desired state of big joiner (true for enable, false for disable). - * Returns: - * true if writing the debugfs was successful - * and the state was set as requested, false otherwise. - */ -bool igt_force_and_check_bigjoiner_status(int drmfd, char *connector_name, bool enable) -{ - int debugfs_fd, ret; - char buf[512]; - - igt_assert_f(connector_name, "Connector name cannot be NULL\n"); - debugfs_fd = igt_debugfs_connector_dir(drmfd, connector_name, O_DIRECTORY); - igt_assert_f(debugfs_fd >= 0, "Could not open debugfs for connector %s\n", connector_name); - ret = igt_sysfs_write(debugfs_fd, "i915_bigjoiner_force_enable", enable ? "1" : "0", 1); - igt_assert_f(ret > 0, "Could not write i915_bigjoiner_force_enable for connector %s\n", connector_name); - ret = igt_debugfs_simple_read(debugfs_fd, "i915_bigjoiner_force_enable", buf, sizeof(buf)); - close(debugfs_fd); - igt_assert_f(ret > 0, "Could not read i915_bigjoiner_force_enable for connector %s\n", connector_name); - - return enable ? strstr(buf, "Y") : - strstr(buf, "N"); -} - /** * igt_check_bigjoiner_support: * @display: a pointer to an #igt_display_t structure diff --git a/lib/igt_kms.h b/lib/igt_kms.h index 8951fccfd..2897fb3f6 100644 --- a/lib/igt_kms.h +++ b/lib/igt_kms.h @@ -1217,7 +1217,6 @@ bool igt_bigjoiner_possible(drmModeModeInfo *mode, int max_dotclock); bool bigjoiner_mode_found(int drm_fd, drmModeConnector *connector, int max_dotclock, drmModeModeInfo *mode); bool igt_has_force_joiner_debugfs(int drmfd, igt_output_t *output); -bool igt_force_and_check_bigjoiner_status(int drmfd, char *connector_name, bool enable); bool igt_check_bigjoiner_support(igt_display_t *display); bool igt_parse_mode_string(const char *mode_string, drmModeModeInfo *mode); bool intel_pipe_output_combo_valid(igt_display_t *display); -- 2.25.1