From: Alan Cox Date: Tue, 5 Jul 2011 14:34:41 +0000 (+0100) Subject: gma500: trim some of the debug X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=5b7aa160079d3df276f697fa9118c3109e101cd7;p=linux-beck.git gma500: trim some of the debug Signed-off-by: Alan Cox Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/gma500/psb_fb.c b/drivers/staging/gma500/psb_fb.c index d0050253d7a4..156f8ad16c4c 100644 --- a/drivers/staging/gma500/psb_fb.c +++ b/drivers/staging/gma500/psb_fb.c @@ -727,16 +727,12 @@ static void psb_user_framebuffer_destroy(struct drm_framebuffer *fb) /* Should never get stolen memory for a user fb */ WARN_ON(r->stolen); - pr_err("user framebuffer destroy %p, fbdev %p\n", - psbfb, psbfb->fbdev); + /* Check if we are erroneously live */ list_for_each_entry(crtc, &dev->mode_config.crtc_list, head) if (crtc->fb == fb) reset = 1; - if (reset) - pr_err("DRM: gma500, forcing reset\n"); - if (reset) /* * Now force a sane response before we permit the DRM crc layer to diff --git a/drivers/staging/gma500/psb_gem.c b/drivers/staging/gma500/psb_gem.c index b24b9642ab61..125ea6b5bff0 100644 --- a/drivers/staging/gma500/psb_gem.c +++ b/drivers/staging/gma500/psb_gem.c @@ -51,7 +51,6 @@ void psb_gem_free_object(struct drm_gem_object *obj) } drm_gem_object_release(obj); /* This must occur last as it frees up the memory of the GEM object */ - pr_err("GEM destroyed %p, %p\n", gtt, obj); psb_gtt_free_range(obj->dev, gtt); } @@ -177,8 +176,6 @@ static int psb_gem_create(struct drm_file *file, size = roundup(size, PAGE_SIZE); - dev_err(dev->dev, "GEM creating %lld\n", size); - /* Allocate our object - for now a direct gtt range which is not stolen memory backed */ r = psb_gtt_alloc_range(dev, size, "gem", 0); @@ -206,8 +203,6 @@ static int psb_gem_create(struct drm_file *file, /* We have the initial and handle reference but need only one now */ drm_gem_object_unreference(&r->gem); *handlep = handle; - dev_err(dev->dev, "GEM handle %x for %p OK\n", - handle, &r->gem); return 0; } @@ -283,12 +278,9 @@ int psb_gem_fault(struct vm_area_struct *vma, struct vm_fault *vmf) something from beneath our feet */ mutex_lock(&dev->struct_mutex); - dev_err(dev->dev, "Fault on GTT %p\n", r); - /* For now the mmap pins the object and it stays pinned. As things stand that will do us no harm */ if (r->mmapping == 0) { - dev_err(dev->dev, "Need to pin %p\n", r); ret = psb_gtt_pin(r); if (ret < 0) { DRM_ERROR("gma500: pin failed: %d\n", ret); @@ -302,13 +294,10 @@ int psb_gem_fault(struct vm_area_struct *vma, struct vm_fault *vmf) page_offset = ((unsigned long) vmf->virtual_address - vma->vm_start) >> PAGE_SHIFT; - dev_err(dev->dev, "Page offset %p %d\n", r, (int)page_offset); /* CPU view of the page, don't go via the GART for CPU writes */ pfn = page_to_phys(r->pages[page_offset]) >> PAGE_SHIFT; ret = vm_insert_pfn(vma, (unsigned long)vmf->virtual_address, pfn); - dev_err(dev->dev, "PFN %ld for VA %p = %d\n", pfn, vmf->virtual_address, ret); - fail: mutex_unlock(&dev->struct_mutex); switch (ret) { diff --git a/drivers/staging/gma500/psb_gtt.c b/drivers/staging/gma500/psb_gtt.c index c6a7492050ed..5a296e1f3011 100644 --- a/drivers/staging/gma500/psb_gtt.c +++ b/drivers/staging/gma500/psb_gtt.c @@ -314,7 +314,6 @@ struct gtt_range *psb_gtt_alloc_range(struct drm_device *dev, int len, len, start, end, PAGE_SIZE, NULL, NULL); if (ret == 0) { gt->offset = gt->resource.start - r->start; - dev_err(dev->dev, "GTT new %p, %d\n", gt, gt->stolen); return gt; } kfree(gt); @@ -341,7 +340,6 @@ static void psb_gtt_destroy(struct kref *kref) } WARN_ON(gt->in_gart && !gt->stolen); release_resource(>->resource); - pr_err("GTT destroyed %p, %d\n", gt, gt->stolen); kfree(gt); }