Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751352AbbK2WWk (ORCPT ); Sun, 29 Nov 2015 17:22:40 -0500 Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]:45903 "EHLO atrey.karlin.mff.cuni.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750714AbbK2WWi (ORCPT ); Sun, 29 Nov 2015 17:22:38 -0500 Date: Sun, 29 Nov 2015 23:22:35 +0100 From: Pavel Machek To: Christian =?iso-8859-1?Q?K=F6nig?= Cc: Trivial patch monkey , alexander.deucher@amd.com, airlied@linux.ie, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: Re: [radeon r100] when ring test fails, provide users with option to test Message-ID: <20151129222235.GA25692@amd> References: <20151128205840.GA26757@amd> <565B56A5.4080702@amd.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <565B56A5.4080702@amd.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1675 Lines: 47 On Sun 2015-11-29 20:48:53, Christian K?nig wrote: > On 28.11.2015 21:58, Pavel Machek wrote: > >Ring test failure is often caused by too high agpmode. Tell the user > >what to try. > > > >Signed-off-by: Pavel Machek > > NAK, the ring test can fail for any number of reasons and the agpmode is > actually rather unlikely to be the cause. Well, when I asked on the list "why this is happened" I got "umm, noone knows" response that was not exactly helpful. And then someone told me about agpmode. If you know about the reasons it can fail, could you list them near the DRM_ERROR, at least as a comment? Thanks, Pavel > Regards, > Christian. > > > > >diff --git a/drivers/gpu/drm/radeon/r100.c b/drivers/gpu/drm/radeon/r100.c > >index 238b13f..32b1917 100644 > >--- a/drivers/gpu/drm/radeon/r100.c > >+++ b/drivers/gpu/drm/radeon/r100.c > >@@ -3665,7 +3665,7 @@ int r100_ring_test(struct radeon_device *rdev, struct radeon_ring *ring) > > if (i < rdev->usec_timeout) { > > DRM_INFO("ring test succeeded in %d usecs\n", i); > > } else { > >- DRM_ERROR("radeon: ring test failed (scratch(0x%04X)=0x%08X)\n", > >+ DRM_ERROR("radeon: ring test failed (scratch(0x%04X)=0x%08X), try radeon.agpmode=1?\n", > > scratch, tmp); > > r = -EINVAL; > > } > > -- (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/