These patches were generated from: https://github.com/raspberrypi/linux/commits/rpi-6.12.y With the following command: git format-patch -N v6.12.27..HEAD (HEAD -> 8d3206ee456a5ecdf9ddbfd8e5e231e4f0cd716e) Exceptions: - (def)configs patches - github workflows patches - applied & reverted patches - readme patches - wireless patches Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
45 lines
1.7 KiB
Diff
45 lines
1.7 KiB
Diff
From 7ff3c4a9cf344c08cdac97ee82d986c5ee007605 Mon Sep 17 00:00:00 2001
|
|
From: Dave Stevenson <dave.stevenson@raspberrypi.com>
|
|
Date: Thu, 21 Nov 2024 18:30:07 +0000
|
|
Subject: [PATCH] drm/connector: Initialise max_bpc to the minimum value
|
|
supported
|
|
|
|
Using increased bit depth for no reason increases power
|
|
consumption, and differs from the behaviour prior to the
|
|
conversion to use the HDMI helper functions.
|
|
|
|
Initialise the state max_bpc and requested_max_bpc to the
|
|
minimum value supported. This only affects Raspberry Pi,
|
|
as the other users of the helpers (rockchip/inno_hdmi and
|
|
sunx4i) only support a bit depth of 8.
|
|
|
|
Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
|
|
---
|
|
drivers/gpu/drm/display/drm_hdmi_state_helper.c | 2 +-
|
|
drivers/gpu/drm/drm_connector.c | 4 ++--
|
|
2 files changed, 3 insertions(+), 3 deletions(-)
|
|
|
|
--- a/drivers/gpu/drm/display/drm_hdmi_state_helper.c
|
|
+++ b/drivers/gpu/drm/display/drm_hdmi_state_helper.c
|
|
@@ -24,7 +24,7 @@ void __drm_atomic_helper_connector_hdmi_
|
|
unsigned int max_bpc = connector->max_bpc;
|
|
|
|
new_conn_state->max_bpc = max_bpc;
|
|
- new_conn_state->max_requested_bpc = max_bpc;
|
|
+ new_conn_state->max_requested_bpc = 8;
|
|
new_conn_state->hdmi.broadcast_rgb = DRM_HDMI_BROADCAST_RGB_AUTO;
|
|
}
|
|
EXPORT_SYMBOL(__drm_atomic_helper_connector_hdmi_reset);
|
|
--- a/drivers/gpu/drm/drm_connector.c
|
|
+++ b/drivers/gpu/drm/drm_connector.c
|
|
@@ -2731,8 +2731,8 @@ int drm_connector_attach_max_bpc_propert
|
|
}
|
|
|
|
drm_object_attach_property(&connector->base, prop, max);
|
|
- connector->state->max_requested_bpc = max;
|
|
- connector->state->max_bpc = max;
|
|
+ connector->state->max_requested_bpc = min;
|
|
+ connector->state->max_bpc = min;
|
|
|
|
return 0;
|
|
}
|