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>
This commit is contained in:
YoungJun Cho 2013-06-12 10:40:52 +09:00 committed by Inki Dae
parent 16844fb1e6
commit bca34c9a40
20 changed files with 4 additions and 437 deletions

View File

@ -24,8 +24,6 @@ static int lowlevel_buffer_allocate(struct drm_device *dev,
enum dma_attr attr; enum dma_attr attr;
unsigned int nr_pages; unsigned int nr_pages;
DRM_DEBUG_KMS("%s\n", __FILE__);
if (buf->dma_addr) { if (buf->dma_addr) {
DRM_DEBUG_KMS("already allocated.\n"); DRM_DEBUG_KMS("already allocated.\n");
return 0; return 0;
@ -119,8 +117,6 @@ static int lowlevel_buffer_allocate(struct drm_device *dev,
static void lowlevel_buffer_deallocate(struct drm_device *dev, static void lowlevel_buffer_deallocate(struct drm_device *dev,
unsigned int flags, struct exynos_drm_gem_buf *buf) unsigned int flags, struct exynos_drm_gem_buf *buf)
{ {
DRM_DEBUG_KMS("%s.\n", __FILE__);
if (!buf->dma_addr) { if (!buf->dma_addr) {
DRM_DEBUG_KMS("dma_addr is invalid.\n"); DRM_DEBUG_KMS("dma_addr is invalid.\n");
return; return;
@ -151,7 +147,6 @@ struct exynos_drm_gem_buf *exynos_drm_init_buf(struct drm_device *dev,
{ {
struct exynos_drm_gem_buf *buffer; struct exynos_drm_gem_buf *buffer;
DRM_DEBUG_KMS("%s.\n", __FILE__);
DRM_DEBUG_KMS("desired size = 0x%x\n", size); DRM_DEBUG_KMS("desired size = 0x%x\n", size);
buffer = kzalloc(sizeof(*buffer), GFP_KERNEL); buffer = kzalloc(sizeof(*buffer), GFP_KERNEL);
@ -167,8 +162,6 @@ struct exynos_drm_gem_buf *exynos_drm_init_buf(struct drm_device *dev,
void exynos_drm_fini_buf(struct drm_device *dev, void exynos_drm_fini_buf(struct drm_device *dev,
struct exynos_drm_gem_buf *buffer) struct exynos_drm_gem_buf *buffer)
{ {
DRM_DEBUG_KMS("%s.\n", __FILE__);
if (!buffer) { if (!buffer) {
DRM_DEBUG_KMS("buffer is null.\n"); DRM_DEBUG_KMS("buffer is null.\n");
return; return;

View File

@ -34,7 +34,6 @@ convert_to_display_mode(struct drm_display_mode *mode,
struct exynos_drm_panel_info *panel) struct exynos_drm_panel_info *panel)
{ {
struct fb_videomode *timing = &panel->timing; struct fb_videomode *timing = &panel->timing;
DRM_DEBUG_KMS("%s\n", __FILE__);
mode->clock = timing->pixclock / 1000; mode->clock = timing->pixclock / 1000;
mode->vrefresh = timing->refresh; mode->vrefresh = timing->refresh;
@ -68,8 +67,6 @@ static int exynos_drm_connector_get_modes(struct drm_connector *connector)
unsigned int count = 0; unsigned int count = 0;
int ret; int ret;
DRM_DEBUG_KMS("%s\n", __FILE__);
if (!display_ops) { if (!display_ops) {
DRM_DEBUG_KMS("display_ops is null.\n"); DRM_DEBUG_KMS("display_ops is null.\n");
return 0; return 0;
@ -156,8 +153,6 @@ struct drm_encoder *exynos_drm_best_encoder(struct drm_connector *connector)
struct drm_mode_object *obj; struct drm_mode_object *obj;
struct drm_encoder *encoder; struct drm_encoder *encoder;
DRM_DEBUG_KMS("%s\n", __FILE__);
obj = drm_mode_object_find(dev, exynos_connector->encoder_id, obj = drm_mode_object_find(dev, exynos_connector->encoder_id,
DRM_MODE_OBJECT_ENCODER); DRM_MODE_OBJECT_ENCODER);
if (!obj) { if (!obj) {
@ -200,8 +195,6 @@ void exynos_drm_display_power(struct drm_connector *connector, int mode)
static void exynos_drm_connector_dpms(struct drm_connector *connector, static void exynos_drm_connector_dpms(struct drm_connector *connector,
int mode) int mode)
{ {
DRM_DEBUG_KMS("%s\n", __FILE__);
/* /*
* in case that drm_crtc_helper_set_mode() is called, * in case that drm_crtc_helper_set_mode() is called,
* encoder/crtc->funcs->dpms() will be just returned * encoder/crtc->funcs->dpms() will be just returned
@ -248,8 +241,6 @@ exynos_drm_connector_detect(struct drm_connector *connector, bool force)
manager->display_ops; manager->display_ops;
enum drm_connector_status status = connector_status_disconnected; enum drm_connector_status status = connector_status_disconnected;
DRM_DEBUG_KMS("%s\n", __FILE__);
if (display_ops && display_ops->is_connected) { if (display_ops && display_ops->is_connected) {
if (display_ops->is_connected(manager->dev)) if (display_ops->is_connected(manager->dev))
status = connector_status_connected; status = connector_status_connected;
@ -265,8 +256,6 @@ static void exynos_drm_connector_destroy(struct drm_connector *connector)
struct exynos_drm_connector *exynos_connector = struct exynos_drm_connector *exynos_connector =
to_exynos_connector(connector); to_exynos_connector(connector);
DRM_DEBUG_KMS("%s\n", __FILE__);
drm_sysfs_connector_remove(connector); drm_sysfs_connector_remove(connector);
drm_connector_cleanup(connector); drm_connector_cleanup(connector);
kfree(exynos_connector); kfree(exynos_connector);
@ -288,8 +277,6 @@ struct drm_connector *exynos_drm_connector_create(struct drm_device *dev,
int type; int type;
int err; int err;
DRM_DEBUG_KMS("%s\n", __FILE__);
exynos_connector = kzalloc(sizeof(*exynos_connector), GFP_KERNEL); exynos_connector = kzalloc(sizeof(*exynos_connector), GFP_KERNEL);
if (!exynos_connector) { if (!exynos_connector) {
DRM_ERROR("failed to allocate connector\n"); DRM_ERROR("failed to allocate connector\n");

View File

@ -27,8 +27,6 @@ static int exynos_drm_create_enc_conn(struct drm_device *dev,
struct drm_connector *connector; struct drm_connector *connector;
int ret; int ret;
DRM_DEBUG_DRIVER("%s\n", __FILE__);
subdrv->manager->dev = subdrv->dev; subdrv->manager->dev = subdrv->dev;
/* create and initialize a encoder for this sub driver. */ /* create and initialize a encoder for this sub driver. */
@ -102,8 +100,6 @@ static int exynos_drm_subdrv_probe(struct drm_device *dev,
static void exynos_drm_subdrv_remove(struct drm_device *dev, static void exynos_drm_subdrv_remove(struct drm_device *dev,
struct exynos_drm_subdrv *subdrv) struct exynos_drm_subdrv *subdrv)
{ {
DRM_DEBUG_DRIVER("%s\n", __FILE__);
if (subdrv->remove) if (subdrv->remove)
subdrv->remove(dev, subdrv->dev); subdrv->remove(dev, subdrv->dev);
} }
@ -114,8 +110,6 @@ int exynos_drm_device_register(struct drm_device *dev)
unsigned int fine_cnt = 0; unsigned int fine_cnt = 0;
int err; int err;
DRM_DEBUG_DRIVER("%s\n", __FILE__);
if (!dev) if (!dev)
return -EINVAL; return -EINVAL;
@ -158,8 +152,6 @@ int exynos_drm_device_unregister(struct drm_device *dev)
{ {
struct exynos_drm_subdrv *subdrv; struct exynos_drm_subdrv *subdrv;
DRM_DEBUG_DRIVER("%s\n", __FILE__);
if (!dev) { if (!dev) {
WARN(1, "Unexpected drm device unregister!\n"); WARN(1, "Unexpected drm device unregister!\n");
return -EINVAL; return -EINVAL;
@ -176,8 +168,6 @@ EXPORT_SYMBOL_GPL(exynos_drm_device_unregister);
int exynos_drm_subdrv_register(struct exynos_drm_subdrv *subdrv) int exynos_drm_subdrv_register(struct exynos_drm_subdrv *subdrv)
{ {
DRM_DEBUG_DRIVER("%s\n", __FILE__);
if (!subdrv) if (!subdrv)
return -EINVAL; return -EINVAL;
@ -189,8 +179,6 @@ EXPORT_SYMBOL_GPL(exynos_drm_subdrv_register);
int exynos_drm_subdrv_unregister(struct exynos_drm_subdrv *subdrv) int exynos_drm_subdrv_unregister(struct exynos_drm_subdrv *subdrv)
{ {
DRM_DEBUG_DRIVER("%s\n", __FILE__);
if (!subdrv) if (!subdrv)
return -EINVAL; return -EINVAL;

View File

@ -76,8 +76,6 @@ static void exynos_drm_crtc_dpms(struct drm_crtc *crtc, int mode)
static void exynos_drm_crtc_prepare(struct drm_crtc *crtc) static void exynos_drm_crtc_prepare(struct drm_crtc *crtc)
{ {
DRM_DEBUG_KMS("%s\n", __FILE__);
/* drm framework doesn't check NULL. */ /* drm framework doesn't check NULL. */
} }
@ -85,8 +83,6 @@ static void exynos_drm_crtc_commit(struct drm_crtc *crtc)
{ {
struct exynos_drm_crtc *exynos_crtc = to_exynos_crtc(crtc); struct exynos_drm_crtc *exynos_crtc = to_exynos_crtc(crtc);
DRM_DEBUG_KMS("%s\n", __FILE__);
exynos_drm_crtc_dpms(crtc, DRM_MODE_DPMS_ON); exynos_drm_crtc_dpms(crtc, DRM_MODE_DPMS_ON);
exynos_plane_commit(exynos_crtc->plane); exynos_plane_commit(exynos_crtc->plane);
exynos_plane_dpms(exynos_crtc->plane, DRM_MODE_DPMS_ON); exynos_plane_dpms(exynos_crtc->plane, DRM_MODE_DPMS_ON);
@ -97,8 +93,6 @@ exynos_drm_crtc_mode_fixup(struct drm_crtc *crtc,
const struct drm_display_mode *mode, const struct drm_display_mode *mode,
struct drm_display_mode *adjusted_mode) struct drm_display_mode *adjusted_mode)
{ {
DRM_DEBUG_KMS("%s\n", __FILE__);
/* drm framework doesn't check NULL */ /* drm framework doesn't check NULL */
return true; return true;
} }
@ -115,8 +109,6 @@ exynos_drm_crtc_mode_set(struct drm_crtc *crtc, struct drm_display_mode *mode,
int pipe = exynos_crtc->pipe; int pipe = exynos_crtc->pipe;
int ret; int ret;
DRM_DEBUG_KMS("%s\n", __FILE__);
/* /*
* copy the mode data adjusted by mode_fixup() into crtc->mode * copy the mode data adjusted by mode_fixup() into crtc->mode
* so that hardware can be seet to proper mode. * 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,
unsigned int crtc_h; unsigned int crtc_h;
int ret; int ret;
DRM_DEBUG_KMS("%s\n", __FILE__);
/* when framebuffer changing is requested, crtc's dpms should be on */ /* when framebuffer changing is requested, crtc's dpms should be on */
if (exynos_crtc->dpms > DRM_MODE_DPMS_ON) { if (exynos_crtc->dpms > DRM_MODE_DPMS_ON) {
DRM_ERROR("failed framebuffer changing request.\n"); DRM_ERROR("failed framebuffer changing request.\n");
@ -179,8 +169,6 @@ static void exynos_drm_crtc_disable(struct drm_crtc *crtc)
{ {
struct exynos_drm_crtc *exynos_crtc = to_exynos_crtc(crtc); struct exynos_drm_crtc *exynos_crtc = to_exynos_crtc(crtc);
DRM_DEBUG_KMS("%s\n", __FILE__);
exynos_plane_dpms(exynos_crtc->plane, DRM_MODE_DPMS_OFF); exynos_plane_dpms(exynos_crtc->plane, DRM_MODE_DPMS_OFF);
exynos_drm_crtc_dpms(crtc, DRM_MODE_DPMS_OFF); exynos_drm_crtc_dpms(crtc, DRM_MODE_DPMS_OFF);
} }
@ -205,8 +193,6 @@ static int exynos_drm_crtc_page_flip(struct drm_crtc *crtc,
struct drm_framebuffer *old_fb = crtc->fb; struct drm_framebuffer *old_fb = crtc->fb;
int ret = -EINVAL; int ret = -EINVAL;
DRM_DEBUG_KMS("%s\n", __FILE__);
/* when the page flip is requested, crtc's dpms should be on */ /* when the page flip is requested, crtc's dpms should be on */
if (exynos_crtc->dpms > DRM_MODE_DPMS_ON) { if (exynos_crtc->dpms > DRM_MODE_DPMS_ON) {
DRM_ERROR("failed page flip request.\n"); DRM_ERROR("failed page flip request.\n");
@ -259,8 +245,6 @@ static void exynos_drm_crtc_destroy(struct drm_crtc *crtc)
struct exynos_drm_crtc *exynos_crtc = to_exynos_crtc(crtc); struct exynos_drm_crtc *exynos_crtc = to_exynos_crtc(crtc);
struct exynos_drm_private *private = crtc->dev->dev_private; struct exynos_drm_private *private = crtc->dev->dev_private;
DRM_DEBUG_KMS("%s\n", __FILE__);
private->crtc[exynos_crtc->pipe] = NULL; private->crtc[exynos_crtc->pipe] = NULL;
drm_crtc_cleanup(crtc); drm_crtc_cleanup(crtc);
@ -275,8 +259,6 @@ static int exynos_drm_crtc_set_property(struct drm_crtc *crtc,
struct exynos_drm_private *dev_priv = dev->dev_private; struct exynos_drm_private *dev_priv = dev->dev_private;
struct exynos_drm_crtc *exynos_crtc = to_exynos_crtc(crtc); struct exynos_drm_crtc *exynos_crtc = to_exynos_crtc(crtc);
DRM_DEBUG_KMS("%s\n", __func__);
if (property == dev_priv->crtc_mode_property) { if (property == dev_priv->crtc_mode_property) {
enum exynos_crtc_mode mode = val; enum exynos_crtc_mode mode = val;
@ -321,8 +303,6 @@ static void exynos_drm_crtc_attach_mode_property(struct drm_crtc *crtc)
struct exynos_drm_private *dev_priv = dev->dev_private; struct exynos_drm_private *dev_priv = dev->dev_private;
struct drm_property *prop; struct drm_property *prop;
DRM_DEBUG_KMS("%s\n", __func__);
prop = dev_priv->crtc_mode_property; prop = dev_priv->crtc_mode_property;
if (!prop) { if (!prop) {
prop = drm_property_create_enum(dev, 0, "mode", mode_names, 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)
struct exynos_drm_private *private = dev->dev_private; struct exynos_drm_private *private = dev->dev_private;
struct drm_crtc *crtc; struct drm_crtc *crtc;
DRM_DEBUG_KMS("%s\n", __FILE__);
exynos_crtc = kzalloc(sizeof(*exynos_crtc), GFP_KERNEL); exynos_crtc = kzalloc(sizeof(*exynos_crtc), GFP_KERNEL);
if (!exynos_crtc) { if (!exynos_crtc) {
DRM_ERROR("failed to allocate exynos crtc\n"); DRM_ERROR("failed to allocate exynos crtc\n");
@ -378,8 +356,6 @@ int exynos_drm_crtc_enable_vblank(struct drm_device *dev, int crtc)
struct exynos_drm_crtc *exynos_crtc = struct exynos_drm_crtc *exynos_crtc =
to_exynos_crtc(private->crtc[crtc]); to_exynos_crtc(private->crtc[crtc]);
DRM_DEBUG_KMS("%s\n", __FILE__);
if (exynos_crtc->dpms != DRM_MODE_DPMS_ON) if (exynos_crtc->dpms != DRM_MODE_DPMS_ON)
return -EPERM; return -EPERM;
@ -395,8 +371,6 @@ void exynos_drm_crtc_disable_vblank(struct drm_device *dev, int crtc)
struct exynos_drm_crtc *exynos_crtc = struct exynos_drm_crtc *exynos_crtc =
to_exynos_crtc(private->crtc[crtc]); to_exynos_crtc(private->crtc[crtc]);
DRM_DEBUG_KMS("%s\n", __FILE__);
if (exynos_crtc->dpms != DRM_MODE_DPMS_ON) if (exynos_crtc->dpms != DRM_MODE_DPMS_ON)
return; return;
@ -412,8 +386,6 @@ void exynos_drm_crtc_finish_pageflip(struct drm_device *dev, int crtc)
struct exynos_drm_crtc *exynos_crtc = to_exynos_crtc(drm_crtc); struct exynos_drm_crtc *exynos_crtc = to_exynos_crtc(drm_crtc);
unsigned long flags; unsigned long flags;
DRM_DEBUG_KMS("%s\n", __FILE__);
spin_lock_irqsave(&dev->event_lock, flags); spin_lock_irqsave(&dev->event_lock, flags);
list_for_each_entry_safe(e, t, &dev_priv->pageflip_event_list, list_for_each_entry_safe(e, t, &dev_priv->pageflip_event_list,

View File

@ -71,8 +71,6 @@ static struct sg_table *
unsigned int i; unsigned int i;
int nents, ret; int nents, ret;
DRM_DEBUG_PRIME("%s\n", __FILE__);
/* just return current sgt if already requested. */ /* just return current sgt if already requested. */
if (exynos_attach->dir == dir && exynos_attach->is_mapped) if (exynos_attach->dir == dir && exynos_attach->is_mapped)
return &exynos_attach->sgt; return &exynos_attach->sgt;
@ -133,8 +131,6 @@ static void exynos_dmabuf_release(struct dma_buf *dmabuf)
{ {
struct exynos_drm_gem_obj *exynos_gem_obj = dmabuf->priv; struct exynos_drm_gem_obj *exynos_gem_obj = dmabuf->priv;
DRM_DEBUG_PRIME("%s\n", __FILE__);
/* /*
* exynos_dmabuf_release() call means that file object's * exynos_dmabuf_release() call means that file object's
* f_count is 0 and it calls drm_gem_object_handle_unreference() * 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,
struct exynos_drm_gem_buf *buffer; struct exynos_drm_gem_buf *buffer;
int ret; int ret;
DRM_DEBUG_PRIME("%s\n", __FILE__);
/* is this one of own objects? */ /* is this one of own objects? */
if (dma_buf->ops == &exynos_dmabuf_ops) { if (dma_buf->ops == &exynos_dmabuf_ops) {
struct drm_gem_object *obj; struct drm_gem_object *obj;

View File

@ -46,8 +46,6 @@ static int exynos_drm_load(struct drm_device *dev, unsigned long flags)
int ret; int ret;
int nr; int nr;
DRM_DEBUG_DRIVER("%s\n", __FILE__);
private = kzalloc(sizeof(struct exynos_drm_private), GFP_KERNEL); private = kzalloc(sizeof(struct exynos_drm_private), GFP_KERNEL);
if (!private) { if (!private) {
DRM_ERROR("failed to allocate private\n"); DRM_ERROR("failed to allocate private\n");
@ -140,8 +138,6 @@ static int exynos_drm_load(struct drm_device *dev, unsigned long flags)
static int exynos_drm_unload(struct drm_device *dev) static int exynos_drm_unload(struct drm_device *dev)
{ {
DRM_DEBUG_DRIVER("%s\n", __FILE__);
exynos_drm_fbdev_fini(dev); exynos_drm_fbdev_fini(dev);
exynos_drm_device_unregister(dev); exynos_drm_device_unregister(dev);
drm_vblank_cleanup(dev); drm_vblank_cleanup(dev);
@ -160,8 +156,6 @@ static int exynos_drm_open(struct drm_device *dev, struct drm_file *file)
{ {
struct drm_exynos_file_private *file_priv; struct drm_exynos_file_private *file_priv;
DRM_DEBUG_DRIVER("%s\n", __FILE__);
file_priv = kzalloc(sizeof(*file_priv), GFP_KERNEL); file_priv = kzalloc(sizeof(*file_priv), GFP_KERNEL);
if (!file_priv) if (!file_priv)
return -ENOMEM; return -ENOMEM;
@ -178,8 +172,6 @@ static void exynos_drm_preclose(struct drm_device *dev,
struct drm_pending_vblank_event *e, *t; struct drm_pending_vblank_event *e, *t;
unsigned long flags; unsigned long flags;
DRM_DEBUG_DRIVER("%s\n", __FILE__);
/* release events of current file */ /* release events of current file */
spin_lock_irqsave(&dev->event_lock, flags); spin_lock_irqsave(&dev->event_lock, flags);
list_for_each_entry_safe(e, t, &private->pageflip_event_list, list_for_each_entry_safe(e, t, &private->pageflip_event_list,
@ -196,8 +188,6 @@ static void exynos_drm_preclose(struct drm_device *dev,
static void exynos_drm_postclose(struct drm_device *dev, struct drm_file *file) static void exynos_drm_postclose(struct drm_device *dev, struct drm_file *file)
{ {
DRM_DEBUG_DRIVER("%s\n", __FILE__);
if (!file->driver_priv) if (!file->driver_priv)
return; return;
@ -207,8 +197,6 @@ static void exynos_drm_postclose(struct drm_device *dev, struct drm_file *file)
static void exynos_drm_lastclose(struct drm_device *dev) static void exynos_drm_lastclose(struct drm_device *dev)
{ {
DRM_DEBUG_DRIVER("%s\n", __FILE__);
exynos_drm_fbdev_restore_mode(dev); exynos_drm_fbdev_restore_mode(dev);
} }
@ -292,8 +280,6 @@ static struct drm_driver exynos_drm_driver = {
static int exynos_drm_platform_probe(struct platform_device *pdev) static int exynos_drm_platform_probe(struct platform_device *pdev)
{ {
DRM_DEBUG_DRIVER("%s\n", __FILE__);
pdev->dev.coherent_dma_mask = DMA_BIT_MASK(32); pdev->dev.coherent_dma_mask = DMA_BIT_MASK(32);
exynos_drm_driver.num_ioctls = DRM_ARRAY_SIZE(exynos_ioctls); exynos_drm_driver.num_ioctls = DRM_ARRAY_SIZE(exynos_ioctls);
@ -302,8 +288,6 @@ static int exynos_drm_platform_probe(struct platform_device *pdev)
static int exynos_drm_platform_remove(struct platform_device *pdev) static int exynos_drm_platform_remove(struct platform_device *pdev)
{ {
DRM_DEBUG_DRIVER("%s\n", __FILE__);
drm_platform_exit(&exynos_drm_driver, pdev); drm_platform_exit(&exynos_drm_driver, pdev);
return 0; return 0;
@ -322,8 +306,6 @@ static int __init exynos_drm_init(void)
{ {
int ret; int ret;
DRM_DEBUG_DRIVER("%s\n", __FILE__);
#ifdef CONFIG_DRM_EXYNOS_FIMD #ifdef CONFIG_DRM_EXYNOS_FIMD
ret = platform_driver_register(&fimd_driver); ret = platform_driver_register(&fimd_driver);
if (ret < 0) if (ret < 0)
@ -455,8 +437,6 @@ static int __init exynos_drm_init(void)
static void __exit exynos_drm_exit(void) static void __exit exynos_drm_exit(void)
{ {
DRM_DEBUG_DRIVER("%s\n", __FILE__);
platform_device_unregister(exynos_drm_pdev); platform_device_unregister(exynos_drm_pdev);
platform_driver_unregister(&exynos_drm_platform_driver); platform_driver_unregister(&exynos_drm_platform_driver);

View File

@ -61,7 +61,7 @@ static void exynos_drm_encoder_dpms(struct drm_encoder *encoder, int mode)
struct exynos_drm_manager_ops *manager_ops = manager->ops; struct exynos_drm_manager_ops *manager_ops = manager->ops;
struct exynos_drm_encoder *exynos_encoder = to_exynos_encoder(encoder); struct exynos_drm_encoder *exynos_encoder = to_exynos_encoder(encoder);
DRM_DEBUG_KMS("%s, encoder dpms: %d\n", __FILE__, mode); DRM_DEBUG_KMS("encoder dpms: %d\n", mode);
if (exynos_encoder->dpms == mode) { if (exynos_encoder->dpms == mode) {
DRM_DEBUG_KMS("desired dpms mode is same as previous one.\n"); 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,
struct exynos_drm_manager *manager = exynos_drm_get_manager(encoder); struct exynos_drm_manager *manager = exynos_drm_get_manager(encoder);
struct exynos_drm_manager_ops *manager_ops = manager->ops; struct exynos_drm_manager_ops *manager_ops = manager->ops;
DRM_DEBUG_KMS("%s\n", __FILE__);
list_for_each_entry(connector, &dev->mode_config.connector_list, head) { list_for_each_entry(connector, &dev->mode_config.connector_list, head) {
if (connector->encoder == encoder) if (connector->encoder == encoder)
if (manager_ops && manager_ops->mode_fixup) if (manager_ops && manager_ops->mode_fixup)
@ -155,8 +153,6 @@ static void exynos_drm_encoder_mode_set(struct drm_encoder *encoder,
struct exynos_drm_manager *manager; struct exynos_drm_manager *manager;
struct exynos_drm_manager_ops *manager_ops; struct exynos_drm_manager_ops *manager_ops;
DRM_DEBUG_KMS("%s\n", __FILE__);
list_for_each_entry(connector, &dev->mode_config.connector_list, head) { list_for_each_entry(connector, &dev->mode_config.connector_list, head) {
if (connector->encoder == encoder) { if (connector->encoder == encoder) {
struct exynos_drm_encoder *exynos_encoder; struct exynos_drm_encoder *exynos_encoder;
@ -189,8 +185,6 @@ static void exynos_drm_encoder_mode_set(struct drm_encoder *encoder,
static void exynos_drm_encoder_prepare(struct drm_encoder *encoder) static void exynos_drm_encoder_prepare(struct drm_encoder *encoder)
{ {
DRM_DEBUG_KMS("%s\n", __FILE__);
/* drm framework doesn't check NULL. */ /* drm framework doesn't check NULL. */
} }
@ -200,8 +194,6 @@ static void exynos_drm_encoder_commit(struct drm_encoder *encoder)
struct exynos_drm_manager *manager = exynos_encoder->manager; struct exynos_drm_manager *manager = exynos_encoder->manager;
struct exynos_drm_manager_ops *manager_ops = manager->ops; struct exynos_drm_manager_ops *manager_ops = manager->ops;
DRM_DEBUG_KMS("%s\n", __FILE__);
if (manager_ops && manager_ops->commit) if (manager_ops && manager_ops->commit)
manager_ops->commit(manager->dev); manager_ops->commit(manager->dev);
@ -274,8 +266,6 @@ static void exynos_drm_encoder_destroy(struct drm_encoder *encoder)
struct exynos_drm_encoder *exynos_encoder = struct exynos_drm_encoder *exynos_encoder =
to_exynos_encoder(encoder); to_exynos_encoder(encoder);
DRM_DEBUG_KMS("%s\n", __FILE__);
exynos_encoder->manager->pipe = -1; exynos_encoder->manager->pipe = -1;
drm_encoder_cleanup(encoder); drm_encoder_cleanup(encoder);
@ -315,8 +305,6 @@ void exynos_drm_encoder_setup(struct drm_device *dev)
{ {
struct drm_encoder *encoder; struct drm_encoder *encoder;
DRM_DEBUG_KMS("%s\n", __FILE__);
list_for_each_entry(encoder, &dev->mode_config.encoder_list, head) list_for_each_entry(encoder, &dev->mode_config.encoder_list, head)
encoder->possible_clones = exynos_drm_encoder_clones(encoder); encoder->possible_clones = exynos_drm_encoder_clones(encoder);
} }
@ -329,8 +317,6 @@ exynos_drm_encoder_create(struct drm_device *dev,
struct drm_encoder *encoder; struct drm_encoder *encoder;
struct exynos_drm_encoder *exynos_encoder; struct exynos_drm_encoder *exynos_encoder;
DRM_DEBUG_KMS("%s\n", __FILE__);
if (!manager || !possible_crtcs) if (!manager || !possible_crtcs)
return NULL; return NULL;
@ -427,8 +413,6 @@ void exynos_drm_encoder_crtc_dpms(struct drm_encoder *encoder, void *data)
struct exynos_drm_manager_ops *manager_ops = manager->ops; struct exynos_drm_manager_ops *manager_ops = manager->ops;
int mode = *(int *)data; int mode = *(int *)data;
DRM_DEBUG_KMS("%s\n", __FILE__);
if (manager_ops && manager_ops->dpms) if (manager_ops && manager_ops->dpms)
manager_ops->dpms(manager->dev, mode); manager_ops->dpms(manager->dev, mode);
@ -449,8 +433,6 @@ void exynos_drm_encoder_crtc_pipe(struct drm_encoder *encoder, void *data)
to_exynos_encoder(encoder)->manager; to_exynos_encoder(encoder)->manager;
int pipe = *(int *)data; int pipe = *(int *)data;
DRM_DEBUG_KMS("%s\n", __FILE__);
/* /*
* when crtc is detached from encoder, this pipe is used * when crtc is detached from encoder, this pipe is used
* to select manager operation * to select manager operation
@ -465,8 +447,6 @@ void exynos_drm_encoder_plane_mode_set(struct drm_encoder *encoder, void *data)
struct exynos_drm_overlay_ops *overlay_ops = manager->overlay_ops; struct exynos_drm_overlay_ops *overlay_ops = manager->overlay_ops;
struct exynos_drm_overlay *overlay = data; struct exynos_drm_overlay *overlay = data;
DRM_DEBUG_KMS("%s\n", __FILE__);
if (overlay_ops && overlay_ops->mode_set) if (overlay_ops && overlay_ops->mode_set)
overlay_ops->mode_set(manager->dev, overlay); overlay_ops->mode_set(manager->dev, overlay);
} }
@ -478,8 +458,6 @@ void exynos_drm_encoder_plane_commit(struct drm_encoder *encoder, void *data)
struct exynos_drm_overlay_ops *overlay_ops = manager->overlay_ops; struct exynos_drm_overlay_ops *overlay_ops = manager->overlay_ops;
int zpos = DEFAULT_ZPOS; int zpos = DEFAULT_ZPOS;
DRM_DEBUG_KMS("%s\n", __FILE__);
if (data) if (data)
zpos = *(int *)data; zpos = *(int *)data;
@ -494,8 +472,6 @@ void exynos_drm_encoder_plane_enable(struct drm_encoder *encoder, void *data)
struct exynos_drm_overlay_ops *overlay_ops = manager->overlay_ops; struct exynos_drm_overlay_ops *overlay_ops = manager->overlay_ops;
int zpos = DEFAULT_ZPOS; int zpos = DEFAULT_ZPOS;
DRM_DEBUG_KMS("%s\n", __FILE__);
if (data) if (data)
zpos = *(int *)data; zpos = *(int *)data;
@ -510,8 +486,6 @@ void exynos_drm_encoder_plane_disable(struct drm_encoder *encoder, void *data)
struct exynos_drm_overlay_ops *overlay_ops = manager->overlay_ops; struct exynos_drm_overlay_ops *overlay_ops = manager->overlay_ops;
int zpos = DEFAULT_ZPOS; int zpos = DEFAULT_ZPOS;
DRM_DEBUG_KMS("%s\n", __FILE__);
if (data) if (data)
zpos = *(int *)data; zpos = *(int *)data;

View File

@ -70,8 +70,6 @@ static void exynos_drm_fb_destroy(struct drm_framebuffer *fb)
struct exynos_drm_fb *exynos_fb = to_exynos_fb(fb); struct exynos_drm_fb *exynos_fb = to_exynos_fb(fb);
unsigned int i; unsigned int i;
DRM_DEBUG_KMS("%s\n", __FILE__);
/* make sure that overlay data are updated before relesing fb. */ /* make sure that overlay data are updated before relesing fb. */
exynos_drm_encoder_complete_scanout(fb); exynos_drm_encoder_complete_scanout(fb);
@ -97,8 +95,6 @@ static int exynos_drm_fb_create_handle(struct drm_framebuffer *fb,
{ {
struct exynos_drm_fb *exynos_fb = to_exynos_fb(fb); struct exynos_drm_fb *exynos_fb = to_exynos_fb(fb);
DRM_DEBUG_KMS("%s\n", __FILE__);
/* This fb should have only one gem object. */ /* This fb should have only one gem object. */
if (WARN_ON(exynos_fb->buf_cnt != 1)) if (WARN_ON(exynos_fb->buf_cnt != 1))
return -EINVAL; return -EINVAL;
@ -112,8 +108,6 @@ static int exynos_drm_fb_dirty(struct drm_framebuffer *fb,
unsigned color, struct drm_clip_rect *clips, unsigned color, struct drm_clip_rect *clips,
unsigned num_clips) unsigned num_clips)
{ {
DRM_DEBUG_KMS("%s\n", __FILE__);
/* TODO */ /* TODO */
return 0; return 0;
@ -225,8 +219,6 @@ exynos_user_fb_create(struct drm_device *dev, struct drm_file *file_priv,
struct exynos_drm_fb *exynos_fb; struct exynos_drm_fb *exynos_fb;
int i, ret; int i, ret;
DRM_DEBUG_KMS("%s\n", __FILE__);
exynos_fb = kzalloc(sizeof(*exynos_fb), GFP_KERNEL); exynos_fb = kzalloc(sizeof(*exynos_fb), GFP_KERNEL);
if (!exynos_fb) { if (!exynos_fb) {
DRM_ERROR("failed to allocate exynos drm framebuffer\n"); 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,
struct exynos_drm_fb *exynos_fb = to_exynos_fb(fb); struct exynos_drm_fb *exynos_fb = to_exynos_fb(fb);
struct exynos_drm_gem_buf *buffer; struct exynos_drm_gem_buf *buffer;
DRM_DEBUG_KMS("%s\n", __FILE__);
if (index >= MAX_FB_BUFFER) if (index >= MAX_FB_BUFFER)
return NULL; return NULL;

View File

@ -43,8 +43,6 @@ static int exynos_drm_fb_mmap(struct fb_info *info,
unsigned long vm_size; unsigned long vm_size;
int ret; int ret;
DRM_DEBUG_KMS("%s\n", __func__);
vma->vm_flags |= VM_IO | VM_DONTEXPAND | VM_DONTDUMP; vma->vm_flags |= VM_IO | VM_DONTEXPAND | VM_DONTDUMP;
vm_size = vma->vm_end - vma->vm_start; vm_size = vma->vm_end - vma->vm_start;
@ -84,8 +82,6 @@ static int exynos_drm_fbdev_update(struct drm_fb_helper *helper,
unsigned int size = fb->width * fb->height * (fb->bits_per_pixel >> 3); unsigned int size = fb->width * fb->height * (fb->bits_per_pixel >> 3);
unsigned long offset; unsigned long offset;
DRM_DEBUG_KMS("%s\n", __FILE__);
drm_fb_helper_fill_fix(fbi, fb->pitches[0], fb->depth); drm_fb_helper_fill_fix(fbi, fb->pitches[0], fb->depth);
drm_fb_helper_fill_var(fbi, helper, fb->width, fb->height); drm_fb_helper_fill_var(fbi, helper, fb->width, fb->height);
@ -148,8 +144,6 @@ static int exynos_drm_fbdev_create(struct drm_fb_helper *helper,
unsigned long size; unsigned long size;
int ret; int ret;
DRM_DEBUG_KMS("%s\n", __FILE__);
DRM_DEBUG_KMS("surface width(%d), height(%d) and bpp(%d\n", DRM_DEBUG_KMS("surface width(%d), height(%d) and bpp(%d\n",
sizes->surface_width, sizes->surface_height, sizes->surface_width, sizes->surface_height,
sizes->surface_bpp); sizes->surface_bpp);
@ -238,8 +232,6 @@ int exynos_drm_fbdev_init(struct drm_device *dev)
unsigned int num_crtc; unsigned int num_crtc;
int ret; int ret;
DRM_DEBUG_KMS("%s\n", __FILE__);
if (!dev->mode_config.num_crtc || !dev->mode_config.num_connector) if (!dev->mode_config.num_crtc || !dev->mode_config.num_connector)
return 0; return 0;

View File

@ -175,8 +175,6 @@ static void fimc_sw_reset(struct fimc_context *ctx)
{ {
u32 cfg; u32 cfg;
DRM_DEBUG_KMS("%s\n", __func__);
/* stop dma operation */ /* stop dma operation */
cfg = fimc_read(EXYNOS_CISTATUS); cfg = fimc_read(EXYNOS_CISTATUS);
if (EXYNOS_CISTATUS_GET_ENVID_STATUS(cfg)) { if (EXYNOS_CISTATUS_GET_ENVID_STATUS(cfg)) {
@ -210,8 +208,6 @@ static void fimc_sw_reset(struct fimc_context *ctx)
static int fimc_set_camblk_fimd0_wb(struct fimc_context *ctx) static int fimc_set_camblk_fimd0_wb(struct fimc_context *ctx)
{ {
DRM_DEBUG_KMS("%s\n", __func__);
return regmap_update_bits(ctx->sysreg, SYSREG_CAMERA_BLK, return regmap_update_bits(ctx->sysreg, SYSREG_CAMERA_BLK,
SYSREG_FIMD0WB_DEST_MASK, SYSREG_FIMD0WB_DEST_MASK,
ctx->id << SYSREG_FIMD0WB_DEST_SHIFT); ctx->id << SYSREG_FIMD0WB_DEST_SHIFT);
@ -319,8 +315,6 @@ static void fimc_clear_irq(struct fimc_context *ctx)
{ {
u32 cfg; u32 cfg;
DRM_DEBUG_KMS("%s\n", __func__);
cfg = fimc_read(EXYNOS_CIGCTRL); cfg = fimc_read(EXYNOS_CIGCTRL);
cfg |= EXYNOS_CIGCTRL_IRQ_CLR; cfg |= EXYNOS_CIGCTRL_IRQ_CLR;
fimc_write(cfg, EXYNOS_CIGCTRL); fimc_write(cfg, EXYNOS_CIGCTRL);
@ -380,8 +374,6 @@ static int fimc_get_buf_id(struct fimc_context *ctx)
u32 cfg; u32 cfg;
int frame_cnt, buf_id; int frame_cnt, buf_id;
DRM_DEBUG_KMS("%s\n", __func__);
cfg = fimc_read(EXYNOS_CISTATUS2); cfg = fimc_read(EXYNOS_CISTATUS2);
frame_cnt = EXYNOS_CISTATUS2_GET_FRAMECOUNT_BEFORE(cfg); frame_cnt = EXYNOS_CISTATUS2_GET_FRAMECOUNT_BEFORE(cfg);
@ -1357,8 +1349,6 @@ static int fimc_init_prop_list(struct exynos_drm_ippdrv *ippdrv)
{ {
struct drm_exynos_ipp_prop_list *prop_list; struct drm_exynos_ipp_prop_list *prop_list;
DRM_DEBUG_KMS("%s\n", __func__);
prop_list = devm_kzalloc(ippdrv->dev, sizeof(*prop_list), GFP_KERNEL); prop_list = devm_kzalloc(ippdrv->dev, sizeof(*prop_list), GFP_KERNEL);
if (!prop_list) { if (!prop_list) {
DRM_ERROR("failed to alloc property list.\n"); DRM_ERROR("failed to alloc property list.\n");
@ -1419,8 +1409,6 @@ static int fimc_ippdrv_check_property(struct device *dev,
bool swap; bool swap;
int i; int i;
DRM_DEBUG_KMS("%s\n", __func__);
for_each_ipp_ops(i) { for_each_ipp_ops(i) {
if ((i == EXYNOS_DRM_OPS_SRC) && if ((i == EXYNOS_DRM_OPS_SRC) &&
(property->cmd == IPP_CMD_WB)) (property->cmd == IPP_CMD_WB))
@ -1526,8 +1514,6 @@ static void fimc_clear_addr(struct fimc_context *ctx)
{ {
int i; int i;
DRM_DEBUG_KMS("%s:\n", __func__);
for (i = 0; i < FIMC_MAX_SRC; i++) { for (i = 0; i < FIMC_MAX_SRC; i++) {
fimc_write(0, EXYNOS_CIIYSA(i)); fimc_write(0, EXYNOS_CIIYSA(i));
fimc_write(0, EXYNOS_CIICBSA(i)); fimc_write(0, EXYNOS_CIICBSA(i));
@ -1545,8 +1531,6 @@ static int fimc_ippdrv_reset(struct device *dev)
{ {
struct fimc_context *ctx = get_fimc_context(dev); struct fimc_context *ctx = get_fimc_context(dev);
DRM_DEBUG_KMS("%s\n", __func__);
/* reset h/w block */ /* reset h/w block */
fimc_sw_reset(ctx); fimc_sw_reset(ctx);

View File

@ -150,8 +150,6 @@ static inline struct fimd_driver_data *drm_fimd_get_driver_data(
static bool fimd_display_is_connected(struct device *dev) static bool fimd_display_is_connected(struct device *dev)
{ {
DRM_DEBUG_KMS("%s\n", __FILE__);
/* TODO. */ /* TODO. */
return true; return true;
@ -161,15 +159,11 @@ static void *fimd_get_panel(struct device *dev)
{ {
struct fimd_context *ctx = get_fimd_context(dev); struct fimd_context *ctx = get_fimd_context(dev);
DRM_DEBUG_KMS("%s\n", __FILE__);
return ctx->panel; return ctx->panel;
} }
static int fimd_check_mode(struct device *dev, struct drm_display_mode *mode) static int fimd_check_mode(struct device *dev, struct drm_display_mode *mode)
{ {
DRM_DEBUG_KMS("%s\n", __FILE__);
/* TODO. */ /* TODO. */
return 0; return 0;
@ -177,8 +171,6 @@ static int fimd_check_mode(struct device *dev, struct drm_display_mode *mode)
static int fimd_display_power_on(struct device *dev, int mode) static int fimd_display_power_on(struct device *dev, int mode)
{ {
DRM_DEBUG_KMS("%s\n", __FILE__);
/* TODO */ /* TODO */
return 0; return 0;
@ -196,7 +188,7 @@ static void fimd_dpms(struct device *subdrv_dev, int mode)
{ {
struct fimd_context *ctx = get_fimd_context(subdrv_dev); struct fimd_context *ctx = get_fimd_context(subdrv_dev);
DRM_DEBUG_KMS("%s, %d\n", __FILE__, mode); DRM_DEBUG_KMS("%d\n", mode);
mutex_lock(&ctx->lock); mutex_lock(&ctx->lock);
@ -234,8 +226,6 @@ static void fimd_apply(struct device *subdrv_dev)
struct fimd_win_data *win_data; struct fimd_win_data *win_data;
int i; int i;
DRM_DEBUG_KMS("%s\n", __FILE__);
for (i = 0; i < WINDOWS_NR; i++) { for (i = 0; i < WINDOWS_NR; i++) {
win_data = &ctx->win_data[i]; win_data = &ctx->win_data[i];
if (win_data->enabled && (ovl_ops && ovl_ops->commit)) if (win_data->enabled && (ovl_ops && ovl_ops->commit))
@ -258,8 +248,6 @@ static void fimd_commit(struct device *dev)
if (ctx->suspended) if (ctx->suspended)
return; return;
DRM_DEBUG_KMS("%s\n", __FILE__);
/* setup polarity values from machine code. */ /* setup polarity values from machine code. */
writel(ctx->vidcon1, ctx->regs + driver_data->timing_base + VIDCON1); writel(ctx->vidcon1, ctx->regs + driver_data->timing_base + VIDCON1);
@ -309,8 +297,6 @@ static int fimd_enable_vblank(struct device *dev)
struct fimd_context *ctx = get_fimd_context(dev); struct fimd_context *ctx = get_fimd_context(dev);
u32 val; u32 val;
DRM_DEBUG_KMS("%s\n", __FILE__);
if (ctx->suspended) if (ctx->suspended)
return -EPERM; return -EPERM;
@ -336,8 +322,6 @@ static void fimd_disable_vblank(struct device *dev)
struct fimd_context *ctx = get_fimd_context(dev); struct fimd_context *ctx = get_fimd_context(dev);
u32 val; u32 val;
DRM_DEBUG_KMS("%s\n", __FILE__);
if (ctx->suspended) if (ctx->suspended)
return; return;
@ -387,8 +371,6 @@ static void fimd_win_mode_set(struct device *dev,
int win; int win;
unsigned long offset; unsigned long offset;
DRM_DEBUG_KMS("%s\n", __FILE__);
if (!overlay) { if (!overlay) {
dev_err(dev, "overlay is NULL\n"); dev_err(dev, "overlay is NULL\n");
return; return;
@ -435,8 +417,6 @@ static void fimd_win_set_pixfmt(struct device *dev, unsigned int win)
struct fimd_win_data *win_data = &ctx->win_data[win]; struct fimd_win_data *win_data = &ctx->win_data[win];
unsigned long val; unsigned long val;
DRM_DEBUG_KMS("%s\n", __FILE__);
val = WINCONx_ENWIN; val = WINCONx_ENWIN;
switch (win_data->bpp) { switch (win_data->bpp) {
@ -495,8 +475,6 @@ static void fimd_win_set_colkey(struct device *dev, unsigned int win)
struct fimd_context *ctx = get_fimd_context(dev); struct fimd_context *ctx = get_fimd_context(dev);
unsigned int keycon0 = 0, keycon1 = 0; unsigned int keycon0 = 0, keycon1 = 0;
DRM_DEBUG_KMS("%s\n", __FILE__);
keycon0 = ~(WxKEYCON0_KEYBL_EN | WxKEYCON0_KEYEN_F | keycon0 = ~(WxKEYCON0_KEYBL_EN | WxKEYCON0_KEYEN_F |
WxKEYCON0_DIRCON) | WxKEYCON0_COMPKEY(0); WxKEYCON0_DIRCON) | WxKEYCON0_COMPKEY(0);
@ -542,8 +520,6 @@ static void fimd_win_commit(struct device *dev, int zpos)
unsigned int last_x; unsigned int last_x;
unsigned int last_y; unsigned int last_y;
DRM_DEBUG_KMS("%s\n", __FILE__);
if (ctx->suspended) if (ctx->suspended)
return; return;
@ -662,8 +638,6 @@ static void fimd_win_disable(struct device *dev, int zpos)
int win = zpos; int win = zpos;
u32 val; u32 val;
DRM_DEBUG_KMS("%s\n", __FILE__);
if (win == DEFAULT_ZPOS) if (win == DEFAULT_ZPOS)
win = ctx->default_win; win = ctx->default_win;
@ -743,8 +717,6 @@ static irqreturn_t fimd_irq_handler(int irq, void *dev_id)
static int fimd_subdrv_probe(struct drm_device *drm_dev, struct device *dev) static int fimd_subdrv_probe(struct drm_device *drm_dev, struct device *dev)
{ {
DRM_DEBUG_KMS("%s\n", __FILE__);
/* /*
* enable drm irq mode. * enable drm irq mode.
* - with irq_enabled = 1, we can use the vblank feature. * - 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)
static void fimd_subdrv_remove(struct drm_device *drm_dev, struct device *dev) static void fimd_subdrv_remove(struct drm_device *drm_dev, struct device *dev)
{ {
DRM_DEBUG_KMS("%s\n", __FILE__);
/* detach this sub driver from iommu mapping if supported. */ /* detach this sub driver from iommu mapping if supported. */
if (is_drm_iommu_supported(drm_dev)) if (is_drm_iommu_supported(drm_dev))
drm_iommu_detach_device(drm_dev, dev); drm_iommu_detach_device(drm_dev, dev);
@ -787,8 +757,6 @@ static int fimd_calc_clkdiv(struct fimd_context *ctx,
u32 best_framerate = 0; u32 best_framerate = 0;
u32 framerate; u32 framerate;
DRM_DEBUG_KMS("%s\n", __FILE__);
retrace = timing->left_margin + timing->hsync_len + retrace = timing->left_margin + timing->hsync_len +
timing->right_margin + timing->xres; timing->right_margin + timing->xres;
retrace *= timing->upper_margin + timing->vsync_len + retrace *= timing->upper_margin + timing->vsync_len +
@ -823,8 +791,6 @@ static int fimd_calc_clkdiv(struct fimd_context *ctx,
static void fimd_clear_win(struct fimd_context *ctx, int win) static void fimd_clear_win(struct fimd_context *ctx, int win)
{ {
DRM_DEBUG_KMS("%s\n", __FILE__);
writel(0, ctx->regs + WINCON(win)); writel(0, ctx->regs + WINCON(win));
writel(0, ctx->regs + VIDOSD_A(win)); writel(0, ctx->regs + VIDOSD_A(win));
writel(0, ctx->regs + VIDOSD_B(win)); writel(0, ctx->regs + VIDOSD_B(win));
@ -838,8 +804,6 @@ static void fimd_clear_win(struct fimd_context *ctx, int win)
static int fimd_clock(struct fimd_context *ctx, bool enable) static int fimd_clock(struct fimd_context *ctx, bool enable)
{ {
DRM_DEBUG_KMS("%s\n", __FILE__);
if (enable) { if (enable) {
int ret; int ret;
@ -925,8 +889,6 @@ static int fimd_probe(struct platform_device *pdev)
int win; int win;
int ret = -EINVAL; int ret = -EINVAL;
DRM_DEBUG_KMS("%s\n", __FILE__);
if (dev->of_node) { if (dev->of_node) {
pdata = devm_kzalloc(dev, sizeof(*pdata), GFP_KERNEL); pdata = devm_kzalloc(dev, sizeof(*pdata), GFP_KERNEL);
if (!pdata) { if (!pdata) {
@ -1032,8 +994,6 @@ static int fimd_remove(struct platform_device *pdev)
struct device *dev = &pdev->dev; struct device *dev = &pdev->dev;
struct fimd_context *ctx = platform_get_drvdata(pdev); struct fimd_context *ctx = platform_get_drvdata(pdev);
DRM_DEBUG_KMS("%s\n", __FILE__);
exynos_drm_subdrv_unregister(&ctx->subdrv); exynos_drm_subdrv_unregister(&ctx->subdrv);
if (ctx->suspended) if (ctx->suspended)
@ -1098,8 +1058,6 @@ static int fimd_runtime_suspend(struct device *dev)
{ {
struct fimd_context *ctx = get_fimd_context(dev); struct fimd_context *ctx = get_fimd_context(dev);
DRM_DEBUG_KMS("%s\n", __FILE__);
return fimd_activate(ctx, false); return fimd_activate(ctx, false);
} }
@ -1107,8 +1065,6 @@ static int fimd_runtime_resume(struct device *dev)
{ {
struct fimd_context *ctx = get_fimd_context(dev); struct fimd_context *ctx = get_fimd_context(dev);
DRM_DEBUG_KMS("%s\n", __FILE__);
return fimd_activate(ctx, true); return fimd_activate(ctx, true);
} }
#endif #endif

View File

@ -132,8 +132,6 @@ void exynos_drm_gem_destroy(struct exynos_drm_gem_obj *exynos_gem_obj)
struct drm_gem_object *obj; struct drm_gem_object *obj;
struct exynos_drm_gem_buf *buf; struct exynos_drm_gem_buf *buf;
DRM_DEBUG_KMS("%s\n", __FILE__);
obj = &exynos_gem_obj->base; obj = &exynos_gem_obj->base;
buf = exynos_gem_obj->buffer; buf = exynos_gem_obj->buffer;
@ -227,7 +225,6 @@ struct exynos_drm_gem_obj *exynos_drm_gem_create(struct drm_device *dev,
} }
size = roundup_gem_size(size, flags); size = roundup_gem_size(size, flags);
DRM_DEBUG_KMS("%s\n", __FILE__);
ret = check_gem_flags(flags); ret = check_gem_flags(flags);
if (ret) if (ret)
@ -268,8 +265,6 @@ int exynos_drm_gem_create_ioctl(struct drm_device *dev, void *data,
struct exynos_drm_gem_obj *exynos_gem_obj; struct exynos_drm_gem_obj *exynos_gem_obj;
int ret; int ret;
DRM_DEBUG_KMS("%s\n", __FILE__);
exynos_gem_obj = exynos_drm_gem_create(dev, args->flags, args->size); exynos_gem_obj = exynos_drm_gem_create(dev, args->flags, args->size);
if (IS_ERR(exynos_gem_obj)) if (IS_ERR(exynos_gem_obj))
return PTR_ERR(exynos_gem_obj); return PTR_ERR(exynos_gem_obj);
@ -331,8 +326,6 @@ int exynos_drm_gem_map_offset_ioctl(struct drm_device *dev, void *data,
{ {
struct drm_exynos_gem_map_off *args = data; struct drm_exynos_gem_map_off *args = data;
DRM_DEBUG_KMS("%s\n", __FILE__);
DRM_DEBUG_KMS("handle = 0x%x, offset = 0x%lx\n", DRM_DEBUG_KMS("handle = 0x%x, offset = 0x%lx\n",
args->handle, (unsigned long)args->offset); args->handle, (unsigned long)args->offset);
@ -371,8 +364,6 @@ static int exynos_drm_gem_mmap_buffer(struct file *filp,
unsigned long vm_size; unsigned long vm_size;
int ret; int ret;
DRM_DEBUG_KMS("%s\n", __FILE__);
vma->vm_flags |= VM_IO | VM_DONTEXPAND | VM_DONTDUMP; vma->vm_flags |= VM_IO | VM_DONTEXPAND | VM_DONTDUMP;
vma->vm_private_data = obj; vma->vm_private_data = obj;
vma->vm_ops = drm_dev->driver->gem_vm_ops; 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,
struct drm_gem_object *obj; struct drm_gem_object *obj;
unsigned int addr; unsigned int addr;
DRM_DEBUG_KMS("%s\n", __FILE__);
if (!(dev->driver->driver_features & DRIVER_GEM)) { if (!(dev->driver->driver_features & DRIVER_GEM)) {
DRM_ERROR("does not support GEM.\n"); DRM_ERROR("does not support GEM.\n");
return -ENODEV; return -ENODEV;
@ -643,8 +632,6 @@ void exynos_gem_unmap_sgt_from_dma(struct drm_device *drm_dev,
int exynos_drm_gem_init_object(struct drm_gem_object *obj) int exynos_drm_gem_init_object(struct drm_gem_object *obj)
{ {
DRM_DEBUG_KMS("%s\n", __FILE__);
return 0; return 0;
} }
@ -653,8 +640,6 @@ void exynos_drm_gem_free_object(struct drm_gem_object *obj)
struct exynos_drm_gem_obj *exynos_gem_obj; struct exynos_drm_gem_obj *exynos_gem_obj;
struct exynos_drm_gem_buf *buf; struct exynos_drm_gem_buf *buf;
DRM_DEBUG_KMS("%s\n", __FILE__);
exynos_gem_obj = to_exynos_gem_obj(obj); exynos_gem_obj = to_exynos_gem_obj(obj);
buf = exynos_gem_obj->buffer; buf = exynos_gem_obj->buffer;
@ -671,8 +656,6 @@ int exynos_drm_gem_dumb_create(struct drm_file *file_priv,
struct exynos_drm_gem_obj *exynos_gem_obj; struct exynos_drm_gem_obj *exynos_gem_obj;
int ret; int ret;
DRM_DEBUG_KMS("%s\n", __FILE__);
/* /*
* alocate memory to be used for framebuffer. * alocate memory to be used for framebuffer.
* - this callback would be called by user application * - this callback would be called by user application
@ -704,8 +687,6 @@ int exynos_drm_gem_dumb_map_offset(struct drm_file *file_priv,
struct drm_gem_object *obj; struct drm_gem_object *obj;
int ret = 0; int ret = 0;
DRM_DEBUG_KMS("%s\n", __FILE__);
mutex_lock(&dev->struct_mutex); mutex_lock(&dev->struct_mutex);
/* /*
@ -743,8 +724,6 @@ int exynos_drm_gem_dumb_destroy(struct drm_file *file_priv,
{ {
int ret; int ret;
DRM_DEBUG_KMS("%s\n", __FILE__);
/* /*
* obj->refcount and obj->handle_count are decreased and * obj->refcount and obj->handle_count are decreased and
* if both them are 0 then exynos_drm_gem_free_object() * 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)
struct drm_gem_object *obj; struct drm_gem_object *obj;
int ret; int ret;
DRM_DEBUG_KMS("%s\n", __FILE__);
/* set vm_area_struct. */ /* set vm_area_struct. */
ret = drm_gem_mmap(filp, vma); ret = drm_gem_mmap(filp, vma);
if (ret < 0) { if (ret < 0) {

View File

@ -400,8 +400,6 @@ static int gsc_sw_reset(struct gsc_context *ctx)
u32 cfg; u32 cfg;
int count = GSC_RESET_TIMEOUT; int count = GSC_RESET_TIMEOUT;
DRM_DEBUG_KMS("%s\n", __func__);
/* s/w reset */ /* s/w reset */
cfg = (GSC_SW_RESET_SRESET); cfg = (GSC_SW_RESET_SRESET);
gsc_write(cfg, GSC_SW_RESET); gsc_write(cfg, GSC_SW_RESET);
@ -441,8 +439,6 @@ static void gsc_set_gscblk_fimd_wb(struct gsc_context *ctx, bool enable)
{ {
u32 gscblk_cfg; u32 gscblk_cfg;
DRM_DEBUG_KMS("%s\n", __func__);
gscblk_cfg = readl(SYSREG_GSCBLK_CFG1); gscblk_cfg = readl(SYSREG_GSCBLK_CFG1);
if (enable) if (enable)
@ -1350,8 +1346,6 @@ static int gsc_init_prop_list(struct exynos_drm_ippdrv *ippdrv)
{ {
struct drm_exynos_ipp_prop_list *prop_list; struct drm_exynos_ipp_prop_list *prop_list;
DRM_DEBUG_KMS("%s\n", __func__);
prop_list = devm_kzalloc(ippdrv->dev, sizeof(*prop_list), GFP_KERNEL); prop_list = devm_kzalloc(ippdrv->dev, sizeof(*prop_list), GFP_KERNEL);
if (!prop_list) { if (!prop_list) {
DRM_ERROR("failed to alloc property list.\n"); DRM_ERROR("failed to alloc property list.\n");
@ -1411,8 +1405,6 @@ static int gsc_ippdrv_check_property(struct device *dev,
bool swap; bool swap;
int i; int i;
DRM_DEBUG_KMS("%s\n", __func__);
for_each_ipp_ops(i) { for_each_ipp_ops(i) {
if ((i == EXYNOS_DRM_OPS_SRC) && if ((i == EXYNOS_DRM_OPS_SRC) &&
(property->cmd == IPP_CMD_WB)) (property->cmd == IPP_CMD_WB))
@ -1521,8 +1513,6 @@ static int gsc_ippdrv_reset(struct device *dev)
struct gsc_scaler *sc = &ctx->sc; struct gsc_scaler *sc = &ctx->sc;
int ret; int ret;
DRM_DEBUG_KMS("%s\n", __func__);
/* reset h/w block */ /* reset h/w block */
ret = gsc_sw_reset(ctx); ret = gsc_sw_reset(ctx);
if (ret < 0) { if (ret < 0) {
@ -1807,7 +1797,7 @@ static int gsc_runtime_resume(struct device *dev)
{ {
struct gsc_context *ctx = get_gsc_context(dev); struct gsc_context *ctx = get_gsc_context(dev);
DRM_DEBUG_KMS("%s:id[%d]\n", __FILE__, ctx->id); DRM_DEBUG_KMS("id[%d]\n", ctx->id);
return gsc_clk_ctrl(ctx, true); return gsc_clk_ctrl(ctx, true);
} }

View File

@ -88,16 +88,12 @@ void exynos_mixer_drv_attach(struct exynos_drm_hdmi_context *ctx)
void exynos_hdmi_ops_register(struct exynos_hdmi_ops *ops) void exynos_hdmi_ops_register(struct exynos_hdmi_ops *ops)
{ {
DRM_DEBUG_KMS("%s\n", __FILE__);
if (ops) if (ops)
hdmi_ops = ops; hdmi_ops = ops;
} }
void exynos_mixer_ops_register(struct exynos_mixer_ops *ops) void exynos_mixer_ops_register(struct exynos_mixer_ops *ops)
{ {
DRM_DEBUG_KMS("%s\n", __FILE__);
if (ops) if (ops)
mixer_ops = ops; mixer_ops = ops;
} }
@ -106,8 +102,6 @@ static bool drm_hdmi_is_connected(struct device *dev)
{ {
struct drm_hdmi_context *ctx = to_context(dev); struct drm_hdmi_context *ctx = to_context(dev);
DRM_DEBUG_KMS("%s\n", __FILE__);
if (hdmi_ops && hdmi_ops->is_connected) if (hdmi_ops && hdmi_ops->is_connected)
return hdmi_ops->is_connected(ctx->hdmi_ctx->ctx); return hdmi_ops->is_connected(ctx->hdmi_ctx->ctx);
@ -119,8 +113,6 @@ static struct edid *drm_hdmi_get_edid(struct device *dev,
{ {
struct drm_hdmi_context *ctx = to_context(dev); struct drm_hdmi_context *ctx = to_context(dev);
DRM_DEBUG_KMS("%s\n", __FILE__);
if (hdmi_ops && hdmi_ops->get_edid) if (hdmi_ops && hdmi_ops->get_edid)
return hdmi_ops->get_edid(ctx->hdmi_ctx->ctx, connector); return hdmi_ops->get_edid(ctx->hdmi_ctx->ctx, connector);
@ -133,8 +125,6 @@ static int drm_hdmi_check_mode(struct device *dev,
struct drm_hdmi_context *ctx = to_context(dev); struct drm_hdmi_context *ctx = to_context(dev);
int ret = 0; int ret = 0;
DRM_DEBUG_KMS("%s\n", __FILE__);
/* /*
* Both, mixer and hdmi should be able to handle the requested mode. * Both, mixer and hdmi should be able to handle the requested mode.
* If any of the two fails, return mode as BAD. * 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)
{ {
struct drm_hdmi_context *ctx = to_context(dev); struct drm_hdmi_context *ctx = to_context(dev);
DRM_DEBUG_KMS("%s\n", __FILE__);
if (hdmi_ops && hdmi_ops->power_on) if (hdmi_ops && hdmi_ops->power_on)
return hdmi_ops->power_on(ctx->hdmi_ctx->ctx, mode); return hdmi_ops->power_on(ctx->hdmi_ctx->ctx, mode);
@ -178,8 +166,6 @@ static int drm_hdmi_enable_vblank(struct device *subdrv_dev)
struct exynos_drm_subdrv *subdrv = &ctx->subdrv; struct exynos_drm_subdrv *subdrv = &ctx->subdrv;
struct exynos_drm_manager *manager = subdrv->manager; struct exynos_drm_manager *manager = subdrv->manager;
DRM_DEBUG_KMS("%s\n", __FILE__);
if (mixer_ops && mixer_ops->enable_vblank) if (mixer_ops && mixer_ops->enable_vblank)
return mixer_ops->enable_vblank(ctx->mixer_ctx->ctx, return mixer_ops->enable_vblank(ctx->mixer_ctx->ctx,
manager->pipe); manager->pipe);
@ -191,8 +177,6 @@ static void drm_hdmi_disable_vblank(struct device *subdrv_dev)
{ {
struct drm_hdmi_context *ctx = to_context(subdrv_dev); struct drm_hdmi_context *ctx = to_context(subdrv_dev);
DRM_DEBUG_KMS("%s\n", __FILE__);
if (mixer_ops && mixer_ops->disable_vblank) if (mixer_ops && mixer_ops->disable_vblank)
return mixer_ops->disable_vblank(ctx->mixer_ctx->ctx); return mixer_ops->disable_vblank(ctx->mixer_ctx->ctx);
} }
@ -201,8 +185,6 @@ static void drm_hdmi_wait_for_vblank(struct device *subdrv_dev)
{ {
struct drm_hdmi_context *ctx = to_context(subdrv_dev); struct drm_hdmi_context *ctx = to_context(subdrv_dev);
DRM_DEBUG_KMS("%s\n", __FILE__);
if (mixer_ops && mixer_ops->wait_for_vblank) if (mixer_ops && mixer_ops->wait_for_vblank)
mixer_ops->wait_for_vblank(ctx->mixer_ctx->ctx); mixer_ops->wait_for_vblank(ctx->mixer_ctx->ctx);
} }
@ -215,8 +197,6 @@ static void drm_hdmi_mode_fixup(struct device *subdrv_dev,
struct drm_display_mode *m; struct drm_display_mode *m;
int mode_ok; int mode_ok;
DRM_DEBUG_KMS("%s\n", __FILE__);
drm_mode_set_crtcinfo(adjusted_mode, 0); drm_mode_set_crtcinfo(adjusted_mode, 0);
mode_ok = drm_hdmi_check_mode(subdrv_dev, adjusted_mode); 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)
{ {
struct drm_hdmi_context *ctx = to_context(subdrv_dev); struct drm_hdmi_context *ctx = to_context(subdrv_dev);
DRM_DEBUG_KMS("%s\n", __FILE__);
if (hdmi_ops && hdmi_ops->mode_set) if (hdmi_ops && hdmi_ops->mode_set)
hdmi_ops->mode_set(ctx->hdmi_ctx->ctx, mode); hdmi_ops->mode_set(ctx->hdmi_ctx->ctx, mode);
} }
@ -268,8 +246,6 @@ static void drm_hdmi_get_max_resol(struct device *subdrv_dev,
{ {
struct drm_hdmi_context *ctx = to_context(subdrv_dev); struct drm_hdmi_context *ctx = to_context(subdrv_dev);
DRM_DEBUG_KMS("%s\n", __FILE__);
if (hdmi_ops && hdmi_ops->get_max_resol) if (hdmi_ops && hdmi_ops->get_max_resol)
hdmi_ops->get_max_resol(ctx->hdmi_ctx->ctx, width, height); hdmi_ops->get_max_resol(ctx->hdmi_ctx->ctx, width, height);
} }
@ -278,8 +254,6 @@ static void drm_hdmi_commit(struct device *subdrv_dev)
{ {
struct drm_hdmi_context *ctx = to_context(subdrv_dev); struct drm_hdmi_context *ctx = to_context(subdrv_dev);
DRM_DEBUG_KMS("%s\n", __FILE__);
if (hdmi_ops && hdmi_ops->commit) if (hdmi_ops && hdmi_ops->commit)
hdmi_ops->commit(ctx->hdmi_ctx->ctx); hdmi_ops->commit(ctx->hdmi_ctx->ctx);
} }
@ -288,8 +262,6 @@ static void drm_hdmi_dpms(struct device *subdrv_dev, int mode)
{ {
struct drm_hdmi_context *ctx = to_context(subdrv_dev); struct drm_hdmi_context *ctx = to_context(subdrv_dev);
DRM_DEBUG_KMS("%s\n", __FILE__);
if (mixer_ops && mixer_ops->dpms) if (mixer_ops && mixer_ops->dpms)
mixer_ops->dpms(ctx->mixer_ctx->ctx, mode); mixer_ops->dpms(ctx->mixer_ctx->ctx, mode);
@ -302,8 +274,6 @@ static void drm_hdmi_apply(struct device *subdrv_dev)
struct drm_hdmi_context *ctx = to_context(subdrv_dev); struct drm_hdmi_context *ctx = to_context(subdrv_dev);
int i; int i;
DRM_DEBUG_KMS("%s\n", __FILE__);
for (i = 0; i < MIXER_WIN_NR; i++) { for (i = 0; i < MIXER_WIN_NR; i++) {
if (!ctx->enabled[i]) if (!ctx->enabled[i])
continue; continue;
@ -332,8 +302,6 @@ static void drm_mixer_mode_set(struct device *subdrv_dev,
{ {
struct drm_hdmi_context *ctx = to_context(subdrv_dev); struct drm_hdmi_context *ctx = to_context(subdrv_dev);
DRM_DEBUG_KMS("%s\n", __FILE__);
if (mixer_ops && mixer_ops->win_mode_set) if (mixer_ops && mixer_ops->win_mode_set)
mixer_ops->win_mode_set(ctx->mixer_ctx->ctx, overlay); mixer_ops->win_mode_set(ctx->mixer_ctx->ctx, overlay);
} }
@ -343,8 +311,6 @@ static void drm_mixer_commit(struct device *subdrv_dev, int zpos)
struct drm_hdmi_context *ctx = to_context(subdrv_dev); struct drm_hdmi_context *ctx = to_context(subdrv_dev);
int win = (zpos == DEFAULT_ZPOS) ? MIXER_DEFAULT_WIN : zpos; int win = (zpos == DEFAULT_ZPOS) ? MIXER_DEFAULT_WIN : zpos;
DRM_DEBUG_KMS("%s\n", __FILE__);
if (win < 0 || win >= MIXER_WIN_NR) { if (win < 0 || win >= MIXER_WIN_NR) {
DRM_ERROR("mixer window[%d] is wrong\n", win); DRM_ERROR("mixer window[%d] is wrong\n", win);
return; return;
@ -361,8 +327,6 @@ static void drm_mixer_disable(struct device *subdrv_dev, int zpos)
struct drm_hdmi_context *ctx = to_context(subdrv_dev); struct drm_hdmi_context *ctx = to_context(subdrv_dev);
int win = (zpos == DEFAULT_ZPOS) ? MIXER_DEFAULT_WIN : zpos; int win = (zpos == DEFAULT_ZPOS) ? MIXER_DEFAULT_WIN : zpos;
DRM_DEBUG_KMS("%s\n", __FILE__);
if (win < 0 || win >= MIXER_WIN_NR) { if (win < 0 || win >= MIXER_WIN_NR) {
DRM_ERROR("mixer window[%d] is wrong\n", win); DRM_ERROR("mixer window[%d] is wrong\n", win);
return; return;
@ -393,8 +357,6 @@ static int hdmi_subdrv_probe(struct drm_device *drm_dev,
struct exynos_drm_subdrv *subdrv = to_subdrv(dev); struct exynos_drm_subdrv *subdrv = to_subdrv(dev);
struct drm_hdmi_context *ctx; struct drm_hdmi_context *ctx;
DRM_DEBUG_KMS("%s\n", __FILE__);
if (!hdmi_ctx) { if (!hdmi_ctx) {
DRM_ERROR("hdmi context not initialized.\n"); DRM_ERROR("hdmi context not initialized.\n");
return -EFAULT; return -EFAULT;
@ -441,8 +403,6 @@ static int exynos_drm_hdmi_probe(struct platform_device *pdev)
struct exynos_drm_subdrv *subdrv; struct exynos_drm_subdrv *subdrv;
struct drm_hdmi_context *ctx; struct drm_hdmi_context *ctx;
DRM_DEBUG_KMS("%s\n", __FILE__);
ctx = devm_kzalloc(dev, sizeof(*ctx), GFP_KERNEL); ctx = devm_kzalloc(dev, sizeof(*ctx), GFP_KERNEL);
if (!ctx) { if (!ctx) {
DRM_LOG_KMS("failed to alloc common hdmi context.\n"); DRM_LOG_KMS("failed to alloc common hdmi context.\n");
@ -467,8 +427,6 @@ static int exynos_drm_hdmi_remove(struct platform_device *pdev)
{ {
struct drm_hdmi_context *ctx = platform_get_drvdata(pdev); struct drm_hdmi_context *ctx = platform_get_drvdata(pdev);
DRM_DEBUG_KMS("%s\n", __FILE__);
exynos_drm_subdrv_unregister(&ctx->subdrv); exynos_drm_subdrv_unregister(&ctx->subdrv);
return 0; return 0;

View File

@ -131,8 +131,6 @@ void exynos_platform_device_ipp_unregister(void)
int exynos_drm_ippdrv_register(struct exynos_drm_ippdrv *ippdrv) int exynos_drm_ippdrv_register(struct exynos_drm_ippdrv *ippdrv)
{ {
DRM_DEBUG_KMS("%s\n", __func__);
if (!ippdrv) if (!ippdrv)
return -EINVAL; return -EINVAL;
@ -145,8 +143,6 @@ int exynos_drm_ippdrv_register(struct exynos_drm_ippdrv *ippdrv)
int exynos_drm_ippdrv_unregister(struct exynos_drm_ippdrv *ippdrv) int exynos_drm_ippdrv_unregister(struct exynos_drm_ippdrv *ippdrv)
{ {
DRM_DEBUG_KMS("%s\n", __func__);
if (!ippdrv) if (!ippdrv)
return -EINVAL; return -EINVAL;
@ -162,8 +158,6 @@ static int ipp_create_id(struct idr *id_idr, struct mutex *lock, void *obj,
{ {
int ret; int ret;
DRM_DEBUG_KMS("%s\n", __func__);
/* do the allocation under our mutexlock */ /* do the allocation under our mutexlock */
mutex_lock(lock); mutex_lock(lock);
ret = idr_alloc(id_idr, obj, 1, 0, GFP_KERNEL); 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,
struct exynos_drm_ippdrv *ippdrv; struct exynos_drm_ippdrv *ippdrv;
int count = 0; int count = 0;
DRM_DEBUG_KMS("%s\n", __func__);
if (!ctx) { if (!ctx) {
DRM_ERROR("invalid context.\n"); DRM_ERROR("invalid context.\n");
return -EINVAL; return -EINVAL;
@ -418,8 +410,6 @@ static struct drm_exynos_ipp_cmd_work *ipp_create_cmd_work(void)
{ {
struct drm_exynos_ipp_cmd_work *cmd_work; struct drm_exynos_ipp_cmd_work *cmd_work;
DRM_DEBUG_KMS("%s\n", __func__);
cmd_work = kzalloc(sizeof(*cmd_work), GFP_KERNEL); cmd_work = kzalloc(sizeof(*cmd_work), GFP_KERNEL);
if (!cmd_work) { if (!cmd_work) {
DRM_ERROR("failed to alloc cmd_work.\n"); DRM_ERROR("failed to alloc cmd_work.\n");
@ -435,8 +425,6 @@ static struct drm_exynos_ipp_event_work *ipp_create_event_work(void)
{ {
struct drm_exynos_ipp_event_work *event_work; struct drm_exynos_ipp_event_work *event_work;
DRM_DEBUG_KMS("%s\n", __func__);
event_work = kzalloc(sizeof(*event_work), GFP_KERNEL); event_work = kzalloc(sizeof(*event_work), GFP_KERNEL);
if (!event_work) { if (!event_work) {
DRM_ERROR("failed to alloc event_work.\n"); 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,
struct drm_exynos_ipp_cmd_node *c_node; struct drm_exynos_ipp_cmd_node *c_node;
int ret, i; int ret, i;
DRM_DEBUG_KMS("%s\n", __func__);
if (!ctx) { if (!ctx) {
DRM_ERROR("invalid context.\n"); DRM_ERROR("invalid context.\n");
return -EINVAL; return -EINVAL;
@ -569,8 +555,6 @@ int exynos_drm_ipp_set_property(struct drm_device *drm_dev, void *data,
static void ipp_clean_cmd_node(struct drm_exynos_ipp_cmd_node *c_node) static void ipp_clean_cmd_node(struct drm_exynos_ipp_cmd_node *c_node)
{ {
DRM_DEBUG_KMS("%s\n", __func__);
/* delete list */ /* delete list */
list_del(&c_node->list); list_del(&c_node->list);
@ -593,8 +577,6 @@ static int ipp_check_mem_list(struct drm_exynos_ipp_cmd_node *c_node)
struct list_head *head; struct list_head *head;
int ret, i, count[EXYNOS_DRM_OPS_MAX] = { 0, }; int ret, i, count[EXYNOS_DRM_OPS_MAX] = { 0, };
DRM_DEBUG_KMS("%s\n", __func__);
mutex_lock(&c_node->mem_lock); mutex_lock(&c_node->mem_lock);
for_each_ipp_ops(i) { for_each_ipp_ops(i) {
@ -714,8 +696,6 @@ static struct drm_exynos_ipp_mem_node
void *addr; void *addr;
int i; int i;
DRM_DEBUG_KMS("%s\n", __func__);
mutex_lock(&c_node->mem_lock); mutex_lock(&c_node->mem_lock);
m_node = kzalloc(sizeof(*m_node), GFP_KERNEL); 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,
struct drm_exynos_ipp_send_event *e, *te; struct drm_exynos_ipp_send_event *e, *te;
int count = 0; int count = 0;
DRM_DEBUG_KMS("%s\n", __func__);
if (list_empty(&c_node->event_list)) { if (list_empty(&c_node->event_list)) {
DRM_DEBUG_KMS("%s:event_list is empty.\n", __func__); DRM_DEBUG_KMS("%s:event_list is empty.\n", __func__);
return; return;
@ -912,8 +890,6 @@ static int ipp_queue_buf_with_run(struct device *dev,
struct exynos_drm_ipp_ops *ops; struct exynos_drm_ipp_ops *ops;
int ret; int ret;
DRM_DEBUG_KMS("%s\n", __func__);
ippdrv = ipp_find_drv_by_handle(qbuf->prop_id); ippdrv = ipp_find_drv_by_handle(qbuf->prop_id);
if (IS_ERR(ippdrv)) { if (IS_ERR(ippdrv)) {
DRM_ERROR("failed to get ipp driver.\n"); DRM_ERROR("failed to get ipp driver.\n");
@ -964,8 +940,6 @@ static void ipp_clean_queue_buf(struct drm_device *drm_dev,
{ {
struct drm_exynos_ipp_mem_node *m_node, *tm_node; struct drm_exynos_ipp_mem_node *m_node, *tm_node;
DRM_DEBUG_KMS("%s\n", __func__);
if (!list_empty(&c_node->mem_list[qbuf->ops_id])) { if (!list_empty(&c_node->mem_list[qbuf->ops_id])) {
/* delete list */ /* delete list */
list_for_each_entry_safe(m_node, tm_node, 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,
struct drm_exynos_ipp_mem_node *m_node; struct drm_exynos_ipp_mem_node *m_node;
int ret; int ret;
DRM_DEBUG_KMS("%s\n", __func__);
if (!qbuf) { if (!qbuf) {
DRM_ERROR("invalid buf parameter.\n"); DRM_ERROR("invalid buf parameter.\n");
return -EINVAL; return -EINVAL;
@ -1075,8 +1047,6 @@ int exynos_drm_ipp_queue_buf(struct drm_device *drm_dev, void *data,
static bool exynos_drm_ipp_check_valid(struct device *dev, static bool exynos_drm_ipp_check_valid(struct device *dev,
enum drm_exynos_ipp_ctrl ctrl, enum drm_exynos_ipp_state state) enum drm_exynos_ipp_ctrl ctrl, enum drm_exynos_ipp_state state)
{ {
DRM_DEBUG_KMS("%s\n", __func__);
if (ctrl != IPP_CTRL_PLAY) { if (ctrl != IPP_CTRL_PLAY) {
if (pm_runtime_suspended(dev)) { if (pm_runtime_suspended(dev)) {
DRM_ERROR("pm:runtime_suspended.\n"); DRM_ERROR("pm:runtime_suspended.\n");
@ -1126,8 +1096,6 @@ int exynos_drm_ipp_cmd_ctrl(struct drm_device *drm_dev, void *data,
struct drm_exynos_ipp_cmd_work *cmd_work; struct drm_exynos_ipp_cmd_work *cmd_work;
struct drm_exynos_ipp_cmd_node *c_node; struct drm_exynos_ipp_cmd_node *c_node;
DRM_DEBUG_KMS("%s\n", __func__);
if (!ctx) { if (!ctx) {
DRM_ERROR("invalid context.\n"); DRM_ERROR("invalid context.\n");
return -EINVAL; return -EINVAL;
@ -1491,8 +1459,6 @@ void ipp_sched_cmd(struct work_struct *work)
struct drm_exynos_ipp_property *property; struct drm_exynos_ipp_property *property;
int ret; int ret;
DRM_DEBUG_KMS("%s\n", __func__);
ippdrv = cmd_work->ippdrv; ippdrv = cmd_work->ippdrv;
if (!ippdrv) { if (!ippdrv) {
DRM_ERROR("invalid ippdrv list.\n"); DRM_ERROR("invalid ippdrv list.\n");
@ -1759,8 +1725,6 @@ static int ipp_subdrv_probe(struct drm_device *drm_dev, struct device *dev)
struct exynos_drm_ippdrv *ippdrv; struct exynos_drm_ippdrv *ippdrv;
int ret, count = 0; int ret, count = 0;
DRM_DEBUG_KMS("%s\n", __func__);
/* get ipp driver entry */ /* get ipp driver entry */
list_for_each_entry(ippdrv, &exynos_drm_ippdrv_list, drv_list) { list_for_each_entry(ippdrv, &exynos_drm_ippdrv_list, drv_list) {
ippdrv->drm_dev = drm_dev; ippdrv->drm_dev = drm_dev;
@ -1816,8 +1780,6 @@ static void ipp_subdrv_remove(struct drm_device *drm_dev, struct device *dev)
{ {
struct exynos_drm_ippdrv *ippdrv; struct exynos_drm_ippdrv *ippdrv;
DRM_DEBUG_KMS("%s\n", __func__);
/* get ipp driver entry */ /* get ipp driver entry */
list_for_each_entry(ippdrv, &exynos_drm_ippdrv_list, drv_list) { list_for_each_entry(ippdrv, &exynos_drm_ippdrv_list, drv_list) {
if (is_drm_iommu_supported(drm_dev)) if (is_drm_iommu_supported(drm_dev))
@ -1834,8 +1796,6 @@ static int ipp_subdrv_open(struct drm_device *drm_dev, struct device *dev,
struct drm_exynos_file_private *file_priv = file->driver_priv; struct drm_exynos_file_private *file_priv = file->driver_priv;
struct exynos_drm_ipp_private *priv; struct exynos_drm_ipp_private *priv;
DRM_DEBUG_KMS("%s\n", __func__);
priv = kzalloc(sizeof(*priv), GFP_KERNEL); priv = kzalloc(sizeof(*priv), GFP_KERNEL);
if (!priv) { if (!priv) {
DRM_ERROR("failed to allocate priv.\n"); DRM_ERROR("failed to allocate priv.\n");
@ -1913,8 +1873,6 @@ static int ipp_probe(struct platform_device *pdev)
if (!ctx) if (!ctx)
return -ENOMEM; return -ENOMEM;
DRM_DEBUG_KMS("%s\n", __func__);
mutex_init(&ctx->ipp_lock); mutex_init(&ctx->ipp_lock);
mutex_init(&ctx->prop_lock); mutex_init(&ctx->prop_lock);
@ -1978,8 +1936,6 @@ static int ipp_remove(struct platform_device *pdev)
{ {
struct ipp_context *ctx = platform_get_drvdata(pdev); struct ipp_context *ctx = platform_get_drvdata(pdev);
DRM_DEBUG_KMS("%s\n", __func__);
/* unregister sub driver */ /* unregister sub driver */
exynos_drm_subdrv_unregister(&ctx->subdrv); exynos_drm_subdrv_unregister(&ctx->subdrv);
@ -2009,8 +1965,6 @@ static int ipp_suspend(struct device *dev)
{ {
struct ipp_context *ctx = get_ipp_context(dev); struct ipp_context *ctx = get_ipp_context(dev);
DRM_DEBUG_KMS("%s\n", __func__);
if (pm_runtime_suspended(dev)) if (pm_runtime_suspended(dev))
return 0; return 0;
@ -2021,8 +1975,6 @@ static int ipp_resume(struct device *dev)
{ {
struct ipp_context *ctx = get_ipp_context(dev); struct ipp_context *ctx = get_ipp_context(dev);
DRM_DEBUG_KMS("%s\n", __func__);
if (!pm_runtime_suspended(dev)) if (!pm_runtime_suspended(dev))
return ipp_power_ctrl(ctx, true); return ipp_power_ctrl(ctx, true);
@ -2035,8 +1987,6 @@ static int ipp_runtime_suspend(struct device *dev)
{ {
struct ipp_context *ctx = get_ipp_context(dev); struct ipp_context *ctx = get_ipp_context(dev);
DRM_DEBUG_KMS("%s\n", __func__);
return ipp_power_ctrl(ctx, false); return ipp_power_ctrl(ctx, false);
} }
@ -2044,8 +1994,6 @@ static int ipp_runtime_resume(struct device *dev)
{ {
struct ipp_context *ctx = get_ipp_context(dev); struct ipp_context *ctx = get_ipp_context(dev);
DRM_DEBUG_KMS("%s\n", __func__);
return ipp_power_ctrl(ctx, true); return ipp_power_ctrl(ctx, true);
} }
#endif #endif

View File

@ -81,8 +81,6 @@ int exynos_plane_mode_set(struct drm_plane *plane, struct drm_crtc *crtc,
int nr; int nr;
int i; int i;
DRM_DEBUG_KMS("[%d] %s\n", __LINE__, __func__);
nr = exynos_drm_fb_get_buf_cnt(fb); nr = exynos_drm_fb_get_buf_cnt(fb);
for (i = 0; i < nr; i++) { for (i = 0; i < nr; i++) {
struct exynos_drm_gem_buf *buffer = exynos_drm_fb_buffer(fb, i); 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)
struct exynos_plane *exynos_plane = to_exynos_plane(plane); struct exynos_plane *exynos_plane = to_exynos_plane(plane);
struct exynos_drm_overlay *overlay = &exynos_plane->overlay; struct exynos_drm_overlay *overlay = &exynos_plane->overlay;
DRM_DEBUG_KMS("[%d] %s\n", __LINE__, __func__);
if (mode == DRM_MODE_DPMS_ON) { if (mode == DRM_MODE_DPMS_ON) {
if (exynos_plane->enabled) if (exynos_plane->enabled)
return; return;
@ -189,8 +185,6 @@ exynos_update_plane(struct drm_plane *plane, struct drm_crtc *crtc,
{ {
int ret; int ret;
DRM_DEBUG_KMS("[%d] %s\n", __LINE__, __func__);
ret = exynos_plane_mode_set(plane, crtc, fb, crtc_x, crtc_y, ret = exynos_plane_mode_set(plane, crtc, fb, crtc_x, crtc_y,
crtc_w, crtc_h, src_x >> 16, src_y >> 16, crtc_w, crtc_h, src_x >> 16, src_y >> 16,
src_w >> 16, src_h >> 16); src_w >> 16, src_h >> 16);
@ -207,8 +201,6 @@ exynos_update_plane(struct drm_plane *plane, struct drm_crtc *crtc,
static int exynos_disable_plane(struct drm_plane *plane) static int exynos_disable_plane(struct drm_plane *plane)
{ {
DRM_DEBUG_KMS("[%d] %s\n", __LINE__, __func__);
exynos_plane_dpms(plane, DRM_MODE_DPMS_OFF); exynos_plane_dpms(plane, DRM_MODE_DPMS_OFF);
return 0; return 0;
@ -218,8 +210,6 @@ static void exynos_plane_destroy(struct drm_plane *plane)
{ {
struct exynos_plane *exynos_plane = to_exynos_plane(plane); struct exynos_plane *exynos_plane = to_exynos_plane(plane);
DRM_DEBUG_KMS("[%d] %s\n", __LINE__, __func__);
exynos_disable_plane(plane); exynos_disable_plane(plane);
drm_plane_cleanup(plane); drm_plane_cleanup(plane);
kfree(exynos_plane); kfree(exynos_plane);
@ -233,8 +223,6 @@ static int exynos_plane_set_property(struct drm_plane *plane,
struct exynos_plane *exynos_plane = to_exynos_plane(plane); struct exynos_plane *exynos_plane = to_exynos_plane(plane);
struct exynos_drm_private *dev_priv = dev->dev_private; struct exynos_drm_private *dev_priv = dev->dev_private;
DRM_DEBUG_KMS("[%d] %s\n", __LINE__, __func__);
if (property == dev_priv->plane_zpos_property) { if (property == dev_priv->plane_zpos_property) {
exynos_plane->overlay.zpos = val; exynos_plane->overlay.zpos = val;
return 0; return 0;
@ -256,8 +244,6 @@ static void exynos_plane_attach_zpos_property(struct drm_plane *plane)
struct exynos_drm_private *dev_priv = dev->dev_private; struct exynos_drm_private *dev_priv = dev->dev_private;
struct drm_property *prop; struct drm_property *prop;
DRM_DEBUG_KMS("[%d] %s\n", __LINE__, __func__);
prop = dev_priv->plane_zpos_property; prop = dev_priv->plane_zpos_property;
if (!prop) { if (!prop) {
prop = drm_property_create_range(dev, 0, "zpos", 0, prop = drm_property_create_range(dev, 0, "zpos", 0,
@ -277,8 +263,6 @@ struct drm_plane *exynos_plane_init(struct drm_device *dev,
struct exynos_plane *exynos_plane; struct exynos_plane *exynos_plane;
int err; int err;
DRM_DEBUG_KMS("[%d] %s\n", __LINE__, __func__);
exynos_plane = kzalloc(sizeof(struct exynos_plane), GFP_KERNEL); exynos_plane = kzalloc(sizeof(struct exynos_plane), GFP_KERNEL);
if (!exynos_plane) { if (!exynos_plane) {
DRM_ERROR("failed to allocate plane\n"); DRM_ERROR("failed to allocate plane\n");

View File

@ -471,8 +471,6 @@ static int rotator_init_prop_list(struct exynos_drm_ippdrv *ippdrv)
{ {
struct drm_exynos_ipp_prop_list *prop_list; struct drm_exynos_ipp_prop_list *prop_list;
DRM_DEBUG_KMS("%s\n", __func__);
prop_list = devm_kzalloc(ippdrv->dev, sizeof(*prop_list), GFP_KERNEL); prop_list = devm_kzalloc(ippdrv->dev, sizeof(*prop_list), GFP_KERNEL);
if (!prop_list) { if (!prop_list) {
DRM_ERROR("failed to alloc property list.\n"); DRM_ERROR("failed to alloc property list.\n");
@ -752,8 +750,6 @@ static struct platform_device_id rotator_driver_ids[] = {
static int rotator_clk_crtl(struct rot_context *rot, bool enable) static int rotator_clk_crtl(struct rot_context *rot, bool enable)
{ {
DRM_DEBUG_KMS("%s\n", __func__);
if (enable) { if (enable) {
clk_enable(rot->clock); clk_enable(rot->clock);
rot->suspended = false; rot->suspended = false;
@ -771,8 +767,6 @@ static int rotator_suspend(struct device *dev)
{ {
struct rot_context *rot = dev_get_drvdata(dev); struct rot_context *rot = dev_get_drvdata(dev);
DRM_DEBUG_KMS("%s\n", __func__);
if (pm_runtime_suspended(dev)) if (pm_runtime_suspended(dev))
return 0; return 0;
@ -783,8 +777,6 @@ static int rotator_resume(struct device *dev)
{ {
struct rot_context *rot = dev_get_drvdata(dev); struct rot_context *rot = dev_get_drvdata(dev);
DRM_DEBUG_KMS("%s\n", __func__);
if (!pm_runtime_suspended(dev)) if (!pm_runtime_suspended(dev))
return rotator_clk_crtl(rot, true); return rotator_clk_crtl(rot, true);
@ -797,8 +789,6 @@ static int rotator_runtime_suspend(struct device *dev)
{ {
struct rot_context *rot = dev_get_drvdata(dev); struct rot_context *rot = dev_get_drvdata(dev);
DRM_DEBUG_KMS("%s\n", __func__);
return rotator_clk_crtl(rot, false); return rotator_clk_crtl(rot, false);
} }
@ -806,8 +796,6 @@ static int rotator_runtime_resume(struct device *dev)
{ {
struct rot_context *rot = dev_get_drvdata(dev); struct rot_context *rot = dev_get_drvdata(dev);
DRM_DEBUG_KMS("%s\n", __func__);
return rotator_clk_crtl(rot, true); return rotator_clk_crtl(rot, true);
} }
#endif #endif

View File

@ -89,8 +89,6 @@ static bool vidi_display_is_connected(struct device *dev)
{ {
struct vidi_context *ctx = get_vidi_context(dev); struct vidi_context *ctx = get_vidi_context(dev);
DRM_DEBUG_KMS("%s\n", __FILE__);
/* /*
* connection request would come from user side * connection request would come from user side
* to do hotplug through specific ioctl. * to do hotplug through specific ioctl.
@ -105,8 +103,6 @@ static struct edid *vidi_get_edid(struct device *dev,
struct edid *edid; struct edid *edid;
int edid_len; int edid_len;
DRM_DEBUG_KMS("%s\n", __FILE__);
/* /*
* the edid data comes from user side and it would be set * the edid data comes from user side and it would be set
* to ctx->raw_edid through specific ioctl. * to ctx->raw_edid through specific ioctl.
@ -128,8 +124,6 @@ static struct edid *vidi_get_edid(struct device *dev,
static void *vidi_get_panel(struct device *dev) static void *vidi_get_panel(struct device *dev)
{ {
DRM_DEBUG_KMS("%s\n", __FILE__);
/* TODO. */ /* TODO. */
return NULL; return NULL;
@ -137,8 +131,6 @@ static void *vidi_get_panel(struct device *dev)
static int vidi_check_mode(struct device *dev, struct drm_display_mode *mode) static int vidi_check_mode(struct device *dev, struct drm_display_mode *mode)
{ {
DRM_DEBUG_KMS("%s\n", __FILE__);
/* TODO. */ /* TODO. */
return 0; return 0;
@ -146,8 +138,6 @@ static int vidi_check_mode(struct device *dev, struct drm_display_mode *mode)
static int vidi_display_power_on(struct device *dev, int mode) static int vidi_display_power_on(struct device *dev, int mode)
{ {
DRM_DEBUG_KMS("%s\n", __FILE__);
/* TODO */ /* TODO */
return 0; return 0;
@ -166,7 +156,7 @@ static void vidi_dpms(struct device *subdrv_dev, int mode)
{ {
struct vidi_context *ctx = get_vidi_context(subdrv_dev); struct vidi_context *ctx = get_vidi_context(subdrv_dev);
DRM_DEBUG_KMS("%s, %d\n", __FILE__, mode); DRM_DEBUG_KMS("%d\n", mode);
mutex_lock(&ctx->lock); mutex_lock(&ctx->lock);
@ -196,8 +186,6 @@ static void vidi_apply(struct device *subdrv_dev)
struct vidi_win_data *win_data; struct vidi_win_data *win_data;
int i; int i;
DRM_DEBUG_KMS("%s\n", __FILE__);
for (i = 0; i < WINDOWS_NR; i++) { for (i = 0; i < WINDOWS_NR; i++) {
win_data = &ctx->win_data[i]; win_data = &ctx->win_data[i];
if (win_data->enabled && (ovl_ops && ovl_ops->commit)) if (win_data->enabled && (ovl_ops && ovl_ops->commit))
@ -212,8 +200,6 @@ static void vidi_commit(struct device *dev)
{ {
struct vidi_context *ctx = get_vidi_context(dev); struct vidi_context *ctx = get_vidi_context(dev);
DRM_DEBUG_KMS("%s\n", __FILE__);
if (ctx->suspended) if (ctx->suspended)
return; return;
} }
@ -222,8 +208,6 @@ static int vidi_enable_vblank(struct device *dev)
{ {
struct vidi_context *ctx = get_vidi_context(dev); struct vidi_context *ctx = get_vidi_context(dev);
DRM_DEBUG_KMS("%s\n", __FILE__);
if (ctx->suspended) if (ctx->suspended)
return -EPERM; return -EPERM;
@ -246,8 +230,6 @@ static void vidi_disable_vblank(struct device *dev)
{ {
struct vidi_context *ctx = get_vidi_context(dev); struct vidi_context *ctx = get_vidi_context(dev);
DRM_DEBUG_KMS("%s\n", __FILE__);
if (ctx->suspended) if (ctx->suspended)
return; return;
@ -271,8 +253,6 @@ static void vidi_win_mode_set(struct device *dev,
int win; int win;
unsigned long offset; unsigned long offset;
DRM_DEBUG_KMS("%s\n", __FILE__);
if (!overlay) { if (!overlay) {
dev_err(dev, "overlay is NULL\n"); dev_err(dev, "overlay is NULL\n");
return; return;
@ -324,8 +304,6 @@ static void vidi_win_commit(struct device *dev, int zpos)
struct vidi_win_data *win_data; struct vidi_win_data *win_data;
int win = zpos; int win = zpos;
DRM_DEBUG_KMS("%s\n", __FILE__);
if (ctx->suspended) if (ctx->suspended)
return; return;
@ -351,8 +329,6 @@ static void vidi_win_disable(struct device *dev, int zpos)
struct vidi_win_data *win_data; struct vidi_win_data *win_data;
int win = zpos; int win = zpos;
DRM_DEBUG_KMS("%s\n", __FILE__);
if (win == DEFAULT_ZPOS) if (win == DEFAULT_ZPOS)
win = ctx->default_win; win = ctx->default_win;
@ -407,8 +383,6 @@ static void vidi_fake_vblank_handler(struct work_struct *work)
static int vidi_subdrv_probe(struct drm_device *drm_dev, struct device *dev) static int vidi_subdrv_probe(struct drm_device *drm_dev, struct device *dev)
{ {
DRM_DEBUG_KMS("%s\n", __FILE__);
/* /*
* enable drm irq mode. * enable drm irq mode.
* - with irq_enabled = 1, we can use the vblank feature. * - 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)
static void vidi_subdrv_remove(struct drm_device *drm_dev, struct device *dev) static void vidi_subdrv_remove(struct drm_device *drm_dev, struct device *dev)
{ {
DRM_DEBUG_KMS("%s\n", __FILE__);
/* TODO. */ /* TODO. */
} }
@ -441,8 +413,6 @@ static int vidi_power_on(struct vidi_context *ctx, bool enable)
struct exynos_drm_subdrv *subdrv = &ctx->subdrv; struct exynos_drm_subdrv *subdrv = &ctx->subdrv;
struct device *dev = subdrv->dev; struct device *dev = subdrv->dev;
DRM_DEBUG_KMS("%s\n", __FILE__);
if (enable != false && enable != true) if (enable != false && enable != true)
return -EINVAL; return -EINVAL;
@ -483,8 +453,6 @@ static int vidi_store_connection(struct device *dev,
struct vidi_context *ctx = get_vidi_context(dev); struct vidi_context *ctx = get_vidi_context(dev);
int ret; int ret;
DRM_DEBUG_KMS("%s\n", __FILE__);
ret = kstrtoint(buf, 0, &ctx->connected); ret = kstrtoint(buf, 0, &ctx->connected);
if (ret) if (ret)
return ret; return ret;
@ -522,8 +490,6 @@ int vidi_connection_ioctl(struct drm_device *drm_dev, void *data,
struct drm_exynos_vidi_connection *vidi = data; struct drm_exynos_vidi_connection *vidi = data;
int edid_len; int edid_len;
DRM_DEBUG_KMS("%s\n", __FILE__);
if (!vidi) { if (!vidi) {
DRM_DEBUG_KMS("user data for vidi is null.\n"); DRM_DEBUG_KMS("user data for vidi is null.\n");
return -EINVAL; return -EINVAL;
@ -592,8 +558,6 @@ static int vidi_probe(struct platform_device *pdev)
struct exynos_drm_subdrv *subdrv; struct exynos_drm_subdrv *subdrv;
int ret; int ret;
DRM_DEBUG_KMS("%s\n", __FILE__);
ctx = devm_kzalloc(dev, sizeof(*ctx), GFP_KERNEL); ctx = devm_kzalloc(dev, sizeof(*ctx), GFP_KERNEL);
if (!ctx) if (!ctx)
return -ENOMEM; return -ENOMEM;
@ -625,8 +589,6 @@ static int vidi_remove(struct platform_device *pdev)
{ {
struct vidi_context *ctx = platform_get_drvdata(pdev); struct vidi_context *ctx = platform_get_drvdata(pdev);
DRM_DEBUG_KMS("%s\n", __FILE__);
exynos_drm_subdrv_unregister(&ctx->subdrv); exynos_drm_subdrv_unregister(&ctx->subdrv);
if (ctx->raw_edid != (struct edid *)fake_edid_info) { if (ctx->raw_edid != (struct edid *)fake_edid_info) {

View File

@ -689,8 +689,6 @@ static void hdmi_reg_infoframe(struct hdmi_context *hdata,
u32 mod; u32 mod;
u32 vic; u32 vic;
DRM_DEBUG_KMS("[%d] %s\n", __LINE__, __func__);
mod = hdmi_reg_read(hdata, HDMI_MODE_SEL); mod = hdmi_reg_read(hdata, HDMI_MODE_SEL);
if (hdata->dvi_mode) { if (hdata->dvi_mode) {
hdmi_reg_writeb(hdata, HDMI_VSI_CON, hdmi_reg_writeb(hdata, HDMI_VSI_CON,
@ -755,8 +753,6 @@ static struct edid *hdmi_get_edid(void *ctx, struct drm_connector *connector)
struct edid *raw_edid; struct edid *raw_edid;
struct hdmi_context *hdata = ctx; struct hdmi_context *hdata = ctx;
DRM_DEBUG_KMS("[%d] %s\n", __LINE__, __func__);
if (!hdata->ddc_port) if (!hdata->ddc_port)
return ERR_PTR(-ENODEV); return ERR_PTR(-ENODEV);
@ -777,8 +773,6 @@ static int hdmi_find_phy_conf(struct hdmi_context *hdata, u32 pixel_clock)
const struct hdmiphy_config *confs; const struct hdmiphy_config *confs;
int count, i; int count, i;
DRM_DEBUG_KMS("[%d] %s\n", __LINE__, __func__);
if (hdata->type == HDMI_TYPE13) { if (hdata->type == HDMI_TYPE13) {
confs = hdmiphy_v13_configs; confs = hdmiphy_v13_configs;
count = ARRAY_SIZE(hdmiphy_v13_configs); count = ARRAY_SIZE(hdmiphy_v13_configs);
@ -1335,8 +1329,6 @@ static void hdmiphy_conf_reset(struct hdmi_context *hdata)
static void hdmiphy_poweron(struct hdmi_context *hdata) static void hdmiphy_poweron(struct hdmi_context *hdata)
{ {
DRM_DEBUG_KMS("[%d] %s\n", __LINE__, __func__);
if (hdata->type == HDMI_TYPE14) if (hdata->type == HDMI_TYPE14)
hdmi_reg_writemask(hdata, HDMI_PHY_CON_0, 0, hdmi_reg_writemask(hdata, HDMI_PHY_CON_0, 0,
HDMI_PHY_POWER_OFF_EN); HDMI_PHY_POWER_OFF_EN);
@ -1344,8 +1336,6 @@ static void hdmiphy_poweron(struct hdmi_context *hdata)
static void hdmiphy_poweroff(struct hdmi_context *hdata) static void hdmiphy_poweroff(struct hdmi_context *hdata)
{ {
DRM_DEBUG_KMS("[%d] %s\n", __LINE__, __func__);
if (hdata->type == HDMI_TYPE14) if (hdata->type == HDMI_TYPE14)
hdmi_reg_writemask(hdata, HDMI_PHY_CON_0, ~0, hdmi_reg_writemask(hdata, HDMI_PHY_CON_0, ~0,
HDMI_PHY_POWER_OFF_EN); HDMI_PHY_POWER_OFF_EN);
@ -1409,8 +1399,6 @@ static void hdmiphy_conf_apply(struct hdmi_context *hdata)
static void hdmi_conf_apply(struct hdmi_context *hdata) static void hdmi_conf_apply(struct hdmi_context *hdata)
{ {
DRM_DEBUG_KMS("[%d] %s\n", __LINE__, __func__);
hdmiphy_conf_reset(hdata); hdmiphy_conf_reset(hdata);
hdmiphy_conf_apply(hdata); hdmiphy_conf_apply(hdata);
@ -1660,8 +1648,6 @@ static void hdmi_mode_set(void *ctx, struct drm_display_mode *mode)
static void hdmi_get_max_resol(void *ctx, unsigned int *width, static void hdmi_get_max_resol(void *ctx, unsigned int *width,
unsigned int *height) unsigned int *height)
{ {
DRM_DEBUG_KMS("[%d] %s\n", __LINE__, __func__);
*width = MAX_WIDTH; *width = MAX_WIDTH;
*height = MAX_HEIGHT; *height = MAX_HEIGHT;
} }
@ -1670,8 +1656,6 @@ static void hdmi_commit(void *ctx)
{ {
struct hdmi_context *hdata = ctx; struct hdmi_context *hdata = ctx;
DRM_DEBUG_KMS("[%d] %s\n", __LINE__, __func__);
mutex_lock(&hdata->hdmi_mutex); mutex_lock(&hdata->hdmi_mutex);
if (!hdata->powered) { if (!hdata->powered) {
mutex_unlock(&hdata->hdmi_mutex); mutex_unlock(&hdata->hdmi_mutex);
@ -1686,8 +1670,6 @@ static void hdmi_poweron(struct hdmi_context *hdata)
{ {
struct hdmi_resources *res = &hdata->res; struct hdmi_resources *res = &hdata->res;
DRM_DEBUG_KMS("[%d] %s\n", __LINE__, __func__);
mutex_lock(&hdata->hdmi_mutex); mutex_lock(&hdata->hdmi_mutex);
if (hdata->powered) { if (hdata->powered) {
mutex_unlock(&hdata->hdmi_mutex); mutex_unlock(&hdata->hdmi_mutex);
@ -1712,8 +1694,6 @@ static void hdmi_poweroff(struct hdmi_context *hdata)
{ {
struct hdmi_resources *res = &hdata->res; struct hdmi_resources *res = &hdata->res;
DRM_DEBUG_KMS("[%d] %s\n", __LINE__, __func__);
mutex_lock(&hdata->hdmi_mutex); mutex_lock(&hdata->hdmi_mutex);
if (!hdata->powered) if (!hdata->powered)
goto out; goto out;
@ -1945,8 +1925,6 @@ static int hdmi_probe(struct platform_device *pdev)
struct resource *res; struct resource *res;
int ret; int ret;
DRM_DEBUG_KMS("[%d]\n", __LINE__);
if (dev->of_node) { if (dev->of_node) {
pdata = drm_hdmi_dt_parse_pdata(dev); pdata = drm_hdmi_dt_parse_pdata(dev);
if (IS_ERR(pdata)) { if (IS_ERR(pdata)) {
@ -2072,8 +2050,6 @@ static int hdmi_remove(struct platform_device *pdev)
{ {
struct device *dev = &pdev->dev; struct device *dev = &pdev->dev;
DRM_DEBUG_KMS("[%d] %s\n", __LINE__, __func__);
pm_runtime_disable(dev); pm_runtime_disable(dev);
/* hdmiphy i2c driver */ /* hdmiphy i2c driver */
@ -2090,8 +2066,6 @@ static int hdmi_suspend(struct device *dev)
struct exynos_drm_hdmi_context *ctx = get_hdmi_context(dev); struct exynos_drm_hdmi_context *ctx = get_hdmi_context(dev);
struct hdmi_context *hdata = ctx->ctx; struct hdmi_context *hdata = ctx->ctx;
DRM_DEBUG_KMS("[%d] %s\n", __LINE__, __func__);
disable_irq(hdata->irq); disable_irq(hdata->irq);
hdata->hpd = false; hdata->hpd = false;
@ -2113,8 +2087,6 @@ static int hdmi_resume(struct device *dev)
struct exynos_drm_hdmi_context *ctx = get_hdmi_context(dev); struct exynos_drm_hdmi_context *ctx = get_hdmi_context(dev);
struct hdmi_context *hdata = ctx->ctx; struct hdmi_context *hdata = ctx->ctx;
DRM_DEBUG_KMS("[%d] %s\n", __LINE__, __func__);
hdata->hpd = gpio_get_value(hdata->hpd_gpio); hdata->hpd = gpio_get_value(hdata->hpd_gpio);
enable_irq(hdata->irq); enable_irq(hdata->irq);
@ -2135,7 +2107,6 @@ static int hdmi_runtime_suspend(struct device *dev)
{ {
struct exynos_drm_hdmi_context *ctx = get_hdmi_context(dev); struct exynos_drm_hdmi_context *ctx = get_hdmi_context(dev);
struct hdmi_context *hdata = ctx->ctx; struct hdmi_context *hdata = ctx->ctx;
DRM_DEBUG_KMS("[%d] %s\n", __LINE__, __func__);
hdmi_poweroff(hdata); hdmi_poweroff(hdata);
@ -2146,7 +2117,6 @@ static int hdmi_runtime_resume(struct device *dev)
{ {
struct exynos_drm_hdmi_context *ctx = get_hdmi_context(dev); struct exynos_drm_hdmi_context *ctx = get_hdmi_context(dev);
struct hdmi_context *hdata = ctx->ctx; struct hdmi_context *hdata = ctx->ctx;
DRM_DEBUG_KMS("[%d] %s\n", __LINE__, __func__);
hdmi_poweron(hdata); hdmi_poweron(hdata);

View File

@ -696,8 +696,6 @@ static int mixer_enable_vblank(void *ctx, int pipe)
struct mixer_context *mixer_ctx = ctx; struct mixer_context *mixer_ctx = ctx;
struct mixer_resources *res = &mixer_ctx->mixer_res; struct mixer_resources *res = &mixer_ctx->mixer_res;
DRM_DEBUG_KMS("[%d] %s\n", __LINE__, __func__);
mixer_ctx->pipe = pipe; mixer_ctx->pipe = pipe;
/* enable vsync interrupt */ /* enable vsync interrupt */
@ -712,8 +710,6 @@ static void mixer_disable_vblank(void *ctx)
struct mixer_context *mixer_ctx = ctx; struct mixer_context *mixer_ctx = ctx;
struct mixer_resources *res = &mixer_ctx->mixer_res; struct mixer_resources *res = &mixer_ctx->mixer_res;
DRM_DEBUG_KMS("[%d] %s\n", __LINE__, __func__);
/* disable vsync interrupt */ /* disable vsync interrupt */
mixer_reg_writemask(res, MXR_INT_EN, 0, MXR_INT_EN_VSYNC); mixer_reg_writemask(res, MXR_INT_EN, 0, MXR_INT_EN_VSYNC);
} }
@ -725,8 +721,6 @@ static void mixer_win_mode_set(void *ctx,
struct hdmi_win_data *win_data; struct hdmi_win_data *win_data;
int win; int win;
DRM_DEBUG_KMS("[%d] %s\n", __LINE__, __func__);
if (!overlay) { if (!overlay) {
DRM_ERROR("overlay is NULL\n"); DRM_ERROR("overlay is NULL\n");
return; return;
@ -890,8 +884,6 @@ static void mixer_poweron(struct mixer_context *ctx)
{ {
struct mixer_resources *res = &ctx->mixer_res; struct mixer_resources *res = &ctx->mixer_res;
DRM_DEBUG_KMS("[%d] %s\n", __LINE__, __func__);
mutex_lock(&ctx->mixer_mutex); mutex_lock(&ctx->mixer_mutex);
if (ctx->powered) { if (ctx->powered) {
mutex_unlock(&ctx->mixer_mutex); mutex_unlock(&ctx->mixer_mutex);
@ -916,8 +908,6 @@ static void mixer_poweroff(struct mixer_context *ctx)
{ {
struct mixer_resources *res = &ctx->mixer_res; struct mixer_resources *res = &ctx->mixer_res;
DRM_DEBUG_KMS("[%d] %s\n", __LINE__, __func__);
mutex_lock(&ctx->mixer_mutex); mutex_lock(&ctx->mixer_mutex);
if (!ctx->powered) if (!ctx->powered)
goto out; goto out;
@ -944,8 +934,6 @@ static void mixer_dpms(void *ctx, int mode)
{ {
struct mixer_context *mixer_ctx = ctx; struct mixer_context *mixer_ctx = ctx;
DRM_DEBUG_KMS("[%d] %s\n", __LINE__, __func__);
switch (mode) { switch (mode) {
case DRM_MODE_DPMS_ON: case DRM_MODE_DPMS_ON:
if (pm_runtime_suspended(mixer_ctx->dev)) if (pm_runtime_suspended(mixer_ctx->dev))
@ -1249,8 +1237,6 @@ static int mixer_suspend(struct device *dev)
struct exynos_drm_hdmi_context *drm_hdmi_ctx = get_mixer_context(dev); struct exynos_drm_hdmi_context *drm_hdmi_ctx = get_mixer_context(dev);
struct mixer_context *ctx = drm_hdmi_ctx->ctx; struct mixer_context *ctx = drm_hdmi_ctx->ctx;
DRM_DEBUG_KMS("[%d] %s\n", __LINE__, __func__);
if (pm_runtime_suspended(dev)) { if (pm_runtime_suspended(dev)) {
DRM_DEBUG_KMS("%s : Already suspended\n", __func__); DRM_DEBUG_KMS("%s : Already suspended\n", __func__);
return 0; return 0;
@ -1266,8 +1252,6 @@ static int mixer_resume(struct device *dev)
struct exynos_drm_hdmi_context *drm_hdmi_ctx = get_mixer_context(dev); struct exynos_drm_hdmi_context *drm_hdmi_ctx = get_mixer_context(dev);
struct mixer_context *ctx = drm_hdmi_ctx->ctx; struct mixer_context *ctx = drm_hdmi_ctx->ctx;
DRM_DEBUG_KMS("[%d] %s\n", __LINE__, __func__);
if (!pm_runtime_suspended(dev)) { if (!pm_runtime_suspended(dev)) {
DRM_DEBUG_KMS("%s : Already resumed\n", __func__); DRM_DEBUG_KMS("%s : Already resumed\n", __func__);
return 0; return 0;
@ -1285,8 +1269,6 @@ static int mixer_runtime_suspend(struct device *dev)
struct exynos_drm_hdmi_context *drm_hdmi_ctx = get_mixer_context(dev); struct exynos_drm_hdmi_context *drm_hdmi_ctx = get_mixer_context(dev);
struct mixer_context *ctx = drm_hdmi_ctx->ctx; struct mixer_context *ctx = drm_hdmi_ctx->ctx;
DRM_DEBUG_KMS("[%d] %s\n", __LINE__, __func__);
mixer_poweroff(ctx); mixer_poweroff(ctx);
return 0; return 0;
@ -1297,8 +1279,6 @@ static int mixer_runtime_resume(struct device *dev)
struct exynos_drm_hdmi_context *drm_hdmi_ctx = get_mixer_context(dev); struct exynos_drm_hdmi_context *drm_hdmi_ctx = get_mixer_context(dev);
struct mixer_context *ctx = drm_hdmi_ctx->ctx; struct mixer_context *ctx = drm_hdmi_ctx->ctx;
DRM_DEBUG_KMS("[%d] %s\n", __LINE__, __func__);
mixer_poweron(ctx); mixer_poweron(ctx);
return 0; return 0;