From patchwork Fri Oct 15 16:33:39 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Ser X-Patchwork-Id: 12562501 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 mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 161A3C433EF for ; Fri, 15 Oct 2021 16:33:56 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id A783F60E0C for ; Fri, 15 Oct 2021 16:33:55 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org A783F60E0C Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=emersion.fr Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id C58DC6E514; Fri, 15 Oct 2021 16:33:52 +0000 (UTC) Received: from mail-40136.proton.ch (mail-40136.proton.ch [185.70.40.136]) by gabe.freedesktop.org (Postfix) with ESMTPS id B476F6EDAC for ; Fri, 15 Oct 2021 16:33:49 +0000 (UTC) Date: Fri, 15 Oct 2021 16:33:39 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=emersion.fr; s=protonmail; t=1634315627; bh=iz8tfN2svdtF6KSSfSoVoVZ29qbGEbFnbC+v/Fx70h8=; h=Date:To:From:Reply-To:Subject:From; b=SkeNRxsO79EQOvQWkTYiu/bmDFpNztqSFp2GKcUv5EHq770j9+AYyndkTokrAYEys sqlblwXvRa5heHzYZI+xn9mLgTQ+opSo5IIhZIl4fuIYW1CGeOOV6CTxr25blGGi+C /YtNhnVCyNF/JrIC9eAnVC1hl73w4/uZLQ5cGKtBRA7M3QcASB50sPa5W9z+rmX8Rw sqmO5lsfOgLUHFHaQ4ckcqtp81Sg2qQRrXGWO4ndipP1km1LJFz2x+3HT2tmD7QqIE 0jVWTV4aHneOVAy2i/2QiyV+CIw16j+rS6vIKY/HFWeYukeVGqtNBDRFOEsPVXg+KP ykJclbCWnH/Hw== To: dri-devel@lists.freedesktop.org From: Simon Ser Subject: [PATCH v3 0/6] drm: add per-connector hotplug events Message-ID: <20211015163336.95188-1-contact@emersion.fr> MIME-Version: 1.0 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: , Reply-To: Simon Ser Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" When a uevent only updates a single connector, add a CONNECTOR property to the uevent. This allows user-space to ignore other connectors when handling the uevent. This is purely an optimization, drivers can still send a uevent without the CONNECTOR property. The CONNECTOR property is already set when sending HDCP property update uevents, see drm_sysfs_connector_status_event. This has been tested with a wlroots patch [1]. amdgpu and the probe-helper has been updated to use these new fine-grained uevents. Changes in v3: rebase [1]: https://github.com/swaywm/wlroots/pull/2959 Simon Ser (6): drm/sysfs: introduce drm_sysfs_connector_hotplug_event drm/probe-helper: add drm_kms_helper_connector_hotplug_event drm/connector: use drm_sysfs_connector_hotplug_event amdgpu: use drm_kms_helper_connector_hotplug_event drm/probe-helper: use drm_kms_helper_connector_hotplug_event i915/display/dp: send a more fine-grained link-status uevent .../gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 8 ++-- .../amd/display/amdgpu_dm/amdgpu_dm_debugfs.c | 4 +- drivers/gpu/drm/drm_connector.c | 2 +- drivers/gpu/drm/drm_probe_helper.c | 43 +++++++++++++++++-- drivers/gpu/drm/drm_sysfs.c | 25 +++++++++++ drivers/gpu/drm/i915/display/intel_dp.c | 2 + include/drm/drm_probe_helper.h | 1 + include/drm/drm_sysfs.h | 1 + 8 files changed, 75 insertions(+), 11 deletions(-) base-commit: f6632721cd6231e1bf28b5317dcc7543e43359f7