From owner-freebsd-sparc Mon Mar 24 11: 9:11 2003 Delivered-To: freebsd-sparc@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C8FD337B407 for ; Mon, 24 Mar 2003 11:09:03 -0800 (PST) Received: from mail.speakeasy.net (mail14.speakeasy.net [216.254.0.214]) by mx1.FreeBSD.org (Postfix) with ESMTP id E5D4843F75 for ; Mon, 24 Mar 2003 11:09:02 -0800 (PST) (envelope-from jhb@FreeBSD.org) Received: (qmail 5881 invoked from network); 24 Mar 2003 19:09:08 -0000 Received: from unknown (HELO server.baldwin.cx) ([216.27.160.63]) (envelope-sender ) by mail14.speakeasy.net (qmail-ldap-1.03) with DES-CBC3-SHA encrypted SMTP for ; 24 Mar 2003 19:09:08 -0000 Received: from laptop.baldwin.cx (gw1.twc.weather.com [216.133.140.1]) by server.baldwin.cx (8.12.8/8.12.8) with ESMTP id h2OJ8wOv093090; Mon, 24 Mar 2003 14:08:59 -0500 (EST) (envelope-from jhb@FreeBSD.org) Message-ID: X-Mailer: XFMail 1.5.4 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <20030324120438.Z76446@locore.ca> Date: Mon, 24 Mar 2003 14:08:58 -0500 (EST) From: John Baldwin To: Jake Burkholder Subject: Re: PCI-PCI bridge Cc: freebsd-sparc Cc: freebsd-sparc , Hidetoshi Shimokawa X-Spam-Status: No, hits=-19.5 required=5.0 tests=EMAIL_ATTRIBUTION,IN_REP_TO,QUOTED_EMAIL_TEXT, REPLY_WITH_QUOTES autolearn=ham version=2.50 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.50 (1.173-2003-02-20-exp) Sender: owner-freebsd-sparc@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On 24-Mar-2003 Jake Burkholder wrote: > Apparently, On Tue, Mar 25, 2003 at 12:13:40AM +0900, > Hidetoshi Shimokawa said words to the effect of; > >> At Mon, 24 Mar 2003 07:57:08 -0500, >> Jake Burkholder wrote: >> > >> > Apparently, On Mon, Mar 24, 2003 at 02:04:35PM +0900, >> > Hidetoshi Shimokawa said words to the effect of; >> > >> > > Hi, >> > > >> > > I have a problem with PCI-PCI bridge on sparc64(sun ultra5) while >> > > tesing firewire driver. >> > > >> > > I have a Adaptec card which has a firewire and a USB2 chips behind >> > > PCI-PCI bridge. With this card the DMA trasfer speed is poor and >> > > it sometimes causes timeout which leads to panic(*1). >> > > >> > > I finally found that this is because the PCI-PCI bridge >> > > is not configured correctly and setting the cache line size in the >> > > bridge by pciconf fixes the problem. >> > > (pciconf -w -b pci1:1:0 0x0c 16) >> > > >> > > Sun's APB PCI-PCI bridges seem to be configured correctly but the one on >> > > the card doesn't. >> > > Who should configure such bridges? >> > > Does upgrading firmware fix the problem? >> > >> > I think this is the firmware's job but it doesn't always do it. Updating >> > the firmware may or may not help. We try to fix this up on startup by >> > walking the device tree and initializing all the cache line size registers, >> > but I notice that we don't do it for subordinate bridges, only for their >> > child devices. >> > >> > You might try something like this (untested): >> >> Thanks, I'll try it tomorrow. >> >> BTW, the latency timer and secondary(?) latency timer of the bridge >> are zero too. Shall we configure those values too? >> I don't observe significant performance change by changing those >> values though. > > Yes, probably. Again, currently the pci code tries to set the latency > timer of child devices correctly, but not the bridge itself. You probably should set it for the bridge since the bridge has to act as a master on the primary bus for the devices on the subordinate bus that initiate transactions with other devices. -- John Baldwin <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve!" - http://www.FreeBSD.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-sparc" in the body of the message