From owner-freebsd-wireless@freebsd.org Fri Jan 13 16:16:43 2017 Return-Path: Delivered-To: freebsd-wireless@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 77428CADC57 for ; Fri, 13 Jan 2017 16:16:43 +0000 (UTC) (envelope-from mizhka@gmail.com) Received: from mail-qk0-x230.google.com (mail-qk0-x230.google.com [IPv6:2607:f8b0:400d:c09::230]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 33B981082 for ; Fri, 13 Jan 2017 16:16:43 +0000 (UTC) (envelope-from mizhka@gmail.com) Received: by mail-qk0-x230.google.com with SMTP id u25so58686387qki.2 for ; Fri, 13 Jan 2017 08:16:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=J77Erp1MffZlm9z1eunncP1LB44Itya4cgJlIdviNj0=; b=SBNFCrklfaXwNhq2yP8dsPf21cHAPqmKmBMn5Uq5ysNUNoN9NOLqSoJnBdUR5kjLxa 6Xos0eLL/kifh/Y6Wu/E9hX28xVy7jlOuuDYgRRUMB8a2aoGjVvTDu3lXfYLmZuZN7qQ Xo5mkhKJwSzyGCrm8522OATnu5OfrZ9zJnhIQGQCOlKUSWfAJPpo8VBj5YcwgqEV4FOX wAAWrJetY2F0RZRkmHFHymOAhrw+QqZFIBCfqUKGAQZqSexrjMPCB/AHB1j8F/Ggq4TA 0VMOByAftsCdA8sMpjK4I04aHxW8ibeLcEK01BM5ufeyUdi/bYiI7mlk5EHLcJQFJcZU MKoA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=J77Erp1MffZlm9z1eunncP1LB44Itya4cgJlIdviNj0=; b=HNb61nYk5btYfnoke2gHYt5XWyBCZfEWUcvlAb0MPfZEbFtEu6iI1gThCOcsN3pIw7 7JyDUzq0c6dF+MXHs/it3AVsstoDY8E+/jN4HHiuVaj7n+FGmmg4GAYhW+6jE6DeS+up qFkpUckabGYkjIQtcmyfWF24KYUP70g5rCqLPpVHxOfpIwcbKYaxhJu7XMX4ah5xCIxp 2FMoykUkSibBq5D2NSZHQcjPeFTrPvUMW7sPc97fg2ur6BH0DWsBDE7qn8Qj4QcrMWvT HgxLUVMltA2zeyrxFoiEIDTXYfkgRX3VwRblmMPylv355jIS8kq2KSbf2lzGeKXixTjK skBQ== X-Gm-Message-State: AIkVDXLF9BtmXNAMLX7GbV5LZZUnbVoURlTl97+l5EOQ9/Tt1hlxKvbHKIcQZxvK2i5khkwdwW2MIFp8BjyOzQ== X-Received: by 10.55.90.68 with SMTP id o65mr20842076qkb.47.1484324202248; Fri, 13 Jan 2017 08:16:42 -0800 (PST) MIME-Version: 1.0 Received: by 10.237.32.141 with HTTP; Fri, 13 Jan 2017 08:16:41 -0800 (PST) In-Reply-To: <20170111234212.GA1298@work_terminal> References: <20170111234212.GA1298@work_terminal> From: Michael Zhilin Date: Fri, 13 Jan 2017 19:16:41 +0300 Message-ID: Subject: Re: BCM4312 DMA problem on FreeBSD 11 To: "Vladimir V. Krylov" Cc: freebsd-wireless Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.23 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: Fri, 13 Jan 2017 16:16:43 -0000 Hi, I don't see such fatal error. :/ Could you please give output of ifconfig wlan0? Thanks! On Thu, Jan 12, 2017 at 2:42 AM, Vladimir V. Krylov < volodimir.krylov@gmail.com> wrote: > Hello, team, > > On a new release (FreeBSD 11.0) with Broadcom Wifi chip (BCM4312) I have > the next problem: on "ifconfig wlan0 up" I see in the syslog the next > messages: > kernel: bwn_init: called > kernel: bwn_core_init: called > kernel: bwn_reset_core: g_mode=1 > kernel: bwn_core_init: chip_init > kernel: bwn0: ucode fw: ucode15 > kernel: bwn0: firmware version (rev 478 patch 104 date 0x8701 time 0x657) > kernel: bwn_mac_suspend: suspended=1 > kernel: bwn_mac_enable: suspended=2 > kernel: bwn_core_init: hw capabilities: 0xb0484205 > kernel: bwn_mac_suspend: suspended=1 > kernel: wmep_txopLimit 0 wmep_logcwmin 1 wmep_logcwmax 15 wmep_aifsn 3 > kernel: wmep_txopLimit 0 wmep_logcwmin 1 wmep_logcwmax 15 wmep_aifsn 7 > kernel: wmep_txopLimit 0 wmep_logcwmin 1 wmep_logcwmax 0 wmep_aifsn 2 > kernel: wmep_txopLimit 0 wmep_logcwmin 1 wmep_logcwmax 0 wmep_aifsn 2 > kernel: bwn_mac_enable: suspended=2 > kernel: bwn_core_init: powerup > kernel: bwn_core_init: done > kernel: bwn_mac_enable: suspended=1 > kernel: bwn_psctl: ucstat=2 > kernel: bwn_intr: called > kernel: bwn_intr: reason=0x00008000 > kernel: bwn0: bwn_newstate: INIT -> SCAN > kernel: Fatal DMA error: 0x400 0 0 0 0 0 > kernel: bwn0: HW reset: DMA error > ... etc, the cycle of DMA errors > > The wlan interface does not work when it. How can I solve this problem? > > Here are the more info. > > uname: > FreeBSD 11.0-RELEASE-p1 #0 r309340M: Mon Jan 2 20:58:44 MSK 2017 > root@notebook:/usr/obj/usr/src/sys/iNOTE > > KERNEL: > options BWN_GPL_PHY > options BWN_DEBUG > device firmware > device wlan > options IEEE80211_DEBUG > options IEEE80211_AMPDU_AGE > options IEEE80211_SUPPORT_MESH > device wlan_wep > device wlan_ccmp > device wlan_tkip > device wlan_amrr > > on boot messages: > ... > kernel: siba_bwn0: mem > 0xc8300000-0xc8303fff irq 19 at device 0.0 on pci3 > kernel: bwn0 on siba_bwn0 > kernel: bwn_reset_core: g_mode=1 > kernel: bwn_reset_core: g_mode=1 > kernel: bwn_setup_channels: called; bg=1, a=1 > kernel: 0th led, act 2, lowact 0 > kernel: 1th led, act 3, lowact 0 > kernel: 2th led, act 4, lowact 0 > kernel: 3th led, act 0, lowact 0 > kernel: bwn0: WLAN (chipid 0x4312 rev 15) PHY (analog 6 type 5 rev 1) > RADIO (manuf 0x17f ver 0x2062 rev 2) > kernel: bwn0: DMA (64 bits) > kernel: bwn0: Note: compiled with BWN_GPL_PHY; includes GPLv2 code > kernel: bwn0: Using 1 MSI messages > ... > kernel: ubt0: 2.00/3.06, addr 3> on usbus0 > ... > > pciconf: > siba_bwn0@pci0:68:0:0: class=0x028000 card=0x1508103c chip=0x431514e4 > rev=0x01 hdr=0x00 > vendor = 'Broadcom Limited' > device = 'BCM4312 802.11b/g LP-PHY' > class = network > > pkg info: > bwn-firmware-kmod-0.1.2 Broadcom AirForce IEEE 802.11 Firmware > Kernel Module > > kldstat: > 8 1 0xffffffff81304000 900c8 if_bwn.ko > 9 2 0xffffffff81395000 f000 siba_bwn.ko > 15 1 0xffffffff81480000 2dde0 bwn_v4_lp_ucode.ko > 16 1 0xffffffff814ae000 2c480 bwn_v4_ucode.ko > > loader.conf: > if_bwn_load="YES" > #hw.bwn.usedma=0 # it does not help > bwn_v4_lp_ucode_load="YES" > bwn_v4_ucode_load="YES" > hw.bwn.debug=-1 > > rc.conf: > wlans_bwn0="wlan0" > create_args_wlan0="mode 11b" > > I have attached the messages log. > > -- > > _______________________________________________ > freebsd-wireless@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-wireless > To unsubscribe, send any mail to "freebsd-wireless-unsubscribe@freebsd.org > " >