aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlan Cox <alan@linux.intel.com>2012-05-11 06:32:31 -0400
committerDave Airlie <airlied@redhat.com>2012-05-11 12:35:52 -0400
commit31a0685a421078fbd6d89ea6f2c52e13430d113f (patch)
tree9b9a8d021160f16f51c388871ab0bde5982b9ec2
parent213a84346fa963a6c0136be6844c5e4d806308a0 (diff)
gma500: Clean up some of the noise
We have a lot of debug type stuff we don't actually need any more. Signed-off-by: Alan Cox <alan@linux.intel.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
-rw-r--r--drivers/gpu/drm/gma500/cdv_device.c2
-rw-r--r--drivers/gpu/drm/gma500/framebuffer.c2
-rw-r--r--drivers/gpu/drm/gma500/gtt.c12
-rw-r--r--drivers/gpu/drm/gma500/psb_drv.c18
4 files changed, 5 insertions, 29 deletions
diff --git a/drivers/gpu/drm/gma500/cdv_device.c b/drivers/gpu/drm/gma500/cdv_device.c
index 148e3e7524d9..d94a9e6fa6a3 100644
--- a/drivers/gpu/drm/gma500/cdv_device.c
+++ b/drivers/gpu/drm/gma500/cdv_device.c
@@ -255,7 +255,7 @@ static int cdv_save_display_registers(struct drm_device *dev)
255 struct psb_save_area *regs = &dev_priv->regs; 255 struct psb_save_area *regs = &dev_priv->regs;
256 struct drm_connector *connector; 256 struct drm_connector *connector;
257 257
258 dev_info(dev->dev, "Saving GPU registers.\n"); 258 dev_dbg(dev->dev, "Saving GPU registers.\n");
259 259
260 pci_read_config_byte(dev->pdev, 0xF4, &regs->cdv.saveLBB); 260 pci_read_config_byte(dev->pdev, 0xF4, &regs->cdv.saveLBB);
261 261
diff --git a/drivers/gpu/drm/gma500/framebuffer.c b/drivers/gpu/drm/gma500/framebuffer.c
index f47f883ff9ef..659ed3933b5b 100644
--- a/drivers/gpu/drm/gma500/framebuffer.c
+++ b/drivers/gpu/drm/gma500/framebuffer.c
@@ -476,7 +476,7 @@ static int psbfb_create(struct psb_fbdev *fbdev,
476 476
477 /* Use default scratch pixmap (info->pixmap.flags = FB_PIXMAP_SYSTEM) */ 477 /* Use default scratch pixmap (info->pixmap.flags = FB_PIXMAP_SYSTEM) */
478 478
479 dev_info(dev->dev, "allocated %dx%d fb\n", 479 dev_dbg(dev->dev, "allocated %dx%d fb\n",
480 psbfb->base.width, psbfb->base.height); 480 psbfb->base.width, psbfb->base.height);
481 481
482 mutex_unlock(&dev->struct_mutex); 482 mutex_unlock(&dev->struct_mutex);
diff --git a/drivers/gpu/drm/gma500/gtt.c b/drivers/gpu/drm/gma500/gtt.c
index 4cd33df5f93c..04a371aceb34 100644
--- a/drivers/gpu/drm/gma500/gtt.c
+++ b/drivers/gpu/drm/gma500/gtt.c
@@ -416,7 +416,6 @@ int psb_gtt_init(struct drm_device *dev, int resume)
416 unsigned long stolen_size, vram_stolen_size; 416 unsigned long stolen_size, vram_stolen_size;
417 unsigned i, num_pages; 417 unsigned i, num_pages;
418 unsigned pfn_base; 418 unsigned pfn_base;
419 uint32_t dvmt_mode = 0;
420 struct psb_gtt *pg; 419 struct psb_gtt *pg;
421 420
422 int ret = 0; 421 int ret = 0;
@@ -489,13 +488,8 @@ int psb_gtt_init(struct drm_device *dev, int resume)
489 488
490 stolen_size = vram_stolen_size; 489 stolen_size = vram_stolen_size;
491 490
492 printk(KERN_INFO "Stolen memory information\n"); 491 dev_dbg(dev->dev, "Stolen memory base 0x%x, size %luK\n",
493 printk(KERN_INFO " base in RAM: 0x%x\n", dev_priv->stolen_base); 492 dev_priv->stolen_base, vram_stolen_size / 1024);
494 printk(KERN_INFO " size: %luK, calculated by (GTT RAM base) - (Stolen base), seems wrong\n",
495 vram_stolen_size/1024);
496 dvmt_mode = (dev_priv->gmch_ctrl >> 4) & 0x7;
497 printk(KERN_INFO " the correct size should be: %dM(dvmt mode=%d)\n",
498 (dvmt_mode == 1) ? 1 : (2 << (dvmt_mode - 1)), dvmt_mode);
499 493
500 if (resume && (gtt_pages != pg->gtt_pages) && 494 if (resume && (gtt_pages != pg->gtt_pages) &&
501 (stolen_size != pg->stolen_size)) { 495 (stolen_size != pg->stolen_size)) {
@@ -532,7 +526,7 @@ int psb_gtt_init(struct drm_device *dev, int resume)
532 526
533 pfn_base = dev_priv->stolen_base >> PAGE_SHIFT; 527 pfn_base = dev_priv->stolen_base >> PAGE_SHIFT;
534 num_pages = vram_stolen_size >> PAGE_SHIFT; 528 num_pages = vram_stolen_size >> PAGE_SHIFT;
535 printk(KERN_INFO"Set up %d stolen pages starting at 0x%08x, GTT offset %dK\n", 529 dev_dbg(dev->dev, "Set up %d stolen pages starting at 0x%08x, GTT offset %dK\n",
536 num_pages, pfn_base << PAGE_SHIFT, 0); 530 num_pages, pfn_base << PAGE_SHIFT, 0);
537 for (i = 0; i < num_pages; ++i) { 531 for (i = 0; i < num_pages; ++i) {
538 pte = psb_gtt_mask_pte(pfn_base + i, 0); 532 pte = psb_gtt_mask_pte(pfn_base + i, 0);
diff --git a/drivers/gpu/drm/gma500/psb_drv.c b/drivers/gpu/drm/gma500/psb_drv.c
index 0e85978877e8..93a14acd0739 100644
--- a/drivers/gpu/drm/gma500/psb_drv.c
+++ b/drivers/gpu/drm/gma500/psb_drv.c
@@ -172,24 +172,6 @@ static int psb_do_init(struct drm_device *dev)
172 dev_priv->gatt_free_offset = pg->mmu_gatt_start + 172 dev_priv->gatt_free_offset = pg->mmu_gatt_start +
173 (stolen_gtt << PAGE_SHIFT) * 1024; 173 (stolen_gtt << PAGE_SHIFT) * 1024;
174 174
175 if (1 || drm_debug) {
176 uint32_t core_id = PSB_RSGX32(PSB_CR_CORE_ID);
177 uint32_t core_rev = PSB_RSGX32(PSB_CR_CORE_REVISION);
178 DRM_INFO("SGX core id = 0x%08x\n", core_id);
179 DRM_INFO("SGX core rev major = 0x%02x, minor = 0x%02x\n",
180 (core_rev & _PSB_CC_REVISION_MAJOR_MASK) >>
181 _PSB_CC_REVISION_MAJOR_SHIFT,
182 (core_rev & _PSB_CC_REVISION_MINOR_MASK) >>
183 _PSB_CC_REVISION_MINOR_SHIFT);
184 DRM_INFO
185 ("SGX core rev maintenance = 0x%02x, designer = 0x%02x\n",
186 (core_rev & _PSB_CC_REVISION_MAINTENANCE_MASK) >>
187 _PSB_CC_REVISION_MAINTENANCE_SHIFT,
188 (core_rev & _PSB_CC_REVISION_DESIGNER_MASK) >>
189 _PSB_CC_REVISION_DESIGNER_SHIFT);
190 }
191
192
193 spin_lock_init(&dev_priv->irqmask_lock); 175 spin_lock_init(&dev_priv->irqmask_lock);
194 spin_lock_init(&dev_priv->lock_2d); 176 spin_lock_init(&dev_priv->lock_2d);
195 177