From patchwork Wed Mar 13 16:38:45 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alex Deucher X-Patchwork-Id: 2263871 Return-Path: X-Original-To: patchwork-dri-devel@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by patchwork2.kernel.org (Postfix) with ESMTP id D97AEDF215 for ; Wed, 13 Mar 2013 16:40:02 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id F2F3AE68BD for ; Wed, 13 Mar 2013 09:40:02 -0700 (PDT) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-qc0-f181.google.com (mail-qc0-f181.google.com [209.85.216.181]) by gabe.freedesktop.org (Postfix) with ESMTP id 6E525E6473 for ; Wed, 13 Mar 2013 09:38:53 -0700 (PDT) Received: by mail-qc0-f181.google.com with SMTP id a22so562419qcs.12 for ; Wed, 13 Mar 2013 09:38:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:from:to:cc:subject:date:message-id:x-mailer:in-reply-to :references; bh=01MAXHt2w72tSJHfmCffSOPv2JjBhcJ8+wDGi0+PPKA=; b=kPqnzct0CNEbqKRLkSzwlcRVpenTgb1+EdaX/II9jj/S9fU8KQudph2w++Zd7OTcOB CN4X0ds165f54ntPDTj1cxNoLPcMhXmDYboQ9pcnCEhqgerdTXP/EytOU2TdOpqgnm53 CMtuoXaTEkYAhM2rc3Bxpy1WRKFqdX5bypDMown4i+u0rwi/M3RRk9+KUT5nZ0K8DG47 /I8E7QGp7xBWwFLsEEVQSbi6dsAEEfhfqn4r6QzAwcYE6Z3UmmsdvVjIBpBrhFEPb34H oKlKvecIIHh7yphk5FowE6jOVqO4Alw1FhWWo5hnkKclk2u587VKMw2RqP+r8oq+HFbX uh+Q== X-Received: by 10.224.220.205 with SMTP id hz13mr9102093qab.49.1363192732699; Wed, 13 Mar 2013 09:38:52 -0700 (PDT) Received: from localhost.localdomain (static-74-96-105-49.washdc.fios.verizon.net. [74.96.105.49]) by mx.google.com with ESMTPS id gw9sm38414265qab.10.2013.03.13.09.38.51 (version=TLSv1 cipher=RC4-SHA bits=128/128); Wed, 13 Mar 2013 09:38:52 -0700 (PDT) From: alexdeucher@gmail.com To: dri-devel@lists.freedesktop.org Subject: [PATCH 2/2] drm/radeon/benchmark: allow same domains for dma copy Date: Wed, 13 Mar 2013 12:38:45 -0400 Message-Id: <1363192725-5902-2-git-send-email-alexdeucher@gmail.com> X-Mailer: git-send-email 1.7.7.5 In-Reply-To: <1363192725-5902-1-git-send-email-alexdeucher@gmail.com> References: <1363192725-5902-1-git-send-email-alexdeucher@gmail.com> Cc: Alex Deucher X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.13 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 From: Alex Deucher Remove old comment and allow benchmarking moves within the same memory domain for both dma and blit methods. Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/radeon_benchmark.c | 5 +---- 1 files changed, 1 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/radeon/radeon_benchmark.c b/drivers/gpu/drm/radeon/radeon_benchmark.c index a2f0c24..6e05a2e 100644 --- a/drivers/gpu/drm/radeon/radeon_benchmark.c +++ b/drivers/gpu/drm/radeon/radeon_benchmark.c @@ -122,10 +122,7 @@ static void radeon_benchmark_move(struct radeon_device *rdev, unsigned size, goto out_cleanup; } - /* r100 doesn't have dma engine so skip the test */ - /* also, VRAM-to-VRAM test doesn't make much sense for DMA */ - /* skip it as well if domains are the same */ - if ((rdev->asic->copy.dma) && (sdomain != ddomain)) { + if (rdev->asic->copy.dma) { time = radeon_benchmark_do_move(rdev, size, saddr, daddr, RADEON_BENCHMARK_COPY_DMA, n); if (time < 0)