[PATCH RFC 2/6] drm/connector: hdmi: fix Infoframes generation

2024-03-07 Thread Dmitry Baryshkov
Gate only HDMI Vendor Infoframe generation on the info->has_hdmi_infoframe. All other infoframes were defined in earlier HDMI specs and should be generated by default. Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/drm_atomic_state_helper.c | 25 ++--- 1 file changed, 10

[PATCH RFC 6/6] drm/msm/hdmi: make use of the drm_connector_hdmi framework

2024-03-07 Thread Dmitry Baryshkov
Setup the HDMI connector on the MSM HDMI outputs. Make use of atomic_check hook and of the provided Infoframe infrastructure. Note: for now only AVI Infoframes are enabled. Audio Infoframes are currenly handled separately. This will be fixed for the final version. Signed-off-by: Dmitry Baryshkov

[PATCH RFC 5/6] drm/msm/hdmi: switch to atomic bridge callbacks

2024-03-07 Thread Dmitry Baryshkov
Change MSM HDMI bridge to use atomic_* callbacks in preparation to enablign the HDMI connector support. Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/msm/hdmi/hdmi_bridge.c | 13 + 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/msm/hdmi/hdmi_bridg

[PATCH RFC 4/6] drm/connector: hdmi: add opaque data type

2024-03-07 Thread Dmitry Baryshkov
HDMI bridge drivers need to store private data pointer to be used from drm_connector_hdmi_funcs::write_infoframes() and clear_infoframes() callbacks. Add it to the drm_connector.hdmi structure. Signed-off-by: Dmitry Baryshkov --- include/drm/drm_connector.h | 5 + 1 file changed, 5 insertion

[PATCH RFC 3/6] drm/connector: hdmi: split setup code of the HDMI connector

2024-03-07 Thread Dmitry Baryshkov
In order to use HDMI connector extensions from the bridge drivers, carve out the drm_connector_hdmi_setup() from drmm_connector_hdmi_init(). This way the drm_bridge drivers can call new function from their setup_connector callbacks. Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/drm_connect

[PATCH RFC 1/6] drm/bridge: add setup_connector callback

2024-03-07 Thread Dmitry Baryshkov
Add a callback to be called by the drivers when the drm_connector is created at the end of the drm_bridge chain. This allows bridges to perform additional setup, like setting up the HDMI connector properties. Note, for now only drm_bridge_connector uses this callback. Signed-off-by: Dmitry Barysh

[PATCH RFC 0/6] drm/msm: make use of the HDMI connector infrastructure

2024-03-07 Thread Dmitry Baryshkov
m/msm/hdmi/hdmi_bridge.c| 120 +- include/drm/drm_bridge.h | 15 include/drm/drm_connector.h | 10 +++ 7 files changed, 230 insertions(+), 53 deletions(-) --- base-commit: 47dc3e3d3051709acd01143e21d2de2b5322336c change-id: 20240307-b

[pull] drm/msm: drm-msm-next-2024-03-07 for v6.9

2024-03-07 Thread Rob Clark
Hi Dave, This is the last bit for v6.9, which was waiting on drm-misc-next-2024-02-29. Description below. The following changes since commit 177bce60cd10a4ffdc9881bf6f2dff7880408c1d: Merge tag 'drm-misc-next-2024-02-29' into msm-next (2024-03-03 18:32:11 -0800) are available in the Git repos

[PATCH][next] drm/msm: remove unused variable 'out'

2024-03-07 Thread Colin Ian King
The variable out is being initialized and incremented but it is never actually referenced in any other way. The variable is redundant and can be removed. Cleans up clang scan build warning: drivers/gpu/drm/msm/adreno/a6xx_gpu_state.c:843:6: warning: variable 'out' set but not used [-Wunused-but-se