Skip to content

Commit 8ded594

Browse files
mszyprowdaeinki
authored andcommitted
drm/exynos: ipp: Remove Exynos DRM IPP subsystem
Exynos DRM IPP subsystem is in fact non-functional and frankly speaking dead-code. This patch clearly marks that Exynos DRM IPP subsystem is broken and never really functional. It will be replaced by a completely rewritten API. Exynos DRM IPP user-space API can be obsoleted for the following reasons: 1. Exynos DRM IPP user-space API can be optional in Exynos DRM, so userspace should not rely that it is always available and should have a software fallback in case it is not there. 2. The only mode which was initially semi-working was memory-to-memory image processing. The remaining modes (LCD-"writeback" and "output") were never operational due to missing code (both in mainline and even vendor kernels). 3. Exynos DRM IPP mainline user-space API compatibility for memory-to-memory got broken very early by commit 083500b ("drm: remove DRM_FORMAT_NV12MT", which removed the support for tiled formats, the main feature which made this API somehow useful on Exynos platforms (video codec that time produced only tiled frames, to implement xvideo or any other video overlay, one has to de-tile them for proper display). 4. Broken drivers. Especially once support for IOMMU has been added, it revealed that drivers don't configure DMA operations properly and in many cases operate outside the provided buffers trashing memory around. 5. Need for external patches. Although IPP user-space API has been used in some vendor kernels, but in such cases there were additional patches applied (like reverting mentioned 083500b patch) what means that those userspace apps which might use it, still won't work with the mainline kernel version. We don't have time machines, so we cannot change it, but Exynos DRM IPP extension should never have been merged to mainline in that form. Exynos IPP subsystem and user-space API will be rewritten, so remove current IPP core code and mark existing drivers as BROKEN. Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com> Acked-by: Daniel Stone <daniels@collabora.com> Acked-by: Krzysztof Kozlowski <krzk@kernel.org> Signed-off-by: Inki Dae <inki.dae@samsung.com>
1 parent ca52c71 commit 8ded594

7 files changed

Lines changed: 4 additions & 2272 deletions

File tree

‎drivers/gpu/drm/exynos/Kconfig‎

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -95,26 +95,21 @@ config DRM_EXYNOS_G2D
9595
help
9696
Choose this option if you want to use Exynos G2D for DRM.
9797

98-
config DRM_EXYNOS_IPP
99-
bool "Image Post Processor"
100-
help
101-
Choose this option if you want to use IPP feature for DRM.
102-
10398
config DRM_EXYNOS_FIMC
10499
bool "FIMC"
105-
depends on DRM_EXYNOS_IPP && MFD_SYSCON
100+
depends on BROKEN && MFD_SYSCON
106101
help
107102
Choose this option if you want to use Exynos FIMC for DRM.
108103

109104
config DRM_EXYNOS_ROTATOR
110105
bool "Rotator"
111-
depends on DRM_EXYNOS_IPP
106+
depends on BROKEN
112107
help
113108
Choose this option if you want to use Exynos Rotator for DRM.
114109

115110
config DRM_EXYNOS_GSC
116111
bool "GScaler"
117-
depends on DRM_EXYNOS_IPP && ARCH_EXYNOS5 && VIDEO_SAMSUNG_EXYNOS_GSC=n
112+
depends on BROKEN && ARCH_EXYNOS5 && VIDEO_SAMSUNG_EXYNOS_GSC=n
118113
help
119114
Choose this option if you want to use Exynos GSC for DRM.
120115

‎drivers/gpu/drm/exynos/Makefile‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ exynosdrm-$(CONFIG_DRM_EXYNOS_MIXER) += exynos_mixer.o
1818
exynosdrm-$(CONFIG_DRM_EXYNOS_HDMI) += exynos_hdmi.o
1919
exynosdrm-$(CONFIG_DRM_EXYNOS_VIDI) += exynos_drm_vidi.o
2020
exynosdrm-$(CONFIG_DRM_EXYNOS_G2D) += exynos_drm_g2d.o
21-
exynosdrm-$(CONFIG_DRM_EXYNOS_IPP) += exynos_drm_ipp.o
2221
exynosdrm-$(CONFIG_DRM_EXYNOS_FIMC) += exynos_drm_fimc.o
2322
exynosdrm-$(CONFIG_DRM_EXYNOS_ROTATOR) += exynos_drm_rotator.o
2423
exynosdrm-$(CONFIG_DRM_EXYNOS_GSC) += exynos_drm_gsc.o

‎drivers/gpu/drm/exynos/exynos_drm_drv.c‎

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929
#include "exynos_drm_plane.h"
3030
#include "exynos_drm_vidi.h"
3131
#include "exynos_drm_g2d.h"
32-
#include "exynos_drm_ipp.h"
3332
#include "exynos_drm_iommu.h"
3433

3534
#define DRIVER_NAME "exynos"
@@ -109,14 +108,6 @@ static const struct drm_ioctl_desc exynos_ioctls[] = {
109108
DRM_AUTH | DRM_RENDER_ALLOW),
110109
DRM_IOCTL_DEF_DRV(EXYNOS_G2D_EXEC, exynos_g2d_exec_ioctl,
111110
DRM_AUTH | DRM_RENDER_ALLOW),
112-
DRM_IOCTL_DEF_DRV(EXYNOS_IPP_GET_PROPERTY, exynos_drm_ipp_get_property,
113-
DRM_AUTH | DRM_RENDER_ALLOW),
114-
DRM_IOCTL_DEF_DRV(EXYNOS_IPP_SET_PROPERTY, exynos_drm_ipp_set_property,
115-
DRM_AUTH | DRM_RENDER_ALLOW),
116-
DRM_IOCTL_DEF_DRV(EXYNOS_IPP_QUEUE_BUF, exynos_drm_ipp_queue_buf,
117-
DRM_AUTH | DRM_RENDER_ALLOW),
118-
DRM_IOCTL_DEF_DRV(EXYNOS_IPP_CMD_CTRL, exynos_drm_ipp_cmd_ctrl,
119-
DRM_AUTH | DRM_RENDER_ALLOW),
120111
};
121112

122113
static const struct file_operations exynos_drm_driver_fops = {
@@ -256,9 +247,6 @@ static struct exynos_drm_driver_info exynos_drm_drivers[] = {
256247
DRV_PTR(rotator_driver, CONFIG_DRM_EXYNOS_ROTATOR),
257248
}, {
258249
DRV_PTR(gsc_driver, CONFIG_DRM_EXYNOS_GSC),
259-
}, {
260-
DRV_PTR(ipp_driver, CONFIG_DRM_EXYNOS_IPP),
261-
DRM_VIRTUAL_DEVICE
262250
}, {
263251
&exynos_drm_platform_driver,
264252
DRM_VIRTUAL_DEVICE

‎drivers/gpu/drm/exynos/exynos_drm_drv.h‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,6 @@ struct exynos_drm_g2d_private {
188188

189189
struct drm_exynos_file_private {
190190
struct exynos_drm_g2d_private *g2d_priv;
191-
struct device *ipp_dev;
192191
};
193192

194193
/*
@@ -291,6 +290,5 @@ extern struct platform_driver g2d_driver;
291290
extern struct platform_driver fimc_driver;
292291
extern struct platform_driver rotator_driver;
293292
extern struct platform_driver gsc_driver;
294-
extern struct platform_driver ipp_driver;
295293
extern struct platform_driver mic_driver;
296294
#endif

0 commit comments

Comments
 (0)