mirror_ubuntu-kernels/drivers/gpu/drm/vc4
Maxime Ripard 4190e8bbcb
drm/vc4: hdmi: Check the HSM rate at runtime_resume
If our HSM clock has not been properly initialized, any register access
will silently lock up the system.

Let's check that this can't happen by adding a check for the rate before
any register access, and error out otherwise.

Link: https://lore.kernel.org/dri-devel/20220922145448.w3xfywkn5ecak2et@pengutronix.de/
Reviewed-by: Javier Martinez Canillas <javierm@redhat.com>
Tested-by: Stefan Wahren <stefan.wahren@i2se.com>
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
Link: https://patchwork.freedesktop.org/patch/msgid/20220929-rpi-pi3-unplugged-fixes-v1-2-cd22e962296c@cerno.tech
2022-10-13 13:57:04 +02:00
..
Kconfig drm/vc4: hdmi: Depends on CONFIG_PM 2022-08-18 17:14:58 +02:00
Makefile drm/vc4: hdmi: Add PHY init and disable function 2020-09-07 18:06:04 +02:00
vc4_bo.c Linux 5.19-rc6 2022-07-13 10:54:56 +10:00
vc4_crtc.c Linux 5.19-rc6 2022-07-13 10:54:56 +10:00
vc4_debugfs.c drm/vc4: Leverage the load tracker on the BCM2711 2021-11-04 10:36:25 +01:00
vc4_dpi.c drm: Remove linux/media-bus-format.h from drm_crtc.h 2022-07-05 21:15:13 +03:00
vc4_drv.c drm/vc4: Add module dependency on hdmi-codec 2022-10-13 13:44:40 +02:00
vc4_drv.h Linux 5.19-rc6 2022-07-13 10:54:56 +10:00
vc4_dsi.c drm/vc4: dsi: Add correct stop condition to vc4_dsi_encoder_disable iteration 2022-06-28 14:55:38 +02:00
vc4_fence.c
vc4_gem.c drm/vc4: Warn if some v3d code is run on BCM2711 2022-06-16 11:07:52 +02:00
vc4_hdmi_phy.c drm/vc4: hdmi: Rename pixel_rate variable 2022-03-24 13:43:59 +01:00
vc4_hdmi_regs.h drm/vc4: hdmi: Add MISC_CONTROL register for vc4 2022-06-28 14:56:08 +02:00
vc4_hdmi.c drm/vc4: hdmi: Check the HSM rate at runtime_resume 2022-10-13 13:57:04 +02:00
vc4_hdmi.h drm/vc4: hdmi: Skip writes to disabled packet RAM 2022-06-28 14:56:01 +02:00
vc4_hvs.c Linux 5.19-rc6 2022-07-13 10:54:56 +10:00
vc4_irq.c drm/vc4: Warn if some v3d code is run on BCM2711 2022-06-16 11:07:52 +02:00
vc4_kms.c Linux 5.19-rc6 2022-07-13 10:54:56 +10:00
vc4_packet.h
vc4_perfmon.c drm/vc4: perfmon: Fix variable dereferenced before check 2022-06-27 15:43:14 +02:00
vc4_plane.c Linux 5.19-rc6 2022-07-13 10:54:56 +10:00
vc4_qpu_defines.h
vc4_regs.h drm/vc4: drop unexpected word "the" in the comments 2022-06-22 09:22:55 +02:00
vc4_render_cl.c drm/vc4: Warn if some v3d code is run on BCM2711 2022-06-16 11:07:52 +02:00
vc4_trace_points.c
vc4_trace.h drm/vc4: add tracepoints for CL submissions 2022-03-17 15:12:25 +01:00
vc4_txp.c drm: Drop drm_framebuffer.h from drm_crtc.h 2022-06-20 23:53:55 +03:00
vc4_v3d.c drm/vc4: Warn if some v3d code is run on BCM2711 2022-06-16 11:07:52 +02:00
vc4_validate_shaders.c drm/vc4: Warn if some v3d code is run on BCM2711 2022-06-16 11:07:52 +02:00
vc4_validate.c drm/vc4: fix error code in vc4_check_tex_size() 2022-06-22 16:41:30 +02:00
vc4_vec.c drm/vc4: Separate VEC compatible variants 2021-05-24 13:52:33 +02:00