From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mathias =?ISO-8859-1?Q?Fr=F6hlich?= Subject: An other radeon ring count patch Date: Wed, 23 Apr 2014 08:49:04 +0200 Message-ID: <51797156.q8Ca4oeqjx@notebook.internal> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="nextPart3188455.90Sm4SjggZ" Content-Transfer-Encoding: 7Bit Return-path: Received: from mout.gmx.net (mout.gmx.net [212.227.15.18]) by gabe.freedesktop.org (Postfix) with ESMTP id E9FBF6E603 for ; Tue, 22 Apr 2014 23:49:13 -0700 (PDT) List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" To: Christian Koenig , alexander.deucher@amd.com, "dri-devel@lists.freedesktop.org" List-Id: dri-devel@lists.freedesktop.org This is a multi-part message in MIME format. --nextPart3188455.90Sm4SjggZ Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Hi Christian, Alex, While looking over the rest of the ring counts I noticed an other one, this time we reserve too much which cannot even be a potential problem. Anyway, it's nicer to be correct. Attached that patch to uvd_v1_0_ring_test() Greetings Mathias --nextPart3188455.90Sm4SjggZ Content-Disposition: attachment; filename="0001-drm-radeon-fix-count-in-uvd_v1_0_ring_test.patch" Content-Transfer-Encoding: quoted-printable Content-Type: text/x-patch; charset="UTF-8"; name="0001-drm-radeon-fix-count-in-uvd_v1_0_ring_test.patch" >>From 889f02196e1a3a571aac8e878574e48a7469cb42 Mon Sep 17 00:00:00 2001 From: =3D?UTF-8?q?Mathias=3D20Fr=3DC3=3DB6hlich?=3D Date: Wed, 23 Apr 2014 08:37:12 +0200 Subject: [PATCH] drm/radeon: fix count in uvd_v1_0_ring_test() MIME-Version: 1.0 Content-Type: text/plain; charset=3DUTF-8 Content-Transfer-Encoding: 8bit Should be 2 rather than 3. Signed-off-by: Mathias Fr=C3=B6hlich --- drivers/gpu/drm/radeon/uvd_v1_0.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/radeon/uvd_v1_0.c b/drivers/gpu/drm/radeon= /uvd_v1_0.c index 0a243f0..d50f510 100644 --- a/drivers/gpu/drm/radeon/uvd_v1_0.c +++ b/drivers/gpu/drm/radeon/uvd_v1_0.c @@ -320,7 +320,7 @@ int uvd_v1_0_ring_test(struct radeon_device *rdev, = struct radeon_ring *ring) =09int r; =20 =09WREG32(UVD_CONTEXT_ID, 0xCAFEDEAD); -=09r =3D radeon_ring_lock(rdev, ring, 3); +=09r =3D radeon_ring_lock(rdev, ring, 2); =09if (r) { =09=09DRM_ERROR("radeon: cp failed to lock ring %d (%d).\n", =09=09=09 ring->idx, r); --=20 1.9.0 --nextPart3188455.90Sm4SjggZ Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ dri-devel mailing list dri-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/dri-devel --nextPart3188455.90Sm4SjggZ--