Skip to contentSkip to conversation

Documentation: kernel-parameters.txt Add drm_kms_helper.poll

PATCH Superseded [email protected] 4 participants 4 messages Oct 4, 2012 Documentation

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Documentation: kernel-parameters.txt Add drm_kms_helper.poll

From: Mika Kuoppala <[email protected]>

Add description for drm_kms_helper.poll module parameter introduced by commit: e58f637bb96d5a0ae0919b9998b891d1ba7e47c9

---
 Documentation/kernel-parameters.txt |   11 +++++++++++
 1 file changed, 11 insertions(+)
Documentation/kernel-parameters.txt +11 -0
index f777fa9..ad97749 100644
@@ -741,6 +741,17 @@ bytes respectively. Such letter suffixes can also be entirely omitted.
 			if its name and a colon are prepended to the EDID
 			name.
 
+	drm_kms_helper.poll=
+			Polling for connected VGA devices on older systems
+			can be quite expensive, causing latencies of
+			several hundred milliseconds. This will cause visible
+			stalls, for example in video playback. If you
+			experience stalls in display output occurring every
+			10 seconds (DRM_OUTPUT_POLL_PERIOD=(10*HZ)), disabling
+			polling might help.
+			Format: <bool>  (1/Y/y=enable, 0/N/n=disable)
+			default: enabled
+
 	dscc4.setup=	[NET]
 
 	dyndbg[="val"]		[KNL,DYNAMIC_DEBUG]
Signature · 1 line
1.7.9.5
Reviewed-by on v1 1/1
#1 lore raw
Quoted 6 lines · On Thu, Oct 4, 2012 at 12:34 PM, <[email protected]> wrote:

From: Mika Kuoppala <[email protected]>

Add description for drm_kms_helper.poll module parameter introduced by commit: e58f637bb96d5a0ae0919b9998b891d1ba7e47c9

Actually I've noticed even with just hdmi it stalls for long enough to miss a frame, on an otherwise idle system. Kernel testcases ftw, kms locking ftl :(

Quoted 33 lines
---
 Documentation/kernel-parameters.txt |   11 +++++++++++
 1 file changed, 11 insertions(+)
Documentation/kernel-parameters.txt +11 -1
index f777fa9..ad97749 100644
@@ -741,6 +741,17 @@ bytes respectively. Such letter suffixes can also be entirely omitted.
                        if its name and a colon are prepended to the EDID
                        name.
 
+       drm_kms_helper.poll=
+                       Polling for connected VGA devices on older systems
+                       can be quite expensive, causing latencies of
+                       several hundred milliseconds. This will cause visible
+                       stalls, for example in video playback. If you
+                       experience stalls in display output occurring every
+                       10 seconds (DRM_OUTPUT_POLL_PERIOD=(10*HZ)), disabling
+                       polling might help.
+                       Format: <bool>  (1/Y/y=enable, 0/N/n=disable)
+                       default: enabled
+
        dscc4.setup=    [NET]
 
        dyndbg[="val"]          [KNL,DYNAMIC_DEBUG]
--

1.7.9.5

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

Signature · 3 lines
Daniel Vetter
Software Engineer, Intel Corporation
+41 (0) 79 365 57 48 - http://blog.ffwll.ch
Acked-by
#2 lore raw

Am Donnerstag, den 04.10.2012, 13:16 +0200 schrieb Daniel Vetter:

Quoted 5 lines · On Thu, Oct 4, 2012 at 12:34 PM, <[email protected]> wrote:
Quoted 4 lines

From: Mika Kuoppala <[email protected]>

Add description for drm_kms_helper.poll module parameter introduced by commit: e58f637bb96d5a0ae0919b9998b891d1ba7e47c9

Commit hashes are hard to remember. Please paste the commit summary too and even better add an URL so people can easily access it when not having a Git clone of Linux around.

Quoted 20 lines
Quoted 1 line

Actually I've noticed even with just hdmi it stalls for long enough to miss a frame, on an otherwise idle system. Kernel testcases ftw, kms locking ftl :(

Quoted 12 lines
---
 Documentation/kernel-parameters.txt |   11 +++++++++++
 1 file changed, 11 insertions(+)
Documentation/kernel-parameters.txt +0 -0
index f777fa9..ad97749 100644
@@ -741,6 +741,17 @@ bytes respectively. Such letter suffixes can also be entirely omitted.
                        if its name and a colon are prepended to the EDID
                        name.
 
