From owner-freebsd-sparc Tue Mar 25 6:49:35 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 DB46137B401 for ; Tue, 25 Mar 2003 06:49:32 -0800 (PST) Received: from is1.mh.itc.u-tokyo.ac.jp (is1.mh.itc.u-tokyo.ac.jp [133.11.205.11]) by mx1.FreeBSD.org (Postfix) with ESMTP id 88AA143F85 for ; Tue, 25 Mar 2003 06:49:31 -0800 (PST) (envelope-from simokawa@sat.t.u-tokyo.ac.jp) Received: from is1.mh.itc.u-tokyo.ac.jp (is1.mh.itc.u-tokyo.ac.jp [127.0.0.1]) by is1.mh.itc.u-tokyo.ac.jp (Postfix) with ESMTP id 2BDC7218175 for ; Tue, 25 Mar 2003 23:49:30 +0900 (JST) Received: from mailhosting.itc.u-tokyo.ac.jp (IDENT:mirapoint@mailhosting.itc.u-tokyo.ac.jp [133.11.205.3]) by is1.mh.itc.u-tokyo.ac.jp (8.12.8/8.11.3) with ESMTP id h2PEnTHH017172; Tue, 25 Mar 2003 23:49:29 +0900 Received: from ett.sat.t.u-tokyo.ac.jp (ett.sat.t.u-tokyo.ac.jp [133.11.135.3]) by mailhosting.itc.u-tokyo.ac.jp (Mirapoint Messaging Server MOS 2.9.3.2) with ESMTP id AIE24066; Tue, 25 Mar 2003 23:49:28 +0900 (JST) Date: Tue, 25 Mar 2003 23:49:28 +0900 Message-ID: From: Hidetoshi Shimokawa To: Jake Burkholder Cc: freebsd-sparc Subject: Re: PCI-PCI bridge In-Reply-To: References: <20030324075708.X76446@locore.ca> User-Agent: Wanderlust/2.11.0 (Wonderwall) REMI/1.14.3 (Matsudai) FLIM/1.14.3 (=?ISO-8859-1?Q?Unebigory=F2mae?=) APEL/10.3 MULE XEmacs/21.4 (patch 8) (Honest Recruiter) (i386--freebsd) X-Face: OE([KxWyJI0r[R~S/>7ia}SJ)i%a,$-9%7{*yihQk|]gl}2p#"oXmX/fT}Bn7: #j7i14gu$jgR\S*&C3R/pJX List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org At Tue, 25 Mar 2003 00:13:40 +0900, Hidetoshi Shimokawa wrote: > > 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. It fixes the problem as expected. /\ Hidetoshi Shimokawa \/ simokawa@sat.t.u-tokyo.ac.jp PGP public key: http://www.sat.t.u-tokyo.ac.jp/~simokawa/pgp.html To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-sparc" in the body of the message