From patchwork Sat Oct 2 07:58:56 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jiri Slaby X-Patchwork-Id: 227191 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id o92Gnaxt011864 for ; Sat, 2 Oct 2010 16:49:59 GMT Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 58CBE9ED01 for ; Sat, 2 Oct 2010 09:49:36 -0700 (PDT) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter1.kernel.org [140.211.167.41]); Sat, 02 Oct 2010 16:49:59 +0000 (UTC) X-Greylist: delayed 371 seconds by postgrey-1.31 at gabe; Sat, 02 Oct 2010 01:05:29 PDT Received: from smtp.pripojeni.net (unknown [217.66.174.14]) by gabe.freedesktop.org (Postfix) with ESMTP id EC94E9E808 for ; Sat, 2 Oct 2010 01:05:29 -0700 (PDT) Received: from localhost.localdomain ([217.66.174.142]) by smtp.pripojeni.net (Kerio Connect 7.0.0 patch 1); Sat, 2 Oct 2010 09:58:59 +0200 From: Jiri Slaby To: airlied@redhat.com Subject: [PATCH 1/1] nouveau: ratelimit IRQ messages Date: Sat, 2 Oct 2010 09:58:56 +0200 Message-Id: <1286006336-24651-1-git-send-email-jslaby@suse.cz> X-Mailer: git-send-email 1.7.3.1 X-Mailman-Approved-At: Sat, 02 Oct 2010 09:49:27 -0700 Cc: Ben Skeggs , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, jirislaby@gmail.com X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: dri-devel-bounces+patchwork-dri-devel=patchwork.kernel.org@lists.freedesktop.org Errors-To: dri-devel-bounces+patchwork-dri-devel=patchwork.kernel.org@lists.freedesktop.org diff --git a/drivers/gpu/drm/nouveau/nouveau_irq.c b/drivers/gpu/drm/nouveau/nouveau_irq.c index 794b0ee..c6d57eb 100644 --- a/drivers/gpu/drm/nouveau/nouveau_irq.c +++ b/drivers/gpu/drm/nouveau/nouveau_irq.c @@ -200,7 +200,9 @@ nouveau_fifo_irq_handler(struct drm_device *dev) } if (status & NV_PFIFO_INTR_DMA_PUSHER) { - NV_INFO(dev, "PFIFO_DMA_PUSHER - Ch %d\n", chid); + if (printk_ratelimit()) + NV_INFO(dev, "PFIFO_DMA_PUSHER - Ch %d\n", + chid); status &= ~NV_PFIFO_INTR_DMA_PUSHER; nv_wr32(dev, NV03_PFIFO_INTR_0, @@ -227,8 +229,9 @@ nouveau_fifo_irq_handler(struct drm_device *dev) } if (status) { - NV_INFO(dev, "PFIFO_INTR 0x%08x - Ch %d\n", - status, chid); + if (printk_ratelimit()) + NV_INFO(dev, "PFIFO_INTR 0x%08x - Ch %d\n", + status, chid); nv_wr32(dev, NV03_PFIFO_INTR_0, status); status = 0; }