drm: Add privacy-screen class and connector properties
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest10 patches 12 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/10 | drm/connector: Add support for privacy-screen properties (v4)Documentation/ drivers/ drivers/ +1 more | +151 | 0 replies | |
| 2/10 | drm: Add privacy-screen class (v4)Documentation/ MAINTAINERS drivers/ +6 more | +606 | 5 replies | |
| 3/10 | drm/privacy-screen: Add X86 specific arch init codedrivers/ drivers/ include/ | +92 | 2 replies | |
| 4/10 | drm/privacy-screen: Add notifier support (v2)drivers/ include/ include/ | +83 | 0 replies | |
| 5/10 | drm/connector: Add a drm_connector privacy-screen helper functions (v2)drivers/ include/ | +113 | 0 replies | |
| 6/10 | platform/x86: thinkpad_acpi: Add hotkey_notify_extended_hotkey() helperdrivers/ | +19 | 0 replies | |
| 7/10 | platform/x86: thinkpad_acpi: Get privacy-screen / lcdshadow ACPI handles only oncedrivers/ | +8 | 0 replies | |
| 8/10 | platform/x86: thinkpad_acpi: Register a privacy-screen devicedrivers/ drivers/ | +74 | 0 replies | |
| 9/10 | drm/i915: Add intel_modeset_probe_defer() helperdrivers/ drivers/ drivers/ | +16 | 0 replies | |
| 10/10 | drm/i915: Add privacy-screen support (v3)drivers/ drivers/ drivers/ | +27 | 5 replies |
Reviews trailers per patch
All 10 patches have a Reviewed-by or Acked-by.
| Patch | Pekka Paalanen | Mario Limonciello | Emil Velikov | Lyude Paul | Ville Syrjälä |
|---|---|---|---|---|---|
| 1/10 | A-b | R-b | R-b | R-b | |
| 2/10 | R-b | R-b | |||
| 3/10 | R-b | R-b | |||
| 4/10 | R-b | R-b | |||
| 5/10 | R-b | R-b | |||
| 6/10 | R-b | R-b | |||
| 7/10 | R-b | R-b | |||
| 8/10 | R-b | R-b | |||
| 9/10 | R-b | ||||
| 10/10 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 5 reviewers.
Cover letter [PATCH 00/10] drm: Add privacy-screen class and connector properties
Hi all,
Here is a new version of my privacy-screen series, addressing the review-remark from Ville on patch 10/10 from the version posted on October 2nd. This new version contains the following changes:
- drm/i915: Add privacy-screen support (v3)
- Move drm_privacy_screen_get() call to intel_ddi_init_dp_connector()
Ville, can you (re)review "[PATCH 10/10] drm/i915: Add privacy-screen support (v3)" please ?
For anyone just tuning in, here is some more info from the previous cover-letters:
The first userspace consumer of the new properties is now fully ready for merging (it is just waiting for the kernel bits to land first):
- https://gitlab.gnome.org/GNOME/gsettings-desktop-schemas/-/merge_requests/49
- https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1952
- https://gitlab.gnome.org/GNOME/gnome-control-center/-/merge_requests/1032
The new API works as designed and add the following features to GNOME:
1. Showing an OSD notification when the privacy-screen is toggled on/off through hotkeys handled by the embedded-controller
2. Allowing control of the privacy-screen from the GNOME control-panel, including the on/off slider shown there updating to match the hw-setting when the setting is changed with the control-panel open.
3. Restoring the last user-setting at login
This series consists of a number of different parts:
1. A new version of Rajat's privacy-screen connector properties patch, this adds new userspace API in the form of new properties
2. Since on most devices the privacy screen is actually controlled by some vendor specific ACPI/WMI interface which has a driver under drivers/platform/x86, we need some "glue" code to make this functionality available to KMS drivers. Patches 2-4 add a new privacy-screen class for this, which allows non KMS drivers (and possibly KMS drivers too) to register a privacy-screen device and also adds an interface for KMS drivers to get access to the privacy-screen associated with a specific connector. This is modelled similar to how we deal with e.g. PWMs and GPIOs in the kernel, including separate includes for consumers and providers(drivers).
3. Some drm_connector helper functions to keep the actual changes needed for this in individual KMS drivers as small as possible (patch 5).
4. Make the thinkpad_acpi code register a privacy-screen device on ThinkPads with a privacy-screen (patches 6-8)
5. Make the i915 driver export the privacy-screen functionality through the connector properties on the eDP connector.
I believe that it would be best to merge the entire series, including the thinkpad_acpi changes through drm-misc in one go. As the pdx86 subsys maintainer I hereby give my ack for merging the thinkpad_acpi changes through drm-misc.
There is one small caveat with this series, which it is good to be aware of. The i915 driver will now return -EPROBE_DEFER on Thinkpads with an eprivacy screen, until the thinkpad_acpi driver is loaded. This means that initrd generation tools will need to be updated to include thinkpad_acpi when the i915 driver is added to the initrd. Without this the loading of the i915 driver will be delayed to after the switch to real rootfs.
Regards,
Hans
Hans de Goede (9):
drm: Add privacy-screen class (v4)
drm/privacy-screen: Add X86 specific arch init code drm/privacy-screen: Add notifier support (v2) drm/connector: Add a drm_connector privacy-screen helper functions
(v2)
platform/x86: thinkpad_acpi: Add hotkey_notify_extended_hotkey()
helper
platform/x86: thinkpad_acpi: Get privacy-screen / lcdshadow ACPI
handles only once
platform/x86: thinkpad_acpi: Register a privacy-screen device drm/i915: Add intel_modeset_probe_defer() helper drm/i915: Add privacy-screen support (v3)
Rajat Jain (1):
drm/connector: Add support for privacy-screen properties (v4)
Documentation/gpu/drm-kms-helpers.rst | 15 + Documentation/gpu/drm-kms.rst | 2 + MAINTAINERS | 8 + drivers/gpu/drm/Kconfig | 4 + drivers/gpu/drm/Makefile | 1 + drivers/gpu/drm/drm_atomic_uapi.c | 4 + drivers/gpu/drm/drm_connector.c | 203 ++++++++ drivers/gpu/drm/drm_drv.c | 4 + drivers/gpu/drm/drm_privacy_screen.c | 467 +++++++++++++++++++ drivers/gpu/drm/drm_privacy_screen_x86.c | 86 ++++ drivers/gpu/drm/i915/display/intel_atomic.c | 1 + drivers/gpu/drm/i915/display/intel_ddi.c | 15 + drivers/gpu/drm/i915/display/intel_display.c | 23 + drivers/gpu/drm/i915/display/intel_display.h | 1 + drivers/gpu/drm/i915/i915_pci.c | 9 +- drivers/platform/x86/Kconfig | 2 + drivers/platform/x86/thinkpad_acpi.c | 137 ++++-- include/drm/drm_connector.h | 55 +++ include/drm/drm_privacy_screen_consumer.h | 65 +++ include/drm/drm_privacy_screen_driver.h | 84 ++++ include/drm/drm_privacy_screen_machine.h | 46 ++ 21 files changed, 1183 insertions(+), 49 deletions(-) create mode 100644 drivers/gpu/drm/drm_privacy_screen.c create mode 100644 drivers/gpu/drm/drm_privacy_screen_x86.c create mode 100644 include/drm/drm_privacy_screen_consumer.h create mode 100644 include/drm/drm_privacy_screen_driver.h create mode 100644 include/drm/drm_privacy_screen_machine.h
Signature · 1 line
2.31.1