History

drm: document that user-space should force-probe connectors

It seems like we can't have nice things, so let's just document the disappointing behaviour instead. The previous version assumed the kernel would perform the probing work when appropriate, however this is not the case today. Update the documentation to reflect reality. v2: - Improve commit message to explain why this change is made (Pekka) - Keep the bit about flickering (Daniel) - Explain when user-space should force-probe, and when it shouldn't (Daniel)

Simon Ser committed 5 years ago

Commit a7e2e1c1 parent 36549841 file · +5 −8Browse files

Showing the changes to include/uapi (1 of 1 file). Show all

Unified · Split

include/uapi/drm/drm_mode.h+5−8
@@ -414,15 +414,12 @@ enum drm_mode_subconnector { · 413 unmodified lines
414 *414 *
415 * If the @count_modes field is set to zero, the kernel will perform a forced415 * If the @count_modes field is set to zero, the kernel will perform a forced
416 * probe on the connector to refresh the connector status, modes and EDID.416 * probe on the connector to refresh the connector status, modes and EDID.
417 * A forced-probe can be slow and the ioctl will block. A force-probe can cause417 * A forced-probe can be slow, might cause flickering and the ioctl will block.
418 * flickering and temporary freezes, so it should not be performed
419 * automatically.
420 *418 *
421 * User-space shouldn't need to force-probe connectors in general: the kernel419 * User-space needs to force-probe connectors to ensure their metadata is
422 * will automatically take care of probing connectors that don't support420 * up-to-date at startup and after receiving a hot-plug event. User-space
423 * hot-plug detection when appropriate. However, user-space may force-probe421 * may perform a forced-probe when the user explicitly requests it. User-space
424 * connectors on user request (e.g. clicking a "Scan connectors" button, or422 * shouldn't perform a forced-probe in other situations.
425 * opening a UI to manage screens).
426 */423 */
427struct drm_mode_get_connector {424struct drm_mode_get_connector {
428 /** @encoders_ptr: Pointer to ``__u32`` array of object IDs. */425 /** @encoders_ptr: Pointer to ``__u32`` array of object IDs. */

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t