From: Maarten Maathuis Subject: Re: nouveau interrupts firewire ISO streaming Date: Thu, 4 Feb 2010 12:19:14 +0100 Message-ID: <6d4bc9fc1002040319y6edccf50tfc9be6c30e8df0c6@mail.gmail.com> References: <20100202131549.GI9700@ltw.loris.tv> <6d4bc9fc1002020535m37223f74o60d081a85990586e@mail.gmail.com> <20100204105839.GV9700@ltw.loris.tv> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <20100204105839.GV9700-hmr3i4qI1nLZbNGZteT6vg@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: nouveau-bounces-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org Errors-To: nouveau-bounces-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org To: Adrian Knoth Cc: nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org List-Id: nouveau.vger.kernel.org On Thu, Feb 4, 2010 at 11:58 AM, Adrian Knoth w= rote: > On Tue, Feb 02, 2010 at 02:35:04PM +0100, Maarten Maathuis wrote: > > Hi! > >> > When the X pointer changes from arrow to the vertical text selection >> > bar, firewire streaming is interrupted. Same with scrolling in firefox >> > or hovering over a link, thus changing the pointer to "hand". >> > >> > Looks like nouveau is disabling interrupts now and then, which leads to >> > stalled firewire ISO streaming. I don't know what nouveau's actually >> > doing, I'm just guessing. ;) >> I don't think interrupts are disabled for uploading a cursor, more >> likely is that your firewire driver depends on the big kernel lock. > > No, the firewire subsystem doesn't use BKL: > > adi@hex:/usr/src/linux-2.6.33-rc6/drivers/firewire$ grep lock_kernel * > adi@hex:/usr/src/linux-2.6.33-rc6/drivers/firewire$ echo $? > 1 > > But I don't know what happens to a BKL-free subsystem when another > subsystem calls lock_kernel. > >> At the moment we still hold that. > > I only found lock_kernel() in drm_drv.c and drm_fops.c, so I guess it's > drm_ioctl, given that BKL is the culprit. > > > I just removed the BKL around the func call, surprisingly, my system > still worked with some minor image corruption, but it's exactly the same > issue wrt firewire. So it might not be the BKL. > > > What about DMA or PFIFO interrupts? I only read "interrupt" here, I > don't know if they are local to the GPU or also reach other parts of the > system. And uploading a cursor couldn't cause long DMA transfers, at > least I guess. It's mostly cpu copying the cursor. Now that i think of it, we keep a copy of the cursor inside the kernel, so no need to make the userspace side vram too. As a quick test you could try changing VRAM to GART here http://cgit.freedesktop.org/nouveau/xf86-video-nouveau/tree/src/drmmod= e_display.c#n641. Assuming you don't have an agp system, otherwise you will still be reading from uncached memory anyway. libdrm doesn't seem prepared yet to allocate system bo's (the kernel seems to be). > > > Cheerio > > -- > mail: adi-KgVc3FjDepk@public.gmane.org =A0 =A0 =A0 http://adi.thur.de =A0 =A0 =A0PGP/GPG: key = via keyserver >