From patchwork Wed Jan 2 20:12:14 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jerome Glisse X-Patchwork-Id: 1924921 Return-Path: X-Original-To: patchwork-dri-devel@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by patchwork1.kernel.org (Postfix) with ESMTP id C88063FC85 for ; Wed, 2 Jan 2013 20:07:58 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id CFE13E6348 for ; Wed, 2 Jan 2013 12:07:58 -0800 (PST) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-qc0-f177.google.com (mail-qc0-f177.google.com [209.85.216.177]) by gabe.freedesktop.org (Postfix) with ESMTP id A2C76E5D22 for ; Wed, 2 Jan 2013 12:05:04 -0800 (PST) Received: by mail-qc0-f177.google.com with SMTP id u28so7514173qcs.36 for ; Wed, 02 Jan 2013 12:05:03 -0800 (PST) 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; bh=1zgdJ3Dv+4o6wMBNKkY0Lug+rpeT9Xo6HVrOjNSfaQY=; b=xsmhFxJgPvcUX+tVzlmf+H5HEvenjtORlxhCU3VhdNIRF69n6dKGiNBEE536toMxAm 3yNbwRwuEFcG+yRibH4jnB7EJ5lh4TpSbBwXneNDBZ/mBTCupVjPcX2r34xgFxT+mF/c B/6DxFpHVHGjJKKGud6IcgVwA+en+tZKZlg6bzLcmCoDG9ocAFUWshWZNmURLbwuHtHf Kt2NJUlXZZ/KmRpu1ht7XfE6vOP/LLPbKeQOZQok/jYDlQ1p8CMR7ZBH/b4XlPVBGWwB l2/wInjtjdsvGg3+TQafa3rAW5k7RZ2vAiFe9jMlQX38b0Qp7p0ld3xDKcBC2L6Gvp+i a5nA== X-Received: by 10.49.62.42 with SMTP id v10mr29707652qer.2.1357157103865; Wed, 02 Jan 2013 12:05:03 -0800 (PST) Received: from homer.localdomain.com ([66.187.233.206]) by mx.google.com with ESMTPS id ga9sm11990604qab.22.2013.01.02.12.05.02 (version=SSLv3 cipher=OTHER); Wed, 02 Jan 2013 12:05:02 -0800 (PST) From: j.glisse@gmail.com To: dri-devel@lists.freedesktop.org Subject: [PATCH 1/2] drm/radeon: add debugfs file for dma rings Date: Wed, 2 Jan 2013 15:12:14 -0500 Message-Id: <1357157535-10681-1-git-send-email-j.glisse@gmail.com> X-Mailer: git-send-email 1.7.11.7 Cc: Jerome Glisse 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: Jerome Glisse Signed-off-by: Jerome Glisse --- drivers/gpu/drm/radeon/radeon_ring.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/gpu/drm/radeon/radeon_ring.c b/drivers/gpu/drm/radeon/radeon_ring.c index ebd6956..9410e43 100644 --- a/drivers/gpu/drm/radeon/radeon_ring.c +++ b/drivers/gpu/drm/radeon/radeon_ring.c @@ -794,11 +794,15 @@ static int radeon_debugfs_ring_info(struct seq_file *m, void *data) static int radeon_ring_type_gfx_index = RADEON_RING_TYPE_GFX_INDEX; static int cayman_ring_type_cp1_index = CAYMAN_RING_TYPE_CP1_INDEX; static int cayman_ring_type_cp2_index = CAYMAN_RING_TYPE_CP2_INDEX; +static int radeon_ring_type_dma1_index = R600_RING_TYPE_DMA_INDEX; +static int radeon_ring_type_dma2_index = CAYMAN_RING_TYPE_DMA1_INDEX; static struct drm_info_list radeon_debugfs_ring_info_list[] = { {"radeon_ring_gfx", radeon_debugfs_ring_info, 0, &radeon_ring_type_gfx_index}, {"radeon_ring_cp1", radeon_debugfs_ring_info, 0, &cayman_ring_type_cp1_index}, {"radeon_ring_cp2", radeon_debugfs_ring_info, 0, &cayman_ring_type_cp2_index}, + {"radeon_ring_dma1", radeon_debugfs_ring_info, 0, &radeon_ring_type_dma1_index}, + {"radeon_ring_dma2", radeon_debugfs_ring_info, 0, &radeon_ring_type_dma2_index}, }; static int radeon_debugfs_sa_info(struct seq_file *m, void *data)