From: Marius Vlad <marius.vlad@collabora.com>
To: dri-devel@lists.freedesktop.org
Cc: dmitry.baryshkov@oss.qualcomm.com, tzimmermann@suse.de,
simona.vetter@ffwll.ch, jani.nikula@linux.intel.com,
ian.forbes@broadcom.com, louis.chauvet@bootlin.com,
daniel.stone@collabora.com
Subject: [PATCH v4 3/3] drm/vkms: Add polling for HPD
Date: Mon, 3 Nov 2025 19:45:57 +0200 [thread overview]
Message-ID: <20251103174558.7709-4-marius.vlad@collabora.com> (raw)
In-Reply-To: <20251103174558.7709-1-marius.vlad@collabora.com>
vkms is missing any kind of HPD (polling/irq), so add polling to handle
hotplug events.
Signed-off-by: Marius Vlad <marius.vlad@collabora.com>
---
drivers/gpu/drm/vkms/vkms_drv.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/drivers/gpu/drm/vkms/vkms_drv.c b/drivers/gpu/drm/vkms/vkms_drv.c
index e8472d9b6e3b..ec815c42ef04 100644
--- a/drivers/gpu/drm/vkms/vkms_drv.c
+++ b/drivers/gpu/drm/vkms/vkms_drv.c
@@ -198,6 +198,9 @@ static int vkms_create(struct vkms_config *config)
if (ret)
goto out_devres;
+ /* init kms poll for handling hpd */
+ drm_kms_helper_poll_init(&vkms_device->drm);
+
drm_client_setup(&vkms_device->drm, NULL);
return 0;
@@ -240,6 +243,7 @@ static void vkms_destroy(struct vkms_config *config)
fdev = config->dev->faux_dev;
+ drm_kms_helper_poll_fini(&config->dev->drm);
drm_dev_unregister(&config->dev->drm);
drm_atomic_helper_shutdown(&config->dev->drm);
devres_release_group(&fdev->dev, NULL);
--
2.47.2
next prev parent reply other threads:[~2025-11-03 17:46 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-11-03 17:45 [PATCH v4 0/3] Pass down hot plug CONNECTOR ID to user-space Marius Vlad
2025-11-03 17:45 ` [PATCH v4 1/3] drm: Introduce a new connector status Marius Vlad
2025-11-03 17:45 ` [PATCH v4 2/3] drm: Propagate connector status change Marius Vlad
2025-11-03 17:45 ` Marius Vlad [this message]
2025-11-04 10:21 ` [PATCH v4 3/3] drm/vkms: Add polling for HPD Louis Chauvet
2025-11-04 14:19 ` Marius Vlad
2025-11-06 9:02 ` Louis Chauvet
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20251103174558.7709-4-marius.vlad@collabora.com \
--to=marius.vlad@collabora.com \
--cc=daniel.stone@collabora.com \
--cc=dmitry.baryshkov@oss.qualcomm.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=ian.forbes@broadcom.com \
--cc=jani.nikula@linux.intel.com \
--cc=louis.chauvet@bootlin.com \
--cc=simona.vetter@ffwll.ch \
--cc=tzimmermann@suse.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox