exynos: support DRM_IOCTL_EXYNOS_GEM_MAP
authorJoonyoung Shim <jy0922.shim@samsung.com>
Tue, 6 Oct 2015 10:09:16 +0000 (19:09 +0900)
committerHoegeun Kwon <hoegeun.kwon@samsung.com>
Wed, 7 Dec 2022 09:03:35 +0000 (18:03 +0900)
commitc573004cf4e4d9ca00aac9d27f8431bd74dd90db
treec4280be21f9e8bb047a59460bf6b411d58c69bbb
parent17f7b7fefa18c9a0f8f5806080565d6919d5a00f
exynos: support DRM_IOCTL_EXYNOS_GEM_MAP

The commit d41b7a3a745a("exynos: Don't use DRM_EXYNOS_GEM_{MAP_OFFSET/
MMAP} ioctls") removed it same with the ioctl that this patch adds. The
reason that removed DRM_IOCTL_EXYNOS_GEM_MAP_OFFSET was we could use
DRM_IOCTL_MODE_MAP_DUMB. Both did exactly same thing.

Now exynos-drm driver of linux kernel revives it as DRM_EXYNOS_GEM_MAP
because of render node. DRM_IOCTL_MODE_MAP_DUMB isn't permitted in
render node, so this patch also supports DRM_IOCTL_EXYNOS_GEM_MAP.

Change-Id: Ib548dc8a6bea076375465f64ee2fdd658a90e435
Signed-off-by: Joonyoung Shim <jy0922.shim@samsung.com>
exynos: fix build warnings

Fix build warnings to exynos_fimg2d module.

This patch fixes below two build warnings,

exynos_fimg2d.c: In function 'g2d_scale_and_blend':
exynos_fimg2d.c:978:3: warning: 'scale_y' may be used uninitialized in this function [-Wmaybe-uninitialized]
   g2d_add_cmd(ctx, SRC_YSCALE_REG, scale_y);
   ^
exynos_fimg2d.c:977:3: warning: 'scale_x' may be used uninitialized in this function [-Wmaybe-uninitialized]
   g2d_add_cmd(ctx, SRC_XSCALE_REG, scale_x);

Change-Id: I70908088c61b85570aec6e3ec19b405df4820d37
Signed-off-by: Inki Dae <inki.dae@samsung.com>
 Conflicts:
libkms/exynos.c

Signed-off-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>
exynos/exynos_drm.c
exynos/exynos_drm.h
exynos/exynos_fimg2d.c