linux-stable/drivers/gpu/drm/sun4i
Samuel Holland 5411a69705 drm/sun4i: Remove obsolete references to PHYS_OFFSET
[ Upstream commit dc3ae06c5f ]

commit b4bdc4fbf8 ("soc: sunxi: Deal with the MBUS DMA offsets in a
central place") added a platform device notifier that sets the DMA
offset for all of the display engine frontend and backend devices.

The code applying the offset to DMA buffer physical addresses was then
removed from the backend driver in commit 756668ba68 ("drm/sun4i:
backend: Remove the MBUS quirks"), but the code subtracting PHYS_OFFSET
was left in the frontend driver.

As a result, the offset was applied twice in the frontend driver. This
likely went unnoticed because it only affects specific configurations
(scaling or certain pixel formats) where the frontend is used, on boards
with both one of these older SoCs and more than 1 GB of DRAM.

In addition, the references to PHYS_OFFSET prevent compiling the driver
on architectures where PHYS_OFFSET is not defined.

Fixes: b4bdc4fbf8 ("soc: sunxi: Deal with the MBUS DMA offsets in a central place")
Reviewed-by: Jernej Skrabec <jernej.skrabec@gmail.com>
Signed-off-by: Samuel Holland <samuel@sholland.org>
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
Link: https://patchwork.freedesktop.org/patch/msgid/20220424162633.12369-4-samuel@sholland.org
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-05-09 09:16:24 +02:00
..
Kconfig drm-misc-next for 5.17: 2021-12-10 15:08:21 +10:00
Makefile
sun4i_backend.c drm/sun4i: Make use of the helper function devm_platform_ioremap_resource() 2021-09-01 11:43:29 +02:00
sun4i_backend.h
sun4i_crtc.c
sun4i_crtc.h
sun4i_dotclock.c
sun4i_dotclock.h
sun4i_drv.c drm/sun4i: virtual CMA addresses are not needed 2021-10-21 09:52:21 +02:00
sun4i_drv.h
sun4i_framebuffer.c
sun4i_framebuffer.h
sun4i_frontend.c drm/sun4i: Remove obsolete references to PHYS_OFFSET 2022-05-09 09:16:24 +02:00
sun4i_frontend.h
sun4i_hdmi.h
sun4i_hdmi_ddc_clk.c
sun4i_hdmi_enc.c drm/sun4i: Make use of the helper function devm_platform_ioremap_resource() 2021-09-01 11:43:29 +02:00
sun4i_hdmi_i2c.c
sun4i_hdmi_tmds_clk.c
sun4i_layer.c
sun4i_layer.h
sun4i_lvds.c drm/bridge: Centralize error message when bridge attach fails 2021-07-28 16:33:12 +03:00
sun4i_lvds.h
sun4i_rgb.c drm/bridge: Centralize error message when bridge attach fails 2021-07-28 16:33:12 +03:00
sun4i_rgb.h
sun4i_tcon.c drm/sun4i: Make use of the helper function devm_platform_ioremap_resource() 2021-09-01 11:43:29 +02:00
sun4i_tcon.h
sun4i_tv.c drm/sun4i: Make use of the helper function devm_platform_ioremap_resource() 2021-09-01 11:43:29 +02:00
sun6i_drc.c
sun6i_mipi_dsi.c drm/sun4i: dsi: Make use of the helper function dev_err_probe() 2021-09-16 15:47:17 +02:00
sun6i_mipi_dsi.h
sun8i_csc.c
sun8i_csc.h drm/sun4i: Fix macros in sun8i_csc.h 2021-09-01 11:44:10 +02:00
sun8i_dw_hdmi.c Linux 5.15-rc7 2021-10-28 14:59:38 +10:00
sun8i_dw_hdmi.h drm/sun4i: dw-hdmi: Fix HDMI PHY clock setup 2021-10-06 11:05:44 +02:00
sun8i_hdmi_phy.c drm/sun4i: dw-hdmi: Fix missing put_device() call in sun8i_hdmi_phy_get 2022-01-11 10:49:32 +01:00
sun8i_hdmi_phy_clk.c
sun8i_mixer.c drm/sun4i: Make use of the helper function devm_platform_ioremap_resource() 2021-09-01 11:43:29 +02:00
sun8i_mixer.h drm/sun4i: mixer: Fix P010 and P210 format numbers 2022-03-08 11:54:50 +01:00
sun8i_tcon_top.c drm/sun4i: Make use of the helper function devm_platform_ioremap_resource() 2021-09-01 11:43:29 +02:00
sun8i_tcon_top.h
sun8i_ui_layer.c
sun8i_ui_layer.h
sun8i_ui_scaler.c
sun8i_ui_scaler.h
sun8i_vi_layer.c
sun8i_vi_layer.h
sun8i_vi_scaler.c
sun8i_vi_scaler.h
sunxi_engine.h