From owner-freebsd-current@FreeBSD.ORG Sat Mar 13 21:13:21 2010 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8C4DA106566C; Sat, 13 Mar 2010 21:13:21 +0000 (UTC) (envelope-from ray@ddteam.net) Received: from mail-fx0-f209.google.com (mail-fx0-f209.google.com [209.85.220.209]) by mx1.freebsd.org (Postfix) with ESMTP id BC9098FC24; Sat, 13 Mar 2010 21:13:20 +0000 (UTC) Received: by fxm1 with SMTP id 1so1631648fxm.13 for ; Sat, 13 Mar 2010 13:13:17 -0800 (PST) Received: by 10.223.5.211 with SMTP id 19mr3078110faw.63.1268514797448; Sat, 13 Mar 2010 13:13:17 -0800 (PST) Received: from localhost (153-123-133-95.pool.ukrtel.net [95.133.123.153]) by mx.google.com with ESMTPS id 15sm2007532fxm.12.2010.03.13.13.13.15 (version=SSLv3 cipher=RC4-MD5); Sat, 13 Mar 2010 13:13:16 -0800 (PST) Date: Sat, 13 Mar 2010 23:12:05 +0200 From: Alex RAY To: Weongyo Jeong Message-Id: <20100313231205.5e68a89a.ray@ddteam.net> In-Reply-To: <20100312231333.GZ1295@weongyo> References: <20091223035331.GA1293@weongyo> <4b31cb29.9413f30a.5f4a.ffff8382@mx.google.com> <20100226005115.GP14937@weongyo> <20100227011535.ed3f2486.ray@ddteam.net> <20100228095259.GB3536@weongyo> <20100301103240.3a4aac8a.ray@dlink.ua> <20100303082833.GB22865@weongyo> <20100303111014.6564ea1e.ray@dlink.ua> <20100312231333.GZ1295@weongyo> Organization: DDTeam.net X-Mailer: Sylpheed 2.7.1 (GTK+ 2.16.6; i386-portbld-freebsd8.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: Alexandr Rybalko , current@freebsd.org, Weongyo Jeong Subject: Re: Call for Test and Review: bwn(4) - another Broadcom Wireless driver X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 13 Mar 2010 21:13:21 -0000 On Fri, 12 Mar 2010 15:13:34 -0800 Weongyo Jeong wrote: > > I thought that your opinion was right and if mem is > 0xf4000000-0xf4003fff (16 Kb) I thought the device has 4 cores. However > it looks this was wrong according to the below document: > > http://voodoowarez.com/bcm5365p.pdf > > Please see Section 3: PCI Core, PCI Bus (Page 34) that it indicates that > 16Kb, maybe 8 Kb in the old devices is core register region. > > "Accesses to the lower half of the core register region are translated > into system backplane accesses using the PCIBAR0Window register" > "Accesses to offsets 0x1000 to 0x17FF of this region initiate a direct > access to the external SPROM" > > If we just access memory using offset + core and bus_space_read_x > interfaces it would actually not access core register region. > > So without solving this problem it looks it could not remove coreswitch > routines. > > regards, > Weongyo Jeong > Hi, this document about SoC BCM5365P, not about PCI device with PCI to SSB bridge. I know in SoC`s like BSM5365 (I test it in BCM5354 and BCM5836) core switching is not required. BCM5354 - http://lists.freebsd.org/pipermail/freebsd-mips/2009-June/000421.html BCM5836 - http://lists.freebsd.org/pipermail/freebsd-mips/2010-February/000635.html With PCI device, when device report memory window 0xf4000000-0xf4003fff, why we can`t use full window? May be You can test your code without core switching? -- Alex RAY