From owner-freebsd-wireless@freebsd.org Sun Jan 20 11:54:27 2019 Return-Path: Delivered-To: freebsd-wireless@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 78589148C1B8 for ; Sun, 20 Jan 2019 11:54:27 +0000 (UTC) (envelope-from jens@mylink-net.de) Received: from mo6-p00-ob.smtp.rzone.de (mo6-p00-ob.smtp.rzone.de [IPv6:2a01:238:20a:202:5300::7]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.smtp.rzone.de", Issuer "TeleSec ServerPass DE-2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id B175E92D12 for ; Sun, 20 Jan 2019 11:54:25 +0000 (UTC) (envelope-from jens@mylink-net.de) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1547985263; s=strato-dkim-0002; d=mylink-net.de; h=In-Reply-To:Date:Message-ID:From:References:Cc:To:Subject: X-RZG-CLASS-ID:X-RZG-AUTH:From:Subject:Sender; bh=sS6WEHXMo/MlYd3jPCTCPfpbasurFlswdZy74w2me7w=; b=qicxHUk3buLni6b7KO7Qm4LtrvtTpXqbuP7nTM72i4dlHlSZrP5PQI8YdR7x+EcU+P YUr2McQfEYtfH0CaX9s7z0lHWzXJwXKVdE5azw0YPbhENLyzDNLGlOIDmZeB3Ik3HXbb JSH6y9XZbmld+0HaGFlBVW7MUOK1eS0ubd7wPqaQ/I2Cfo7YOBGxIS3IWcjsXk6vmoy6 qHDWy4FAyTkY6ummJSmiRK50LLF6kGa6rD1s9ObTObAIqSGqVRnSIJASxA026wl3XeZ2 ZolGyDn27toul8o0G8C70hLAah233ETssXV3E2G2Mud9VrtR3Y1quOV/IYvquKMnmpxa h3OA== X-RZG-AUTH: ":O2kGeEG7b/pS1ECgR3a9gqRv8PGLG3qHXqdRBKYvVC8jIoLLg7y3Riqhlby6IovZWHOzI9nk8k48Ww3kAg==" X-RZG-CLASS-ID: mo00 Received: from smtp.mylink-net.de by smtp.strato.de (RZmta 44.9 AUTH) with ESMTPSA id a0b3e8v0KBsMqoU (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (curve secp521r1 with 521 ECDH bits, eq. 15360 bits RSA)) (Client did not present a certificate) for ; Sun, 20 Jan 2019 12:54:22 +0100 (CET) Received: from lagomera.mylink-net.de (localhost [127.0.0.1]) by smtp.mylink-net.de (Postfix) with ESMTP id 51DD111ED for ; Sun, 20 Jan 2019 12:54:22 +0100 (CET) X-Virus-Scanned: amavisd-new at mylink-net.de Received: from smtp.mylink-net.de ([127.0.0.1]) by lagomera.mylink-net.de (lagomera.mylink-net.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id MGCz-esHpOam for ; Sun, 20 Jan 2019 12:54:08 +0100 (CET) Received: from [IPv6:2001:470:1f0b:9d9:407f:eb4f:9a2a:8fb2] (unknown [IPv6:2001:470:1f0b:9d9:407f:eb4f:9a2a:8fb2]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by smtp.mylink-net.de (Postfix) with ESMTPSA id 30FF011E7; Sun, 20 Jan 2019 12:54:08 +0100 (CET) Subject: Re: Broadcom Wireless BCM43228 support? To: freebsd-wireless@freebsd.org Cc: "freebsd-wireless@freebsd.org" References: <304cc1c5-b2b0-f285-8c8c-c0ff011a1e4e@mylink-net.de> <20190118095911.GA30389@regency.nsu.ru> From: Jens Link Message-ID: <78b2efc7-84f4-1af1-755c-9143304df25b@mylink-net.de> Date: Sun, 20 Jan 2019 12:54:07 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.3.3 MIME-Version: 1.0 In-Reply-To: <20190118095911.GA30389@regency.nsu.ru> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-Rspamd-Queue-Id: B175E92D12 X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=pass header.d=mylink-net.de header.s=strato-dkim-0002 header.b=qicxHUk3 X-Spamd-Result: default: False [-1.10 / 15.00]; ARC_NA(0.00)[]; TO_DN_EQ_ADDR_SOME(0.00)[]; R_DKIM_ALLOW(-0.20)[mylink-net.de:s=strato-dkim-0002]; RCVD_COUNT_FIVE(0.00)[5]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-0.99)[-0.994,0]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-wireless@freebsd.org]; RCVD_VIA_SMTP_AUTH(0.00)[]; DMARC_NA(0.00)[mylink-net.de]; RCVD_TLS_LAST(0.00)[]; NEURAL_SPAM_SHORT(0.29)[0.287,0]; MX_GOOD(-0.01)[smtp.rzone.de]; DKIM_TRACE(0.00)[mylink-net.de:+]; RCPT_COUNT_TWO(0.00)[2]; NEURAL_HAM_MEDIUM(-0.99)[-0.987,0]; R_SPF_NA(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; SUBJECT_ENDS_QUESTION(1.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_IN_DNSWL_LOW(-0.10)[7.0.0.0.0.0.0.0.0.0.0.0.0.0.3.5.2.0.2.0.a.0.2.0.8.3.2.0.1.0.a.2.list.dnswl.org : 127.0.5.1]; MID_RHS_MATCH_FROM(0.00)[] X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 20 Jan 2019 11:54:27 -0000 Am 18.01.19 um 10:59 schrieb Alexey Dokuchaev: > On Sun, Sep 03, 2017 at 10:06:49AM -0700, Adrian Chadd wrote: >> hi! >> >> It's coming! Landon is going to start on the SIBA bus code and will >> start on the MAC core integration. I'll then do the PHY testing! > Hi Adrian, > > Just discovered this thread (and PR 202501). Any news about BCM43228 > support in fresh -CURRENT? > > ./danfe > >> On 3 September 2017 at 09:56, wrote: >>> Is there a change to get the Broadcom Wireless BCM43228 card working? At the >>> BWNWiki the BCM4322 chip is supported. Look in then Linux b43 documentation >>> http://linuxwireless.sipsolutions.net/en/users/Drivers/b43/ the card has the >>> same PHY. So I have tried to build the Kernel with the BWN_GPL_PHY option >>> and add the device id 0x4359 to the siba_bwn.c File as ???Broadcom BCM43228 >>> 802.11a/b/g/n Wireless???. But as result I have got: >>> >>> siba_bwn0: mem >>> 0xf0200000-0xf0203fff irq 17 at device 0.0 on pci2 >>> >>> siba_bwn0: unknown PCI did (17241) >>> >>> siba_bwn0: unknown the chipset ID 0 >>> >>> siba_bwn0: unsupported coreid (unknown) >>> >>> siba_bwn0: warn: bad SPROM CRC >>> >>> siba_bwn0: unknown SPROM revision 0. >>> >>> device_attach: siba_bwn0 attach returned 92 >>> >>> pci0:2:0:0: Device leaked memory resources >>> >>> Is the code ready and I miss something or is the N(16) PHY still >>> unsupported? Thank you for some hints. Hi, here is my update. When use FreeBSD 12.0-STABLE #1 r342378M with "options BWN_GPL_PHY" in Kernel, I get: bwn_pci0: mem 0xf0200000-0xf0203fff irq 17 at device 0.0 on pci2 bhndb0: on bwn_pci0 bhndb0: Using MSI interrupts on bwn_pci0 bhnd0: on bhndb0 bhnd_chipc0: mem 0x18000000-0x18000fff,0x18100000-0x18100fff irq 0 at core 0 on bhnd0 bhnd_nvram0: mem 0x18000800-0x18000bff on bhnd_chipc0 bhnd_pmu0: on bhnd_chipc0 gpio0: mem 0x18000000-0x18000fff on bhnd_chipc0 bhnd_hostb0: mem 0x18002000-0x18002fff,0x8000000-0xfffffff,0x8000000000000000-0xffffffffffffffff,0x18102000-0x18102fff,0x18104000-0x18104fff irq 2 at core 2 on bhnd0 bhnd0: mem 0x18003000-0x18003fff,0x18103000-0x18103fff irq 2 at core 3 (no driver attached) bhnd0: mem 0x18001000-0x18001fff,0x18101000-0x18101fff irq 1 at core 1 (no driver attached) when add the chip ID to bhnd_ids.h (as below) and load the if_bwn kernel module. #define      PCI_DEVID_BCM43228_D11N         0x4359  /* 43228 802.11n DualBand device */ The card ID 0x0607 is still in bhnd_ids.h, see pciconf output of the Card. bwn_pci0@pci0:2:0:0:    class=0x028000 card=0x060714e4 chip=0x435914e4 rev=0x00 hdr=0x00     vendor     = 'Broadcom Inc. and subsidiaries'     device     = 'BCM43228 802.11a/b/g/n'     class      = network     bar   [10] = type Memory, range 64, base 0xf0200000, size 16384, enabled     cap 01[40] = powerspec 3  supports D0 D1 D2 D3  current D0     cap 09[58] = vendor (length 120)     cap 05[48] = MSI supports 1 message, 64 bit     cap 10[d0] = PCI-Express 1 endpoint max data 128(128)                  link x1(x1) speed 2.5(2.5) ASPM L1(L1)     ecap 0001[100] = AER 1 0 fatal 0 non-fatal 0 corrected     ecap 0002[13c] = VC 1 max VC0     ecap 0003[160] = Serial 1 00009dfffff32068     ecap 0004[16c] = Power Budgeting 1 But no drivers were attached to core 1 and 7,  may I need the SDIO driver?