From owner-freebsd-current@FreeBSD.ORG Wed Dec 23 20:14:44 2009 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 B59E3106566B; Wed, 23 Dec 2009 20:14:44 +0000 (UTC) (envelope-from weongyo.jeong@gmail.com) Received: from qw-out-2122.google.com (qw-out-2122.google.com [74.125.92.25]) by mx1.freebsd.org (Postfix) with ESMTP id 453438FC13; Wed, 23 Dec 2009 20:14:43 +0000 (UTC) Received: by qw-out-2122.google.com with SMTP id 9so1611408qwb.7 for ; Wed, 23 Dec 2009 12:14:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:received:from:date:to:cc :subject:message-id:reply-to:mail-followup-to:references :mime-version:content-type:content-disposition :content-transfer-encoding:in-reply-to:user-agent:organization :x-operation-sytem; bh=KvBjFtmmP7pZuK1fiQeNPUgVO3vWC0IgaLAr6ek1HGM=; b=iHrQoSG1ZUSrTTg9vwbe6lkcBJHW1S2vvq5fvJlqQNe33uG87tfjTciNagNeU+BRF7 ZcA0tkkaENXHDv4rvb8EM/1Xgn+BAnHTF2LO2AGkn+QUzljBkcU9F6Mzog+VwhfrbDkk MR84eX4b6jAwv+1IuFr455l65YUTHqhvXfi1Y= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:date:to:cc:subject:message-id:reply-to:mail-followup-to :references:mime-version:content-type:content-disposition :content-transfer-encoding:in-reply-to:user-agent:organization :x-operation-sytem; b=KmogXQBniQUvqkU9nKu3vJm/WK0Fno4T3/p5A5QPr312hRbnZxZoiEp31nTXT66lsl UQdxDmwxp7zjG/9vqkf7ZtEN3wXHyOI0/Ak8SM7eEe9yJ1lM3RgubmNkCeaclMW/tBvD BAUXrcT8w2jiQ1yNwhZCufPtLwcxfVeuMr85I= Received: by 10.229.119.154 with SMTP id z26mr4855019qcq.38.1261599283417; Wed, 23 Dec 2009 12:14:43 -0800 (PST) Received: from weongyo ([174.35.1.224]) by mx.google.com with ESMTPS id 23sm6621829qyk.15.2009.12.23.12.14.41 (version=SSLv3 cipher=RC4-MD5); Wed, 23 Dec 2009 12:14:42 -0800 (PST) Received: by weongyo (sSMTP sendmail emulation); Wed, 23 Dec 2009 12:14:38 -0800 From: Weongyo Jeong Date: Wed, 23 Dec 2009 12:14:38 -0800 To: Alex Keda Message-ID: <20091223201438.GD1293@weongyo> Mail-Followup-To: Alex Keda , current@freebsd.org, Gonzalo Nemmi , Attilio Rao , Aditya Sarawgi , Andrea Di Pasquale References: <20091223035331.GA1293@weongyo> <4B3250E7.1000509@lissyara.su> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="gBBFr7Ir9EOA20Yy" Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <4B3250E7.1000509@lissyara.su> User-Agent: Mutt/1.4.2.3i Organization: CDNetworks. X-Operation-Sytem: FreeBSD Cc: Attilio Rao , Aditya Sarawgi , Gonzalo Nemmi , current@freebsd.org, Andrea Di Pasquale 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 Reply-To: Weongyo Jeong List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 Dec 2009 20:14:44 -0000 --gBBFr7Ir9EOA20Yy Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit On Wed, Dec 23, 2009 at 08:18:31PM +0300, Alex Keda wrote: > Weongyo Jeong пишет: > >Hello, > > > >Now bwn(4) is available at the public and waiting test and review. The > >status of this driver is *alpha* so could make panics, warnings and > >errors. Please let me know if you encounter problems. > > > >The following NICs all I have are only tested on the little endian 64bit > >machine and big endian 32bit machine. > > > > - Broadcom BCM4306 802.11b/g Wireless > > - Broadcom BCM4318 802.11b/g Wireless > none1@pci0:48:0:0: class=0x028000 card=0x1371103c chip=0x431214e4 > rev=0x02 hdr=0x00 > vendor = 'Broadcom Corporation' > device = 'BCM4310 UART (Wireless Ethernet Adapter)' > class = network > bar [10] = type Memory, range 64, base 0xc8000000, size 16384, > enabled > cap 01[40] = powerspec 3 supports D0 D1 D2 D3 current D0 > cap 09[58] = vendor (length 120) > cap 05[e8] = MSI supports 1 message, 64 bit > cap 10[d0] = PCI-Express 1 endpoint max data 128(128) link x1(x1) > > FreeBSD HP.lissyara.su 9.0-CURRENT FreeBSD 9.0-CURRENT #0 r200750: Sun > Dec 20 14:47:53 MSK 2009 > root@HP.lissyara.su:/usr/obj/usr/src/sys/GENERIC amd64 > > after load ssb > ssb0: mem 0xc8000000-0xc8003fff > irq 18 at device 0.0 on pci48 > ssb0: unsupportted coreid 0x817 Interesting. It looks device has a USB 1.1 host controller(?) in wireless NIC. I think you can ignore this message that looks no harm. > after load if_bwn I have panic > bwn0 on ssb0 > bwn: WLAN (chipid 0x4311 rev B) PHY (analog 4 type 2 rev 9) RADIO (manyf > 0x17f ver 0x2050 rev 2) > bwn0: DMA (64 bits) > bwn0: [FILTER] > panic: ssb_add_child: 1960: SSB_DEV_80211 is only supported currently. It's caused by unexpected SSB core. Could you please test with attached patch with email and tell me the result? regards, Weongyo Jeong --gBBFr7Ir9EOA20Yy Content-Type: text/x-diff; charset=us-ascii Content-Disposition: attachment; filename="patch_ssb_20091223.diff" Index: ssb.c =================================================================== --- ssb.c (revision 24) +++ ssb.c (working copy) @@ -1936,15 +1936,7 @@ for (i = 0; i < ssb->ssb_ndevs; i++) { sd = &(ssb->ssb_devs[i]); - switch (sd->sd_id.cid) { - case SSB_DEV_CHIPCOMMON: - case SSB_DEV_PCI: - case SSB_DEV_PCIE: - case SSB_DEV_PCMCIA: - case SSB_DEV_MIPS: - case SSB_DEV_MIPS_3302: - case SSB_DEV_V90: - case SSB_DEV_EXTIF: + if (sd->sd_id.cid != SSB_DEV_80211) { DPRINTF(ssb, SSB_DEBUG_CORE, "skip to register coreid %#x (%s)\n", sd->sd_id.cid, ssb_core_name(sd->sd_id.cid)); --gBBFr7Ir9EOA20Yy--