aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYoungJun Cho <yj44.cho@samsung.com>2013-06-11 21:40:52 -0400
committerInki Dae <daeinki@gmail.com>2013-06-28 08:13:55 -0400
commitbca34c9a40e503e9bc6bafa45819dd55c2fd3e20 (patch)
treeea64864db171020d766dcdb0469e7ab26fe2c7bc
parent16844fb1e612e44cdda7043238230b12bdb68437 (diff)
drm/exynos: Remove tracking log functions
This patch removes tracking log functions which were used to debug in the early development stage and are not so important as were. So remove them for code clean up. Signed-off-by: YoungJun Cho <yj44.cho@samsung.com> Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com> Signed-off-by: Inki Dae <inki.dae@samsung.com>
-rw-r--r--drivers/gpu/drm/exynos/exynos_drm_buf.c7
-rw-r--r--drivers/gpu/drm/exynos/exynos_drm_connector.c13
-rw-r--r--drivers/gpu/drm/exynos/exynos_drm_core.c12
-rw-r--r--drivers/gpu/drm/exynos/exynos_drm_crtc.c28
-rw-r--r--drivers/gpu/drm/exynos/exynos_drm_dmabuf.c6
-rw-r--r--drivers/gpu/drm/exynos/exynos_drm_drv.c20
-rw-r--r--drivers/gpu/drm/exynos/exynos_drm_encoder.c28
-rw-r--r--drivers/gpu/drm/exynos/exynos_drm_fb.c10
-rw-r--r--drivers/gpu/drm/exynos/exynos_drm_fbdev.c8
-rw-r--r--drivers/gpu/drm/exynos/exynos_drm_fimc.c16
-rw-r--r--drivers/gpu/drm/exynos/exynos_drm_fimd.c46
-rw-r--r--drivers/gpu/drm/exynos/exynos_drm_gem.c23
-rw-r--r--drivers/gpu/drm/exynos/exynos_drm_gsc.c12
-rw-r--r--drivers/gpu/drm/exynos/exynos_drm_hdmi.c42
-rw-r--r--drivers/gpu/drm/exynos/exynos_drm_ipp.c52
-rw-r--r--drivers/gpu/drm/exynos/exynos_drm_plane.c16
-rw-r--r--drivers/gpu/drm/exynos/exynos_drm_rotator.c12
-rw-r--r--drivers/gpu/drm/exynos/exynos_drm_vidi.c40
-rw-r--r--drivers/gpu/drm/exynos/exynos_hdmi.c30
-rw-r--r--drivers/gpu/drm/exynos/exynos_mixer.c20
20 files changed, 4 insertions, 437 deletions
diff --git a/drivers/gpu/drm/exynos/exynos_drm_buf.c b/drivers/gpu/drm/exynos/exynos_drm_buf.c
index 57affae9568b..22865baa03b1 100644
--- a/drivers/gpu/drm/exynos/exynos_drm_buf.c
+++ b/drivers/gpu/drm/exynos/exynos_drm_buf.c
@@ -24,8 +24,6 @@ static int lowlevel_buffer_allocate(struct drm_device *dev,
24 enum dma_attr attr; 24 enum dma_attr attr;
25 unsigned int nr_pages; 25 unsigned int nr_pages;
26 26
27 DRM_DEBUG_KMS("%s\n", __FILE__);
28
29 if (buf->dma_addr) { 27 if (buf->dma_addr) {
30 DRM_DEBUG_KMS("already allocated.\n"); 28 DRM_DEBUG_KMS("already allocated.\n");
31 return 0; 29 return 0;
@@ -119,8 +117,6 @@ err_free_attrs:
119static void lowlevel_buffer_deallocate(struct drm_device *dev, 117static void lowlevel_buffer_deallocate(struct drm_device *dev,
120 unsigned int flags, struct exynos_drm_gem_buf *buf) 118 unsigned int flags, struct exynos_drm_gem_buf *buf)
121{ 119{
122 DRM_DEBUG_KMS("%s.\n", __FILE__);
123
124 if (!buf->dma_addr) { 120 if (!buf->dma_addr) {
125 DRM_DEBUG_KMS("dma_addr is invalid.\n"); 121 DRM_DEBUG_KMS("dma_addr is invalid.\n");
126 return; 122 return;
@@ -151,7 +147,6 @@ struct exynos_drm_gem_buf *exynos_drm_init_buf(struct drm_device *dev,
151{ 147{
152 struct exynos_drm_gem_buf *buffer; 148 struct exynos_drm_gem_buf *buffer;
153 149
154 DRM_DEBUG_KMS("%s.\n", __FILE__);
155 DRM_DEBUG_KMS("desired size = 0x%x\n", size); 150 DRM_DEBUG_KMS("desired size = 0x%x\n", size);
156 151
157 buffer = kzalloc(sizeof(*buffer), GFP_KERNEL); 152 buffer = kzalloc(sizeof(*buffer), GFP_KERNEL);
@@ -167,8 +162,6 @@ struct exynos_drm_gem_buf *exynos_drm_init_buf(struct drm_device *dev,
167void exynos_drm_fini_buf(struct drm_device *dev, 162void exynos_drm_fini_buf(struct drm_device *dev,
168 struct exynos_drm_gem_buf *buffer) 163 struct exynos_drm_gem_buf *buffer)
169{ 164{
170 DRM_DEBUG_KMS("%s.\n", __FILE__);
171
172 if (!buffer) { 165 if (!buffer) {
173 DRM_DEBUG_KMS("buffer is null.\n"); 166 DRM_DEBUG_KMS("buffer is null.\n");
174 return; 167 return;
diff --git a/drivers/gpu/drm/exynos/exynos_drm_connector.c b/drivers/gpu/drm/exynos/exynos_drm_connector.c
index ab3c6d41f5d9..02a8bc5226ca 100644
--- a/drivers/gpu/drm/exynos/exynos_drm_connector.c
+++ b/drivers/gpu/drm/exynos/exynos_drm_connector.c
@@ -34,7 +34,6 @@ convert_to_display_mode(struct drm_display_mode *mode,
34 struct exynos_drm_panel_info *panel) 34 struct exynos_drm_panel_info *panel)
35{ 35{
36 struct fb_videomode *timing = &panel->timing; 36 struct fb_videomode *timing = &panel->timing;
37 DRM_DEBUG_KMS("%s\n", __FILE__);
38 37
39 mode->clock = timing->pixclock / 1000; 38 mode->clock = timing->pixclock / 1000;
40 mode->vrefresh = timing->refresh; 39 mode->vrefresh = timing->refresh;
@@ -68,8 +67,6 @@ static int exynos_drm_connector_get_modes(struct drm_connector *connector)
68 unsigned int count = 0; 67 unsigned int count = 0;
69 int ret; 68 int ret;
70 69
71 DRM_DEBUG_KMS("%s\n", __FILE__);
72
73 if (!display_ops) { 70 if (!display_ops) {
74 DRM_DEBUG_KMS("display_ops is null.\n"); 71 DRM_DEBUG_KMS("display_ops is null.\n");
75 return 0; 72 return 0;
@@ -156,8 +153,6 @@ struct drm_encoder *exynos_drm_best_encoder(struct drm_connector *connector)
156 struct drm_mode_object *obj; 153 struct drm_mode_object *obj;
157 struct drm_encoder *encoder; 154 struct drm_encoder *encoder;
158 155
159 DRM_DEBUG_KMS("%s\n", __FILE__);
160
161 obj = drm_mode_object_find(dev, exynos_connector->encoder_id, 156 obj = drm_mode_object_find(dev, exynos_connector->encoder_id,
162 DRM_MODE_OBJECT_ENCODER); 157 DRM_MODE_OBJECT_ENCODER);
163 if (!obj) { 158 if (!obj) {
@@ -200,8 +195,6 @@ void exynos_drm_display_power(struct drm_connector *connector, int mode)
200static void exynos_drm_connector_dpms(struct drm_connector *connector, 195static void exynos_drm_connector_dpms(struct drm_connector *connector,
201 int mode) 196 int mode)
202{ 197{
203 DRM_DEBUG_KMS("%s\n", __FILE__);
204
205 /* 198 /*
206 * in case that drm_crtc_helper_set_mode() is called, 199 * in case that drm_crtc_helper_set_mode() is called,
207 * encoder/crtc->funcs->dpms() will be just returned 200 * encoder/crtc->funcs->dpms() will be just returned
@@ -248,8 +241,6 @@ exynos_drm_connector_detect(struct drm_connector *connector, bool force)
248 manager->display_ops; 241 manager->display_ops;
249 enum drm_connector_status status = connector_status_disconnected; 242 enum drm_connector_status status = connector_status_disconnected;
250 243
251 DRM_DEBUG_KMS("%s\n", __FILE__);
252
253 if (display_ops && display_ops->is_connected) { 244 if (display_ops && display_ops->is_connected) {
254 if (display_ops->is_connected(manager->dev)) 245 if (display_ops->is_connected(manager->dev))
255 status = connector_status_connected; 246 status = connector_status_connected;
@@ -265,8 +256,6 @@ static void exynos_drm_connector_destroy(struct drm_connector *connector)
265 struct exynos_drm_connector *exynos_connector = 256 struct exynos_drm_connector *exynos_connector =
266 to_exynos_connector(connector); 257 to_exynos_connector(connector);
267 258
268 DRM_DEBUG_KMS("%s\n", __FILE__);
269
270 drm_sysfs_connector_remove(connector); 259 drm_sysfs_connector_remove(connector);
271 drm_connector_cleanup(connector); 260 drm_connector_cleanup(connector);
272 kfree(exynos_connector); 261 kfree(exynos_connector);
@@ -288,8 +277,6 @@ struct drm_connector *exynos_drm_connector_create(struct drm_device *dev,
288 int type; 277 int type;
289 int err; 278 int err;
290 279
291 DRM_DEBUG_KMS("%s\n", __FILE__);
292
293 exynos_connector = kzalloc(sizeof(*exynos_connector), GFP_KERNEL); 280 exynos_connector = kzalloc(sizeof(*exynos_connector), GFP_KERNEL);
294 if (!exynos_connector) { 281 if (!exynos_connector) {
295 DRM_ERROR("failed to allocate connector\n"); 282 DRM_ERROR("failed to allocate connector\n");
diff --git a/drivers/gpu/drm/exynos/exynos_drm_core.c b/drivers/gpu/drm/exynos/exynos_drm_core.c
index 4667c9f67acd..1bef6dc77478 100644
--- a/drivers/gpu/drm/exynos/exynos_drm_core.c
+++ b/drivers/gpu/drm/exynos/exynos_drm_core.c
@@ -27,8 +27,6 @@ static int exynos_drm_create_enc_conn(struct drm_device *dev,
27 struct drm_connector *connector; 27 struct drm_connector *connector;
28 int ret; 28 int ret;
29 29
30 DRM_DEBUG_DRIVER("%s\n", __FILE__);
31
32 subdrv->manager->dev = subdrv->dev; 30 subdrv->manager->dev = subdrv->dev;
33 31
34 /* create and initialize a encoder for this sub driver. */ 32 /* create and initialize a encoder for this sub driver. */
@@ -102,8 +100,6 @@ static int exynos_drm_subdrv_probe(struct drm_device *dev,
102static void exynos_drm_subdrv_remove(struct drm_device *dev, 100static void exynos_drm_subdrv_remove(struct drm_device *dev,
103 struct exynos_drm_subdrv *subdrv) 101 struct exynos_drm_subdrv *subdrv)
104{ 102{
105 DRM_DEBUG_DRIVER("%s\n", __FILE__);
106
107 if (subdrv->remove) 103 if (subdrv->remove)
108 subdrv->remove(dev, subdrv->dev); 104 subdrv->remove(dev, subdrv->dev);
109} 105}
@@ -114,8 +110,6 @@ int exynos_drm_device_register(struct drm_device *dev)
114 unsigned int fine_cnt = 0; 110 unsigned int fine_cnt = 0;
115 int err; 111 int err;
116 112
117 DRM_DEBUG_DRIVER("%s\n", __FILE__);
118
119 if (!dev) 113 if (!dev)
120 return -EINVAL; 114 return -EINVAL;
121 115
@@ -158,8 +152,6 @@ int exynos_drm_device_unregister(struct drm_device *dev)
158{ 152{
159 struct exynos_drm_subdrv *subdrv; 153 struct exynos_drm_subdrv *subdrv;
160 154
161 DRM_DEBUG_DRIVER("%s\n", __FILE__);
162
163 if (!dev) { 155 if (!dev) {
164 WARN(1, "Unexpected drm device unregister!\n"); 156 WARN(1, "Unexpected drm device unregister!\n");
165 return -EINVAL; 157 return -EINVAL;
@@ -176,8 +168,6 @@ EXPORT_SYMBOL_GPL(exynos_drm_device_unregister);
176 168
177int exynos_drm_subdrv_register(struct exynos_drm_subdrv *subdrv) 169int exynos_drm_subdrv_register(struct exynos_drm_subdrv *subdrv)
178{ 170{
179 DRM_DEBUG_DRIVER("%s\n", __FILE__);
180
181 if (!subdrv) 171 if (!subdrv)
182 return -EINVAL; 172 return -EINVAL;
183 173
@@ -189,8 +179,6 @@ EXPORT_SYMBOL_GPL(exynos_drm_subdrv_register);
189 179
190int exynos_drm_subdrv_unregister(struct exynos_drm_subdrv *subdrv) 180int exynos_drm_subdrv_unregister(struct exynos_drm_subdrv *subdrv)
191{ 181{
192 DRM_DEBUG_DRIVER("%s\n", __FILE__);
193
194 if (!subdrv) 182 if (!subdrv)
195 return -EINVAL; 183 return -EINVAL;
196 184
diff --git a/drivers/gpu/drm/exynos/exynos_drm_crtc.c b/drivers/gpu/drm/exynos/exynos_drm_crtc.c
index a143605884a4..9a35d171a6d3 100644
--- a/drivers/gpu/drm/exynos/exynos_drm_crtc.c
+++ b/drivers/gpu/drm/exynos/exynos_drm_crtc.c
@@ -76,8 +76,6 @@ static void exynos_drm_crtc_dpms(struct drm_crtc *crtc, int mode)
76 76
77static void exynos_drm_crtc_prepare(struct drm_crtc *crtc) 77static void exynos_drm_crtc_prepare(struct drm_crtc *crtc)
78{ 78{
79 DRM_DEBUG_KMS("%s\n", __FILE__);
80
81 /* drm framework doesn't check NULL. */ 79 /* drm framework doesn't check NULL. */
82} 80}
83 81
@@ -85,8 +83,6 @@ static void exynos_drm_crtc_commit(struct drm_crtc *crtc)
85{ 83{
86 struct exynos_drm_crtc *exynos_crtc = to_exynos_crtc(crtc); 84 struct exynos_drm_crtc *exynos_crtc = to_exynos_crtc(crtc);
87 85
88 DRM_DEBUG_KMS("%s\n", __FILE__);
89
90 exynos_drm_crtc_dpms(crtc, DRM_MODE_DPMS_ON); 86 exynos_drm_crtc_dpms(crtc, DRM_MODE_DPMS_ON);
91 exynos_plane_commit(exynos_crtc->plane); 87 exynos_plane_commit(exynos_crtc->plane);
92 exynos_plane_dpms(exynos_crtc->plane, DRM_MODE_DPMS_ON); 88 exynos_plane_dpms(exynos_crtc->plane, DRM_MODE_DPMS_ON);
@@ -97,8 +93,6 @@ exynos_drm_crtc_mode_fixup(struct drm_crtc *crtc,
97 const struct drm_display_mode *mode, 93 const struct drm_display_mode *mode,
98 struct drm_display_mode *adjusted_mode) 94 struct drm_display_mode *adjusted_mode)
99{ 95{
100 DRM_DEBUG_KMS("%s\n", __FILE__);
101
102 /* drm framework doesn't check NULL */ 96 /* drm framework doesn't check NULL */
103 return true; 97 return true;
104} 98}
@@ -115,8 +109,6 @@ exynos_drm_crtc_mode_set(struct drm_crtc *crtc, struct drm_display_mode *mode,
115 int pipe = exynos_crtc->pipe; 109 int pipe = exynos_crtc->pipe;
116 int ret; 110 int ret;
117 111
118 DRM_DEBUG_KMS("%s\n", __FILE__);
119
120 /* 112 /*
121 * copy the mode data adjusted by mode_fixup() into crtc->mode 113 * copy the mode data adjusted by mode_fixup() into crtc->mode
122 * so that hardware can be seet to proper mode. 114 * so that hardware can be seet to proper mode.
@@ -148,8 +140,6 @@ static int exynos_drm_crtc_mode_set_commit(struct drm_crtc *crtc, int x, int y,
148 unsigned int crtc_h; 140 unsigned int crtc_h;
149 int ret; 141 int ret;
150 142
151 DRM_DEBUG_KMS("%s\n", __FILE__);
152
153 /* when framebuffer changing is requested, crtc's dpms should be on */ 143 /* when framebuffer changing is requested, crtc's dpms should be on */
154 if (exynos_crtc->dpms > DRM_MODE_DPMS_ON) { 144 if (exynos_crtc->dpms > DRM_MODE_DPMS_ON) {
155 DRM_ERROR("failed framebuffer changing request.\n"); 145 DRM_ERROR("failed framebuffer changing request.\n");
@@ -179,8 +169,6 @@ static void exynos_drm_crtc_disable(struct drm_crtc *crtc)
179{ 169{
180 struct exynos_drm_crtc *exynos_crtc = to_exynos_crtc(crtc); 170 struct exynos_drm_crtc *exynos_crtc = to_exynos_crtc(crtc);
181 171
182 DRM_DEBUG_KMS("%s\n", __FILE__);
183
184 exynos_plane_dpms(exynos_crtc->plane, DRM_MODE_DPMS_OFF); 172 exynos_plane_dpms(exynos_crtc->plane, DRM_MODE_DPMS_OFF);
185 exynos_drm_crtc_dpms(crtc, DRM_MODE_DPMS_OFF); 173 exynos_drm_crtc_dpms(crtc, DRM_MODE_DPMS_OFF);
186} 174}
@@ -205,8 +193,6 @@ static int exynos_drm_crtc_page_flip(struct drm_crtc *crtc,
205 struct drm_framebuffer *old_fb = crtc->fb; 193 struct drm_framebuffer *old_fb = crtc->fb;
206 int ret = -EINVAL; 194 int ret = -EINVAL;
207 195
208 DRM_DEBUG_KMS("%s\n", __FILE__);
209
210 /* when the page flip is requested, crtc's dpms should be on */ 196 /* when the page flip is requested, crtc's dpms should be on */
211 if (exynos_crtc->dpms > DRM_MODE_DPMS_ON) { 197 if (exynos_crtc->dpms > DRM_MODE_DPMS_ON) {
212 DRM_ERROR("failed page flip request.\n"); 198 DRM_ERROR("failed page flip request.\n");
@@ -259,8 +245,6 @@ static void exynos_drm_crtc_destroy(struct drm_crtc *crtc)
259 struct exynos_drm_crtc *exynos_crtc = to_exynos_crtc(crtc); 245 struct exynos_drm_crtc *exynos_crtc = to_exynos_crtc(crtc);
260 struct exynos_drm_private *private = crtc->dev->dev_private; 246 struct exynos_drm_private *private = crtc->dev->dev_private;
261 247
262 DRM_DEBUG_KMS("%s\n", __FILE__);
263
264 private->crtc[exynos_crtc->pipe] = NULL; 248 private->crtc[exynos_crtc->pipe] = NULL;
265 249
266 drm_crtc_cleanup(crtc); 250 drm_crtc_cleanup(crtc);
@@ -275,8 +259,6 @@ static int exynos_drm_crtc_set_property(struct drm_crtc *crtc,
275 struct exynos_drm_private *dev_priv = dev->dev_private; 259 struct exynos_drm_private *dev_priv = dev->dev_private;
276 struct exynos_drm_crtc *exynos_crtc = to_exynos_crtc(crtc); 260 struct exynos_drm_crtc *exynos_crtc = to_exynos_crtc(crtc);
277 261
278 DRM_DEBUG_KMS("%s\n", __func__);
279
280 if (property == dev_priv->crtc_mode_property) { 262 if (property == dev_priv->crtc_mode_property) {
281 enum exynos_crtc_mode mode = val; 263 enum exynos_crtc_mode mode = val;
282 264
@@ -321,8 +303,6 @@ static void exynos_drm_crtc_attach_mode_property(struct drm_crtc *crtc)
321 struct exynos_drm_private *dev_priv = dev->dev_private; 303 struct exynos_drm_private *dev_priv = dev->dev_private;
322 struct drm_property *prop; 304 struct drm_property *prop;
323 305
324 DRM_DEBUG_KMS("%s\n", __func__);
325
326 prop = dev_priv->crtc_mode_property; 306 prop = dev_priv->crtc_mode_property;
327 if (!prop) { 307 if (!prop) {
328 prop = drm_property_create_enum(dev, 0, "mode", mode_names, 308 prop = drm_property_create_enum(dev, 0, "mode", mode_names,
@@ -342,8 +322,6 @@ int exynos_drm_crtc_create(struct drm_device *dev, unsigned int nr)
342 struct exynos_drm_private *private = dev->dev_private; 322 struct exynos_drm_private *private = dev->dev_private;
343 struct drm_crtc *crtc; 323 struct drm_crtc *crtc;
344 324
345 DRM_DEBUG_KMS("%s\n", __FILE__);
346
347 exynos_crtc = kzalloc(sizeof(*exynos_crtc), GFP_KERNEL); 325 exynos_crtc = kzalloc(sizeof(*exynos_crtc), GFP_KERNEL);
348 if (!exynos_crtc) { 326 if (!exynos_crtc) {
349 DRM_ERROR("failed to allocate exynos crtc\n"); 327 DRM_ERROR("failed to allocate exynos crtc\n");
@@ -378,8 +356,6 @@ int exynos_drm_crtc_enable_vblank(struct drm_device *dev, int crtc)
378 struct exynos_drm_crtc *exynos_crtc = 356 struct exynos_drm_crtc *exynos_crtc =
379 to_exynos_crtc(private->crtc[crtc]); 357 to_exynos_crtc(private->crtc[crtc]);
380 358
381 DRM_DEBUG_KMS("%s\n", __FILE__);
382
383 if (exynos_crtc->dpms != DRM_MODE_DPMS_ON) 359 if (exynos_crtc->dpms != DRM_MODE_DPMS_ON)
384 return -EPERM; 360 return -EPERM;
385 361
@@ -395,8 +371,6 @@ void exynos_drm_crtc_disable_vblank(struct drm_device *dev, int crtc)
395 struct exynos_drm_crtc *exynos_crtc = 371 struct exynos_drm_crtc *exynos_crtc =
396 to_exynos_crtc(private->crtc[crtc]); 372 to_exynos_crtc(private->crtc[crtc]);
397 373
398 DRM_DEBUG_KMS("%s\n", __FILE__);
399
400 if (exynos_crtc->dpms != DRM_MODE_DPMS_ON) 374 if (exynos_crtc->dpms != DRM_MODE_DPMS_ON)
401 return; 375 return;
402 376
@@ -412,8 +386,6 @@ void exynos_drm_crtc_finish_pageflip(struct drm_device *dev, int crtc)
412 struct exynos_drm_crtc *exynos_crtc = to_exynos_crtc(drm_crtc); 386 struct exynos_drm_crtc *exynos_crtc = to_exynos_crtc(drm_crtc);
413 unsigned long flags; 387 unsigned long flags;
414 388
415 DRM_DEBUG_KMS("%s\n", __FILE__);
416
417 spin_lock_irqsave(&dev->event_lock, flags); 389 spin_lock_irqsave(&dev->event_lock, flags);
418 390
419 list_for_each_entry_safe(e, t, &dev_priv->pageflip_event_list, 391 list_for_each_entry_safe(e, t, &dev_priv->pageflip_event_list,
diff --git a/drivers/gpu/drm/exynos/exynos_drm_dmabuf.c b/drivers/gpu/drm/exynos/exynos_drm_dmabuf.c
index ff7f2a886a34..a0f997e0cbdf 100644
--- a/drivers/gpu/drm/exynos/exynos_drm_dmabuf.c
+++ b/drivers/gpu/drm/exynos/exynos_drm_dmabuf.c
@@ -71,8 +71,6 @@ static struct sg_table *
71 unsigned int i; 71 unsigned int i;
72 int nents, ret; 72 int nents, ret;
73 73
74 DRM_DEBUG_PRIME("%s\n", __FILE__);
75
76 /* just return current sgt if already requested. */ 74 /* just return current sgt if already requested. */
77 if (exynos_attach->dir == dir && exynos_attach->is_mapped) 75 if (exynos_attach->dir == dir && exynos_attach->is_mapped)
78 return &exynos_attach->sgt; 76 return &exynos_attach->sgt;
@@ -133,8 +131,6 @@ static void exynos_dmabuf_release(struct dma_buf *dmabuf)
133{ 131{
134 struct exynos_drm_gem_obj *exynos_gem_obj = dmabuf->priv; 132 struct exynos_drm_gem_obj *exynos_gem_obj = dmabuf->priv;
135 133
136 DRM_DEBUG_PRIME("%s\n", __FILE__);
137
138 /* 134 /*
139 * exynos_dmabuf_release() call means that file object's 135 * exynos_dmabuf_release() call means that file object's
140 * f_count is 0 and it calls drm_gem_object_handle_unreference() 136 * f_count is 0 and it calls drm_gem_object_handle_unreference()
@@ -219,8 +215,6 @@ struct drm_gem_object *exynos_dmabuf_prime_import(struct drm_device *drm_dev,
219 struct exynos_drm_gem_buf *buffer; 215 struct exynos_drm_gem_buf *buffer;
220 int ret; 216 int ret;
221 217
222 DRM_DEBUG_PRIME("%s\n", __FILE__);
223
224 /* is this one of own objects? */ 218 /* is this one of own objects? */
225 if (dma_buf->ops == &exynos_dmabuf_ops) { 219 if (dma_buf->ops == &exynos_dmabuf_ops) {
226 struct drm_gem_object *obj; 220 struct drm_gem_object *obj;
diff --git a/drivers/gpu/drm/exynos/exynos_drm_drv.c b/drivers/gpu/drm/exynos/exynos_drm_drv.c
index ba6d995e4375..276237348d1e 100644
--- a/drivers/gpu/drm/exynos/exynos_drm_drv.c
+++ b/drivers/gpu/drm/exynos/exynos_drm_drv.c
@@ -46,8 +46,6 @@ static int exynos_drm_load(struct drm_device *dev, unsigned long flags)
46 int ret; 46 int ret;
47 int nr; 47 int nr;
48 48
49 DRM_DEBUG_DRIVER("%s\n", __FILE__);
50
51 private = kzalloc(sizeof(struct exynos_drm_private), GFP_KERNEL); 49 private = kzalloc(sizeof(struct exynos_drm_private), GFP_KERNEL);
52 if (!private) { 50 if (!private) {
53 DRM_ERROR("failed to allocate private\n"); 51 DRM_ERROR("failed to allocate private\n");
@@ -140,8 +138,6 @@ err_crtc:
140 138
141static int exynos_drm_unload(struct drm_device *dev) 139static int exynos_drm_unload(struct drm_device *dev)
142{ 140{
143 DRM_DEBUG_DRIVER("%s\n", __FILE__);
144
145 exynos_drm_fbdev_fini(dev); 141 exynos_drm_fbdev_fini(dev);
146 exynos_drm_device_unregister(dev); 142 exynos_drm_device_unregister(dev);
147 drm_vblank_cleanup(dev); 143 drm_vblank_cleanup(dev);
@@ -160,8 +156,6 @@ static int exynos_drm_open(struct drm_device *dev, struct drm_file *file)
160{ 156{
161 struct drm_exynos_file_private *file_priv; 157 struct drm_exynos_file_private *file_priv;
162 158
163 DRM_DEBUG_DRIVER("%s\n", __FILE__);
164
165 file_priv = kzalloc(sizeof(*file_priv), GFP_KERNEL); 159 file_priv = kzalloc(sizeof(*file_priv), GFP_KERNEL);
166 if (!file_priv) 160 if (!file_priv)
167 return -ENOMEM; 161 return -ENOMEM;
@@ -178,8 +172,6 @@ static void exynos_drm_preclose(struct drm_device *dev,
178 struct drm_pending_vblank_event *e, *t; 172 struct drm_pending_vblank_event *e, *t;
179 unsigned long flags; 173 unsigned long flags;
180 174
181 DRM_DEBUG_DRIVER("%s\n", __FILE__);
182
183 /* release events of current file */ 175 /* release events of current file */
184 spin_lock_irqsave(&dev->event_lock, flags); 176 spin_lock_irqsave(&dev->event_lock, flags);
185 list_for_each_entry_safe(e, t, &private->pageflip_event_list, 177 list_for_each_entry_safe(e, t, &private->pageflip_event_list,
@@ -196,8 +188,6 @@ static void exynos_drm_preclose(struct drm_device *dev,
196 188
197static void exynos_drm_postclose(struct drm_device *dev, struct drm_file *file) 189static void exynos_drm_postclose(struct drm_device *dev, struct drm_file *file)
198{ 190{
199 DRM_DEBUG_DRIVER("%s\n", __FILE__);
200
201 if (!file->driver_priv) 191 if (!file->driver_priv)
202 return; 192 return;
203 193
@@ -207,8 +197,6 @@ static void exynos_drm_postclose(struct drm_device *dev, struct drm_file *file)
207 197
208static void exynos_drm_lastclose(struct drm_device *dev) 198static void exynos_drm_lastclose(struct drm_device *dev)
209{ 199{
210 DRM_DEBUG_DRIVER("%s\n", __FILE__);
211
212 exynos_drm_fbdev_restore_mode(dev); 200 exynos_drm_fbdev_restore_mode(dev);
213} 201}
214 202
@@ -292,8 +280,6 @@ static struct drm_driver exynos_drm_driver = {
292 280
293static int exynos_drm_platform_probe(struct platform_device *pdev) 281static int exynos_drm_platform_probe(struct platform_device *pdev)
294{ 282{
295 DRM_DEBUG_DRIVER("%s\n", __FILE__);
296
297 pdev->dev.coherent_dma_mask = DMA_BIT_MASK(32); 283 pdev->dev.coherent_dma_mask = DMA_BIT_MASK(32);
298 exynos_drm_driver.num_ioctls = DRM_ARRAY_SIZE(exynos_ioctls); 284 exynos_drm_driver.num_ioctls = DRM_ARRAY_SIZE(exynos_ioctls);
299 285
@@ -302,8 +288,6 @@ static int exynos_drm_platform_probe(struct platform_device *pdev)
302 288
303static int exynos_drm_platform_remove(struct platform_device *pdev) 289static int exynos_drm_platform_remove(struct platform_device *pdev)
304{ 290{
305 DRM_DEBUG_DRIVER("%s\n", __FILE__);
306
307 drm_platform_exit(&exynos_drm_driver, pdev); 291 drm_platform_exit(&exynos_drm_driver, pdev);
308 292
309 return 0; 293 return 0;
@@ -322,8 +306,6 @@ static int __init exynos_drm_init(void)
322{ 306{
323 int ret; 307 int ret;
324 308
325 DRM_DEBUG_DRIVER("%s\n", __FILE__);
326
327#ifdef CONFIG_DRM_EXYNOS_FIMD 309#ifdef CONFIG_DRM_EXYNOS_FIMD
328 ret = platform_driver_register(&fimd_driver); 310 ret = platform_driver_register(&fimd_driver);
329 if (ret < 0) 311 if (ret < 0)
@@ -455,8 +437,6 @@ out_fimd:
455 437
456static void __exit exynos_drm_exit(void) 438static void __exit exynos_drm_exit(void)
457{ 439{
458 DRM_DEBUG_DRIVER("%s\n", __FILE__);
459
460 platform_device_unregister(exynos_drm_pdev); 440 platform_device_unregister(exynos_drm_pdev);
461 441
462 platform_driver_unregister(&exynos_drm_platform_driver); 442 platform_driver_unregister(&exynos_drm_platform_driver);
diff --git a/drivers/gpu/drm/exynos/exynos_drm_encoder.c b/drivers/gpu/drm/exynos/exynos_drm_encoder.c
index c63721f64aec..a99a033793bc 100644
--- a/drivers/gpu/drm/exynos/exynos_drm_encoder.c
+++ b/drivers/gpu/drm/exynos/exynos_drm_encoder.c
@@ -61,7 +61,7 @@ static void exynos_drm_encoder_dpms(struct drm_encoder *encoder, int mode)
61 struct exynos_drm_manager_ops *manager_ops = manager->ops; 61 struct exynos_drm_manager_ops *manager_ops = manager->ops;
62 struct exynos_drm_encoder *exynos_encoder = to_exynos_encoder(encoder); 62 struct exynos_drm_encoder *exynos_encoder = to_exynos_encoder(encoder);
63 63
64 DRM_DEBUG_KMS("%s, encoder dpms: %d\n", __FILE__, mode); 64 DRM_DEBUG_KMS("encoder dpms: %d\n", mode);
65 65
66 if (exynos_encoder->dpms == mode) { 66 if (exynos_encoder->dpms == mode) {
67 DRM_DEBUG_KMS("desired dpms mode is same as previous one.\n"); 67 DRM_DEBUG_KMS("desired dpms mode is same as previous one.\n");
@@ -104,8 +104,6 @@ exynos_drm_encoder_mode_fixup(struct drm_encoder *encoder,
104 struct exynos_drm_manager *manager = exynos_drm_get_manager(encoder); 104 struct exynos_drm_manager *manager = exynos_drm_get_manager(encoder);
105 struct exynos_drm_manager_ops *manager_ops = manager->ops; 105 struct exynos_drm_manager_ops *manager_ops = manager->ops;
106 106
107 DRM_DEBUG_KMS("%s\n", __FILE__);
108
109 list_for_each_entry(connector, &dev->mode_config.connector_list, head) { 107 list_for_each_entry(connector, &dev->mode_config.connector_list, head) {
110 if (connector->encoder == encoder) 108 if (connector->encoder == encoder)
111 if (manager_ops && manager_ops->mode_fixup) 109 if (manager_ops && manager_ops->mode_fixup)
@@ -155,8 +153,6 @@ static void exynos_drm_encoder_mode_set(struct drm_encoder *encoder,
155 struct exynos_drm_manager *manager; 153 struct exynos_drm_manager *manager;
156 struct exynos_drm_manager_ops *manager_ops; 154 struct exynos_drm_manager_ops *manager_ops;
157 155
158 DRM_DEBUG_KMS("%s\n", __FILE__);
159
160 list_for_each_entry(connector, &dev->mode_config.connector_list, head) { 156 list_for_each_entry(connector, &dev->mode_config.connector_list, head) {
161 if (connector->encoder == encoder) { 157 if (connector->encoder == encoder) {
162 struct exynos_drm_encoder *exynos_encoder; 158 struct exynos_drm_encoder *exynos_encoder;
@@ -189,8 +185,6 @@ static void exynos_drm_encoder_mode_set(struct drm_encoder *encoder,
189 185
190static void exynos_drm_encoder_prepare(struct drm_encoder *encoder) 186static void exynos_drm_encoder_prepare(struct drm_encoder *encoder)
191{ 187{
192 DRM_DEBUG_KMS("%s\n", __FILE__);
193
194 /* drm framework doesn't check NULL. */ 188 /* drm framework doesn't check NULL. */
195} 189}
196 190
@@ -200,8 +194,6 @@ static void exynos_drm_encoder_commit(struct drm_encoder *encoder)
200 struct exynos_drm_manager *manager = exynos_encoder->manager; 194 struct exynos_drm_manager *manager = exynos_encoder->manager;
201 struct exynos_drm_manager_ops *manager_ops = manager->ops; 195 struct exynos_drm_manager_ops *manager_ops = manager->ops;
202 196
203 DRM_DEBUG_KMS("%s\n", __FILE__);
204
205 if (manager_ops && manager_ops->commit) 197 if (manager_ops && manager_ops->commit)
206 manager_ops->commit(manager->dev); 198 manager_ops->commit(manager->dev);
207 199
@@ -274,8 +266,6 @@ static void exynos_drm_encoder_destroy(struct drm_encoder *encoder)
274 struct exynos_drm_encoder *exynos_encoder = 266 struct exynos_drm_encoder *exynos_encoder =
275 to_exynos_encoder(encoder); 267 to_exynos_encoder(encoder);
276 268
277 DRM_DEBUG_KMS("%s\n", __FILE__);
278
279 exynos_encoder->manager->pipe = -1; 269 exynos_encoder->manager->pipe = -1;
280 270
281 drm_encoder_cleanup(encoder); 271 drm_encoder_cleanup(encoder);
@@ -315,8 +305,6 @@ void exynos_drm_encoder_setup(struct drm_device *dev)
315{ 305{
316 struct drm_encoder *encoder; 306 struct drm_encoder *encoder;
317 307
318 DRM_DEBUG_KMS("%s\n", __FILE__);
319
320 list_for_each_entry(encoder, &dev->mode_config.encoder_list, head) 308 list_for_each_entry(encoder, &dev->mode_config.encoder_list, head)
321 encoder->possible_clones = exynos_drm_encoder_clones(encoder); 309 encoder->possible_clones = exynos_drm_encoder_clones(encoder);
322} 310}
@@ -329,8 +317,6 @@ exynos_drm_encoder_create(struct drm_device *dev,
329 struct drm_encoder *encoder; 317 struct drm_encoder *encoder;
330 struct exynos_drm_encoder *exynos_encoder; 318 struct exynos_drm_encoder *exynos_encoder;
331 319
332 DRM_DEBUG_KMS("%s\n", __FILE__);
333
334 if (!manager || !possible_crtcs) 320 if (!manager || !possible_crtcs)
335 return NULL; 321 return NULL;
336 322
@@ -427,8 +413,6 @@ void exynos_drm_encoder_crtc_dpms(struct drm_encoder *encoder, void *data)
427 struct exynos_drm_manager_ops *manager_ops = manager->ops; 413 struct exynos_drm_manager_ops *manager_ops = manager->ops;
428 int mode = *(int *)data; 414 int mode = *(int *)data;
429 415
430 DRM_DEBUG_KMS("%s\n", __FILE__);
431
432 if (manager_ops && manager_ops->dpms) 416 if (manager_ops && manager_ops->dpms)
433 manager_ops->dpms(manager->dev, mode); 417 manager_ops->dpms(manager->dev, mode);
434 418
@@ -449,8 +433,6 @@ void exynos_drm_encoder_crtc_pipe(struct drm_encoder *encoder, void *data)
449 to_exynos_encoder(encoder)->manager; 433 to_exynos_encoder(encoder)->manager;
450 int pipe = *(int *)data; 434 int pipe = *(int *)data;
451 435
452 DRM_DEBUG_KMS("%s\n", __FILE__);
453
454 /* 436 /*
455 * when crtc is detached from encoder, this pipe is used 437 * when crtc is detached from encoder, this pipe is used
456 * to select manager operation 438 * to select manager operation
@@ -465,8 +447,6 @@ void exynos_drm_encoder_plane_mode_set(struct drm_encoder *encoder, void *data)
465 struct exynos_drm_overlay_ops *overlay_ops = manager->overlay_ops; 447 struct exynos_drm_overlay_ops *overlay_ops = manager->overlay_ops;
466 struct exynos_drm_overlay *overlay = data; 448 struct exynos_drm_overlay *overlay = data;
467 449
468 DRM_DEBUG_KMS("%s\n", __FILE__);
469
470 if (overlay_ops && overlay_ops->mode_set) 450 if (overlay_ops && overlay_ops->mode_set)
471 overlay_ops->mode_set(manager->dev, overlay); 451 overlay_ops->mode_set(manager->dev, overlay);
472} 452}
@@ -478,8 +458,6 @@ void exynos_drm_encoder_plane_commit(struct drm_encoder *encoder, void *data)
478 struct exynos_drm_overlay_ops *overlay_ops = manager->overlay_ops; 458 struct exynos_drm_overlay_ops *overlay_ops = manager->overlay_ops;
479 int zpos = DEFAULT_ZPOS; 459 int zpos = DEFAULT_ZPOS;
480 460
481 DRM_DEBUG_KMS("%s\n", __FILE__);
482
483 if (data) 461 if (data)
484 zpos = *(int *)data; 462 zpos = *(int *)data;
485 463
@@ -494,8 +472,6 @@ void exynos_drm_encoder_plane_enable(struct drm_encoder *encoder, void *data)
494 struct exynos_drm_overlay_ops *overlay_ops = manager->overlay_ops; 472 struct exynos_drm_overlay_ops *overlay_ops = manager->overlay_ops;
495 int zpos = DEFAULT_ZPOS; 473 int zpos = DEFAULT_ZPOS;
496 474
497 DRM_DEBUG_KMS("%s\n", __FILE__);
498
499 if (data) 475 if (data)
500 zpos = *(int *)data; 476 zpos = *(int *)data;
501 477
@@ -510,8 +486,6 @@ void exynos_drm_encoder_plane_disable(struct drm_encoder *encoder, void *data)
510 struct exynos_drm_overlay_ops *overlay_ops = manager->overlay_ops; 486 struct exynos_drm_overlay_ops *overlay_ops = manager->overlay_ops;
511 int zpos = DEFAULT_ZPOS; 487 int zpos = DEFAULT_ZPOS;
512 488
513 DRM_DEBUG_KMS("%s\n", __FILE__);
514
515 if (data) 489 if (data)
516 zpos = *(int *)data; 490 zpos = *(int *)data;
517 491
diff --git a/drivers/gpu/drm/exynos/exynos_drm_fb.c b/drivers/gpu/drm/exynos/exynos_drm_fb.c
index 0e04f4ea441f..c2d149f0408a 100644
--- a/drivers/gpu/drm/exynos/exynos_drm_fb.c
+++ b/drivers/gpu/drm/exynos/exynos_drm_fb.c
@@ -70,8 +70,6 @@ static void exynos_drm_fb_destroy(struct drm_framebuffer *fb)
70 struct exynos_drm_fb *exynos_fb = to_exynos_fb(fb); 70 struct exynos_drm_fb *exynos_fb = to_exynos_fb(fb);
71 unsigned int i; 71 unsigned int i;
72 72
73 DRM_DEBUG_KMS("%s\n", __FILE__);
74
75 /* make sure that overlay data are updated before relesing fb. */ 73 /* make sure that overlay data are updated before relesing fb. */
76 exynos_drm_encoder_complete_scanout(fb); 74 exynos_drm_encoder_complete_scanout(fb);
77 75
@@ -97,8 +95,6 @@ static int exynos_drm_fb_create_handle(struct drm_framebuffer *fb,
97{ 95{
98 struct exynos_drm_fb *exynos_fb = to_exynos_fb(fb); 96 struct exynos_drm_fb *exynos_fb = to_exynos_fb(fb);
99 97
100 DRM_DEBUG_KMS("%s\n", __FILE__);
101
102 /* This fb should have only one gem object. */ 98 /* This fb should have only one gem object. */
103 if (WARN_ON(exynos_fb->buf_cnt != 1)) 99 if (WARN_ON(exynos_fb->buf_cnt != 1))
104 return -EINVAL; 100 return -EINVAL;
@@ -112,8 +108,6 @@ static int exynos_drm_fb_dirty(struct drm_framebuffer *fb,
112 unsigned color, struct drm_clip_rect *clips, 108 unsigned color, struct drm_clip_rect *clips,
113 unsigned num_clips) 109 unsigned num_clips)
114{ 110{
115 DRM_DEBUG_KMS("%s\n", __FILE__);
116
117 /* TODO */ 111 /* TODO */
118 112
119 return 0; 113 return 0;
@@ -225,8 +219,6 @@ exynos_user_fb_create(struct drm_device *dev, struct drm_file *file_priv,
225 struct exynos_drm_fb *exynos_fb; 219 struct exynos_drm_fb *exynos_fb;
226 int i, ret; 220 int i, ret;
227 221
228 DRM_DEBUG_KMS("%s\n", __FILE__);
229
230 exynos_fb = kzalloc(sizeof(*exynos_fb), GFP_KERNEL); 222 exynos_fb = kzalloc(sizeof(*exynos_fb), GFP_KERNEL);
231 if (!exynos_fb) { 223 if (!exynos_fb) {
232 DRM_ERROR("failed to allocate exynos drm framebuffer\n"); 224 DRM_ERROR("failed to allocate exynos drm framebuffer\n");
@@ -293,8 +285,6 @@ struct exynos_drm_gem_buf *exynos_drm_fb_buffer(struct drm_framebuffer *fb,
293 struct exynos_drm_fb *exynos_fb = to_exynos_fb(fb); 285 struct exynos_drm_fb *exynos_fb = to_exynos_fb(fb);
294 struct exynos_drm_gem_buf *buffer; 286 struct exynos_drm_gem_buf *buffer;
295 287
296 DRM_DEBUG_KMS("%s\n", __FILE__);
297
298 if (index >= MAX_FB_BUFFER) 288 if (index >= MAX_FB_BUFFER)
299 return NULL; 289 return NULL;
300 290
diff --git a/drivers/gpu/drm/exynos/exynos_drm_fbdev.c b/drivers/gpu/drm/exynos/exynos_drm_fbdev.c
index 8f007aaeffc3..8e60bd61137f 100644
--- a/drivers/gpu/drm/exynos/exynos_drm_fbdev.c
+++ b/drivers/gpu/drm/exynos/exynos_drm_fbdev.c
@@ -43,8 +43,6 @@ static int exynos_drm_fb_mmap(struct fb_info *info,
43 unsigned long vm_size; 43 unsigned long vm_size;
44 int ret; 44 int ret;
45 45
46 DRM_DEBUG_KMS("%s\n", __func__);
47
48 vma->vm_flags |= VM_IO | VM_DONTEXPAND | VM_DONTDUMP; 46 vma->vm_flags |= VM_IO | VM_DONTEXPAND | VM_DONTDUMP;
49 47
50 vm_size = vma->vm_end - vma->vm_start; 48 vm_size = vma->vm_end - vma->vm_start;
@@ -84,8 +82,6 @@ static int exynos_drm_fbdev_update(struct drm_fb_helper *helper,
84 unsigned int size = fb->width * fb->height * (fb->bits_per_pixel >> 3); 82 unsigned int size = fb->width * fb->height * (fb->bits_per_pixel >> 3);
85 unsigned long offset; 83 unsigned long offset;
86 84
87 DRM_DEBUG_KMS("%s\n", __FILE__);
88
89 drm_fb_helper_fill_fix(fbi, fb->pitches[0], fb->depth); 85 drm_fb_helper_fill_fix(fbi, fb->pitches[0], fb->depth);
90 drm_fb_helper_fill_var(fbi, helper, fb->width, fb->height); 86 drm_fb_helper_fill_var(fbi, helper, fb->width, fb->height);
91 87
@@ -148,8 +144,6 @@ static int exynos_drm_fbdev_create(struct drm_fb_helper *helper,
148 unsigned long size; 144 unsigned long size;
149 int ret; 145 int ret;
150 146
151 DRM_DEBUG_KMS("%s\n", __FILE__);
152
153 DRM_DEBUG_KMS("surface width(%d), height(%d) and bpp(%d\n", 147 DRM_DEBUG_KMS("surface width(%d), height(%d) and bpp(%d\n",
154 sizes->surface_width, sizes->surface_height, 148 sizes->surface_width, sizes->surface_height,
155 sizes->surface_bpp); 149 sizes->surface_bpp);
@@ -238,8 +232,6 @@ int exynos_drm_fbdev_init(struct drm_device *dev)
238 unsigned int num_crtc; 232 unsigned int num_crtc;
239 int ret; 233 int ret;
240 234
241 DRM_DEBUG_KMS("%s\n", __FILE__);
242
243 if (!dev->mode_config.num_crtc || !dev->mode_config.num_connector) 235 if (!dev->mode_config.num_crtc || !dev->mode_config.num_connector)
244 return 0; 236 return 0;
245 237
diff --git a/drivers/gpu/drm/exynos/exynos_drm_fimc.c b/drivers/gpu/drm/exynos/exynos_drm_fimc.c
index 4a1616a18ab7..7b5f2e8f0861 100644
--- a/drivers/gpu/drm/exynos/exynos_drm_fimc.c
+++ b/drivers/gpu/drm/exynos/exynos_drm_fimc.c
@@ -175,8 +175,6 @@ static void fimc_sw_reset(struct fimc_context *ctx)
175{ 175{
176 u32 cfg; 176 u32 cfg;
177 177
178 DRM_DEBUG_KMS("%s\n", __func__);
179
180 /* stop dma operation */ 178 /* stop dma operation */
181 cfg = fimc_read(EXYNOS_CISTATUS); 179 cfg = fimc_read(EXYNOS_CISTATUS);
182 if (EXYNOS_CISTATUS_GET_ENVID_STATUS(cfg)) { 180 if (EXYNOS_CISTATUS_GET_ENVID_STATUS(cfg)) {
@@ -210,8 +208,6 @@ static void fimc_sw_reset(struct fimc_context *ctx)
210 208
211static int fimc_set_camblk_fimd0_wb(struct fimc_context *ctx) 209static int fimc_set_camblk_fimd0_wb(struct fimc_context *ctx)
212{ 210{
213 DRM_DEBUG_KMS("%s\n", __func__);
214
215 return regmap_update_bits(ctx->sysreg, SYSREG_CAMERA_BLK, 211 return regmap_update_bits(ctx->sysreg, SYSREG_CAMERA_BLK,
216 SYSREG_FIMD0WB_DEST_MASK, 212 SYSREG_FIMD0WB_DEST_MASK,
217 ctx->id << SYSREG_FIMD0WB_DEST_SHIFT); 213 ctx->id << SYSREG_FIMD0WB_DEST_SHIFT);
@@ -319,8 +315,6 @@ static void fimc_clear_irq(struct fimc_context *ctx)
319{ 315{
320 u32 cfg; 316 u32 cfg;
321 317
322 DRM_DEBUG_KMS("%s\n", __func__);
323
324 cfg = fimc_read(EXYNOS_CIGCTRL); 318 cfg = fimc_read(EXYNOS_CIGCTRL);
325 cfg |= EXYNOS_CIGCTRL_IRQ_CLR; 319 cfg |= EXYNOS_CIGCTRL_IRQ_CLR;
326 fimc_write(cfg, EXYNOS_CIGCTRL); 320 fimc_write(cfg, EXYNOS_CIGCTRL);
@@ -380,8 +374,6 @@ static int fimc_get_buf_id(struct fimc_context *ctx)
380 u32 cfg; 374 u32 cfg;
381 int frame_cnt, buf_id; 375 int frame_cnt, buf_id;
382 376
383 DRM_DEBUG_KMS("%s\n", __func__);
384
385 cfg = fimc_read(EXYNOS_CISTATUS2); 377 cfg = fimc_read(EXYNOS_CISTATUS2);
386 frame_cnt = EXYNOS_CISTATUS2_GET_FRAMECOUNT_BEFORE(cfg); 378 frame_cnt = EXYNOS_CISTATUS2_GET_FRAMECOUNT_BEFORE(cfg);
387 379
@@ -1357,8 +1349,6 @@ static int fimc_init_prop_list(struct exynos_drm_ippdrv *ippdrv)
1357{ 1349{
1358 struct drm_exynos_ipp_prop_list *prop_list; 1350 struct drm_exynos_ipp_prop_list *prop_list;
1359 1351
1360 DRM_DEBUG_KMS("%s\n", __func__);
1361
1362 prop_list = devm_kzalloc(ippdrv->dev, sizeof(*prop_list), GFP_KERNEL); 1352 prop_list = devm_kzalloc(ippdrv->dev, sizeof(*prop_list), GFP_KERNEL);
1363 if (!prop_list) { 1353 if (!prop_list) {
1364 DRM_ERROR("failed to alloc property list.\n"); 1354 DRM_ERROR("failed to alloc property list.\n");
@@ -1419,8 +1409,6 @@ static int fimc_ippdrv_check_property(struct device *dev,
1419 bool swap; 1409 bool swap;
1420 int i; 1410 int i;
1421 1411
1422 DRM_DEBUG_KMS("%s\n", __func__);
1423
1424 for_each_ipp_ops(i) { 1412 for_each_ipp_ops(i) {
1425 if ((i == EXYNOS_DRM_OPS_SRC) && 1413 if ((i == EXYNOS_DRM_OPS_SRC) &&
1426 (property->cmd == IPP_CMD_WB)) 1414 (property->cmd == IPP_CMD_WB))
@@ -1526,8 +1514,6 @@ static void fimc_clear_addr(struct fimc_context *ctx)
1526{ 1514{
1527 int i; 1515 int i;
1528 1516
1529 DRM_DEBUG_KMS("%s:\n", __func__);
1530
1531 for (i = 0; i < FIMC_MAX_SRC; i++) { 1517 for (i = 0; i < FIMC_MAX_SRC; i++) {
1532 fimc_write(0, EXYNOS_CIIYSA(i)); 1518 fimc_write(0, EXYNOS_CIIYSA(i));
1533 fimc_write(0, EXYNOS_CIICBSA(i)); 1519 fimc_write(0, EXYNOS_CIICBSA(i));
@@ -1545,8 +1531,6 @@ static int fimc_ippdrv_reset(struct device *dev)
1545{ 1531{
1546 struct fimc_context *ctx = get_fimc_context(dev); 1532 struct fimc_context *ctx = get_fimc_context(dev);
1547 1533
1548 DRM_DEBUG_KMS("%s\n", __func__);
1549
1550 /* reset h/w block */ 1534 /* reset h/w block */
1551 fimc_sw_reset(ctx); 1535 fimc_sw_reset(ctx);
1552 1536
diff --git a/drivers/gpu/drm/exynos/exynos_drm_fimd.c b/drivers/gpu/drm/exynos/exynos_drm_fimd.c
index 0939e4652706..3e106beca5b6 100644
--- a/drivers/gpu/drm/exynos/exynos_drm_fimd.c
+++ b/drivers/gpu/drm/exynos/exynos_drm_fimd.c
@@ -150,8 +150,6 @@ static inline struct fimd_driver_data *drm_fimd_get_driver_data(
150 150
151static bool fimd_display_is_connected(struct device *dev) 151static bool fimd_display_is_connected(struct device *dev)
152{ 152{
153 DRM_DEBUG_KMS("%s\n", __FILE__);
154
155 /* TODO. */ 153 /* TODO. */
156 154
157 return true; 155 return true;
@@ -161,15 +159,11 @@ static void *fimd_get_panel(struct device *dev)
161{ 159{
162 struct fimd_context *ctx = get_fimd_context(dev); 160 struct fimd_context *ctx = get_fimd_context(dev);
163 161
164 DRM_DEBUG_KMS("%s\n", __FILE__);
165
166 return ctx->panel; 162 return ctx->panel;
167} 163}
168 164
169static int fimd_check_mode(struct device *dev, struct drm_display_mode *mode) 165static int fimd_check_mode(struct device *dev, struct drm_display_mode *mode)
170{ 166{
171 DRM_DEBUG_KMS("%s\n", __FILE__);
172
173 /* TODO. */ 167 /* TODO. */
174 168
175 return 0; 169 return 0;
@@ -177,8 +171,6 @@ static int fimd_check_mode(struct device *dev, struct drm_display_mode *mode)
177 171
178static int fimd_display_power_on(struct device *dev, int mode) 172static int fimd_display_power_on(struct device *dev, int mode)
179{ 173{
180 DRM_DEBUG_KMS("%s\n", __FILE__);
181
182 /* TODO */ 174 /* TODO */
183 175
184 return 0; 176 return 0;
@@ -196,7 +188,7 @@ static void fimd_dpms(struct device *subdrv_dev, int mode)
196{ 188{
197 struct fimd_context *ctx = get_fimd_context(subdrv_dev); 189 struct fimd_context *ctx = get_fimd_context(subdrv_dev);
198 190
199 DRM_DEBUG_KMS("%s, %d\n", __FILE__, mode); 191 DRM_DEBUG_KMS("%d\n", mode);
200 192
201 mutex_lock(&ctx->lock); 193 mutex_lock(&ctx->lock);
202 194
@@ -234,8 +226,6 @@ static void fimd_apply(struct device *subdrv_dev)
234 struct fimd_win_data *win_data; 226 struct fimd_win_data *win_data;
235 int i; 227 int i;
236 228
237 DRM_DEBUG_KMS("%s\n", __FILE__);
238
239 for (i = 0; i < WINDOWS_NR; i++) { 229 for (i = 0; i < WINDOWS_NR; i++) {
240 win_data = &ctx->win_data[i]; 230 win_data = &ctx->win_data[i];
241 if (win_data->enabled && (ovl_ops && ovl_ops->commit)) 231 if (win_data->enabled && (ovl_ops && ovl_ops->commit))
@@ -258,8 +248,6 @@ static void fimd_commit(struct device *dev)
258 if (ctx->suspended) 248 if (ctx->suspended)
259 return; 249 return;
260 250
261 DRM_DEBUG_KMS("%s\n", __FILE__);
262
263 /* setup polarity values from machine code. */ 251 /* setup polarity values from machine code. */
264 writel(ctx->vidcon1, ctx->regs + driver_data->timing_base + VIDCON1); 252 writel(ctx->vidcon1, ctx->regs + driver_data->timing_base + VIDCON1);
265 253
@@ -309,8 +297,6 @@ static int fimd_enable_vblank(struct device *dev)
309 struct fimd_context *ctx = get_fimd_context(dev); 297 struct fimd_context *ctx = get_fimd_context(dev);
310 u32 val; 298 u32 val;
311 299
312 DRM_DEBUG_KMS("%s\n", __FILE__);
313
314 if (ctx->suspended) 300 if (ctx->suspended)
315 return -EPERM; 301 return -EPERM;
316 302
@@ -336,8 +322,6 @@ static void fimd_disable_vblank(struct device *dev)
336 struct fimd_context *ctx = get_fimd_context(dev); 322 struct fimd_context *ctx = get_fimd_context(dev);
337 u32 val; 323 u32 val;
338 324
339 DRM_DEBUG_KMS("%s\n", __FILE__);
340
341 if (ctx->suspended) 325 if (ctx->suspended)
342 return; 326 return;
343 327
@@ -387,8 +371,6 @@ static void fimd_win_mode_set(struct device *dev,
387 int win; 371 int win;
388 unsigned long offset; 372 unsigned long offset;
389 373
390 DRM_DEBUG_KMS("%s\n", __FILE__);
391
392 if (!overlay) { 374 if (!overlay) {
393 dev_err(dev, "overlay is NULL\n"); 375 dev_err(dev, "overlay is NULL\n");
394 return; 376 return;
@@ -435,8 +417,6 @@ static void fimd_win_set_pixfmt(struct device *dev, unsigned int win)
435 struct fimd_win_data *win_data = &ctx->win_data[win]; 417 struct fimd_win_data *win_data = &ctx->win_data[win];
436 unsigned long val; 418 unsigned long val;
437 419
438 DRM_DEBUG_KMS("%s\n", __FILE__);
439
440 val = WINCONx_ENWIN; 420 val = WINCONx_ENWIN;
441 421
442 switch (win_data->bpp) { 422 switch (win_data->bpp) {
@@ -495,8 +475,6 @@ static void fimd_win_set_colkey(struct device *dev, unsigned int win)
495 struct fimd_context *ctx = get_fimd_context(dev); 475 struct fimd_context *ctx = get_fimd_context(dev);
496 unsigned int keycon0 = 0, keycon1 = 0; 476 unsigned int keycon0 = 0, keycon1 = 0;
497 477
498 DRM_DEBUG_KMS("%s\n", __FILE__);
499
500 keycon0 = ~(WxKEYCON0_KEYBL_EN | WxKEYCON0_KEYEN_F | 478 keycon0 = ~(WxKEYCON0_KEYBL_EN | WxKEYCON0_KEYEN_F |
501 WxKEYCON0_DIRCON) | WxKEYCON0_COMPKEY(0); 479 WxKEYCON0_DIRCON) | WxKEYCON0_COMPKEY(0);
502 480
@@ -542,8 +520,6 @@ static void fimd_win_commit(struct device *dev, int zpos)
542 unsigned int last_x; 520 unsigned int last_x;
543 unsigned int last_y; 521 unsigned int last_y;
544 522
545 DRM_DEBUG_KMS("%s\n", __FILE__);
546
547 if (ctx->suspended) 523 if (ctx->suspended)
548 return; 524 return;
549 525
@@ -662,8 +638,6 @@ static void fimd_win_disable(struct device *dev, int zpos)
662 int win = zpos; 638 int win = zpos;
663 u32 val; 639 u32 val;
664 640
665 DRM_DEBUG_KMS("%s\n", __FILE__);
666
667 if (win == DEFAULT_ZPOS) 641 if (win == DEFAULT_ZPOS)
668 win = ctx->default_win; 642 win = ctx->default_win;
669 643
@@ -743,8 +717,6 @@ out:
743 717
744static int fimd_subdrv_probe(struct drm_device *drm_dev, struct device *dev) 718static int fimd_subdrv_probe(struct drm_device *drm_dev, struct device *dev)
745{ 719{
746 DRM_DEBUG_KMS("%s\n", __FILE__);
747
748 /* 720 /*
749 * enable drm irq mode. 721 * enable drm irq mode.
750 * - with irq_enabled = 1, we can use the vblank feature. 722 * - with irq_enabled = 1, we can use the vblank feature.
@@ -771,8 +743,6 @@ static int fimd_subdrv_probe(struct drm_device *drm_dev, struct device *dev)
771 743
772static void fimd_subdrv_remove(struct drm_device *drm_dev, struct device *dev) 744static void fimd_subdrv_remove(struct drm_device *drm_dev, struct device *dev)
773{ 745{
774 DRM_DEBUG_KMS("%s\n", __FILE__);
775
776 /* detach this sub driver from iommu mapping if supported. */ 746 /* detach this sub driver from iommu mapping if supported. */
777 if (is_drm_iommu_supported(drm_dev)) 747 if (is_drm_iommu_supported(drm_dev))
778 drm_iommu_detach_device(drm_dev, dev); 748 drm_iommu_detach_device(drm_dev, dev);
@@ -787,8 +757,6 @@ static int fimd_calc_clkdiv(struct fimd_context *ctx,
787 u32 best_framerate = 0; 757 u32 best_framerate = 0;
788 u32 framerate; 758 u32 framerate;
789 759
790 DRM_DEBUG_KMS("%s\n", __FILE__);
791
792 retrace = timing->left_margin + timing->hsync_len + 760 retrace = timing->left_margin + timing->hsync_len +
793 timing->right_margin + timing->xres; 761 timing->right_margin + timing->xres;
794 retrace *= timing->upper_margin + timing->vsync_len + 762 retrace *= timing->upper_margin + timing->vsync_len +
@@ -823,8 +791,6 @@ static int fimd_calc_clkdiv(struct fimd_context *ctx,
823 791
824static void fimd_clear_win(struct fimd_context *ctx, int win) 792static void fimd_clear_win(struct fimd_context *ctx, int win)
825{ 793{
826 DRM_DEBUG_KMS("%s\n", __FILE__);
827
828 writel(0, ctx->regs + WINCON(win)); 794 writel(0, ctx->regs + WINCON(win));
829 writel(0, ctx->regs + VIDOSD_A(win)); 795 writel(0, ctx->regs + VIDOSD_A(win));
830 writel(0, ctx->regs + VIDOSD_B(win)); 796 writel(0, ctx->regs + VIDOSD_B(win));
@@ -838,8 +804,6 @@ static void fimd_clear_win(struct fimd_context *ctx, int win)
838 804
839static int fimd_clock(struct fimd_context *ctx, bool enable) 805static int fimd_clock(struct fimd_context *ctx, bool enable)
840{ 806{
841 DRM_DEBUG_KMS("%s\n", __FILE__);
842
843 if (enable) { 807 if (enable) {
844 int ret; 808 int ret;
845 809
@@ -925,8 +889,6 @@ static int fimd_probe(struct platform_device *pdev)
925 int win; 889 int win;
926 int ret = -EINVAL; 890 int ret = -EINVAL;
927 891
928 DRM_DEBUG_KMS("%s\n", __FILE__);
929
930 if (dev->of_node) { 892 if (dev->of_node) {
931 pdata = devm_kzalloc(dev, sizeof(*pdata), GFP_KERNEL); 893 pdata = devm_kzalloc(dev, sizeof(*pdata), GFP_KERNEL);
932 if (!pdata) { 894 if (!pdata) {
@@ -1032,8 +994,6 @@ static int fimd_remove(struct platform_device *pdev)
1032 struct device *dev = &pdev->dev; 994 struct device *dev = &pdev->dev;
1033 struct fimd_context *ctx = platform_get_drvdata(pdev); 995 struct fimd_context *ctx = platform_get_drvdata(pdev);
1034 996
1035 DRM_DEBUG_KMS("%s\n", __FILE__);
1036
1037 exynos_drm_subdrv_unregister(&ctx->subdrv); 997 exynos_drm_subdrv_unregister(&ctx->subdrv);
1038 998
1039 if (ctx->suspended) 999 if (ctx->suspended)
@@ -1098,8 +1058,6 @@ static int fimd_runtime_suspend(struct device *dev)
1098{ 1058{
1099 struct fimd_context *ctx = get_fimd_context(dev); 1059 struct fimd_context *ctx = get_fimd_context(dev);
1100 1060
1101 DRM_DEBUG_KMS("%s\n", __FILE__);
1102
1103 return fimd_activate(ctx, false); 1061 return fimd_activate(ctx, false);
1104} 1062}
1105 1063
@@ -1107,8 +1065,6 @@ static int fimd_runtime_resume(struct device *dev)
1107{ 1065{
1108 struct fimd_context *ctx = get_fimd_context(dev); 1066 struct fimd_context *ctx = get_fimd_context(dev);
1109 1067
1110 DRM_DEBUG_KMS("%s\n", __FILE__);
1111
1112 return fimd_activate(ctx, true); 1068 return fimd_activate(ctx, true);
1113} 1069}
1114#endif 1070#endif
diff --git a/drivers/gpu/drm/exynos/exynos_drm_gem.c b/drivers/gpu/drm/exynos/exynos_drm_gem.c
index cf4543ffa079..5af14782fcfe 100644
--- a/drivers/gpu/drm/exynos/exynos_drm_gem.c
+++ b/drivers/gpu/drm/exynos/exynos_drm_gem.c
@@ -132,8 +132,6 @@ void exynos_drm_gem_destroy(struct exynos_drm_gem_obj *exynos_gem_obj)
132 struct drm_gem_object *obj; 132 struct drm_gem_object *obj;
133 struct exynos_drm_gem_buf *buf; 133 struct exynos_drm_gem_buf *buf;
134 134
135 DRM_DEBUG_KMS("%s\n", __FILE__);
136
137 obj = &exynos_gem_obj->base; 135 obj = &exynos_gem_obj->base;
138 buf = exynos_gem_obj->buffer; 136 buf = exynos_gem_obj->buffer;
139 137
@@ -227,7 +225,6 @@ struct exynos_drm_gem_obj *exynos_drm_gem_create(struct drm_device *dev,
227 } 225 }
228 226
229 size = roundup_gem_size(size, flags); 227 size = roundup_gem_size(size, flags);
230 DRM_DEBUG_KMS("%s\n", __FILE__);
231 228
232 ret = check_gem_flags(flags); 229 ret = check_gem_flags(flags);
233 if (ret) 230 if (ret)
@@ -268,8 +265,6 @@ int exynos_drm_gem_create_ioctl(struct drm_device *dev, void *data,
268 struct exynos_drm_gem_obj *exynos_gem_obj; 265 struct exynos_drm_gem_obj *exynos_gem_obj;
269 int ret; 266 int ret;
270 267
271 DRM_DEBUG_KMS("%s\n", __FILE__);
272
273 exynos_gem_obj = exynos_drm_gem_create(dev, args->flags, args->size); 268 exynos_gem_obj = exynos_drm_gem_create(dev, args->flags, args->size);
274 if (IS_ERR(exynos_gem_obj)) 269 if (IS_ERR(exynos_gem_obj))
275 return PTR_ERR(exynos_gem_obj); 270 return PTR_ERR(exynos_gem_obj);
@@ -331,8 +326,6 @@ int exynos_drm_gem_map_offset_ioctl(struct drm_device *dev, void *data,
331{ 326{
332 struct drm_exynos_gem_map_off *args = data; 327 struct drm_exynos_gem_map_off *args = data;
333 328
334 DRM_DEBUG_KMS("%s\n", __FILE__);
335
336 DRM_DEBUG_KMS("handle = 0x%x, offset = 0x%lx\n", 329 DRM_DEBUG_KMS("handle = 0x%x, offset = 0x%lx\n",
337 args->handle, (unsigned long)args->offset); 330 args->handle, (unsigned long)args->offset);
338 331
@@ -371,8 +364,6 @@ static int exynos_drm_gem_mmap_buffer(struct file *filp,
371 unsigned long vm_size; 364 unsigned long vm_size;
372 int ret; 365 int ret;
373 366
374 DRM_DEBUG_KMS("%s\n", __FILE__);
375
376 vma->vm_flags |= VM_IO | VM_DONTEXPAND | VM_DONTDUMP; 367 vma->vm_flags |= VM_IO | VM_DONTEXPAND | VM_DONTDUMP;
377 vma->vm_private_data = obj; 368 vma->vm_private_data = obj;
378 vma->vm_ops = drm_dev->driver->gem_vm_ops; 369 vma->vm_ops = drm_dev->driver->gem_vm_ops;
@@ -431,8 +422,6 @@ int exynos_drm_gem_mmap_ioctl(struct drm_device *dev, void *data,
431 struct drm_gem_object *obj; 422 struct drm_gem_object *obj;
432 unsigned int addr; 423 unsigned int addr;
433 424
434 DRM_DEBUG_KMS("%s\n", __FILE__);
435
436 if (!(dev->driver->driver_features & DRIVER_GEM)) { 425 if (!(dev->driver->driver_features & DRIVER_GEM)) {
437 DRM_ERROR("does not support GEM.\n"); 426 DRM_ERROR("does not support GEM.\n");
438 return -ENODEV; 427 return -ENODEV;
@@ -643,8 +632,6 @@ void exynos_gem_unmap_sgt_from_dma(struct drm_device *drm_dev,
643 632
644int exynos_drm_gem_init_object(struct drm_gem_object *obj) 633int exynos_drm_gem_init_object(struct drm_gem_object *obj)
645{ 634{
646 DRM_DEBUG_KMS("%s\n", __FILE__);
647
648 return 0; 635 return 0;
649} 636}
650 637
@@ -653,8 +640,6 @@ void exynos_drm_gem_free_object(struct drm_gem_object *obj)
653 struct exynos_drm_gem_obj *exynos_gem_obj; 640 struct exynos_drm_gem_obj *exynos_gem_obj;
654 struct exynos_drm_gem_buf *buf; 641 struct exynos_drm_gem_buf *buf;
655 642
656 DRM_DEBUG_KMS("%s\n", __FILE__);
657
658 exynos_gem_obj = to_exynos_gem_obj(obj); 643 exynos_gem_obj = to_exynos_gem_obj(obj);
659 buf = exynos_gem_obj->buffer; 644 buf = exynos_gem_obj->buffer;
660 645
@@ -671,8 +656,6 @@ int exynos_drm_gem_dumb_create(struct drm_file *file_priv,
671 struct exynos_drm_gem_obj *exynos_gem_obj; 656 struct exynos_drm_gem_obj *exynos_gem_obj;
672 int ret; 657 int ret;
673 658
674 DRM_DEBUG_KMS("%s\n", __FILE__);
675
676 /* 659 /*
677 * alocate memory to be used for framebuffer. 660 * alocate memory to be used for framebuffer.
678 * - this callback would be called by user application 661 * - this callback would be called by user application
@@ -704,8 +687,6 @@ int exynos_drm_gem_dumb_map_offset(struct drm_file *file_priv,
704 struct drm_gem_object *obj; 687 struct drm_gem_object *obj;
705 int ret = 0; 688 int ret = 0;
706 689
707 DRM_DEBUG_KMS("%s\n", __FILE__);
708
709 mutex_lock(&dev->struct_mutex); 690 mutex_lock(&dev->struct_mutex);
710 691
711 /* 692 /*
@@ -743,8 +724,6 @@ int exynos_drm_gem_dumb_destroy(struct drm_file *file_priv,
743{ 724{
744 int ret; 725 int ret;
745 726
746 DRM_DEBUG_KMS("%s\n", __FILE__);
747
748 /* 727 /*
749 * obj->refcount and obj->handle_count are decreased and 728 * obj->refcount and obj->handle_count are decreased and
750 * if both them are 0 then exynos_drm_gem_free_object() 729 * if both them are 0 then exynos_drm_gem_free_object()
@@ -788,8 +767,6 @@ int exynos_drm_gem_mmap(struct file *filp, struct vm_area_struct *vma)
788 struct drm_gem_object *obj; 767 struct drm_gem_object *obj;
789 int ret; 768 int ret;
790 769
791 DRM_DEBUG_KMS("%s\n", __FILE__);
792
793 /* set vm_area_struct. */ 770 /* set vm_area_struct. */
794 ret = drm_gem_mmap(filp, vma); 771 ret = drm_gem_mmap(filp, vma);
795 if (ret < 0) { 772 if (ret < 0) {
diff --git a/drivers/gpu/drm/exynos/exynos_drm_gsc.c b/drivers/gpu/drm/exynos/exynos_drm_gsc.c
index 762f40d548b7..398a0b31ddd0 100644
--- a/drivers/gpu/drm/exynos/exynos_drm_gsc.c
+++ b/drivers/gpu/drm/exynos/exynos_drm_gsc.c
@@ -400,8 +400,6 @@ static int gsc_sw_reset(struct gsc_context *ctx)
400 u32 cfg; 400 u32 cfg;
401 int count = GSC_RESET_TIMEOUT; 401 int count = GSC_RESET_TIMEOUT;
402 402
403 DRM_DEBUG_KMS("%s\n", __func__);
404
405 /* s/w reset */ 403 /* s/w reset */
406 cfg = (GSC_SW_RESET_SRESET); 404 cfg = (GSC_SW_RESET_SRESET);
407 gsc_write(cfg, GSC_SW_RESET); 405 gsc_write(cfg, GSC_SW_RESET);
@@ -441,8 +439,6 @@ static void gsc_set_gscblk_fimd_wb(struct gsc_context *ctx, bool enable)
441{ 439{
442 u32 gscblk_cfg; 440 u32 gscblk_cfg;
443 441
444 DRM_DEBUG_KMS("%s\n", __func__);
445
446 gscblk_cfg = readl(SYSREG_GSCBLK_CFG1); 442 gscblk_cfg = readl(SYSREG_GSCBLK_CFG1);
447 443
448 if (enable) 444 if (enable)
@@ -1350,8 +1346,6 @@ static int gsc_init_prop_list(struct exynos_drm_ippdrv *ippdrv)
1350{ 1346{
1351 struct drm_exynos_ipp_prop_list *prop_list; 1347 struct drm_exynos_ipp_prop_list *prop_list;
1352 1348
1353 DRM_DEBUG_KMS("%s\n", __func__);
1354
1355 prop_list = devm_kzalloc(ippdrv->dev, sizeof(*prop_list), GFP_KERNEL); 1349 prop_list = devm_kzalloc(ippdrv->dev, sizeof(*prop_list), GFP_KERNEL);
1356 if (!prop_list) { 1350 if (!prop_list) {
1357 DRM_ERROR("failed to alloc property list.\n"); 1351 DRM_ERROR("failed to alloc property list.\n");
@@ -1411,8 +1405,6 @@ static int gsc_ippdrv_check_property(struct device *dev,
1411 bool swap; 1405 bool swap;
1412 int i; 1406 int i;
1413 1407
1414 DRM_DEBUG_KMS("%s\n", __func__);
1415
1416 for_each_ipp_ops(i) { 1408 for_each_ipp_ops(i) {
1417 if ((i == EXYNOS_DRM_OPS_SRC) && 1409 if ((i == EXYNOS_DRM_OPS_SRC) &&
1418 (property->cmd == IPP_CMD_WB)) 1410 (property->cmd == IPP_CMD_WB))
@@ -1521,8 +1513,6 @@ static int gsc_ippdrv_reset(struct device *dev)
1521 struct gsc_scaler *sc = &ctx->sc; 1513 struct gsc_scaler *sc = &ctx->sc;
1522 int ret; 1514 int ret;
1523 1515
1524 DRM_DEBUG_KMS("%s\n", __func__);
1525
1526 /* reset h/w block */ 1516 /* reset h/w block */
1527 ret = gsc_sw_reset(ctx); 1517 ret = gsc_sw_reset(ctx);
1528 if (ret < 0) { 1518 if (ret < 0) {
@@ -1807,7 +1797,7 @@ static int gsc_runtime_resume(struct device *dev)
1807{ 1797{
1808 struct gsc_context *ctx = get_gsc_context(dev); 1798 struct gsc_context *ctx = get_gsc_context(dev);
1809 1799
1810 DRM_DEBUG_KMS("%s:id[%d]\n", __FILE__, ctx->id); 1800 DRM_DEBUG_KMS("id[%d]\n", ctx->id);
1811 1801
1812 return gsc_clk_ctrl(ctx, true); 1802 return gsc_clk_ctrl(ctx, true);
1813} 1803}
diff --git a/drivers/gpu/drm/exynos/exynos_drm_hdmi.c b/drivers/gpu/drm/exynos/exynos_drm_hdmi.c
index 59acdc0017a7..aaa550d622f0 100644
--- a/drivers/gpu/drm/exynos/exynos_drm_hdmi.c
+++ b/drivers/gpu/drm/exynos/exynos_drm_hdmi.c
@@ -88,16 +88,12 @@ void exynos_mixer_drv_attach(struct exynos_drm_hdmi_context *ctx)
88 88
89void exynos_hdmi_ops_register(struct exynos_hdmi_ops *ops) 89void exynos_hdmi_ops_register(struct exynos_hdmi_ops *ops)
90{ 90{
91 DRM_DEBUG_KMS("%s\n", __FILE__);
92
93 if (ops) 91 if (ops)
94 hdmi_ops = ops; 92 hdmi_ops = ops;
95} 93}
96 94
97void exynos_mixer_ops_register(struct exynos_mixer_ops *ops) 95void exynos_mixer_ops_register(struct exynos_mixer_ops *ops)
98{ 96{
99 DRM_DEBUG_KMS("%s\n", __FILE__);
100
101 if (ops) 97 if (ops)
102 mixer_ops = ops; 98 mixer_ops = ops;
103} 99}
@@ -106,8 +102,6 @@ static bool drm_hdmi_is_connected(struct device *dev)
106{ 102{
107 struct drm_hdmi_context *ctx = to_context(dev); 103 struct drm_hdmi_context *ctx = to_context(dev);
108 104
109 DRM_DEBUG_KMS("%s\n", __FILE__);
110
111 if (hdmi_ops && hdmi_ops->is_connected) 105 if (hdmi_ops && hdmi_ops->is_connected)
112 return hdmi_ops->is_connected(ctx->hdmi_ctx->ctx); 106 return hdmi_ops->is_connected(ctx->hdmi_ctx->ctx);
113 107
@@ -119,8 +113,6 @@ static struct edid *drm_hdmi_get_edid(struct device *dev,
119{ 113{
120 struct drm_hdmi_context *ctx = to_context(dev); 114 struct drm_hdmi_context *ctx = to_context(dev);
121 115
122 DRM_DEBUG_KMS("%s\n", __FILE__);
123
124 if (hdmi_ops && hdmi_ops->get_edid) 116 if (hdmi_ops && hdmi_ops->get_edid)
125 return hdmi_ops->get_edid(ctx->hdmi_ctx->ctx, connector); 117 return hdmi_ops->get_edid(ctx->hdmi_ctx->ctx, connector);
126 118
@@ -133,8 +125,6 @@ static int drm_hdmi_check_mode(struct device *dev,
133 struct drm_hdmi_context *ctx = to_context(dev); 125 struct drm_hdmi_context *ctx = to_context(dev);
134 int ret = 0; 126 int ret = 0;
135 127
136 DRM_DEBUG_KMS("%s\n", __FILE__);
137
138 /* 128 /*
139 * Both, mixer and hdmi should be able to handle the requested mode. 129 * Both, mixer and hdmi should be able to handle the requested mode.
140 * If any of the two fails, return mode as BAD. 130 * If any of the two fails, return mode as BAD.
@@ -156,8 +146,6 @@ static int drm_hdmi_power_on(struct device *dev, int mode)
156{ 146{
157 struct drm_hdmi_context *ctx = to_context(dev); 147 struct drm_hdmi_context *ctx = to_context(dev);
158 148
159 DRM_DEBUG_KMS("%s\n", __FILE__);
160
161 if (hdmi_ops && hdmi_ops->power_on) 149 if (hdmi_ops && hdmi_ops->power_on)
162 return hdmi_ops->power_on(ctx->hdmi_ctx->ctx, mode); 150 return hdmi_ops->power_on(ctx->hdmi_ctx->ctx, mode);
163 151
@@ -178,8 +166,6 @@ static int drm_hdmi_enable_vblank(struct device *subdrv_dev)
178 struct exynos_drm_subdrv *subdrv = &ctx->subdrv; 166 struct exynos_drm_subdrv *subdrv = &ctx->subdrv;
179 struct exynos_drm_manager *manager = subdrv->manager; 167 struct exynos_drm_manager *manager = subdrv->manager;
180 168
181 DRM_DEBUG_KMS("%s\n", __FILE__);
182
183 if (mixer_ops && mixer_ops->enable_vblank) 169 if (mixer_ops && mixer_ops->enable_vblank)
184 return mixer_ops->enable_vblank(ctx->mixer_ctx->ctx, 170 return mixer_ops->enable_vblank(ctx->mixer_ctx->ctx,
185 manager->pipe); 171 manager->pipe);
@@ -191,8 +177,6 @@ static void drm_hdmi_disable_vblank(struct device *subdrv_dev)
191{ 177{
192 struct drm_hdmi_context *ctx = to_context(subdrv_dev); 178 struct drm_hdmi_context *ctx = to_context(subdrv_dev);
193 179
194 DRM_DEBUG_KMS("%s\n", __FILE__);
195
196 if (mixer_ops && mixer_ops->disable_vblank) 180 if (mixer_ops && mixer_ops->disable_vblank)
197 return mixer_ops->disable_vblank(ctx->mixer_ctx->ctx); 181 return mixer_ops->disable_vblank(ctx->mixer_ctx->ctx);
198} 182}
@@ -201,8 +185,6 @@ static void drm_hdmi_wait_for_vblank(struct device *subdrv_dev)
201{ 185{
202 struct drm_hdmi_context *ctx = to_context(subdrv_dev); 186 struct drm_hdmi_context *ctx = to_context(subdrv_dev);
203 187
204 DRM_DEBUG_KMS("%s\n", __FILE__);
205
206 if (mixer_ops && mixer_ops->wait_for_vblank) 188 if (mixer_ops && mixer_ops->wait_for_vblank)
207 mixer_ops->wait_for_vblank(ctx->mixer_ctx->ctx); 189 mixer_ops->wait_for_vblank(ctx->mixer_ctx->ctx);
208} 190}
@@ -215,8 +197,6 @@ static void drm_hdmi_mode_fixup(struct device *subdrv_dev,
215 struct drm_display_mode *m; 197 struct drm_display_mode *m;
216 int mode_ok; 198 int mode_ok;
217 199
218 DRM_DEBUG_KMS("%s\n", __FILE__);
219
220 drm_mode_set_crtcinfo(adjusted_mode, 0); 200 drm_mode_set_crtcinfo(adjusted_mode, 0);
221 201
222 mode_ok = drm_hdmi_check_mode(subdrv_dev, adjusted_mode); 202 mode_ok = drm_hdmi_check_mode(subdrv_dev, adjusted_mode);
@@ -257,8 +237,6 @@ static void drm_hdmi_mode_set(struct device *subdrv_dev, void *mode)
257{ 237{
258 struct drm_hdmi_context *ctx = to_context(subdrv_dev); 238 struct drm_hdmi_context *ctx = to_context(subdrv_dev);
259 239
260 DRM_DEBUG_KMS("%s\n", __FILE__);
261
262 if (hdmi_ops && hdmi_ops->mode_set) 240 if (hdmi_ops && hdmi_ops->mode_set)
263 hdmi_ops->mode_set(ctx->hdmi_ctx->ctx, mode); 241 hdmi_ops->mode_set(ctx->hdmi_ctx->ctx, mode);
264} 242}
@@ -268,8 +246,6 @@ static void drm_hdmi_get_max_resol(struct device *subdrv_dev,
268{ 246{
269 struct drm_hdmi_context *ctx = to_context(subdrv_dev); 247 struct drm_hdmi_context *ctx = to_context(subdrv_dev);
270 248
271 DRM_DEBUG_KMS("%s\n", __FILE__);
272
273 if (hdmi_ops && hdmi_ops->get_max_resol) 249 if (hdmi_ops && hdmi_ops->get_max_resol)
274 hdmi_ops->get_max_resol(ctx->hdmi_ctx->ctx, width, height); 250 hdmi_ops->get_max_resol(ctx->hdmi_ctx->ctx, width, height);
275} 251}
@@ -278,8 +254,6 @@ static void drm_hdmi_commit(struct device *subdrv_dev)
278{ 254{
279 struct drm_hdmi_context *ctx = to_context(subdrv_dev); 255 struct drm_hdmi_context *ctx = to_context(subdrv_dev);
280 256
281 DRM_DEBUG_KMS("%s\n", __FILE__);
282
283 if (hdmi_ops && hdmi_ops->commit) 257 if (hdmi_ops && hdmi_ops->commit)
284 hdmi_ops->commit(ctx->hdmi_ctx->ctx); 258 hdmi_ops->commit(ctx->hdmi_ctx->ctx);
285} 259}
@@ -288,8 +262,6 @@ static void drm_hdmi_dpms(struct device *subdrv_dev, int mode)
288{ 262{
289 struct drm_hdmi_context *ctx = to_context(subdrv_dev); 263 struct drm_hdmi_context *ctx = to_context(subdrv_dev);
290 264
291 DRM_DEBUG_KMS("%s\n", __FILE__);
292
293 if (mixer_ops && mixer_ops->dpms) 265 if (mixer_ops && mixer_ops->dpms)
294 mixer_ops->dpms(ctx->mixer_ctx->ctx, mode); 266 mixer_ops->dpms(ctx->mixer_ctx->ctx, mode);
295 267
@@ -302,8 +274,6 @@ static void drm_hdmi_apply(struct device *subdrv_dev)
302 struct drm_hdmi_context *ctx = to_context(subdrv_dev); 274 struct drm_hdmi_context *ctx = to_context(subdrv_dev);
303 int i; 275 int i;
304 276
305 DRM_DEBUG_KMS("%s\n", __FILE__);
306
307 for (i = 0; i < MIXER_WIN_NR; i++) { 277 for (i = 0; i < MIXER_WIN_NR; i++) {
308 if (!ctx->enabled[i]) 278 if (!ctx->enabled[i])
309 continue; 279 continue;
@@ -332,8 +302,6 @@ static void drm_mixer_mode_set(struct device *subdrv_dev,
332{ 302{
333 struct drm_hdmi_context *ctx = to_context(subdrv_dev); 303 struct drm_hdmi_context *ctx = to_context(subdrv_dev);
334 304
335 DRM_DEBUG_KMS("%s\n", __FILE__);
336
337 if (mixer_ops && mixer_ops->win_mode_set) 305 if (mixer_ops && mixer_ops->win_mode_set)
338 mixer_ops->win_mode_set(ctx->mixer_ctx->ctx, overlay); 306 mixer_ops->win_mode_set(ctx->mixer_ctx->ctx, overlay);
339} 307}
@@ -343,8 +311,6 @@ static void drm_mixer_commit(struct device *subdrv_dev, int zpos)
343 struct drm_hdmi_context *ctx = to_context(subdrv_dev); 311 struct drm_hdmi_context *ctx = to_context(subdrv_dev);
344 int win = (zpos == DEFAULT_ZPOS) ? MIXER_DEFAULT_WIN : zpos; 312 int win = (zpos == DEFAULT_ZPOS) ? MIXER_DEFAULT_WIN : zpos;
345 313
346 DRM_DEBUG_KMS("%s\n", __FILE__);
347
348 if (win < 0 || win >= MIXER_WIN_NR) { 314 if (win < 0 || win >= MIXER_WIN_NR) {
349 DRM_ERROR("mixer window[%d] is wrong\n", win); 315 DRM_ERROR("mixer window[%d] is wrong\n", win);
350 return; 316 return;
@@ -361,8 +327,6 @@ static void drm_mixer_disable(struct device *subdrv_dev, int zpos)
361 struct drm_hdmi_context *ctx = to_context(subdrv_dev); 327 struct drm_hdmi_context *ctx = to_context(subdrv_dev);
362 int win = (zpos == DEFAULT_ZPOS) ? MIXER_DEFAULT_WIN : zpos; 328 int win = (zpos == DEFAULT_ZPOS) ? MIXER_DEFAULT_WIN : zpos;
363 329
364 DRM_DEBUG_KMS("%s\n", __FILE__);
365
366 if (win < 0 || win >= MIXER_WIN_NR) { 330 if (win < 0 || win >= MIXER_WIN_NR) {
367 DRM_ERROR("mixer window[%d] is wrong\n", win); 331 DRM_ERROR("mixer window[%d] is wrong\n", win);
368 return; 332 return;
@@ -393,8 +357,6 @@ static int hdmi_subdrv_probe(struct drm_device *drm_dev,
393 struct exynos_drm_subdrv *subdrv = to_subdrv(dev); 357 struct exynos_drm_subdrv *subdrv = to_subdrv(dev);
394 struct drm_hdmi_context *ctx; 358 struct drm_hdmi_context *ctx;
395 359
396 DRM_DEBUG_KMS("%s\n", __FILE__);
397
398 if (!hdmi_ctx) { 360 if (!hdmi_ctx) {
399 DRM_ERROR("hdmi context not initialized.\n"); 361 DRM_ERROR("hdmi context not initialized.\n");
400 return -EFAULT; 362 return -EFAULT;
@@ -441,8 +403,6 @@ static int exynos_drm_hdmi_probe(struct platform_device *pdev)
441 struct exynos_drm_subdrv *subdrv; 403 struct exynos_drm_subdrv *subdrv;
442 struct drm_hdmi_context *ctx; 404 struct drm_hdmi_context *ctx;
443 405
444 DRM_DEBUG_KMS("%s\n", __FILE__);
445
446 ctx = devm_kzalloc(dev, sizeof(*ctx), GFP_KERNEL); 406 ctx = devm_kzalloc(dev, sizeof(*ctx), GFP_KERNEL);
447 if (!ctx) { 407 if (!ctx) {
448 DRM_LOG_KMS("failed to alloc common hdmi context.\n"); 408 DRM_LOG_KMS("failed to alloc common hdmi context.\n");
@@ -467,8 +427,6 @@ static int exynos_drm_hdmi_remove(struct platform_device *pdev)
467{ 427{
468 struct drm_hdmi_context *ctx = platform_get_drvdata(pdev); 428 struct drm_hdmi_context *ctx = platform_get_drvdata(pdev);
469 429
470 DRM_DEBUG_KMS("%s\n", __FILE__);
471
472 exynos_drm_subdrv_unregister(&ctx->subdrv); 430 exynos_drm_subdrv_unregister(&ctx->subdrv);
473 431
474 return 0; 432 return 0;
diff --git a/drivers/gpu/drm/exynos/exynos_drm_ipp.c b/drivers/gpu/drm/exynos/exynos_drm_ipp.c
index be1e88463466..32d174ff1c50 100644
--- a/drivers/gpu/drm/exynos/exynos_drm_ipp.c
+++ b/drivers/gpu/drm/exynos/exynos_drm_ipp.c
@@ -131,8 +131,6 @@ void exynos_platform_device_ipp_unregister(void)
131 131
132int exynos_drm_ippdrv_register(struct exynos_drm_ippdrv *ippdrv) 132int exynos_drm_ippdrv_register(struct exynos_drm_ippdrv *ippdrv)
133{ 133{
134 DRM_DEBUG_KMS("%s\n", __func__);
135
136 if (!ippdrv) 134 if (!ippdrv)
137 return -EINVAL; 135 return -EINVAL;
138 136
@@ -145,8 +143,6 @@ int exynos_drm_ippdrv_register(struct exynos_drm_ippdrv *ippdrv)
145 143
146int exynos_drm_ippdrv_unregister(struct exynos_drm_ippdrv *ippdrv) 144int exynos_drm_ippdrv_unregister(struct exynos_drm_ippdrv *ippdrv)
147{ 145{
148 DRM_DEBUG_KMS("%s\n", __func__);
149
150 if (!ippdrv) 146 if (!ippdrv)
151 return -EINVAL; 147 return -EINVAL;
152 148
@@ -162,8 +158,6 @@ static int ipp_create_id(struct idr *id_idr, struct mutex *lock, void *obj,
162{ 158{
163 int ret; 159 int ret;
164 160
165 DRM_DEBUG_KMS("%s\n", __func__);
166
167 /* do the allocation under our mutexlock */ 161 /* do the allocation under our mutexlock */
168 mutex_lock(lock); 162 mutex_lock(lock);
169 ret = idr_alloc(id_idr, obj, 1, 0, GFP_KERNEL); 163 ret = idr_alloc(id_idr, obj, 1, 0, GFP_KERNEL);
@@ -320,8 +314,6 @@ int exynos_drm_ipp_get_property(struct drm_device *drm_dev, void *data,
320 struct exynos_drm_ippdrv *ippdrv; 314 struct exynos_drm_ippdrv *ippdrv;
321 int count = 0; 315 int count = 0;
322 316
323 DRM_DEBUG_KMS("%s\n", __func__);
324
325 if (!ctx) { 317 if (!ctx) {
326 DRM_ERROR("invalid context.\n"); 318 DRM_ERROR("invalid context.\n");
327 return -EINVAL; 319 return -EINVAL;
@@ -418,8 +410,6 @@ static struct drm_exynos_ipp_cmd_work *ipp_create_cmd_work(void)
418{ 410{
419 struct drm_exynos_ipp_cmd_work *cmd_work; 411 struct drm_exynos_ipp_cmd_work *cmd_work;
420 412
421 DRM_DEBUG_KMS("%s\n", __func__);
422
423 cmd_work = kzalloc(sizeof(*cmd_work), GFP_KERNEL); 413 cmd_work = kzalloc(sizeof(*cmd_work), GFP_KERNEL);
424 if (!cmd_work) { 414 if (!cmd_work) {
425 DRM_ERROR("failed to alloc cmd_work.\n"); 415 DRM_ERROR("failed to alloc cmd_work.\n");
@@ -435,8 +425,6 @@ static struct drm_exynos_ipp_event_work *ipp_create_event_work(void)
435{ 425{
436 struct drm_exynos_ipp_event_work *event_work; 426 struct drm_exynos_ipp_event_work *event_work;
437 427
438 DRM_DEBUG_KMS("%s\n", __func__);
439
440 event_work = kzalloc(sizeof(*event_work), GFP_KERNEL); 428 event_work = kzalloc(sizeof(*event_work), GFP_KERNEL);
441 if (!event_work) { 429 if (!event_work) {
442 DRM_ERROR("failed to alloc event_work.\n"); 430 DRM_ERROR("failed to alloc event_work.\n");
@@ -460,8 +448,6 @@ int exynos_drm_ipp_set_property(struct drm_device *drm_dev, void *data,
460 struct drm_exynos_ipp_cmd_node *c_node; 448 struct drm_exynos_ipp_cmd_node *c_node;
461 int ret, i; 449 int ret, i;
462 450
463 DRM_DEBUG_KMS("%s\n", __func__);
464
465 if (!ctx) { 451 if (!ctx) {
466 DRM_ERROR("invalid context.\n"); 452 DRM_ERROR("invalid context.\n");
467 return -EINVAL; 453 return -EINVAL;
@@ -569,8 +555,6 @@ err_clear:
569 555
570static void ipp_clean_cmd_node(struct drm_exynos_ipp_cmd_node *c_node) 556static void ipp_clean_cmd_node(struct drm_exynos_ipp_cmd_node *c_node)
571{ 557{
572 DRM_DEBUG_KMS("%s\n", __func__);
573
574 /* delete list */ 558 /* delete list */
575 list_del(&c_node->list); 559 list_del(&c_node->list);
576 560
@@ -593,8 +577,6 @@ static int ipp_check_mem_list(struct drm_exynos_ipp_cmd_node *c_node)
593 struct list_head *head; 577 struct list_head *head;
594 int ret, i, count[EXYNOS_DRM_OPS_MAX] = { 0, }; 578 int ret, i, count[EXYNOS_DRM_OPS_MAX] = { 0, };
595 579
596 DRM_DEBUG_KMS("%s\n", __func__);
597
598 mutex_lock(&c_node->mem_lock); 580 mutex_lock(&c_node->mem_lock);
599 581
600 for_each_ipp_ops(i) { 582 for_each_ipp_ops(i) {
@@ -714,8 +696,6 @@ static struct drm_exynos_ipp_mem_node
714 void *addr; 696 void *addr;
715 int i; 697 int i;
716 698
717 DRM_DEBUG_KMS("%s\n", __func__);
718
719 mutex_lock(&c_node->mem_lock); 699 mutex_lock(&c_node->mem_lock);
720 700
721 m_node = kzalloc(sizeof(*m_node), GFP_KERNEL); 701 m_node = kzalloc(sizeof(*m_node), GFP_KERNEL);
@@ -857,8 +837,6 @@ static void ipp_put_event(struct drm_exynos_ipp_cmd_node *c_node,
857 struct drm_exynos_ipp_send_event *e, *te; 837 struct drm_exynos_ipp_send_event *e, *te;
858 int count = 0; 838 int count = 0;
859 839
860 DRM_DEBUG_KMS("%s\n", __func__);
861
862 if (list_empty(&c_node->event_list)) { 840 if (list_empty(&c_node->event_list)) {
863 DRM_DEBUG_KMS("%s:event_list is empty.\n", __func__); 841 DRM_DEBUG_KMS("%s:event_list is empty.\n", __func__);
864 return; 842 return;
@@ -912,8 +890,6 @@ static int ipp_queue_buf_with_run(struct device *dev,
912 struct exynos_drm_ipp_ops *ops; 890 struct exynos_drm_ipp_ops *ops;
913 int ret; 891 int ret;
914 892
915 DRM_DEBUG_KMS("%s\n", __func__);
916
917 ippdrv = ipp_find_drv_by_handle(qbuf->prop_id); 893 ippdrv = ipp_find_drv_by_handle(qbuf->prop_id);
918 if (IS_ERR(ippdrv)) { 894 if (IS_ERR(ippdrv)) {
919 DRM_ERROR("failed to get ipp driver.\n"); 895 DRM_ERROR("failed to get ipp driver.\n");
@@ -964,8 +940,6 @@ static void ipp_clean_queue_buf(struct drm_device *drm_dev,
964{ 940{
965 struct drm_exynos_ipp_mem_node *m_node, *tm_node; 941 struct drm_exynos_ipp_mem_node *m_node, *tm_node;
966 942
967 DRM_DEBUG_KMS("%s\n", __func__);
968
969 if (!list_empty(&c_node->mem_list[qbuf->ops_id])) { 943 if (!list_empty(&c_node->mem_list[qbuf->ops_id])) {
970 /* delete list */ 944 /* delete list */
971 list_for_each_entry_safe(m_node, tm_node, 945 list_for_each_entry_safe(m_node, tm_node,
@@ -989,8 +963,6 @@ int exynos_drm_ipp_queue_buf(struct drm_device *drm_dev, void *data,
989 struct drm_exynos_ipp_mem_node *m_node; 963 struct drm_exynos_ipp_mem_node *m_node;
990 int ret; 964 int ret;
991 965
992 DRM_DEBUG_KMS("%s\n", __func__);
993
994 if (!qbuf) { 966 if (!qbuf) {
995 DRM_ERROR("invalid buf parameter.\n"); 967 DRM_ERROR("invalid buf parameter.\n");
996 return -EINVAL; 968 return -EINVAL;
@@ -1075,8 +1047,6 @@ err_clean_node:
1075static bool exynos_drm_ipp_check_valid(struct device *dev, 1047static bool exynos_drm_ipp_check_valid(struct device *dev,
1076 enum drm_exynos_ipp_ctrl ctrl, enum drm_exynos_ipp_state state) 1048 enum drm_exynos_ipp_ctrl ctrl, enum drm_exynos_ipp_state state)
1077{ 1049{
1078 DRM_DEBUG_KMS("%s\n", __func__);
1079
1080 if (ctrl != IPP_CTRL_PLAY) { 1050 if (ctrl != IPP_CTRL_PLAY) {
1081 if (pm_runtime_suspended(dev)) { 1051 if (pm_runtime_suspended(dev)) {
1082 DRM_ERROR("pm:runtime_suspended.\n"); 1052 DRM_ERROR("pm:runtime_suspended.\n");
@@ -1126,8 +1096,6 @@ int exynos_drm_ipp_cmd_ctrl(struct drm_device *drm_dev, void *data,
1126 struct drm_exynos_ipp_cmd_work *cmd_work; 1096 struct drm_exynos_ipp_cmd_work *cmd_work;
1127 struct drm_exynos_ipp_cmd_node *c_node; 1097 struct drm_exynos_ipp_cmd_node *c_node;
1128 1098
1129 DRM_DEBUG_KMS("%s\n", __func__);
1130
1131 if (!ctx) { 1099 if (!ctx) {
1132 DRM_ERROR("invalid context.\n"); 1100 DRM_ERROR("invalid context.\n");
1133 return -EINVAL; 1101 return -EINVAL;
@@ -1491,8 +1459,6 @@ void ipp_sched_cmd(struct work_struct *work)
1491 struct drm_exynos_ipp_property *property; 1459 struct drm_exynos_ipp_property *property;
1492 int ret; 1460 int ret;
1493 1461
1494 DRM_DEBUG_KMS("%s\n", __func__);
1495
1496 ippdrv = cmd_work->ippdrv; 1462 ippdrv = cmd_work->ippdrv;
1497 if (!ippdrv) { 1463 if (!ippdrv) {
1498 DRM_ERROR("invalid ippdrv list.\n"); 1464 DRM_ERROR("invalid ippdrv list.\n");
@@ -1759,8 +1725,6 @@ static int ipp_subdrv_probe(struct drm_device *drm_dev, struct device *dev)
1759 struct exynos_drm_ippdrv *ippdrv; 1725 struct exynos_drm_ippdrv *ippdrv;
1760 int ret, count = 0; 1726 int ret, count = 0;
1761 1727
1762 DRM_DEBUG_KMS("%s\n", __func__);
1763
1764 /* get ipp driver entry */ 1728 /* get ipp driver entry */
1765 list_for_each_entry(ippdrv, &exynos_drm_ippdrv_list, drv_list) { 1729 list_for_each_entry(ippdrv, &exynos_drm_ippdrv_list, drv_list) {
1766 ippdrv->drm_dev = drm_dev; 1730 ippdrv->drm_dev = drm_dev;
@@ -1816,8 +1780,6 @@ static void ipp_subdrv_remove(struct drm_device *drm_dev, struct device *dev)
1816{ 1780{
1817 struct exynos_drm_ippdrv *ippdrv; 1781 struct exynos_drm_ippdrv *ippdrv;
1818 1782
1819 DRM_DEBUG_KMS("%s\n", __func__);
1820
1821 /* get ipp driver entry */ 1783 /* get ipp driver entry */
1822 list_for_each_entry(ippdrv, &exynos_drm_ippdrv_list, drv_list) { 1784 list_for_each_entry(ippdrv, &exynos_drm_ippdrv_list, drv_list) {
1823 if (is_drm_iommu_supported(drm_dev)) 1785 if (is_drm_iommu_supported(drm_dev))
@@ -1834,8 +1796,6 @@ static int ipp_subdrv_open(struct drm_device *drm_dev, struct device *dev,
1834 struct drm_exynos_file_private *file_priv = file->driver_priv; 1796 struct drm_exynos_file_private *file_priv = file->driver_priv;
1835 struct exynos_drm_ipp_private *priv; 1797 struct exynos_drm_ipp_private *priv;
1836 1798
1837 DRM_DEBUG_KMS("%s\n", __func__);
1838
1839 priv = kzalloc(sizeof(*priv), GFP_KERNEL); 1799 priv = kzalloc(sizeof(*priv), GFP_KERNEL);
1840 if (!priv) { 1800 if (!priv) {
1841 DRM_ERROR("failed to allocate priv.\n"); 1801 DRM_ERROR("failed to allocate priv.\n");
@@ -1913,8 +1873,6 @@ static int ipp_probe(struct platform_device *pdev)
1913 if (!ctx) 1873 if (!ctx)
1914 return -ENOMEM; 1874 return -ENOMEM;
1915 1875
1916 DRM_DEBUG_KMS("%s\n", __func__);
1917
1918 mutex_init(&ctx->ipp_lock); 1876 mutex_init(&ctx->ipp_lock);
1919 mutex_init(&ctx->prop_lock); 1877 mutex_init(&ctx->prop_lock);
1920 1878
@@ -1978,8 +1936,6 @@ static int ipp_remove(struct platform_device *pdev)
1978{ 1936{
1979 struct ipp_context *ctx = platform_get_drvdata(pdev); 1937 struct ipp_context *ctx = platform_get_drvdata(pdev);
1980 1938
1981 DRM_DEBUG_KMS("%s\n", __func__);
1982
1983 /* unregister sub driver */ 1939 /* unregister sub driver */
1984 exynos_drm_subdrv_unregister(&ctx->subdrv); 1940 exynos_drm_subdrv_unregister(&ctx->subdrv);
1985 1941
@@ -2009,8 +1965,6 @@ static int ipp_suspend(struct device *dev)
2009{ 1965{
2010 struct ipp_context *ctx = get_ipp_context(dev); 1966 struct ipp_context *ctx = get_ipp_context(dev);
2011 1967
2012 DRM_DEBUG_KMS("%s\n", __func__);
2013
2014 if (pm_runtime_suspended(dev)) 1968 if (pm_runtime_suspended(dev))
2015 return 0; 1969 return 0;
2016 1970
@@ -2021,8 +1975,6 @@ static int ipp_resume(struct device *dev)
2021{ 1975{
2022 struct ipp_context *ctx = get_ipp_context(dev); 1976 struct ipp_context *ctx = get_ipp_context(dev);
2023 1977
2024 DRM_DEBUG_KMS("%s\n", __func__);
2025
2026 if (!pm_runtime_suspended(dev)) 1978 if (!pm_runtime_suspended(dev))
2027 return ipp_power_ctrl(ctx, true); 1979 return ipp_power_ctrl(ctx, true);
2028 1980
@@ -2035,8 +1987,6 @@ static int ipp_runtime_suspend(struct device *dev)
2035{ 1987{
2036 struct ipp_context *ctx = get_ipp_context(dev); 1988 struct ipp_context *ctx = get_ipp_context(dev);
2037 1989
2038 DRM_DEBUG_KMS("%s\n", __func__);
2039
2040 return ipp_power_ctrl(ctx, false); 1990 return ipp_power_ctrl(ctx, false);
2041} 1991}
2042 1992
@@ -2044,8 +1994,6 @@ static int ipp_runtime_resume(struct device *dev)
2044{ 1994{
2045 struct ipp_context *ctx = get_ipp_context(dev); 1995 struct ipp_context *ctx = get_ipp_context(dev);
2046 1996
2047 DRM_DEBUG_KMS("%s\n", __func__);
2048
2049 return ipp_power_ctrl(ctx, true); 1997 return ipp_power_ctrl(ctx, true);
2050} 1998}
2051#endif 1999#endif
diff --git a/drivers/gpu/drm/exynos/exynos_drm_plane.c b/drivers/gpu/drm/exynos/exynos_drm_plane.c
index 83efc662d65a..6ee55e68e0a2 100644
--- a/drivers/gpu/drm/exynos/exynos_drm_plane.c
+++ b/drivers/gpu/drm/exynos/exynos_drm_plane.c
@@ -81,8 +81,6 @@ int exynos_plane_mode_set(struct drm_plane *plane, struct drm_crtc *crtc,
81 int nr; 81 int nr;
82 int i; 82 int i;
83 83
84 DRM_DEBUG_KMS("[%d] %s\n", __LINE__, __func__);
85
86 nr = exynos_drm_fb_get_buf_cnt(fb); 84 nr = exynos_drm_fb_get_buf_cnt(fb);
87 for (i = 0; i < nr; i++) { 85 for (i = 0; i < nr; i++) {
88 struct exynos_drm_gem_buf *buffer = exynos_drm_fb_buffer(fb, i); 86 struct exynos_drm_gem_buf *buffer = exynos_drm_fb_buffer(fb, i);
@@ -159,8 +157,6 @@ void exynos_plane_dpms(struct drm_plane *plane, int mode)
159 struct exynos_plane *exynos_plane = to_exynos_plane(plane); 157 struct exynos_plane *exynos_plane = to_exynos_plane(plane);
160 struct exynos_drm_overlay *overlay = &exynos_plane->overlay; 158 struct exynos_drm_overlay *overlay = &exynos_plane->overlay;
161 159
162 DRM_DEBUG_KMS("[%d] %s\n", __LINE__, __func__);
163
164 if (mode == DRM_MODE_DPMS_ON) { 160 if (mode == DRM_MODE_DPMS_ON) {
165 if (exynos_plane->enabled) 161 if (exynos_plane->enabled)
166 return; 162 return;
@@ -189,8 +185,6 @@ exynos_update_plane(struct drm_plane *plane, struct drm_crtc *crtc,
189{ 185{
190 int ret; 186 int ret;
191 187
192 DRM_DEBUG_KMS("[%d] %s\n", __LINE__, __func__);
193
194 ret = exynos_plane_mode_set(plane, crtc, fb, crtc_x, crtc_y, 188 ret = exynos_plane_mode_set(plane, crtc, fb, crtc_x, crtc_y,
195 crtc_w, crtc_h, src_x >> 16, src_y >> 16, 189 crtc_w, crtc_h, src_x >> 16, src_y >> 16,
196 src_w >> 16, src_h >> 16); 190 src_w >> 16, src_h >> 16);
@@ -207,8 +201,6 @@ exynos_update_plane(struct drm_plane *plane, struct drm_crtc *crtc,
207 201
208static int exynos_disable_plane(struct drm_plane *plane) 202static int exynos_disable_plane(struct drm_plane *plane)
209{ 203{
210 DRM_DEBUG_KMS("[%d] %s\n", __LINE__, __func__);
211
212 exynos_plane_dpms(plane, DRM_MODE_DPMS_OFF); 204 exynos_plane_dpms(plane, DRM_MODE_DPMS_OFF);
213 205
214 return 0; 206 return 0;
@@ -218,8 +210,6 @@ static void exynos_plane_destroy(struct drm_plane *plane)
218{ 210{
219 struct exynos_plane *exynos_plane = to_exynos_plane(plane); 211 struct exynos_plane *exynos_plane = to_exynos_plane(plane);
220 212
221 DRM_DEBUG_KMS("[%d] %s\n", __LINE__, __func__);
222
223 exynos_disable_plane(plane); 213 exynos_disable_plane(plane);
224 drm_plane_cleanup(plane); 214 drm_plane_cleanup(plane);
225 kfree(exynos_plane); 215 kfree(exynos_plane);
@@ -233,8 +223,6 @@ static int exynos_plane_set_property(struct drm_plane *plane,
233 struct exynos_plane *exynos_plane = to_exynos_plane(plane); 223 struct exynos_plane *exynos_plane = to_exynos_plane(plane);
234 struct exynos_drm_private *dev_priv = dev->dev_private; 224 struct exynos_drm_private *dev_priv = dev->dev_private;
235 225
236 DRM_DEBUG_KMS("[%d] %s\n", __LINE__, __func__);
237
238 if (property == dev_priv->plane_zpos_property) { 226 if (property == dev_priv->plane_zpos_property) {
239 exynos_plane->overlay.zpos = val; 227 exynos_plane->overlay.zpos = val;
240 return 0; 228 return 0;
@@ -256,8 +244,6 @@ static void exynos_plane_attach_zpos_property(struct drm_plane *plane)
256 struct exynos_drm_private *dev_priv = dev->dev_private; 244 struct exynos_drm_private *dev_priv = dev->dev_private;
257 struct drm_property *prop; 245 struct drm_property *prop;
258 246
259 DRM_DEBUG_KMS("[%d] %s\n", __LINE__, __func__);
260
261 prop = dev_priv->plane_zpos_property; 247 prop = dev_priv->plane_zpos_property;
262 if (!prop) { 248 if (!prop) {
263 prop = drm_property_create_range(dev, 0, "zpos", 0, 249 prop = drm_property_create_range(dev, 0, "zpos", 0,
@@ -277,8 +263,6 @@ struct drm_plane *exynos_plane_init(struct drm_device *dev,
277 struct exynos_plane *exynos_plane; 263 struct exynos_plane *exynos_plane;
278 int err; 264 int err;
279 265
280 DRM_DEBUG_KMS("[%d] %s\n", __LINE__, __func__);
281
282 exynos_plane = kzalloc(sizeof(struct exynos_plane), GFP_KERNEL); 266 exynos_plane = kzalloc(sizeof(struct exynos_plane), GFP_KERNEL);
283 if (!exynos_plane) { 267 if (!exynos_plane) {
284 DRM_ERROR("failed to allocate plane\n"); 268 DRM_ERROR("failed to allocate plane\n");
diff --git a/drivers/gpu/drm/exynos/exynos_drm_rotator.c b/drivers/gpu/drm/exynos/exynos_drm_rotator.c
index 9b6c70964d71..b811e5c24f94 100644
--- a/drivers/gpu/drm/exynos/exynos_drm_rotator.c
+++ b/drivers/gpu/drm/exynos/exynos_drm_rotator.c
@@ -471,8 +471,6 @@ static int rotator_init_prop_list(struct exynos_drm_ippdrv *ippdrv)
471{ 471{
472 struct drm_exynos_ipp_prop_list *prop_list; 472 struct drm_exynos_ipp_prop_list *prop_list;
473 473
474 DRM_DEBUG_KMS("%s\n", __func__);
475
476 prop_list = devm_kzalloc(ippdrv->dev, sizeof(*prop_list), GFP_KERNEL); 474 prop_list = devm_kzalloc(ippdrv->dev, sizeof(*prop_list), GFP_KERNEL);
477 if (!prop_list) { 475 if (!prop_list) {
478 DRM_ERROR("failed to alloc property list.\n"); 476 DRM_ERROR("failed to alloc property list.\n");
@@ -752,8 +750,6 @@ static struct platform_device_id rotator_driver_ids[] = {
752 750
753static int rotator_clk_crtl(struct rot_context *rot, bool enable) 751static int rotator_clk_crtl(struct rot_context *rot, bool enable)
754{ 752{
755 DRM_DEBUG_KMS("%s\n", __func__);
756
757 if (enable) { 753 if (enable) {
758 clk_enable(rot->clock); 754 clk_enable(rot->clock);
759 rot->suspended = false; 755 rot->suspended = false;
@@ -771,8 +767,6 @@ static int rotator_suspend(struct device *dev)
771{ 767{
772 struct rot_context *rot = dev_get_drvdata(dev); 768 struct rot_context *rot = dev_get_drvdata(dev);
773 769
774 DRM_DEBUG_KMS("%s\n", __func__);
775
776 if (pm_runtime_suspended(dev)) 770 if (pm_runtime_suspended(dev))
777 return 0; 771 return 0;
778 772
@@ -783,8 +777,6 @@ static int rotator_resume(struct device *dev)
783{ 777{
784 struct rot_context *rot = dev_get_drvdata(dev); 778 struct rot_context *rot = dev_get_drvdata(dev);
785 779
786 DRM_DEBUG_KMS("%s\n", __func__);
787
788 if (!pm_runtime_suspended(dev)) 780 if (!pm_runtime_suspended(dev))
789 return rotator_clk_crtl(rot, true); 781 return rotator_clk_crtl(rot, true);
790 782
@@ -797,8 +789,6 @@ static int rotator_runtime_suspend(struct device *dev)
797{ 789{
798 struct rot_context *rot = dev_get_drvdata(dev); 790 struct rot_context *rot = dev_get_drvdata(dev);
799 791
800 DRM_DEBUG_KMS("%s\n", __func__);
801
802 return rotator_clk_crtl(rot, false); 792 return rotator_clk_crtl(rot, false);
803} 793}
804 794
@@ -806,8 +796,6 @@ static int rotator_runtime_resume(struct device *dev)
806{ 796{
807 struct rot_context *rot = dev_get_drvdata(dev); 797 struct rot_context *rot = dev_get_drvdata(dev);
808 798
809 DRM_DEBUG_KMS("%s\n", __func__);
810
811 return rotator_clk_crtl(rot, true); 799 return rotator_clk_crtl(rot, true);
812} 800}
813#endif 801#endif
diff --git a/drivers/gpu/drm/exynos/exynos_drm_vidi.c b/drivers/gpu/drm/exynos/exynos_drm_vidi.c
index 294ba35efa5b..784bbce0741a 100644
--- a/drivers/gpu/drm/exynos/exynos_drm_vidi.c
+++ b/drivers/gpu/drm/exynos/exynos_drm_vidi.c
@@ -89,8 +89,6 @@ static bool vidi_display_is_connected(struct device *dev)
89{ 89{
90 struct vidi_context *ctx = get_vidi_context(dev); 90 struct vidi_context *ctx = get_vidi_context(dev);
91 91
92 DRM_DEBUG_KMS("%s\n", __FILE__);
93
94 /* 92 /*
95 * connection request would come from user side 93 * connection request would come from user side
96 * to do hotplug through specific ioctl. 94 * to do hotplug through specific ioctl.
@@ -105,8 +103,6 @@ static struct edid *vidi_get_edid(struct device *dev,
105 struct edid *edid; 103 struct edid *edid;
106 int edid_len; 104 int edid_len;
107 105
108 DRM_DEBUG_KMS("%s\n", __FILE__);
109
110 /* 106 /*
111 * the edid data comes from user side and it would be set 107 * the edid data comes from user side and it would be set
112 * to ctx->raw_edid through specific ioctl. 108 * to ctx->raw_edid through specific ioctl.
@@ -128,8 +124,6 @@ static struct edid *vidi_get_edid(struct device *dev,
128 124
129static void *vidi_get_panel(struct device *dev) 125static void *vidi_get_panel(struct device *dev)
130{ 126{
131 DRM_DEBUG_KMS("%s\n", __FILE__);
132
133 /* TODO. */ 127 /* TODO. */
134 128
135 return NULL; 129 return NULL;
@@ -137,8 +131,6 @@ static void *vidi_get_panel(struct device *dev)
137 131
138static int vidi_check_mode(struct device *dev, struct drm_display_mode *mode) 132static int vidi_check_mode(struct device *dev, struct drm_display_mode *mode)
139{ 133{
140 DRM_DEBUG_KMS("%s\n", __FILE__);
141
142 /* TODO. */ 134 /* TODO. */
143 135
144 return 0; 136 return 0;
@@ -146,8 +138,6 @@ static int vidi_check_mode(struct device *dev, struct drm_display_mode *mode)
146 138
147static int vidi_display_power_on(struct device *dev, int mode) 139static int vidi_display_power_on(struct device *dev, int mode)
148{ 140{
149 DRM_DEBUG_KMS("%s\n", __FILE__);
150
151 /* TODO */ 141 /* TODO */
152 142
153 return 0; 143 return 0;
@@ -166,7 +156,7 @@ static void vidi_dpms(struct device *subdrv_dev, int mode)
166{ 156{
167 struct vidi_context *ctx = get_vidi_context(subdrv_dev); 157 struct vidi_context *ctx = get_vidi_context(subdrv_dev);
168 158
169 DRM_DEBUG_KMS("%s, %d\n", __FILE__, mode); 159 DRM_DEBUG_KMS("%d\n", mode);
170 160
171 mutex_lock(&ctx->lock); 161 mutex_lock(&ctx->lock);
172 162
@@ -196,8 +186,6 @@ static void vidi_apply(struct device *subdrv_dev)
196 struct vidi_win_data *win_data; 186 struct vidi_win_data *win_data;
197 int i; 187 int i;
198 188
199 DRM_DEBUG_KMS("%s\n", __FILE__);
200
201 for (i = 0; i < WINDOWS_NR; i++) { 189 for (i = 0; i < WINDOWS_NR; i++) {
202 win_data = &ctx->win_data[i]; 190 win_data = &ctx->win_data[i];
203 if (win_data->enabled && (ovl_ops && ovl_ops->commit)) 191 if (win_data->enabled && (ovl_ops && ovl_ops->commit))
@@ -212,8 +200,6 @@ static void vidi_commit(struct device *dev)
212{ 200{
213 struct vidi_context *ctx = get_vidi_context(dev); 201 struct vidi_context *ctx = get_vidi_context(dev);
214 202
215 DRM_DEBUG_KMS("%s\n", __FILE__);
216
217 if (ctx->suspended) 203 if (ctx->suspended)
218 return; 204 return;
219} 205}
@@ -222,8 +208,6 @@ static int vidi_enable_vblank(struct device *dev)
222{ 208{
223 struct vidi_context *ctx = get_vidi_context(dev); 209 struct vidi_context *ctx = get_vidi_context(dev);
224 210
225 DRM_DEBUG_KMS("%s\n", __FILE__);
226
227 if (ctx->suspended) 211 if (ctx->suspended)
228 return -EPERM; 212 return -EPERM;
229 213
@@ -246,8 +230,6 @@ static void vidi_disable_vblank(struct device *dev)
246{ 230{
247 struct vidi_context *ctx = get_vidi_context(dev); 231 struct vidi_context *ctx = get_vidi_context(dev);
248 232
249 DRM_DEBUG_KMS("%s\n", __FILE__);
250
251 if (ctx->suspended) 233 if (ctx->suspended)
252 return; 234 return;
253 235
@@ -271,8 +253,6 @@ static void vidi_win_mode_set(struct device *dev,
271 int win; 253 int win;
272 unsigned long offset; 254 unsigned long offset;
273 255
274 DRM_DEBUG_KMS("%s\n", __FILE__);
275
276 if (!overlay) { 256 if (!overlay) {
277 dev_err(dev, "overlay is NULL\n"); 257 dev_err(dev, "overlay is NULL\n");
278 return; 258 return;
@@ -324,8 +304,6 @@ static void vidi_win_commit(struct device *dev, int zpos)
324 struct vidi_win_data *win_data; 304 struct vidi_win_data *win_data;
325 int win = zpos; 305 int win = zpos;
326 306
327 DRM_DEBUG_KMS("%s\n", __FILE__);
328
329 if (ctx->suspended) 307 if (ctx->suspended)
330 return; 308 return;
331 309
@@ -351,8 +329,6 @@ static void vidi_win_disable(struct device *dev, int zpos)
351 struct vidi_win_data *win_data; 329 struct vidi_win_data *win_data;
352 int win = zpos; 330 int win = zpos;
353 331
354 DRM_DEBUG_KMS("%s\n", __FILE__);
355
356 if (win == DEFAULT_ZPOS) 332 if (win == DEFAULT_ZPOS)
357 win = ctx->default_win; 333 win = ctx->default_win;
358 334
@@ -407,8 +383,6 @@ static void vidi_fake_vblank_handler(struct work_struct *work)
407 383
408static int vidi_subdrv_probe(struct drm_device *drm_dev, struct device *dev) 384static int vidi_subdrv_probe(struct drm_device *drm_dev, struct device *dev)
409{ 385{
410 DRM_DEBUG_KMS("%s\n", __FILE__);
411
412 /* 386 /*
413 * enable drm irq mode. 387 * enable drm irq mode.
414 * - with irq_enabled = 1, we can use the vblank feature. 388 * - with irq_enabled = 1, we can use the vblank feature.
@@ -431,8 +405,6 @@ static int vidi_subdrv_probe(struct drm_device *drm_dev, struct device *dev)
431 405
432static void vidi_subdrv_remove(struct drm_device *drm_dev, struct device *dev) 406static void vidi_subdrv_remove(struct drm_device *drm_dev, struct device *dev)
433{ 407{
434 DRM_DEBUG_KMS("%s\n", __FILE__);
435
436 /* TODO. */ 408 /* TODO. */
437} 409}
438 410
@@ -441,8 +413,6 @@ static int vidi_power_on(struct vidi_context *ctx, bool enable)
441 struct exynos_drm_subdrv *subdrv = &ctx->subdrv; 413 struct exynos_drm_subdrv *subdrv = &ctx->subdrv;
442 struct device *dev = subdrv->dev; 414 struct device *dev = subdrv->dev;
443 415
444 DRM_DEBUG_KMS("%s\n", __FILE__);
445
446 if (enable != false && enable != true) 416 if (enable != false && enable != true)
447 return -EINVAL; 417 return -EINVAL;
448 418
@@ -483,8 +453,6 @@ static int vidi_store_connection(struct device *dev,
483 struct vidi_context *ctx = get_vidi_context(dev); 453 struct vidi_context *ctx = get_vidi_context(dev);
484 int ret; 454 int ret;
485 455
486 DRM_DEBUG_KMS("%s\n", __FILE__);
487
488 ret = kstrtoint(buf, 0, &ctx->connected); 456 ret = kstrtoint(buf, 0, &ctx->connected);
489 if (ret) 457 if (ret)
490 return ret; 458 return ret;
@@ -522,8 +490,6 @@ int vidi_connection_ioctl(struct drm_device *drm_dev, void *data,
522 struct drm_exynos_vidi_connection *vidi = data; 490 struct drm_exynos_vidi_connection *vidi = data;
523 int edid_len; 491 int edid_len;
524 492
525 DRM_DEBUG_KMS("%s\n", __FILE__);
526
527 if (!vidi) { 493 if (!vidi) {
528 DRM_DEBUG_KMS("user data for vidi is null.\n"); 494 DRM_DEBUG_KMS("user data for vidi is null.\n");
529 return -EINVAL; 495 return -EINVAL;
@@ -592,8 +558,6 @@ static int vidi_probe(struct platform_device *pdev)
592 struct exynos_drm_subdrv *subdrv; 558 struct exynos_drm_subdrv *subdrv;
593 int ret; 559 int ret;
594 560
595 DRM_DEBUG_KMS("%s\n", __FILE__);
596
597 ctx = devm_kzalloc(dev, sizeof(*ctx), GFP_KERNEL); 561 ctx = devm_kzalloc(dev, sizeof(*ctx), GFP_KERNEL);
598 if (!ctx) 562 if (!ctx)
599 return -ENOMEM; 563 return -ENOMEM;
@@ -625,8 +589,6 @@ static int vidi_remove(struct platform_device *pdev)
625{ 589{
626 struct vidi_context *ctx = platform_get_drvdata(pdev); 590 struct vidi_context *ctx = platform_get_drvdata(pdev);
627 591
628 DRM_DEBUG_KMS("%s\n", __FILE__);
629
630 exynos_drm_subdrv_unregister(&ctx->subdrv); 592 exynos_drm_subdrv_unregister(&ctx->subdrv);
631 593
632 if (ctx->raw_edid != (struct edid *)fake_edid_info) { 594 if (ctx->raw_edid != (struct edid *)fake_edid_info) {
diff --git a/drivers/gpu/drm/exynos/exynos_hdmi.c b/drivers/gpu/drm/exynos/exynos_hdmi.c
index 04255feaeaed..67692a362c6e 100644
--- a/drivers/gpu/drm/exynos/exynos_hdmi.c
+++ b/drivers/gpu/drm/exynos/exynos_hdmi.c
@@ -689,8 +689,6 @@ static void hdmi_reg_infoframe(struct hdmi_context *hdata,
689 u32 mod; 689 u32 mod;
690 u32 vic; 690 u32 vic;
691 691
692 DRM_DEBUG_KMS("[%d] %s\n", __LINE__, __func__);
693
694 mod = hdmi_reg_read(hdata, HDMI_MODE_SEL); 692 mod = hdmi_reg_read(hdata, HDMI_MODE_SEL);
695 if (hdata->dvi_mode) { 693 if (hdata->dvi_mode) {
696 hdmi_reg_writeb(hdata, HDMI_VSI_CON, 694 hdmi_reg_writeb(hdata, HDMI_VSI_CON,
@@ -755,8 +753,6 @@ static struct edid *hdmi_get_edid(void *ctx, struct drm_connector *connector)
755 struct edid *raw_edid; 753 struct edid *raw_edid;
756 struct hdmi_context *hdata = ctx; 754 struct hdmi_context *hdata = ctx;
757 755
758 DRM_DEBUG_KMS("[%d] %s\n", __LINE__, __func__);
759
760 if (!hdata->ddc_port) 756 if (!hdata->ddc_port)
761 return ERR_PTR(-ENODEV); 757 return ERR_PTR(-ENODEV);
762 758
@@ -777,8 +773,6 @@ static int hdmi_find_phy_conf(struct hdmi_context *hdata, u32 pixel_clock)
777 const struct hdmiphy_config *confs; 773 const struct hdmiphy_config *confs;
778 int count, i; 774 int count, i;
779 775
780 DRM_DEBUG_KMS("[%d] %s\n", __LINE__, __func__);
781
782 if (hdata->type == HDMI_TYPE13) { 776 if (hdata->type == HDMI_TYPE13) {
783 confs = hdmiphy_v13_configs; 777 confs = hdmiphy_v13_configs;
784 count = ARRAY_SIZE(hdmiphy_v13_configs); 778 count = ARRAY_SIZE(hdmiphy_v13_configs);
@@ -1335,8 +1329,6 @@ static void hdmiphy_conf_reset(struct hdmi_context *hdata)
1335 1329
1336static void hdmiphy_poweron(struct hdmi_context *hdata) 1330static void hdmiphy_poweron(struct hdmi_context *hdata)
1337{ 1331{
1338 DRM_DEBUG_KMS("[%d] %s\n", __LINE__, __func__);
1339
1340 if (hdata->type == HDMI_TYPE14) 1332 if (hdata->type == HDMI_TYPE14)
1341 hdmi_reg_writemask(hdata, HDMI_PHY_CON_0, 0, 1333 hdmi_reg_writemask(hdata, HDMI_PHY_CON_0, 0,
1342 HDMI_PHY_POWER_OFF_EN); 1334 HDMI_PHY_POWER_OFF_EN);
@@ -1344,8 +1336,6 @@ static void hdmiphy_poweron(struct hdmi_context *hdata)
1344 1336
1345static void hdmiphy_poweroff(struct hdmi_context *hdata) 1337static void hdmiphy_poweroff(struct hdmi_context *hdata)
1346{ 1338{
1347 DRM_DEBUG_KMS("[%d] %s\n", __LINE__, __func__);
1348
1349 if (hdata->type == HDMI_TYPE14) 1339 if (hdata->type == HDMI_TYPE14)
1350 hdmi_reg_writemask(hdata, HDMI_PHY_CON_0, ~0, 1340 hdmi_reg_writemask(hdata, HDMI_PHY_CON_0, ~0,
1351 HDMI_PHY_POWER_OFF_EN); 1341 HDMI_PHY_POWER_OFF_EN);
@@ -1409,8 +1399,6 @@ static void hdmiphy_conf_apply(struct hdmi_context *hdata)
1409 1399
1410static void hdmi_conf_apply(struct hdmi_context *hdata) 1400static void hdmi_conf_apply(struct hdmi_context *hdata)
1411{ 1401{
1412 DRM_DEBUG_KMS("[%d] %s\n", __LINE__, __func__);
1413
1414 hdmiphy_conf_reset(hdata); 1402 hdmiphy_conf_reset(hdata);
1415 hdmiphy_conf_apply(hdata); 1403 hdmiphy_conf_apply(hdata);
1416 1404
@@ -1660,8 +1648,6 @@ static void hdmi_mode_set(void *ctx, struct drm_display_mode *mode)
1660static void hdmi_get_max_resol(void *ctx, unsigned int *width, 1648static void hdmi_get_max_resol(void *ctx, unsigned int *width,
1661 unsigned int *height) 1649 unsigned int *height)
1662{ 1650{
1663 DRM_DEBUG_KMS("[%d] %s\n", __LINE__, __func__);
1664
1665 *width = MAX_WIDTH; 1651 *width = MAX_WIDTH;
1666 *height = MAX_HEIGHT; 1652 *height = MAX_HEIGHT;
1667} 1653}
@@ -1670,8 +1656,6 @@ static void hdmi_commit(void *ctx)
1670{ 1656{
1671 struct hdmi_context *hdata = ctx; 1657 struct hdmi_context *hdata = ctx;
1672 1658
1673 DRM_DEBUG_KMS("[%d] %s\n", __LINE__, __func__);
1674
1675 mutex_lock(&hdata->hdmi_mutex); 1659 mutex_lock(&hdata->hdmi_mutex);
1676 if (!hdata->powered) { 1660 if (!hdata->powered) {
1677 mutex_unlock(&hdata->hdmi_mutex); 1661 mutex_unlock(&hdata->hdmi_mutex);
@@ -1686,8 +1670,6 @@ static void hdmi_poweron(struct hdmi_context *hdata)
1686{ 1670{
1687 struct hdmi_resources *res = &hdata->res; 1671 struct hdmi_resources *res = &hdata->res;
1688 1672
1689 DRM_DEBUG_KMS("[%d] %s\n", __LINE__, __func__);
1690
1691 mutex_lock(&hdata->hdmi_mutex); 1673 mutex_lock(&hdata->hdmi_mutex);
1692 if (hdata->powered) { 1674 if (hdata->powered) {
1693 mutex_unlock(&hdata->hdmi_mutex); 1675 mutex_unlock(&hdata->hdmi_mutex);
@@ -1712,8 +1694,6 @@ static void hdmi_poweroff(struct hdmi_context *hdata)
1712{ 1694{
1713 struct hdmi_resources *res = &hdata->res; 1695 struct hdmi_resources *res = &hdata->res;
1714 1696
1715 DRM_DEBUG_KMS("[%d] %s\n", __LINE__, __func__);
1716
1717 mutex_lock(&hdata->hdmi_mutex); 1697 mutex_lock(&hdata->hdmi_mutex);
1718 if (!hdata->powered) 1698 if (!hdata->powered)
1719 goto out; 1699 goto out;
@@ -1945,8 +1925,6 @@ static int hdmi_probe(struct platform_device *pdev)
1945 struct resource *res; 1925 struct resource *res;
1946 int ret; 1926 int ret;
1947 1927
1948 DRM_DEBUG_KMS("[%d]\n", __LINE__);
1949
1950 if (dev->of_node) { 1928 if (dev->of_node) {
1951 pdata = drm_hdmi_dt_parse_pdata(dev); 1929 pdata = drm_hdmi_dt_parse_pdata(dev);
1952 if (IS_ERR(pdata)) { 1930 if (IS_ERR(pdata)) {
@@ -2072,8 +2050,6 @@ static int hdmi_remove(struct platform_device *pdev)
2072{ 2050{
2073 struct device *dev = &pdev->dev; 2051 struct device *dev = &pdev->dev;
2074 2052
2075 DRM_DEBUG_KMS("[%d] %s\n", __LINE__, __func__);
2076
2077 pm_runtime_disable(dev); 2053 pm_runtime_disable(dev);
2078 2054
2079 /* hdmiphy i2c driver */ 2055 /* hdmiphy i2c driver */
@@ -2090,8 +2066,6 @@ static int hdmi_suspend(struct device *dev)
2090 struct exynos_drm_hdmi_context *ctx = get_hdmi_context(dev); 2066 struct exynos_drm_hdmi_context *ctx = get_hdmi_context(dev);
2091 struct hdmi_context *hdata = ctx->ctx; 2067 struct hdmi_context *hdata = ctx->ctx;
2092 2068
2093 DRM_DEBUG_KMS("[%d] %s\n", __LINE__, __func__);
2094
2095 disable_irq(hdata->irq); 2069 disable_irq(hdata->irq);
2096 2070
2097 hdata->hpd = false; 2071 hdata->hpd = false;
@@ -2113,8 +2087,6 @@ static int hdmi_resume(struct device *dev)
2113 struct exynos_drm_hdmi_context *ctx = get_hdmi_context(dev); 2087 struct exynos_drm_hdmi_context *ctx = get_hdmi_context(dev);
2114 struct hdmi_context *hdata = ctx->ctx; 2088 struct hdmi_context *hdata = ctx->ctx;
2115 2089
2116 DRM_DEBUG_KMS("[%d] %s\n", __LINE__, __func__);
2117
2118 hdata->hpd = gpio_get_value(hdata->hpd_gpio); 2090 hdata->hpd = gpio_get_value(hdata->hpd_gpio);
2119 2091
2120 enable_irq(hdata->irq); 2092 enable_irq(hdata->irq);
@@ -2135,7 +2107,6 @@ static int hdmi_runtime_suspend(struct device *dev)
2135{ 2107{
2136 struct exynos_drm_hdmi_context *ctx = get_hdmi_context(dev); 2108 struct exynos_drm_hdmi_context *ctx = get_hdmi_context(dev);
2137 struct hdmi_context *hdata = ctx->ctx; 2109 struct hdmi_context *hdata = ctx->ctx;
2138 DRM_DEBUG_KMS("[%d] %s\n", __LINE__, __func__);
2139 2110
2140 hdmi_poweroff(hdata); 2111 hdmi_poweroff(hdata);
2141 2112
@@ -2146,7 +2117,6 @@ static int hdmi_runtime_resume(struct device *dev)
2146{ 2117{
2147 struct exynos_drm_hdmi_context *ctx = get_hdmi_context(dev); 2118 struct exynos_drm_hdmi_context *ctx = get_hdmi_context(dev);
2148 struct hdmi_context *hdata = ctx->ctx; 2119 struct hdmi_context *hdata = ctx->ctx;
2149 DRM_DEBUG_KMS("[%d] %s\n", __LINE__, __func__);
2150 2120
2151 hdmi_poweron(hdata); 2121 hdmi_poweron(hdata);
2152 2122
diff --git a/drivers/gpu/drm/exynos/exynos_mixer.c b/drivers/gpu/drm/exynos/exynos_mixer.c
index b0882b31353e..e84f9e9fcd74 100644
--- a/drivers/gpu/drm/exynos/exynos_mixer.c
+++ b/drivers/gpu/drm/exynos/exynos_mixer.c
@@ -696,8 +696,6 @@ static int mixer_enable_vblank(void *ctx, int pipe)
696 struct mixer_context *mixer_ctx = ctx; 696 struct mixer_context *mixer_ctx = ctx;
697 struct mixer_resources *res = &mixer_ctx->mixer_res; 697 struct mixer_resources *res = &mixer_ctx->mixer_res;
698 698
699 DRM_DEBUG_KMS("[%d] %s\n", __LINE__, __func__);
700
701 mixer_ctx->pipe = pipe; 699 mixer_ctx->pipe = pipe;
702 700
703 /* enable vsync interrupt */ 701 /* enable vsync interrupt */
@@ -712,8 +710,6 @@ static void mixer_disable_vblank(void *ctx)
712 struct mixer_context *mixer_ctx = ctx; 710 struct mixer_context *mixer_ctx = ctx;
713 struct mixer_resources *res = &mixer_ctx->mixer_res; 711 struct mixer_resources *res = &mixer_ctx->mixer_res;
714 712
715 DRM_DEBUG_KMS("[%d] %s\n", __LINE__, __func__);
716
717 /* disable vsync interrupt */ 713 /* disable vsync interrupt */
718 mixer_reg_writemask(res, MXR_INT_EN, 0, MXR_INT_EN_VSYNC); 714 mixer_reg_writemask(res, MXR_INT_EN, 0, MXR_INT_EN_VSYNC);
719} 715}
@@ -725,8 +721,6 @@ static void mixer_win_mode_set(void *ctx,
725 struct hdmi_win_data *win_data; 721 struct hdmi_win_data *win_data;
726 int win; 722 int win;
727 723
728 DRM_DEBUG_KMS("[%d] %s\n", __LINE__, __func__);
729
730 if (!overlay) { 724 if (!overlay) {
731 DRM_ERROR("overlay is NULL\n"); 725 DRM_ERROR("overlay is NULL\n");
732 return; 726 return;
@@ -890,8 +884,6 @@ static void mixer_poweron(struct mixer_context *ctx)
890{ 884{
891 struct mixer_resources *res = &ctx->mixer_res; 885 struct mixer_resources *res = &ctx->mixer_res;
892 886
893 DRM_DEBUG_KMS("[%d] %s\n", __LINE__, __func__);
894
895 mutex_lock(&ctx->mixer_mutex); 887 mutex_lock(&ctx->mixer_mutex);
896 if (ctx->powered) { 888 if (ctx->powered) {
897 mutex_unlock(&ctx->mixer_mutex); 889 mutex_unlock(&ctx->mixer_mutex);
@@ -916,8 +908,6 @@ static void mixer_poweroff(struct mixer_context *ctx)
916{ 908{
917 struct mixer_resources *res = &ctx->mixer_res; 909 struct mixer_resources *res = &ctx->mixer_res;
918 910
919 DRM_DEBUG_KMS("[%d] %s\n", __LINE__, __func__);
920
921 mutex_lock(&ctx->mixer_mutex); 911 mutex_lock(&ctx->mixer_mutex);
922 if (!ctx->powered) 912 if (!ctx->powered)
923 goto out; 913 goto out;
@@ -944,8 +934,6 @@ static void mixer_dpms(void *ctx, int mode)
944{ 934{
945 struct mixer_context *mixer_ctx = ctx; 935 struct mixer_context *mixer_ctx = ctx;
946 936
947 DRM_DEBUG_KMS("[%d] %s\n", __LINE__, __func__);
948
949 switch (mode) { 937 switch (mode) {
950 case DRM_MODE_DPMS_ON: 938 case DRM_MODE_DPMS_ON:
951 if (pm_runtime_suspended(mixer_ctx->dev)) 939 if (pm_runtime_suspended(mixer_ctx->dev))
@@ -1249,8 +1237,6 @@ static int mixer_suspend(struct device *dev)
1249 struct exynos_drm_hdmi_context *drm_hdmi_ctx = get_mixer_context(dev); 1237 struct exynos_drm_hdmi_context *drm_hdmi_ctx = get_mixer_context(dev);
1250 struct mixer_context *ctx = drm_hdmi_ctx->ctx; 1238 struct mixer_context *ctx = drm_hdmi_ctx->ctx;
1251 1239
1252 DRM_DEBUG_KMS("[%d] %s\n", __LINE__, __func__);
1253
1254 if (pm_runtime_suspended(dev)) { 1240 if (pm_runtime_suspended(dev)) {
1255 DRM_DEBUG_KMS("%s : Already suspended\n", __func__); 1241 DRM_DEBUG_KMS("%s : Already suspended\n", __func__);
1256 return 0; 1242 return 0;
@@ -1266,8 +1252,6 @@ static int mixer_resume(struct device *dev)
1266 struct exynos_drm_hdmi_context *drm_hdmi_ctx = get_mixer_context(dev); 1252 struct exynos_drm_hdmi_context *drm_hdmi_ctx = get_mixer_context(dev);
1267 struct mixer_context *ctx = drm_hdmi_ctx->ctx; 1253 struct mixer_context *ctx = drm_hdmi_ctx->ctx;
1268 1254
1269 DRM_DEBUG_KMS("[%d] %s\n", __LINE__, __func__);
1270
1271 if (!pm_runtime_suspended(dev)) { 1255 if (!pm_runtime_suspended(dev)) {
1272 DRM_DEBUG_KMS("%s : Already resumed\n", __func__); 1256 DRM_DEBUG_KMS("%s : Already resumed\n", __func__);
1273 return 0; 1257 return 0;
@@ -1285,8 +1269,6 @@ static int mixer_runtime_suspend(struct device *dev)
1285 struct exynos_drm_hdmi_context *drm_hdmi_ctx = get_mixer_context(dev); 1269 struct exynos_drm_hdmi_context *drm_hdmi_ctx = get_mixer_context(dev);
1286 struct mixer_context *ctx = drm_hdmi_ctx->ctx; 1270 struct mixer_context *ctx = drm_hdmi_ctx->ctx;
1287 1271
1288 DRM_DEBUG_KMS("[%d] %s\n", __LINE__, __func__);
1289
1290 mixer_poweroff(ctx); 1272 mixer_poweroff(ctx);
1291 1273
1292 return 0; 1274 return 0;
@@ -1297,8 +1279,6 @@ static int mixer_runtime_resume(struct device *dev)
1297 struct exynos_drm_hdmi_context *drm_hdmi_ctx = get_mixer_context(dev); 1279 struct exynos_drm_hdmi_context *drm_hdmi_ctx = get_mixer_context(dev);
1298 struct mixer_context *ctx = drm_hdmi_ctx->ctx; 1280 struct mixer_context *ctx = drm_hdmi_ctx->ctx;
1299 1281
1300 DRM_DEBUG_KMS("[%d] %s\n", __LINE__, __func__);
1301
1302 mixer_poweron(ctx); 1282 mixer_poweron(ctx);
1303 1283
1304 return 0; 1284 return 0;