mirror_ubuntu-kernels/drivers/gpu/drm/vc4
Dave Stevenson fcef97e700
drm/vc4: hdmi: Switch to pm_runtime_status_suspended
If the controller isn't clocked or its domain powered up, the register
accesses will either stall the CPU or return garbage, respectively.

Thus, we had a warning in our register access function to complain when
that kind of risky accesses were performed.

In order to check the runtime_pm power state, we were using
pm_runtime_active(), but it turns out that it will become active only
once the runtime_resume hook has been executed.

This prevents us from doing any WARN-free register access in our
runtime_resume() implementation, while this is valid.

Let's switch to pm_runtime_status_suspended() instead.

Fixes: 14e193b956 ("drm/vc4: hdmi: Warn if we access the controller while disabled")
Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
Link: https://lore.kernel.org/r/20220613144800.326124-23-maxime@cerno.tech
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
2022-06-28 14:55:53 +02:00
..
Kconfig Linux 5.18-rc5 2022-05-03 16:08:48 +10:00
Makefile
vc4_bo.c drm: Drop drm_framebuffer.h from drm_crtc.h 2022-06-20 23:53:55 +03:00
vc4_crtc.c drm/vc4: dsi: Correct pixel order for DSI0 2022-06-28 14:55:30 +02: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/vc4: dpi: Ensure a default format is selected 2022-06-28 14:55:19 +02:00
vc4_drv.c drm/vc4: drv: Adopt the dma configuration from the HVS or V3D component 2022-06-28 14:54:45 +02:00
vc4_drv.h drm/vc4: hvs: Use pointer to HVS in HVS_READ and HVS_WRITE macros 2022-04-06 15:18:01 +02: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: Use newer fence API properly to fix build errors 2022-04-07 15:26:06 +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: Switch to pm_runtime_status_suspended 2022-06-28 14:55:53 +02:00
vc4_hdmi.c drm/vc4: hdmi: Reset HDMI MISC_CONTROL register 2022-06-28 14:55:51 +02:00
vc4_hdmi.h drm/vc4: hdmi: Add all the vc5 HDMI registers into the debugfs dumps 2022-06-28 14:55:43 +02:00
vc4_hvs.c drm/vc4: hvs: Add debugfs node that dumps the current display lists 2022-06-28 14:55:11 +02:00
vc4_irq.c drm/vc4: add tracepoints for CL submissions 2022-03-17 15:12:25 +01:00
vc4_kms.c drm/vc4: kms: Use maximum FIFO load for the HVS clock rate 2022-06-28 14:54:56 +02:00
vc4_packet.h
vc4_perfmon.c drm/vc4: replace idr_init() by idr_init_base() 2020-11-06 11:48:43 +01:00
vc4_plane.c drm/vc4: plane: Add alpha_blend_mode property to each plane. 2022-06-28 14:55:09 +02: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
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: Convert to Linux IRQ interfaces 2021-08-10 20:13:53 +02:00
vc4_validate_shaders.c
vc4_validate.c
vc4_vec.c drm/vc4: Separate VEC compatible variants 2021-05-24 13:52:33 +02:00