From patchwork Wed Jul 20 12:15:05 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrzej Hajda X-Patchwork-Id: 12923869 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 102ABC43334 for ; Wed, 20 Jul 2022 12:16:13 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 6F2B012A27B; Wed, 20 Jul 2022 12:15:43 +0000 (UTC) Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by gabe.freedesktop.org (Postfix) with ESMTPS id 594948B50C; Wed, 20 Jul 2022 12:15:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1658319340; x=1689855340; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=3mBDDFUa6zRqbZgd3LwG/oe2hj8bj1YECv+Ob5PmfLI=; b=eb2/gxFg2nwQnqXO+uoTDVaqOz4r9Z/C9B2ct06P3XHhsFPVMl5O32pi bfjMdWpyrYLtk6bpoaG2Po1h3g4vqc9a5xIsATtchiNlWHOnV3aL1ZEES Hrq+LaoXUuk3OpHSPQpFZ6pJSs5Os5sM/C/+in0OP/rdJ8dhKFX/y9SxY eYRipKYsXjSz7sQzDo9lw/rMJk+EiyoJiza6UceQ4VZ7hxO549skL5MTx ha/tROi017G9jkE8p+ghk5ebLqLPsGdSMVRNMr6f8hSU7tvDxDX1IJD6D EKIAeDQpLnr41oo5ziOgiNXq9ksfiAvLDPCoYbq/5fW/RpZbHSYgJeqsf A==; X-IronPort-AV: E=McAfee;i="6400,9594,10413"; a="273598858" X-IronPort-AV: E=Sophos;i="5.92,286,1650956400"; d="scan'208";a="273598858" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Jul 2022 05:15:39 -0700 X-IronPort-AV: E=Sophos;i="5.92,286,1650956400"; d="scan'208";a="573280072" Received: from lab-ah.igk.intel.com ([10.91.215.196]) by orsmga006-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Jul 2022 05:15:37 -0700 From: Andrzej Hajda To: Jani Nikula , =?utf-8?b?VmlsbGUgU3lyasOk?= =?utf-8?b?bMOk?= , Arun R Murthy Subject: [PATCH v4 0/3] drm/i915/display: stop HPD workers before display driver unregister Date: Wed, 20 Jul 2022 14:15:05 +0200 Message-Id: <20220720121508.1202750-1-andrzej.hajda@intel.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Organization: Intel Technology Poland sp. z o.o. - ul. Slowackiego 173, 80-298 Gdansk - KRS 101882 - NIP 957-07-52-316 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Tvrtko Ursulin , Andrzej Hajda , intel-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, Rodrigo Vivi Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Hi Jani, Ville, Arun, This patchset is replacement of patch "drm/i915/display: disable HPD workers before display driver unregister" [1]. Ive decided to split patch into two parts - fbdev and MST, there are different issues. Ive also dropped shutdown path, as it has slightly different requirements, and more importantly I am not able to test properly. v2 (thx Arun for review): - reword of commit message (Arun) - intel_fbdev_hpd_set_suspend replaced with intel_fbdev_set_suspend (Arun) v3: - new patch adding suspended flag, to handle https://gitlab.freedesktop.org/drm/intel/-/issues/5950 v4: - check suspend flag also in i915_digport_work_func [1]: https://patchwork.freedesktop.org/series/103811/ Regards Andrzej Andrzej Hajda (3): drm/i915/hpd: postpone HPD cancel work after last user suspension drm/i915/fbdev: suspend HPD before fbdev unregistration drm/i915/display: add hotplug.suspended flag drivers/gpu/drm/i915/display/intel_display.c | 3 +++ drivers/gpu/drm/i915/display/intel_fbdev.c | 3 ++- drivers/gpu/drm/i915/display/intel_hotplug.c | 11 ++++++++++- drivers/gpu/drm/i915/display/intel_hotplug.h | 2 +- drivers/gpu/drm/i915/i915_driver.c | 4 ++-- drivers/gpu/drm/i915/i915_drv.h | 2 ++ drivers/gpu/drm/i915/i915_irq.c | 1 - 7 files changed, 20 insertions(+), 6 deletions(-)