Skip to content
Permalink
Simon-Ser/drm-…
Switch branches/tags

Commits on Oct 15, 2021

  1. i915/display/dp: send a more fine-grained link-status uevent

    When link-status changes, send a hotplug uevent which contains the
    connector and property ID. That way, user-space can more easily
    figure out that only the link-status property of this connector has
    been updated.
    
    Signed-off-by: Simon Ser <contact@emersion.fr>
    emersion authored and intel-lab-lkp committed Oct 15, 2021
  2. drm/probe-helper: use drm_kms_helper_connector_hotplug_event

    If an hotplug event only updates a single connector, use
    drm_kms_helper_connector_hotplug_event instead of
    drm_kms_helper_hotplug_event.
    
    Signed-off-by: Simon Ser <contact@emersion.fr>
    emersion authored and intel-lab-lkp committed Oct 15, 2021
  3. amdgpu: use drm_kms_helper_connector_hotplug_event

    When updating a single connector, use
    drm_kms_helper_connector_hotplug_event instead of
    drm_kms_helper_hotplug_event.
    
    Signed-off-by: Simon Ser <contact@emersion.fr>
    emersion authored and intel-lab-lkp committed Oct 15, 2021
  4. drm/connector: use drm_sysfs_connector_hotplug_event

    In drm_connector_register, use drm_sysfs_connector_hotplug_event
    instead of drm_sysfs_hotplug_event, because the hotplug event
    only updates a single connector.
    
    Signed-off-by: Simon Ser <contact@emersion.fr>
    emersion authored and intel-lab-lkp committed Oct 15, 2021
  5. drm/probe-helper: add drm_kms_helper_connector_hotplug_event

    This function is the same as drm_kms_helper_hotplug_event, but takes
    a connector instead of a device.
    
    Signed-off-by: Simon Ser <contact@emersion.fr>
    emersion authored and intel-lab-lkp committed Oct 15, 2021
  6. drm/sysfs: introduce drm_sysfs_connector_hotplug_event

    This function sends a hotplug uevent with a CONNECTOR property.
    
    Signed-off-by: Simon Ser <contact@emersion.fr>
    emersion authored and intel-lab-lkp committed Oct 15, 2021
  7. drm/bridge: synopsys: dw-hdmi: also allow interlace on bridge

    Since we allow interlace on the encoder, also allow it on the bridge
    so we can allow interlaced modes when using DRM_BRIDGE_ATTACH_NO_CONNECTOR.
    
    Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
    Acked-by: Sam Ravnborg <sam@ravnborg.org>
    Link: https://patchwork.freedesktop.org/patch/msgid/20211014152606.2289528-5-narmstrong@baylibre.com
    superna9999 committed Oct 15, 2021