Quoted 11 lines

Documentation/kernel-parameters.txt bytes respectively. Such letter suffixes can also be entirely omitted. · line 754

Quoted 11 lines
Documentation/kernel-parameters.txt +11 -0
+       drm_kms_helper.poll=
+                       Polling for connected VGA devices on older systems
+                       can be quite expensive, causing latencies of
+                       several hundred milliseconds. This will cause visible
+                       stalls, for example in video playback. If you
+                       experience stalls in display output occurring every
+                       10 seconds (DRM_OUTPUT_POLL_PERIOD=(10*HZ)), disabling
+                       polling might help.
+                       Format: <bool>  (1/Y/y=enable, 0/N/n=disable)
+                       default: enabled
+

So according to Daniel the description should be updated then? For DVI and HDMI polling is not needed unless the connector is wired up incorrectly on the board? Is it right, that VGA also supports auto detection when everything is wired up correctly?

Could you also add advises what people should do? Like, if it is disabled people can still enable the external monitor by running ….

Quoted 5 lines
Quoted 5 lines
Documentation/kernel-parameters.txt +0 -1
        dscc4.setup=    [NET]
 
        dyndbg[="val"]          [KNL,DYNAMIC_DEBUG]
--

1.7.9.5

Thanks,

Paul

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#3 lore raw
Quoted 31 lines · Paul Menzel

Am Donnerstag, den 04.10.2012, 13:16 +0200 schrieb Daniel Vetter:

Quoted 5 lines · On Thu, Oct 4, 2012 at 12:34 PM, <[email protected]> wrote:
Quoted 4 lines

From: Mika Kuoppala <[email protected]>

Add description for drm_kms_helper.poll module parameter introduced by commit: e58f637bb96d5a0ae0919b9998b891d1ba7e47c9

Commit hashes are hard to remember. Please paste the commit summary too and even better add an URL so people can easily access it when not having a Git clone of Linux around.

Quoted 20 lines
Quoted 1 line

Actually I've noticed even with just hdmi it stalls for long enough to miss a frame, on an otherwise idle system. Kernel testcases ftw, kms locking ftl :(

Quoted 12 lines
---
 Documentation/kernel-parameters.txt |   11 +++++++++++
 1 file changed, 11 insertions(+)
Documentation/kernel-parameters.txt +0 -0
index f777fa9..ad97749 100644
@@ -741,6 +741,17 @@ bytes respectively. Such letter suffixes can also be entirely omitted.
                        if its name and a colon are prepended to the EDID
                        name.
 
Quoted 16 lines
Quoted 11 lines

Documentation/kernel-parameters.txt bytes respectively. Such letter suffixes can also be entirely omitted. · line 754

Quoted 11 lines
Documentation/kernel-parameters.txt +11 -0
+       drm_kms_helper.poll=
+                       Polling for connected VGA devices on older systems
+                       can be quite expensive, causing latencies of
+                       several hundred milliseconds. This will cause visible
+                       stalls, for example in video playback. If you
+                       experience stalls in display output occurring every
+                       10 seconds (DRM_OUTPUT_POLL_PERIOD=(10*HZ)), disabling
+                       polling might help.
+                       Format: <bool>  (1/Y/y=enable, 0/N/n=disable)
+                       default: enabled
+

So according to Daniel the description should be updated then? For DVI and HDMI polling is not needed unless the connector is wired up incorrectly on the board? Is it right, that VGA also supports auto detection when everything is wired up correctly?

Legacy analog connectors don't generally support hotplug. Most digital displays should assuming the oem has wired up the hpd pin. The drivers can enable polling for any connectors they want. However, IIRC, due to the way the hotplug and polling are handled in the common drm code, that parameter can affect hotplug capable monitors as well.

Quoted 3 lines

Could you also add advises what people should do? Like, if it is disabled people can still enable the external monitor by running ….

You can still manually check the monitor using something like xrandr.

Alex

Quoted 19 lines
Quoted 6 lines
Quoted 6 lines
Documentation/kernel-parameters.txt +0 -1
        dscc4.setup=    [NET]
 
        dyndbg[="val"]          [KNL,DYNAMIC_DEBUG]
--

1.7.9.5

Thanks,

Paul

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel