[Freedreno] [v3 2/2] backlight: Add DisplayPort aux backlight driver

2021-04-25 Thread Rajeev Nandan
Add backlight driver for the panels supporting backlight control using DPCD registers on the DisplayPort aux channel. Changes in v2: - New (most of the code reused from drm_dp_aux_backlight.c of v1) Changes in v3: - Add missing ';' to fix module compilation (kernel test bot) Signed-off-by: Rajee

[Freedreno] [v3 1/2] dt-bindings: backlight: add DisplayPort aux backlight

2021-04-25 Thread Rajeev Nandan
Add bindings for DisplayPort aux backlight driver. Changes in v2: - New Signed-off-by: Rajeev Nandan --- .../bindings/leds/backlight/dp-aux-backlight.yaml | 49 ++ 1 file changed, 49 insertions(+) create mode 100644 Documentation/devicetree/bindings/leds/backlight/dp-aux-

[Freedreno] [v3 0/2] drm: Add support for backlight control of eDP panel on ti-sn65dsi86 bridge

2021-04-25 Thread Rajeev Nandan
The backlight level of an eDP panel can be controlled through the AUX channel using DPCD registers of the panel. The capability for the Source device to adjust backlight characteristics within the panel, using the Sink device DPCD registers is indicated by the TCON_BACKLIGHT_ADJUSTMENT_CAPABLE bit

[Freedreno] [PATCH 2/2] drm/msm: make msm_disp_state transient data struct

2021-04-25 Thread Dmitry Baryshkov
Instead of allocating snapshotting structure at the driver probe time and later handling concurrent access, actual state, etc, make msm_disp_state transient struct. Allocate one when snapshotting happens and free it after coredump data is read by userspace. Signed-off-by: Dmitry Baryshkov --- dr

[Freedreno] [PATCH 1/2] drm/msm: pass dump state as a function argument

2021-04-25 Thread Dmitry Baryshkov
Instead of always getting the disp_state from drm device, pass it as an argument. Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c | 5 + drivers/gpu/drm/msm/disp/msm_disp_snapshot.h| 8 .../gpu/drm/msm/disp/msm_disp_snapshot_util.c | 17 ++

[Freedreno] [PATCH 0/2] drm/msm: rework display snapshotting

2021-04-25 Thread Dmitry Baryshkov
Rework display subsystem snapshotting by making msm_disp_state transient data struct. This simplifies handling of data. Dependencies: https://lore.kernel.org/linux-arm-msm/1618606645-19695-1-git-send-email-abhin...@codeaurora.org/ D