From mboxrd@z Thu Jan 1 00:00:00 1970 From: Boszormenyi Zoltan Subject: Re: radeon 0000:02:00.0: GPU lockup CP stall for more than 10000msec Date: Fri, 04 Jan 2013 12:16:29 +0100 Message-ID: <50E6BA0D.6030602@pr.hu> References: <20121223122210.GA4460@liondog.tnic> <20121223133102.GA8153@liondog.tnic> <50E3907C.4040106@iki.fi> <20130102120248.GC6181@x1.alien8.de> <50E4755E.7030209@iki.fi> <20130102223807.GA242@x4> <20130104074054.GB20905@x1.alien8.de> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: QUOTED-PRINTABLE Return-path: In-Reply-To: <20130104074054.GB20905@x1.alien8.de> Sender: linux-kernel-owner@vger.kernel.org To: Borislav Petkov , Alex Deucher , Markus Trippelsdorf , Jerome Glisse , Antti Palosaari , Shuah Khan , Andy Furniss , Alex Deucher , dri-devel@lists.freedesktop.org, lkml List-Id: dri-devel@lists.freedesktop.org 2013-01-04 08:40 keltez=E9ssel, Borislav Petkov =EDrta: > On Wed, Jan 02, 2013 at 06:37:23PM -0500, Alex Deucher wrote: >> From: Alex Deucher >> Date: Wed, 2 Jan 2013 18:30:21 -0500 >> Subject: [PATCH] drm/radeon/r6xx: fix DMA engine for ttm bo transfer= s >> >> count must be a multiple of 2. >> >> Cc: Borislav Petkov >> Cc: Markus Trippelsdorf >> Signed-off-by: Alex Deucher > Thanks, will run it on the box in question next week when I have acce= ss. > > Btw, you could add the note about count needing to be a multiple of 2= as > a comment in the code below, for future reference. > >> --- >> drivers/gpu/drm/radeon/r600.c | 4 ++-- >> 1 files changed, 2 insertions(+), 2 deletions(-) >> >> diff --git a/drivers/gpu/drm/radeon/r600.c b/drivers/gpu/drm/radeon/= r600.c >> index 2aaf147..9f4ce5e 100644 >> --- a/drivers/gpu/drm/radeon/r600.c >> +++ b/drivers/gpu/drm/radeon/r600.c >> @@ -2636,8 +2636,8 @@ int r600_copy_dma(struct radeon_device *rdev, >> =20 >> for (i =3D 0; i < num_loops; i++) { >> cur_size_in_dw =3D size_in_dw; >> - if (cur_size_in_dw > 0xFFFF) >> - cur_size_in_dw =3D 0xFFFF; >> + if (cur_size_in_dw > 0xFFFE) >> + cur_size_in_dw =3D 0xFFFE; How about any other odd numbers? Like 0xFFFB, or 0x0003? They will get passed as is after this change, no? Shouldn't they be also fixed? Something like this below? if (cur_size_in_dw & 0x0001) cur_size_in_dw &=3D ~1; >> size_in_dw -=3D cur_size_in_dw; >> radeon_ring_write(ring, DMA_PACKET(DMA_PACKET_COPY, 0, 0, cur_si= ze_in_dw)); >> radeon_ring_write(ring, dst_offset & 0xfffffffc); >> --=20 >> 1.7.7.5