| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
|---|
| 1 | 2 | /* exynos_drm_fb.c |
|---|
| 2 | 3 | * |
|---|
| 3 | 4 | * Copyright (c) 2011 Samsung Electronics Co., Ltd. |
|---|
| .. | .. |
|---|
| 5 | 6 | * Inki Dae <inki.dae@samsung.com> |
|---|
| 6 | 7 | * Joonyoung Shim <jy0922.shim@samsung.com> |
|---|
| 7 | 8 | * Seung-Woo Kim <sw0312.kim@samsung.com> |
|---|
| 8 | | - * |
|---|
| 9 | | - * This program is free software; you can redistribute it and/or modify it |
|---|
| 10 | | - * under the terms of the GNU General Public License as published by the |
|---|
| 11 | | - * Free Software Foundation; either version 2 of the License, or (at your |
|---|
| 12 | | - * option) any later version. |
|---|
| 13 | 9 | */ |
|---|
| 14 | 10 | |
|---|
| 15 | | -#include <drm/drmP.h> |
|---|
| 16 | | -#include <drm/drm_crtc.h> |
|---|
| 17 | | -#include <drm/drm_crtc_helper.h> |
|---|
| 18 | | -#include <drm/drm_fb_helper.h> |
|---|
| 19 | 11 | #include <drm/drm_atomic.h> |
|---|
| 20 | 12 | #include <drm/drm_atomic_helper.h> |
|---|
| 13 | +#include <drm/drm_crtc.h> |
|---|
| 14 | +#include <drm/drm_fb_helper.h> |
|---|
| 15 | +#include <drm/drm_fourcc.h> |
|---|
| 21 | 16 | #include <drm/drm_gem_framebuffer_helper.h> |
|---|
| 22 | | -#include <uapi/drm/exynos_drm.h> |
|---|
| 17 | +#include <drm/drm_probe_helper.h> |
|---|
| 18 | +#include <drm/exynos_drm.h> |
|---|
| 23 | 19 | |
|---|
| 20 | +#include "exynos_drm_crtc.h" |
|---|
| 24 | 21 | #include "exynos_drm_drv.h" |
|---|
| 25 | 22 | #include "exynos_drm_fb.h" |
|---|
| 26 | 23 | #include "exynos_drm_fbdev.h" |
|---|
| 27 | | -#include "exynos_drm_iommu.h" |
|---|
| 28 | | -#include "exynos_drm_crtc.h" |
|---|
| 29 | 24 | |
|---|
| 30 | 25 | static int check_fb_gem_memory_type(struct drm_device *drm_dev, |
|---|
| 31 | 26 | struct exynos_drm_gem *exynos_gem) |
|---|
| .. | .. |
|---|
| 46 | 41 | * supported without IOMMU. |
|---|
| 47 | 42 | */ |
|---|
| 48 | 43 | if (IS_NONCONTIG_BUFFER(flags)) { |
|---|
| 49 | | - DRM_ERROR("Non-contiguous GEM memory is not supported.\n"); |
|---|
| 44 | + DRM_DEV_ERROR(drm_dev->dev, |
|---|
| 45 | + "Non-contiguous GEM memory is not supported.\n"); |
|---|
| 50 | 46 | return -EINVAL; |
|---|
| 51 | 47 | } |
|---|
| 52 | 48 | |
|---|
| .. | .. |
|---|
| 84 | 80 | |
|---|
| 85 | 81 | ret = drm_framebuffer_init(dev, fb, &exynos_drm_fb_funcs); |
|---|
| 86 | 82 | if (ret < 0) { |
|---|
| 87 | | - DRM_ERROR("failed to initialize framebuffer\n"); |
|---|
| 83 | + DRM_DEV_ERROR(dev->dev, |
|---|
| 84 | + "failed to initialize framebuffer\n"); |
|---|
| 88 | 85 | goto err; |
|---|
| 89 | 86 | } |
|---|
| 90 | 87 | |
|---|
| .. | .. |
|---|
| 114 | 111 | exynos_gem[i] = exynos_drm_gem_get(file_priv, |
|---|
| 115 | 112 | mode_cmd->handles[i]); |
|---|
| 116 | 113 | if (!exynos_gem[i]) { |
|---|
| 117 | | - DRM_ERROR("failed to lookup gem object\n"); |
|---|
| 114 | + DRM_DEV_ERROR(dev->dev, |
|---|
| 115 | + "failed to lookup gem object\n"); |
|---|
| 118 | 116 | ret = -ENOENT; |
|---|
| 119 | 117 | goto err; |
|---|
| 120 | 118 | } |
|---|