From patchwork Fri Jan 7 02:19:27 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alex Deucher X-Patchwork-Id: 462101 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 p072VI4v015159 for ; Fri, 7 Jan 2011 02:31:40 GMT Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 999A79E7B8 for ; Thu, 6 Jan 2011 18:31:18 -0800 (PST) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-qw0-f49.google.com (mail-qw0-f49.google.com [209.85.216.49]) by gabe.freedesktop.org (Postfix) with ESMTP id A393F9E827 for ; Thu, 6 Jan 2011 18:20:14 -0800 (PST) Received: by mail-qw0-f49.google.com with SMTP id 9so17283716qwj.36 for ; Thu, 06 Jan 2011 18:20:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:subject:date :message-id:x-mailer:in-reply-to:references; bh=ALIDZq9R2Hv51hbAV+dVeSUZHlP4o8Lar9Wl2dgOQi8=; b=guW3TXA8z7CFf2H8XvbbAUVCU1F3bhpIzjnDRYxPEfqS4gHHVDA9J5wFcPkPKEDrqh mbswBq/tANL5rARlb19/W4jD/08VCH7fLcKqUZMkr1ZINr+6R7FjEbTgODaOldv1U/b+ xf6w4Qn+3VUL+737d3dmtxDig4DzAIL5mhNFE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; b=kZU1PsbT9pQnUgq5I1l9Dy0UqNtmy+vL72Nfkw1wHtOn1NLw8+zpYAbH5xHQ+B0Rie G86Hc72Rutb5U6Bl3rZCkdmr5GPOKkSjdIaQFeYv8Vs1/1z+FdbH9QIvqXL49/hopvH+ 1yZIaVzYImFkjJMaWFYXggTTbTtA5vbDRKajY= Received: by 10.224.28.133 with SMTP id m5mr23231303qac.314.1294366814410; Thu, 06 Jan 2011 18:20:14 -0800 (PST) Received: from localhost.localdomain (static-74-96-105-7.washdc.fios.verizon.net [74.96.105.7]) by mx.google.com with ESMTPS id g28sm14822039qck.25.2011.01.06.18.20.13 (version=SSLv3 cipher=RC4-MD5); Thu, 06 Jan 2011 18:20:13 -0800 (PST) From: Alex Deucher To: airlied@gmail.com, dri-devel@lists.freedesktop.org Subject: [PATCH 17/25] drm/radeon/kms: always use writeback/events for fences on NI Date: Thu, 6 Jan 2011 21:19:27 -0500 Message-Id: <1294366775-1605-18-git-send-email-alexdeucher@gmail.com> X-Mailer: git-send-email 1.7.1.1 In-Reply-To: <1294366775-1605-1-git-send-email-alexdeucher@gmail.com> References: <1294366775-1605-1-git-send-email-alexdeucher@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 X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Fri, 07 Jan 2011 02:31:40 +0000 (UTC) diff --git a/drivers/gpu/drm/radeon/radeon_device.c b/drivers/gpu/drm/radeon/radeon_device.c index e353430..26091d6 100644 --- a/drivers/gpu/drm/radeon/radeon_device.c +++ b/drivers/gpu/drm/radeon/radeon_device.c @@ -228,6 +228,11 @@ int radeon_wb_init(struct radeon_device *rdev) rdev->wb.use_event = true; } } + /* always use writeback/events on NI */ + if (ASIC_IS_DCE5(rdev)) { + rdev->wb.enabled = true; + rdev->wb.use_event = true; + } dev_info(rdev->dev, "WB %sabled\n", rdev->wb.enabled ? "en" : "dis");