From patchwork Mon Mar 14 22:58:35 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinod Govindapillai X-Patchwork-Id: 12780869 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 6A1CAC433EF for ; Mon, 14 Mar 2022 22:58:58 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id C727810E1D4; Mon, 14 Mar 2022 22:58:57 +0000 (UTC) Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by gabe.freedesktop.org (Postfix) with ESMTPS id 6EB8210E1D4 for ; Mon, 14 Mar 2022 22:58:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1647298736; x=1678834736; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=G2JB+b9sKgPqcs/htXeFMDGRPDRoCirTjdXsljyCK7Q=; b=h9I9EL7kZ5jpwMOIaIlucuLxvqPgWVac1pmc9ox2jTQUou2X6oVs4RAQ KqmUPzPMX6Ir25pPc3HO15mMoP6C4M379gxbO2awPYEOkK6Ef2iyRn3X4 WU3c2Cut39sJV8wW7YqAwfAFydUNXRCHYVBE79nxCiFQC224rX26Yu2AP 4GNYvNrwAX+lRZhk3cAZBt7DEwt5ILe8buIGrWDfFpYAJbQf4SDSfC0+1 AEvbVvdZ6G0QsTvPtIJYfJhVD3C9Mah3G3W5KP+DCwK4qWyFH/F2AmBpX RrYa7at4d/2q0m5+1ptPYgbI+TEEWxZxrTfM4uaLAaeJsjmmTMGKbflPY g==; X-IronPort-AV: E=McAfee;i="6200,9189,10286"; a="255892137" X-IronPort-AV: E=Sophos;i="5.90,181,1643702400"; d="scan'208";a="255892137" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Mar 2022 15:58:55 -0700 X-IronPort-AV: E=Sophos;i="5.90,181,1643702400"; d="scan'208";a="556653802" Received: from mirceaau-mobl.ger.corp.intel.com (HELO vgovind2-mobl3.intel.com) ([10.252.33.88]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Mar 2022 15:58:54 -0700 From: Vinod Govindapillai To: intel-gfx@lists.freedesktop.org Date: Tue, 15 Mar 2022 00:58:35 +0200 Message-Id: <20220314225837.42816-1-vinod.govindapillai@intel.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Subject: [Intel-gfx] [RFC PATCH 0/2] suppress the wrong long hotplug events X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" Monitors like LG 27UL650-W, 27UK850 goes into power sleep state and generates long duration hotplug events even when the monitor is connected for display. Here is a proposal to detect and suppress such hotplug events by "sleep" for 2 secs for power state monitor become available before enable atomic commit. A debugfs entry is created to enable the suppression of the hotplug event in such scenarios. Cc: Imre Deak Mohammed Khajapasha (2): drm/i915/display: Add disable wait time for power state connector drm/i915/display: Add sleep for power state connector .../gpu/drm/i915/display/intel_connector.c | 3 + drivers/gpu/drm/i915/display/intel_display.c | 80 +++++++++++++++++++ drivers/gpu/drm/i915/display/intel_display.h | 8 ++ .../drm/i915/display/intel_display_debugfs.c | 58 ++++++++++++++ .../drm/i915/display/intel_display_debugfs.h | 7 ++ .../drm/i915/display/intel_display_types.h | 2 + drivers/gpu/drm/i915/i915_drv.h | 2 + 7 files changed, 160 insertions(+)