Commits on Oct 14, 2021

  1. drm/panel: y030xx067a: Make use of the helper function dev_err_probe()

    When possible use dev_err_probe help to properly deal with the
    PROBE_DEFER error, the benefit is that DEFER issue will be logged
    in the devices_deferred debugfs file.
    And using dev_err_probe() can reduce code size, the error value
    gets printed.
    
    Signed-off-by: Cai Huoqing <caihuoqing@baidu.com>
    Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
    Link: https://patchwork.freedesktop.org/patch/msgid/20210916104658.11834-1-caihuoqing@baidu.com
    Cai Huoqing authored and sravnborg committed Oct 14, 2021
  2. drm/panel: xpp055c272: Make use of the helper function dev_err_probe()

    When possible use dev_err_probe help to properly deal with the
    PROBE_DEFER error, the benefit is that DEFER issue will be logged
    in the devices_deferred debugfs file.
    And using dev_err_probe() can reduce code size, the error value
    gets printed.
    
    Signed-off-by: Cai Huoqing <caihuoqing@baidu.com>
    Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
    Link: https://patchwork.freedesktop.org/patch/msgid/20210916104650.11781-1-caihuoqing@baidu.com
    Cai Huoqing authored and sravnborg committed Oct 14, 2021
  3. drm/panel: td043mtea1: Make use of the helper function dev_err_probe()

    When possible use dev_err_probe help to properly deal with the
    PROBE_DEFER error, the benefit is that DEFER issue will be logged
    in the devices_deferred debugfs file.
    And using dev_err_probe() can reduce code size, the error value
    gets printed.
    
    Signed-off-by: Cai Huoqing <caihuoqing@baidu.com>
    Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
    Link: https://patchwork.freedesktop.org/patch/msgid/20210916104642.11728-1-caihuoqing@baidu.com
    Cai Huoqing authored and sravnborg committed Oct 14, 2021
  4. drm/panel: sofef00: Make use of the helper function dev_err_probe()

    When possible use dev_err_probe help to properly deal with the
    PROBE_DEFER error, the benefit is that DEFER issue will be logged
    in the devices_deferred debugfs file.
    And using dev_err_probe() can reduce code size, the error value
    gets printed.
    
    Signed-off-by: Cai Huoqing <caihuoqing@baidu.com>
    Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
    Link: https://patchwork.freedesktop.org/patch/msgid/20210916104635.11675-1-caihuoqing@baidu.com
    Cai Huoqing authored and sravnborg committed Oct 14, 2021
  5. drm/panel: s6e63j0x03: Make use of the helper function dev_err_probe()

    When possible use dev_err_probe help to properly deal with the
    PROBE_DEFER error, the benefit is that DEFER issue will be logged
    in the devices_deferred debugfs file.
    And using dev_err_probe() can reduce code size, the error value
    gets printed.
    
    Signed-off-by: Cai Huoqing <caihuoqing@baidu.com>
    Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
    Link: https://patchwork.freedesktop.org/patch/msgid/20210916104627.11622-1-caihuoqing@baidu.com
    Cai Huoqing authored and sravnborg committed Oct 14, 2021
  6. drm/panel: nt39016: Make use of the helper function dev_err_probe()

    When possible use dev_err_probe help to properly deal with the
    PROBE_DEFER error, the benefit is that DEFER issue will be logged
    in the devices_deferred debugfs file.
    And using dev_err_probe() can reduce code size, the error value
    gets printed.
    
    Signed-off-by: Cai Huoqing <caihuoqing@baidu.com>
    Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
    Link: https://patchwork.freedesktop.org/patch/msgid/20210916104620.11569-1-caihuoqing@baidu.com
    Cai Huoqing authored and sravnborg committed Oct 14, 2021
  7. drm/panel: ls037v7dw01: Make use of the helper function dev_err_probe()

    When possible use dev_err_probe help to properly deal with the
    PROBE_DEFER error, the benefit is that DEFER issue will be logged
    in the devices_deferred debugfs file.
    And using dev_err_probe() can reduce code size, the error value
    gets printed.
    
    Signed-off-by: Cai Huoqing <caihuoqing@baidu.com>
    Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
    Link: https://patchwork.freedesktop.org/patch/msgid/20210916104612.11516-1-caihuoqing@baidu.com
    Cai Huoqing authored and sravnborg committed Oct 14, 2021
  8. drm/panel: k101-im2ba02: Make use of the helper function dev_err_probe()

    When possible use dev_err_probe help to properly deal with the
    PROBE_DEFER error, the benefit is that DEFER issue will be logged
    in the devices_deferred debugfs file.
    And using dev_err_probe() can reduce code size, and the error value
    gets printed.
    
    Signed-off-by: Cai Huoqing <caihuoqing@baidu.com>
    Acked-by: Icenowy Zheng <icenowy@aosc.io>
    Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
    Link: https://patchwork.freedesktop.org/patch/msgid/20210916104247.11270-1-caihuoqing@baidu.com
    Cai Huoqing authored and sravnborg committed Oct 14, 2021
  9. drm/panel: ili9881c: Make use of the helper function dev_err_probe()

    When possible use dev_err_probe help to properly deal with the
    PROBE_DEFER error, the benefit is that DEFER issue will be logged
    in the devices_deferred debugfs file.
    And using dev_err_probe() can reduce code size, and the error value
    gets printed.
    
    Signed-off-by: Cai Huoqing <caihuoqing@baidu.com>
    Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
    Link: https://patchwork.freedesktop.org/patch/msgid/20210916104240.11217-1-caihuoqing@baidu.com
    Cai Huoqing authored and sravnborg committed Oct 14, 2021
  10. drm/panel: fy07024di26a30d: Make use of the helper function dev_err_p…

    …robe()
    
    When possible use dev_err_probe help to properly deal with the
    PROBE_DEFER error, the benefit is that DEFER issue will be logged
    in the devices_deferred debugfs file.
    And using dev_err_probe() can reduce code size, and the error value
    gets printed.
    
    Signed-off-by: Cai Huoqing <caihuoqing@baidu.com>
    Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
    Link: https://patchwork.freedesktop.org/patch/msgid/20210916104232.11164-1-caihuoqing@baidu.com
    Cai Huoqing authored and sravnborg committed Oct 14, 2021
  11. drm/panel: ej030na: Make use of the helper function dev_err_probe()

    When possible use dev_err_probe help to properly deal with the
    PROBE_DEFER error, the benefit is that DEFER issue will be logged
    in the devices_deferred debugfs file.
    And using dev_err_probe() can reduce code size, and the error value
    gets printed.
    
    Signed-off-by: Cai Huoqing <caihuoqing@baidu.com>
    Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
    Link: https://patchwork.freedesktop.org/patch/msgid/20210916104225.11111-1-caihuoqing@baidu.com
    Cai Huoqing authored and sravnborg committed Oct 14, 2021
  12. drm: panel: nt36672a: Removed extra whitespace.

    Removed extra whitespace before dev_err_probe() according to coding style.
    
    Signed-off-by: Cai Huoqing <caihuoqing@baidu.com>
    Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
    Link: https://patchwork.freedesktop.org/patch/msgid/20210916073706.9004-1-caihuoqing@baidu.com
    Cai Huoqing authored and sravnborg committed Oct 14, 2021
  13. drm/panel: Delete panel on mipi_dsi_attach() failure

    Many DSI panel drivers fail to clean up their panel references on
    mipi_dsi_attach() failure, so we're leaving a dangling drm_panel
    reference to freed memory. Clean that up on failure.
    
    Noticed by inspection, after seeing similar problems on other drivers.
    Therefore, I'm not marking Fixes/stable.
    
    Signed-off-by: Brian Norris <briannorris@chromium.org>
    Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
    Link: https://patchwork.freedesktop.org/patch/msgid/20210923173336.3.If9e74fa9b1d6eaa9e0e5b95b2b957b992740251c@changeid
    computersforpeace authored and sravnborg committed Oct 14, 2021
  14. drm/panel: innolux-p079zca: Delete panel on attach() failure

    If we fail to attach (e.g., because 1 of 2 dual-DSI controllers aren't
    ready), we leave a dangling drm_panel reference to freed memory. Clean
    that up on failure.
    
    This problem exists since the driver's introduction, but is especially
    relevant after refactored for dual-DSI variants.
    
    Fixes: 14c8f2e ("drm/panel: add Innolux P079ZCA panel driver")
    Fixes: 7ad4e46 ("drm/panel: p079zca: Refactor panel driver to support multiple panels")
    Signed-off-by: Brian Norris <briannorris@chromium.org>
    Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
    Link: https://patchwork.freedesktop.org/patch/msgid/20210923173336.2.I9023cf8811a3abf4964ed84eb681721d8bb489d6@changeid
    computersforpeace authored and sravnborg committed Oct 14, 2021
  15. drm/panel: kingdisplay-kd097d04: Delete panel on attach() failure

    If we fail to attach (e.g., because 1 of 2 dual-DSI controllers aren't
    ready), we leave a dangling drm_panel reference to freed memory. Clean
    that up on failure.
    
    Fixes: 2a994cb ("drm/panel: Add Kingdisplay KD097D04 panel driver")
    Signed-off-by: Brian Norris <briannorris@chromium.org>
    Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
    Link: https://patchwork.freedesktop.org/patch/msgid/20210923173336.1.Icb4d9dbc1817f4e826361a4f1cea7461541668f0@changeid
    computersforpeace authored and sravnborg committed Oct 14, 2021
  16. drm/panel: Add JDI R63452 MIPI DSI panel driver

    This adds support for the JDI R63452 Full HD LCD panel used on the
    Xiaomi Mi 5 smartphone, in MIPI DSI command mode.
    
    Signed-off-by: Raffaele Tranquillini <raffaele.tranquillini@gmail.com>
    Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
    Link: https://patchwork.freedesktop.org/patch/msgid/20210925102911.518038-1-raffaele.tranquillini@gmail.com
    cunidev authored and sravnborg committed Oct 14, 2021
  17. dt-bindings: panel-simple-dsi: add JDI R63452 panel bindings

    This add the bindings for the JDI FHD_R63452 1080x1920 5.2" LCD DSI
     panel used on the Xiaomi Mi 5 smartphone.
    
    Signed-off-by: Raffaele Tranquillini <raffaele.tranquillini@gmail.com>
    Acked-by: Rob Herring <robh@kernel.org>
    Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
    Link: https://patchwork.freedesktop.org/patch/msgid/20210925103135.518443-1-raffaele.tranquillini@gmail.com
    cunidev authored and sravnborg committed Oct 14, 2021
  18. drm: fix null-ptr-deref in drm_dev_init_release()

    I got a null-ptr-deref report:
    
    [drm:drm_dev_init [drm]] *ERROR* Cannot allocate anonymous inode: -12
    ==================================================================
    BUG: KASAN: null-ptr-deref in iput+0x3c/0x4a0
    ...
    Call Trace:
     dump_stack_lvl+0x6c/0x8b
     kasan_report.cold+0x64/0xdb
     __asan_load8+0x69/0x90
     iput+0x3c/0x4a0
     drm_dev_init_release+0x39/0xb0 [drm]
     drm_managed_release+0x158/0x2d0 [drm]
     drm_dev_init+0x3a7/0x4c0 [drm]
     __devm_drm_dev_alloc+0x55/0xd0 [drm]
     mi0283qt_probe+0x8a/0x2b5 [mi0283qt]
     spi_probe+0xeb/0x130
    ...
     entry_SYSCALL_64_after_hwframe+0x44/0xae
    
    If drm_fs_inode_new() fails in drm_dev_init(), dev->anon_inode will point
    to PTR_ERR(...) instead of NULL. This will result in null-ptr-deref when
    drm_fs_inode_free(dev->anon_inode) is called.
    
    drm_dev_init()
    	drm_fs_inode_new() // fail, dev->anon_inode = PTR_ERR(...)
    	drm_managed_release()
    		drm_dev_init_release()
    			drm_fs_inode_free() // access non-existent anon_inode
    
    Define a temp variable and assign it to dev->anon_inode if the temp
    variable is not PTR_ERR.
    
    Fixes: 2cbf7fc ("drm: Use drmm_ for drm_dev_init cleanup")
    Reported-by: Hulk Robot <hulkci@huawei.com>
    Signed-off-by: Wang Hai <wanghai38@huawei.com>
    Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
    Link: https://patchwork.freedesktop.org/patch/msgid/20211013114139.4042207-1-wanghai38@huawei.com
    Wang Hai authored and sravnborg committed Oct 14, 2021
  19. drm/panel-simple: Add Vivax TPC-9150 panel v6

    The model and make of the LCD panel of the Vivax TPC-9150 is unknown,
    hence the panel settings that were retrieved with a FEX dump are named
    after the device NOT the actual panel.
    
    The LCD in question is a 50 pin MISO TFT LCD panel of the resolution
    1024x600 used by the aforementioned device.
    
    Version 2, as Thierry kindly suggested that I fix the order in which the
    panel was ordered compared to others.
    
    Version 3, filling in the required info suggested by Sam. Plus some
    factual issues that I've corrected myself (tested working)
    
    Version 4, rearranged the display parameters and fix invalid bit format
    issue. (Thanks Sam)
    
    Version 5, referred to FEX file instead of manual debugging for
    information.
    
    Version 6, same as above. This time, it'll be documented.
    
    A bit of context first: I experimented with this a long time ago whilst
    I was first learning how to get Linux running on Allwinner boards, I
    didn't have many resources at hand so this was quite slow. Anyways, I
    stumbled upon this guide (https://linux-sunxi.org/LCD) and was reading
    about how to setup the LCD for my tablet. Since I was able to make a
    proper FEX dump, I was also able to read the correct parameters for
    myself without relying on leaked documents or part numbers and whatnot.
    
    In the FEX dump the value lcd_frm IS SET to 1, which means, at least
    according to the document, that this display is INDEED an 18 bit per
    pixel panel. Compiling U-Boot and seeing the tux in proper colors
    confirmed this. As per Sam Ravnborg's suggestion, I've changed the panel
    to his format "MEDIA_BUS_FMT_RGB666_1X7X3_SPWG", however this does not
    lead to any actual change in regards to the functionality since the sunxi
    panel driver just ignores this value. However, hopefully this clears up
    any errors down the road as either the driver becomes advanced enough to
    not ignore this value or that some other piece of software relies on
    this value being known. PS: Apologies to the maintainers that have to
    endure my misjudgement about how these things work.
    
    As for the concerns about a single patch series, I wasn't sure where to
    send the patches as they clearly aren't dt-bindings related and my
    previous patches have ended up in drm-misc-fixes anyway. So I'm guessing
    I'll be fine if I just post them in the list from last time???
    
    Signed-off-by: Nikola Pavlica <pavlica.nikola@gmail.com>
    Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
    Link: https://patchwork.freedesktop.org/patch/msgid/20211011212731.77763-1-pavlica.nikola@gmail.com
    nikp123 authored and sravnborg committed Oct 14, 2021
  20. drm: of: Add drm_of_lvds_get_data_mapping

    Add helper function to convert DT "data-mapping" property string value
    into media bus format value, and deduplicate the code in panel-lvds.c
    and lvds-codec.c .
    
    Signed-off-by: Marek Vasut <marex@denx.de>
    Cc: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
    Cc: Sam Ravnborg <sam@ravnborg.org>
    To: dri-devel@lists.freedesktop.org
    Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
    Link: https://patchwork.freedesktop.org/patch/msgid/20211012224252.29185-1-marex@denx.de
    Marek Vasut authored and sravnborg committed Oct 14, 2021
  21. drm/bridge: display-connector: fix an uninitialized pointer in probe()

    The "label" pointer is used for debug output.  The code assumes that it
    is either NULL or valid, but it is never set to NULL.  It is either
    valid or uninitialized.
    
    Fixes: 0c275c3 ("drm/bridge: Add bridge driver for display connectors")
    Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
    Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
    Link: https://patchwork.freedesktop.org/patch/msgid/20211013080825.GE6010@kili
    error27 authored and sravnborg committed Oct 14, 2021
  22. drm: panel-simple: Add support for the Innolux G070Y2-T02 panel

    Add compatible and timings for the Innolux G070Y2-T02 panel. It is 7"
    WVGA (800x480) TFT LCD panel with TTL interface and a backlight unit.
    
    Co-Developed-by: Robin van der Gracht <robin@protonic.nl>
    Signed-off-by: Robin van der Gracht <robin@protonic.nl>
    Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
    Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
    Link: https://patchwork.freedesktop.org/patch/msgid/20211014095202.16716-2-o.rempel@pengutronix.de
    olerem authored and sravnborg committed Oct 14, 2021
  23. video: omapfb: Fix fall-through warning for Clang

    Fix the following fallthrough warnings:
    
    drivers/video/fbdev/omap/omapfb_main.c:1558:2: warning: unannotated fall-through between switch labels [-Wimplicit-fallthrough]
               case 0:
               ^
       drivers/video/fbdev/omap/omapfb_main.c:1558:2: note: insert 'break;' to avoid fall-through
               case 0:
               ^
               break;
       1 warning generated.
    
    This helps with the ongoing efforts to globally enable
    -Wimplicit-fallthrough for Clang.
    
    Link: KSPP#115
    Link: https://lore.kernel.org/lkml/202110141005.hUjaYMEi-lkp@intel.com/
    Reported-by: kernel test robot <lkp@intel.com>
    Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org>
    Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
    Link: https://patchwork.freedesktop.org/patch/msgid/20211014165320.GA1145571@embeddedor
    GustavoARSilva authored and sravnborg committed Oct 14, 2021
  24. platform/x86: thinkpad_acpi: Register a privacy-screen device

    Register a privacy-screen device on laptops with a privacy-screen,
    this exports the PrivacyGuard features to user-space using a
    standardized vendor-agnostic sysfs interface. Note the sysfs interface
    is read-only.
    
    Registering a privacy-screen device with the new privacy-screen class
    code will also allow the GPU driver to get a handle to it and export
    the privacy-screen setting as a property on the DRM connector object
    for the LCD panel. This DRM connector property is a new standardized
    interface which all user-space code should use to query and control
    the privacy-screen.
    
    Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
    Reviewed-by: Lyude Paul <lyude@redhat.com>
    Reviewed-by: Mark Pearson <markpearson@lenovo.com>
    Signed-off-by: Hans de Goede <hdegoede@redhat.com>
    Link: https://patchwork.freedesktop.org/patch/msgid/20211005202322.700909-9-hdegoede@redhat.com
    jwrdegoede committed Oct 14, 2021
  25. platform/x86: thinkpad_acpi: Get privacy-screen / lcdshadow ACPI hand…

    …les only once
    
    Get the privacy-screen / lcdshadow ACPI handles once and cache them,
    instead of retrieving them every time we need them.
    
    Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
    Reviewed-by: Lyude Paul <lyude@redhat.com>
    Reviewed-by: Mark Pearson <markpearson@lenovo.com>
    Signed-off-by: Hans de Goede <hdegoede@redhat.com>
    Link: https://patchwork.freedesktop.org/patch/msgid/20211005202322.700909-8-hdegoede@redhat.com
    jwrdegoede committed Oct 14, 2021
  26. platform/x86: thinkpad_acpi: Add hotkey_notify_extended_hotkey() helper

    Factor the extended hotkey handling out of hotkey_notify_hotkey() and
    into a new hotkey_notify_extended_hotkey() helper.
    
    This is a preparation patch for adding support the privacy-screen hotkey
    toggle (which needs some special handling, it should NOT send an evdev
    key-event to userspace...).
    
    Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
    Reviewed-by: Lyude Paul <lyude@redhat.com>
    Reviewed-by: Mark Pearson <markpearson@lenovo.com>
    Signed-off-by: Hans de Goede <hdegoede@redhat.com>
    Link: https://patchwork.freedesktop.org/patch/msgid/20211005202322.700909-7-hdegoede@redhat.com
    jwrdegoede committed Oct 14, 2021
  27. drm/connector: Add a drm_connector privacy-screen helper functions (v2)

    Add 2 drm_connector privacy-screen helper functions:
    
    1. drm_connector_attach_privacy_screen_provider(), this function creates
    and attaches the standard privacy-screen properties and registers a
    generic notifier for generating sysfs-connector-status-events on external
    changes to the privacy-screen status.
    
    2. drm_connector_update_privacy_screen(), update the privacy-screen's
    sw_state if the connector has a privacy-screen.
    
    Changes in v2:
    - Do not update connector->state->privacy_screen_sw_state on
      atomic-commits.
    - Change drm_connector_update_privacy_screen() to take drm_connector_state
      as argument instead of a full drm_atomic_state. This allows the helper
      to be called by drivers when they are enabling crtcs/encoders/connectors.
    
    Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
    Reviewed-by: Lyude Paul <lyude@redhat.com>
    Signed-off-by: Hans de Goede <hdegoede@redhat.com>
    Link: https://patchwork.freedesktop.org/patch/msgid/20211005202322.700909-6-hdegoede@redhat.com
    jwrdegoede committed Oct 14, 2021
  28. drm/privacy-screen: Add notifier support (v2)

    Add support for privacy-screen consumers to register a notifier to
    be notified of external (e.g. done by the hw itself on a hotkey press)
    state changes.
    
    Changes in v2:
    - Drop WARN_ON(mutex_is_locked(&priv->lock)) check in
      drm_privacy_screen_call_notifier_chain() it may be locked by
      another thread, which would lead to a false-positive triggering
      of the check
    
    Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
    Reviewed-by: Lyude Paul <lyude@redhat.com>
    Signed-off-by: Hans de Goede <hdegoede@redhat.com>
    Link: https://patchwork.freedesktop.org/patch/msgid/20211005202322.700909-5-hdegoede@redhat.com
    jwrdegoede committed Oct 14, 2021
Older