From patchwork Mon Oct 18 08:47:09 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Ser X-Patchwork-Id: 12565355 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 E61D5C433EF for ; Mon, 18 Oct 2021 08:47:19 +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 B391860EC0 for ; Mon, 18 Oct 2021 08:47:19 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org B391860EC0 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 BE2CA6E99B; Mon, 18 Oct 2021 08:47:18 +0000 (UTC) Received: from mail-4317.proton.ch (mail-4317.proton.ch [185.70.43.17]) by gabe.freedesktop.org (Postfix) with ESMTPS id 340626E99C for ; Mon, 18 Oct 2021 08:47:17 +0000 (UTC) Date: Mon, 18 Oct 2021 08:47:09 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=emersion.fr; s=protonmail; t=1634546835; bh=QrB3JVww2LcGdYZwo1winnzyb1QAWcpPcUmttB08llg=; h=Date:To:From:Reply-To:Subject:From; b=sVUracSIsJJ5Slhvkwvbjsa9kyKJTo22NTPuuqgUEgmF7My56asIHjndmHzvtXbJK WF7W/MkyBdl+8hsYw8NZzdlPbJ5d4gcV+WgiP+94dZxR11pKw5K+QQeAD3P6SkYC3l wB+fGnu15KCNDLmpV6J7+WltKLHiIzq26QuLFdFm7KeuBcWfwtXDyv/x//t8Sy1+Ju DPS6aUYLy9PjHUEiftfttIiw+W4iSQrVoPARI584e0nyl5SiOmC7Ke+cVjNzeG0p/p L8i84z8cDUYT3NyC+bh17WNnc+8lQyt5FOlScH9trUL+cqq9F+FdtaM0uFzddU8gy/ J4pR6UK6eU++g== To: dri-devel@lists.freedesktop.org From: Simon Ser Subject: [PATCH v4 0/6] drm: add per-connector hotplug events Message-ID: <20211018084707.32253-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 v4: address comments from Ville, Maxime and Sam. 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 | 48 +++++++++++++++---- 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(+), 16 deletions(-) base-commit: f6632721cd6231e1bf28b5317dcc7543e43359f7