From: Ilija Hadzic Subject: Re: [PATCH 2/2] drm/radeon/kms/blit: workaround for a possible hardware bug Date: Wed, 1 Feb 2012 13:07:56 -0600 (CST) Message-ID: References: <1328114559-22609-1-git-send-email-ihadzic@research.bell-labs.com> <1328114559-22609-2-git-send-email-ihadzic@research.bell-labs.com> <1328118889.6727.180.camel@thor.local> Mime-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="-559023410-758783491-1328123276=:23286" Return-path: Received: from ihemail1.lucent.com (ihemail1.lucent.com [135.245.0.33]) by gabe.freedesktop.org (Postfix) with ESMTP id BB715A0B9E for ; Wed, 1 Feb 2012 11:08:01 -0800 (PST) In-Reply-To: <1328118889.6727.180.camel@thor.local> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org Errors-To: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org To: Michel =?ISO-8859-1?Q?D=E4nzer?= Cc: dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. ---559023410-758783491-1328123276=:23286 Content-Type: TEXT/PLAIN; charset=UTF-8; format=flowed Content-Transfer-Encoding: QUOTED-PRINTABLE On Wed, 1 Feb 2012, Michel [ISO-8859-1] D=E4nzer wrote: > On Mit, 2012-02-01 at 11:42 -0500, Ilija Hadzic wrote: >> If a blit copy operation specifies a rectangle whose one dimension >> is 16384 (max allowed by these chips), the chip will silently >> drop all commands. > > What exactly does 'silently drop all commands' mean? > It means that when I look at the transactions on the bus (using the PCIe=20 analyzer instrument), I see that the GPU pulls the stuff from the ring=20 (read transactions come from GPU and completions come from the host), but= =20 I see no posted writes in the upstream that correspond to GPU writing to=20 host memory. > Did you notice the following in i2f(): > > fraction =3D (input & 0x3fff) << 10; /* cheat and only > handle numbers below= 2^^15 */ > > I suspect that should say 2^14, as 16384 =3D=3D 0x4000, which results in = 0 > for the above assignment. > > Thanks for pointing this out. This could be the possible root cause. I'll= =20 see if i2f can be easily extended to support up to 2^15 range (I am not=20 good at doing floating point representation in my head, so I need to write= =20 out things on paper to make sure, first). If yes, I'll fix i2f. If not,=20 the existing patch will still be the reasonable fix. -- Ilija ---559023410-758783491-1328123276=:23286 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 ---559023410-758783491-1328123276=:23286--