From owner-freebsd-wireless@freebsd.org Sun Dec 1 05:58:35 2019 Return-Path: Delivered-To: freebsd-wireless@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 33E651B1E22 for ; Sun, 1 Dec 2019 05:58:35 +0000 (UTC) (envelope-from lrx337@gmail.com) Received: from mail-lf1-x12c.google.com (mail-lf1-x12c.google.com [IPv6:2a00:1450:4864:20::12c]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 47QcxQ22fcz4SSK for ; Sun, 1 Dec 2019 05:58:34 +0000 (UTC) (envelope-from lrx337@gmail.com) Received: by mail-lf1-x12c.google.com with SMTP id l14so25466959lfh.10 for ; Sat, 30 Nov 2019 21:58:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=3HdvVqKeuWVzNEbRN/ALcKKltAQZ8knjPQJ3LW9w7XE=; b=csFPhDFLGrGmkHdC9qzi1Dsed4HgkJB4Zf5ZFUzxLDZ2jUKSLRl5AezaqmJzJXv49r H2jqfjQG6sEL3yDo3Ha8sb8Ye7FlA8NZOUIl4GaU//7nJwKTXBelZk0bKM/PvGw4LGZy cKtBsfmrVNz5qciLGu/hEJBCuATT0PpplDQ9auIBoNpGxRgzaOCO0brMDm4dfK2l45te eIFT+LJyxb2pSVmWruSZSjMaH15w4ctsAQIzEH6FLS2D7EiQ0sldX8Qsv0MKDSGopSkF EekLukE7Hme0X9tguz4XOClzD+WzgAePyqlRKOoA4jWvvRFPp4DA5GR/+px5LH7e07sA AuPQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=3HdvVqKeuWVzNEbRN/ALcKKltAQZ8knjPQJ3LW9w7XE=; b=ZdfMTeUnP9rD9POLBJ1Cr/7aslmvPA6CzXb3ElV4wTl/Je5PN2R7GYufEvcoFgaQuE wooazIiiIWUarQ6TOYHyoArKbPKUB23qfpfgtJB8YlSk/k05pQ/2phDYiNMr/Oacqu8S cjKYQQjk31YusAnTUEdIffC4DrcK//jTPetpKdxLqDIyNzU09W4GubO46d/JOalobD41 GzLVpUfS3xZmYq84KQXuj2r80XEyI6hur9/+j1223KP/+jRTbTQmONM0yBAmEruv6Dzd 69Dvte8T0SKtUflyPDbFG4BnwI1kI1iSWRqghddLE7gyCuWI4FRDGgmVRrE/SlyCCaWk uwwg== X-Gm-Message-State: APjAAAV6PDakZXs9lEOgwQmQO0Q/72lnFDeNsJcXBqkL/OROwcaTNOEL Gd5+/YPFNu8guGZHFz1V5tCyIFIj1TfJ3wTVTFhkxCpM X-Google-Smtp-Source: APXvYqx+JLWo3WkNlIIwLKsrsAYRCfo1w92Y2EPyZ13+2lgVuuN4fpJR+pX5RPB3pKTv94khshwGtL0jHupLXMKNHTk= X-Received: by 2002:ac2:4102:: with SMTP id b2mr40162968lfi.16.1575179911406; Sat, 30 Nov 2019 21:58:31 -0800 (PST) MIME-Version: 1.0 From: Ashish Gupta Date: Sun, 1 Dec 2019 00:58:20 -0500 Message-ID: Subject: run(4) driver: 802.11n support for RT3593 To: freebsd-wireless@freebsd.org X-Rspamd-Queue-Id: 47QcxQ22fcz4SSK X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=csFPhDFL; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of lrx337@gmail.com designates 2a00:1450:4864:20::12c as permitted sender) smtp.mailfrom=lrx337@gmail.com X-Spamd-Result: default: False [-3.00 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36:c]; FREEMAIL_FROM(0.00)[gmail.com]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-wireless@freebsd.org]; TO_DN_NONE(0.00)[]; IP_SCORE_FREEMAIL(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; IP_SCORE(0.00)[ip: (-9.38), ipnet: 2a00:1450::/32(-2.69), asn: 15169(-1.94), country: US(-0.05)]; TO_MATCH_ENVRCPT_ALL(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; RCVD_IN_DNSWL_NONE(0.00)[c.2.1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.5.4.1.0.0.a.2.list.dnswl.org : 127.0.5.0]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com.dwl.dnswl.org : 127.0.5.0] Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 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, 01 Dec 2019 05:58:35 -0000 Hi! I've been messing around with the run driver and the net80211 implementation for a bit with the aim of enabling 802.11ng support (worry about 11ac later) using monitor mode captures when running my ASUS USB N66 Ralink RT3593 on both linux and freebsd. The run(4) driver was not sending out HT capability tags with the probe requests (while the linux driver does). This seemed like a (logical?) first step on the road to having full 802.11n support in the run driver. The following patch accomplishes it, although the capabilities need some tuning in the run driver setup code to be identical with the linux driver. I don't know why the existing ieee80211 code only does this for IBSS mode, and not STA mode. What do you think about this? And... what would be a good next step to further this mission? Index: sys/dev/usb/wlan/if_run.c =================================================================== --- sys/dev/usb/wlan/if_run.c (revision 354552) +++ sys/dev/usb/wlan/if_run.c (working copy) @@ -808,6 +808,28 @@ IEEE80211_C_WME | /* WME */ IEEE80211_C_WPA; /* WPA1|WPA2(RSN) */ + /* set device HT capabilities */ + /* HT Capabilities strictly for 11ng (we dont support 11ac yet..) */ + ic->ic_htcaps = IEEE80211_HTC_HT | IEEE80211_HTC_AMPDU | + + /* IEEE80211_HTCAP_LDPC | */ + IEEE80211_HTCAP_CHWIDTH40 | + IEEE80211_HTCAP_GREENFIELD | + IEEE80211_HTCAP_SMPS_OFF | + IEEE80211_HTCAP_SHORTGI20 | + IEEE80211_HTCAP_SHORTGI40 | + IEEE80211_HTCAP_TXSTBC | + IEEE80211_HTCAP_RXSTBC_3STREAM | + /* IEEE80211_HTCAP_DSSSCCK40 | */ + + IEEE80211_HTCAP_MAXRXAMPDU | + IEEE80211_HTCAP_MPDUDENSITY_4; + + /* TODO: Remaining Rx supported mcs, ht extended cap, transmit beam forming, + antenna selection caps. Later.. */ + + device_printf(sc->sc_dev, "ic_htcaps = 0x%x\n", ic->ic_htcaps); + ic->ic_cryptocaps = IEEE80211_CRYPTO_WEP | IEEE80211_CRYPTO_AES_CCM | @@ -4851,6 +4873,12 @@ memset(bands, 0, sizeof(bands)); setbit(bands, IEEE80211_MODE_11B); setbit(bands, IEEE80211_MODE_11G); + + if(sc->rf_rev == RT3593_RF_3053) { + device_printf(sc->sc_dev, "Adding mode 11ng to RT3593 channels.\n"); + setbit(bands, IEEE80211_MODE_11NG); + } + ieee80211_add_channels_default_2ghz(chans, maxchans, nchans, bands, 0); if (sc->rf_rev == RT2860_RF_2750 || sc->rf_rev == RT2860_RF_2850 || Index: sys/net80211/ieee80211_output.c =================================================================== --- sys/net80211/ieee80211_output.c (revision 354552) +++ sys/net80211/ieee80211_output.c (working copy) @@ -2415,7 +2415,19 @@ frm = ieee80211_add_htcap_ch(frm, vap, c); } + if ((vap->iv_opmode == IEEE80211_M_STA) && (vap->iv_flags_ht & IEEE80211_FHT_HT)) { + struct ieee80211_channel *c; + /* + * Get the HT channel that we should try upgrading to. + * If we can do 40MHz then this'll upgrade it appropriately. + */ + c = ieee80211_ht_adjust_channel(ic, ic->ic_curchan, + vap->iv_flags_ht); + frm = ieee80211_add_htcap_ch(frm, vap, c); + } + + /* * XXX TODO: need to figure out what/how to update the * VHT channel. */ Thanks! Ashish Gupta From owner-freebsd-wireless@freebsd.org Sun Dec 1 13:17:28 2019 Return-Path: Delivered-To: freebsd-wireless@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 43ED91AAEA8 for ; Sun, 1 Dec 2019 13:17:28 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (mailman.nyi.freebsd.org [IPv6:2610:1c1:1:606c::50:13]) by mx1.freebsd.org (Postfix) with ESMTP id 47Qpgr17Myz3Kk6 for ; Sun, 1 Dec 2019 13:17:28 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id 26C121AAEA7; Sun, 1 Dec 2019 13:17:28 +0000 (UTC) Delivered-To: wireless@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 2688F1AAEA6 for ; Sun, 1 Dec 2019 13:17:28 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 47Qpgr09w7z3Kk5 for ; Sun, 1 Dec 2019 13:17:28 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id DD9BEF447 for ; Sun, 1 Dec 2019 13:17:27 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id xB1DHRnq001706 for ; Sun, 1 Dec 2019 13:17:27 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id xB1DHRSR001705 for wireless@FreeBSD.org; Sun, 1 Dec 2019 13:17:27 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: wireless@FreeBSD.org Subject: [Bug 242337] iwm - rate 0 causes iwm panic (and work around) Date: Sun, 01 Dec 2019 13:17:27 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: wireless X-Bugzilla-Version: 12.1-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: dirkx@webweaving.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: wireless@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 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, 01 Dec 2019 13:17:28 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D242337 Bug ID: 242337 Summary: iwm - rate 0 causes iwm panic (and work around) Product: Base System Version: 12.1-RELEASE Hardware: amd64 OS: Any Status: New Severity: Affects Some People Priority: --- Component: wireless Assignee: wireless@FreeBSD.org Reporter: dirkx@webweaving.org --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-wireless@freebsd.org Sun Dec 1 13:21:23 2019 Return-Path: Delivered-To: freebsd-wireless@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 805C01AB0B8 for ; Sun, 1 Dec 2019 13:21:23 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (mailman.nyi.freebsd.org [IPv6:2610:1c1:1:606c::50:13]) by mx1.freebsd.org (Postfix) with ESMTP id 47QpmM3dLTz3Kp9 for ; Sun, 1 Dec 2019 13:21:23 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id 7C3DA1AB0B7; Sun, 1 Dec 2019 13:21:23 +0000 (UTC) Delivered-To: wireless@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 7C00B1AB0B6 for ; Sun, 1 Dec 2019 13:21:23 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 47QpmM3VP0z3Kp8 for ; Sun, 1 Dec 2019 13:21:23 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 5B3C0F59F for ; Sun, 1 Dec 2019 13:21:23 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id xB1DLNX2093799 for ; Sun, 1 Dec 2019 13:21:23 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id xB1DLN0I093685 for wireless@FreeBSD.org; Sun, 1 Dec 2019 13:21:23 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: wireless@FreeBSD.org Subject: [Bug 242337] iwm - rate 0 causes iwm panic (and work around) Date: Sun, 01 Dec 2019 13:21:23 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: wireless X-Bugzilla-Version: 12.1-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: dirkx@webweaving.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: wireless@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 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, 01 Dec 2019 13:21:23 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D242337 --- Comment #1 from dirkx@webweaving.org --- The standard IWM wifi card on a thinkpad X270 panics when it wants to talk = to a dutch KPN-Experia ADLS/wifi router (a very common setup in the Netherlands). Panic/dmesg below. It then flaps up/down - but is unable to get a stable connection. iwm0: Start UMAC Error Log Dump: iwm0: Status: 0x83, count: 7 iwm0: 0x00000070 | ADVANCED_SYSASSERT iwm0: 0x00000000 | umac branchlink1 iwm0: 0xC008383C | umac branchlink2 iwm0: 0xC008166C | umac interruptlink1 iwm0: 0xC008166C | umac interruptlink2 iwm0: 0x00000800 | umac data1 iwm0: 0xC008166C | umac data2 iwm0: 0xDEADBEEF | umac data3 iwm0: 0x00000016 | umac major iwm0: 0x00058404 | umac minor iwm0: 0xC0886280 | frame pointer iwm0: 0xC0886280 | stack pointer iwm0: 0x0934004E | last host cmd iwm0: 0x00000000 | isr status reg iwm0: driver status: iwm0: tx ring 0: qid=3D0 cur=3D2 queued=3D0=20=20 iwm0: tx ring 1: qid=3D1 cur=3D0 queued=3D0=20=20 iwm0: tx ring 2: qid=3D2 cur=3D0 queued=3D0=20=20 iwm0: tx ring 3: qid=3D3 cur=3D0 queued=3D0=20=20 iwm0: tx ring 4: qid=3D4 cur=3D0 queued=3D0=20=20 iwm0: tx ring 5: qid=3D5 cur=3D0 queued=3D0=20=20 iwm0: tx ring 6: qid=3D6 cur=3D0 queued=3D0=20=20 iwm0: tx ring 7: qid=3D7 cur=3D0 queued=3D0=20=20 iwm0: tx ring 8: qid=3D8 cur=3D0 queued=3D0=20=20 iwm0: tx ring 9: qid=3D9 cur=3D53 queued=3D1=20=20 iwm0: tx ring 10: qid=3D10 cur=3D0 queued=3D0=20=20 iwm0: tx ring 11: qid=3D11 cur=3D0 queued=3D0=20=20 iwm0: tx ring 12: qid=3D12 cur=3D0 queued=3D0=20=20 iwm0: tx ring 13: qid=3D13 cur=3D0 queued=3D0=20=20 iwm0: tx ring 14: qid=3D14 cur=3D0 queued=3D0=20=20 iwm0: tx ring 15: qid=3D15 cur=3D0 queued=3D0=20=20 iwm0: tx ring 16: qid=3D16 cur=3D0 queued=3D0=20=20 iwm0: tx ring 17: qid=3D17 cur=3D0 queued=3D0=20=20 iwm0: tx ring 18: qid=3D18 cur=3D0 queued=3D0=20=20 iwm0: tx ring 19: qid=3D19 cur=3D0 queued=3D0=20=20 iwm0: tx ring 20: qid=3D20 cur=3D0 queued=3D0=20=20 iwm0: tx ring 21: qid=3D21 cur=3D0 queued=3D0=20=20 iwm0: tx ring 22: qid=3D22 cur=3D0 queued=3D0=20=20 iwm0: tx ring 23: qid=3D23 cur=3D0 queued=3D0=20=20 iwm0: tx ring 24: qid=3D24 cur=3D0 queued=3D0=20=20 iwm0: tx ring 25: qid=3D25 cur=3D0 queued=3D0=20=20 iwm0: tx ring 26: qid=3D26 cur=3D0 queued=3D0=20=20 iwm0: tx ring 27: qid=3D27 cur=3D0 queued=3D0=20=20 iwm0: tx ring 28: qid=3D28 cur=3D0 queued=3D0=20=20 iwm0: tx ring 29: qid=3D29 cur=3D0 queued=3D0=20=20 iwm0: tx ring 30: qid=3D30 cur=3D0 queued=3D0=20=20 iwm0: rx ring: cur=3D80 iwm0: 802.11 state 3 iwm0: iwm_intr: controller panicked, iv_state =3D 3; restarting iwm0: iwm_newstate: IWM_LQ_CMD failed: 35 iwm0: iwm_rate2ridx: WARNING: device rate for 0 not found! iwm0: iwm_rate2ridx: WARNING: device rate for 0 not found! iwm0: dumping device error log iwm0: Start Error Log Dump: iwm0: Status: 0x83, count: 6 iwm0: 0x00002078 | ADVANCED_SYSASSERT=20=20=20=20=20=20=20=20=20=20 iwm0: 00A00220 | trm_hw_status0 iwm0: 00000000 | trm_hw_status1 iwm0: 0000E9C8 | branchlink2 iwm0: 0002843C | interruptlink1 iwm0: 00000000 | interruptlink2 iwm0: 00000000 | data1 iwm0: 00000000 | data2 iwm0: DEADBEEF | data3 iwm0: 00014E39 | beacon time iwm0: 4494D2A2 | tsf low iwm0: 00000055 | tsf hi iwm0: 00000000 | time gp1 iwm0: 00E55138 | time gp2 iwm0: 00000000 | uCode revision type iwm0: 00000016 | uCode version major iwm0: 00058404 | uCode version minor iwm0: 00000201 | hw version iwm0: 00009008 | board version iwm0: 0936004E | hcmd iwm0: 24022080 | isr0 iwm0: 01000000 | isr1 iwm0: 08205802 | isr2 iwm0: 00417CC0 | isr3 iwm0: 00000000 | isr4 iwm0: 04000118 | last cmd Id iwm0: 00000000 | wait_event iwm0: 00000288 | l2p_control iwm0: 00018030 | l2p_duration iwm0: 000000BF | l2p_mhvalid iwm0: 000000EF | l2p_addr_match iwm0: 0000000D | lmpm_pmg_sel iwm0: 03071928 | timestamp iwm0: 00008090 | flow_handler iwm0: Start UMAC Error Log Dump: iwm0: Status: 0x83, count: 7 iwm0: 0x00000070 | ADVANCED_SYSASSERT iwm0: 0x00000000 | umac branchlink1 iwm0: 0xC008383C | umac branchlink2 iwm0: 0xC008166C | umac interruptlink1 iwm0: 0xC008166C | umac interruptlink2 iwm0: 0x00000800 | umac data1 iwm0: 0xC008166C | umac data2 iwm0: 0xDEADBEEF | umac data3 iwm0: 0x00000016 | umac major iwm0: 0x00058404 | umac minor iwm0: 0xC0886280 | frame pointer iwm0: 0xC0886280 | stack pointer iwm0: 0x0936004E | last host cmd iwm0: 0x00000000 | isr status reg iwm0: driver status: iwm0: tx ring 0: qid=3D0 cur=3D2 queued=3D0=20=20 iwm0: tx ring 1: qid=3D1 cur=3D0 queued=3D0=20=20 iwm0: tx ring 2: qid=3D2 cur=3D0 queued=3D0=20=20 iwm0: tx ring 3: qid=3D3 cur=3D0 queued=3D0=20=20 iwm0: tx ring 4: qid=3D4 cur=3D0 queued=3D0=20=20 iwm0: tx ring 5: qid=3D5 cur=3D0 queued=3D0=20=20 iwm0: tx ring 6: qid=3D6 cur=3D0 queued=3D0=20=20 iwm0: tx ring 7: qid=3D7 cur=3D0 queued=3D0=20=20 iwm0: tx ring 8: qid=3D8 cur=3D0 queued=3D0=20=20 iwm0: tx ring 9: qid=3D9 cur=3D55 queued=3D1=20=20 iwm0: tx ring 10: qid=3D10 cur=3D0 queued=3D0=20=20 iwm0: tx ring 11: qid=3D11 cur=3D0 queued=3D0=20=20 iwm0: tx ring 12: qid=3D12 cur=3D0 queued=3D0=20=20 iwm0: tx ring 13: qid=3D13 cur=3D0 queued=3D0=20=20 iwm0: tx ring 14: qid=3D14 cur=3D0 queued=3D0=20=20 iwm0: tx ring 15: qid=3D15 cur=3D0 queued=3D0=20=20 iwm0: tx ring 16: qid=3D16 cur=3D0 queued=3D0=20=20 iwm0: tx ring 17: qid=3D17 cur=3D0 queued=3D0=20=20 iwm0: tx ring 18: qid=3D18 cur=3D0 queued=3D0=20=20 iwm0: tx ring 19: qid=3D19 cur=3D0 queued=3D0=20=20 iwm0: tx ring 20: qid=3D20 cur=3D0 queued=3D0=20=20 iwm0: tx ring 21: qid=3D21 cur=3D0 queued=3D0=20=20 iwm0: tx ring 22: qid=3D22 cur=3D0 queued=3D0=20=20 iwm0: tx ring 23: qid=3D23 cur=3D0 queued=3D0=20=20 iwm0: tx ring 24: qid=3D24 cur=3D0 queued=3D0=20=20 iwm0: tx ring 25: qid=3D25 cur=3D0 queued=3D0=20=20 iwm0: tx ring 26: qid=3D26 cur=3D0 queued=3D0=20=20 iwm0: tx ring 27: qid=3D27 cur=3D0 queued=3D0=20=20 iwm0: tx ring 28: qid=3D28 cur=3D0 queued=3D0=20=20 iwm0: tx ring 29: qid=3D29 cur=3D0 queued=3D0=20=20 iwm0: tx ring 30: qid=3D30 cur=3D0 queued=3D0=20=20 iwm0: rx ring: cur=3D134 iwm0: 802.11 state 3 iwm0: iwm_intr: controller panicked, iv_state =3D 3; restarting iwm0: iwm_newstate: IWM_LQ_CMD failed: 35 iwm0: iwm_rate2ridx: WARNING: device rate for 0 not found! iwm0: iwm_rate2ridx: WARNING: device rate for 0 not found! iwm0: dumping device error log iwm0: Start Error Log Dump: iwm0: Status: 0x83, count: 6 iwm0: 0x00002078 | ADVANCED_SYSASSERT=20=20=20=20=20=20=20=20=20=20 iwm0: 00A00220 | trm_hw_status0 iwm0: 00000000 | trm_hw_status1 iwm0: 0000E9C8 | branchlink2 iwm0: 0002843C | interruptlink1 iwm0: 00000000 | interruptlink2 iwm0: 00000000 | data1 iwm0: 00000000 | data2 iwm0: DEADBEEF | data3 iwm0: 00017F0F | beacon time iwm0: 4650619F | tsf low iwm0: 00000055 | tsf hi iwm0: 00000000 | time gp1 iwm0: 0137F04B | time gp2 iwm0: 00000000 | uCode revision type iwm0: 00000016 | uCode version major iwm0: 00058404 | uCode version minor iwm0: 00000201 | hw version iwm0: 00009008 | board version iwm0: 0937004E | hcmd iwm0: 24022080 | isr0 iwm0: 01000000 | isr1 iwm0: 08201802 | isr2 iwm0: 00417CC0 | isr3 iwm0: 00000000 | isr4 iwm0: 04000118 | last cmd Id iwm0: 00000000 | wait_event iwm0: 00000288 | l2p_control iwm0: 00018030 | l2p_duration iwm0: 000000BF | l2p_mhvalid iwm0: 000000EF | l2p_addr_match iwm0: 0000000D | lmpm_pmg_sel iwm0: 03071928 | timestamp iwm0: 000090A0 | flow_handler iwm0: Start UMAC Error Log Dump: iwm0: Status: 0x83, count: 7 iwm0: 0x00000070 | ADVANCED_SYSASSERT iwm0: 0x00000000 | umac branchlink1 iwm0: 0xC008383C | umac branchlink2 iwm0: 0xC008166C | umac interruptlink1 iwm0: 0xC008166C | umac interruptlink2 iwm0: 0x00000800 | umac data1 iwm0: 0xC008166C | umac data2 iwm0: 0xDEADBEEF | umac data3 iwm0: 0x00000016 | umac major iwm0: 0x00058404 | umac minor iwm0: 0xC0886280 | frame pointer iwm0: 0xC0886280 | stack pointer iwm0: 0x0937004E | last host cmd iwm0: 0x00000000 | isr status reg iwm0: driver status: iwm0: tx ring 0: qid=3D0 cur=3D2 queued=3D0=20=20 iwm0: tx ring 1: qid=3D1 cur=3D0 queued=3D0=20=20 iwm0: tx ring 2: qid=3D2 cur=3D0 queued=3D0=20=20 iwm0: tx ring 3: qid=3D3 cur=3D0 queued=3D0=20=20 iwm0: tx ring 4: qid=3D4 cur=3D0 queued=3D0=20=20 iwm0: tx ring 5: qid=3D5 cur=3D0 queued=3D0=20=20 iwm0: tx ring 6: qid=3D6 cur=3D0 queued=3D0=20=20 iwm0: tx ring 7: qid=3D7 cur=3D0 queued=3D0=20=20 iwm0: tx ring 8: qid=3D8 cur=3D0 queued=3D0=20=20 iwm0: tx ring 9: qid=3D9 cur=3D56 queued=3D1=20=20 iwm0: tx ring 10: qid=3D10 cur=3D0 queued=3D0=20=20 iwm0: tx ring 11: qid=3D11 cur=3D0 queued=3D0=20=20 iwm0: tx ring 12: qid=3D12 cur=3D0 queued=3D0=20=20 iwm0: tx ring 13: qid=3D13 cur=3D0 queued=3D0=20=20 iwm0: tx ring 14: qid=3D14 cur=3D0 queued=3D0=20=20 iwm0: tx ring 15: qid=3D15 cur=3D0 queued=3D0=20=20 iwm0: tx ring 16: qid=3D16 cur=3D0 queued=3D0=20=20 iwm0: tx ring 17: qid=3D17 cur=3D0 queued=3D0=20=20 iwm0: tx ring 18: qid=3D18 cur=3D0 queued=3D0=20=20 iwm0: tx ring 19: qid=3D19 cur=3D0 queued=3D0=20=20 iwm0: tx ring 20: qid=3D20 cur=3D0 queued=3D0=20=20 iwm0: tx ring 21: qid=3D21 cur=3D0 queued=3D0=20=20 iwm0: tx ring 22: qid=3D22 cur=3D0 queued=3D0=20=20 iwm0: tx ring 23: qid=3D23 cur=3D0 queued=3D0=20=20 iwm0: tx ring 24: qid=3D24 cur=3D0 queued=3D0=20=20 iwm0: tx ring 25: qid=3D25 cur=3D0 queued=3D0=20=20 iwm0: tx ring 26: qid=3D26 cur=3D0 queued=3D0=20=20 iwm0: tx ring 27: qid=3D27 cur=3D0 queued=3D0=20=20 iwm0: tx ring 28: qid=3D28 cur=3D0 queued=3D0=20=20 iwm0: tx ring 29: qid=3D29 cur=3D0 queued=3D0=20=20 iwm0: tx ring 30: qid=3D30 cur=3D0 queued=3D0=20=20 iwm0: rx ring: cur=3D152 iwm0: 802.11 state 3 iwm0: iwm_intr: controller panicked, iv_state =3D 3; restarting iwm0: iwm_newstate: IWM_LQ_CMD failed: 35 iwm0: iwm_rate2ridx: WARNING: device rate for 0 not found! iwm0: iwm_rate2ridx: WARNING: device rate for 0 not found! iwm0: dumping device error log iwm0: Start Error Log Dump: iwm0: Status: 0x83, count: 6 iwm0: 0x00002078 | ADVANCED_SYSASSERT=20=20=20=20=20=20=20=20=20=20 iwm0: 00A00220 | trm_hw_status0 iwm0: 00000000 | trm_hw_status1 iwm0: 0000E9C8 | branchlink2 iwm0: 0002843C | interruptlink1 iwm0: 00000000 | interruptlink2 iwm0: 00000000 | data1 iwm0: 00000000 | data2 iwm0: DEADBEEF | data3 iwm0: 0001764F | beacon time iwm0: 4955DA2D | tsf low iwm0: 00000055 | tsf hi iwm0: 00000000 | time gp1 iwm0: 020F98F2 | time gp2 iwm0: 00000000 | uCode revision type iwm0: 00000016 | uCode version major iwm0: 00058404 | uCode version minor iwm0: 00000201 | hw version iwm0: 00009008 | board version iwm0: 0939004E | hcmd iwm0: 24022080 | isr0 iwm0: 01000000 | isr1 iwm0: 08201802 | isr2 iwm0: 00417CC0 | isr3 iwm0: 00000000 | isr4 iwm0: 04000118 | last cmd Id iwm0: 00000000 | wait_event iwm0: 00000288 | l2p_control iwm0: 00018030 | l2p_duration iwm0: 000000BF | l2p_mhvalid iwm0: 000000EF | l2p_addr_match iwm0: 0000000D | lmpm_pmg_sel iwm0: 03071928 | timestamp iwm0: 0000C0D0 | flow_handler iwm0: Start UMAC Error Log Dump: iwm0: Status: 0x83, count: 7 iwm0: 0x00000070 | ADVANCED_SYSASSERT iwm0: 0x00000000 | umac branchlink1 iwm0: 0xC008383C | umac branchlink2 iwm0: 0xC008166C | umac interruptlink1 iwm0: 0xC008166C | umac interruptlink2 iwm0: 0x00000800 | umac data1 iwm0: 0xC008166C | umac data2 iwm0: 0xDEADBEEF | umac data3 iwm0: 0x00000016 | umac major iwm0: 0x00058404 | umac minor iwm0: 0xC0886280 | frame pointer iwm0: 0xC0886280 | stack pointer iwm0: 0x0939004E | last host cmd iwm0: 0x00000000 | isr status reg iwm0: driver status: iwm0: tx ring 0: qid=3D0 cur=3D2 queued=3D0=20=20 iwm0: tx ring 1: qid=3D1 cur=3D0 queued=3D0=20=20 iwm0: tx ring 2: qid=3D2 cur=3D0 queued=3D0=20=20 iwm0: tx ring 3: qid=3D3 cur=3D0 queued=3D0=20=20 iwm0: tx ring 4: qid=3D4 cur=3D0 queued=3D0=20=20 iwm0: tx ring 5: qid=3D5 cur=3D0 queued=3D0=20=20 iwm0: tx ring 6: qid=3D6 cur=3D0 queued=3D0=20=20 iwm0: tx ring 7: qid=3D7 cur=3D0 queued=3D0=20=20 iwm0: tx ring 8: qid=3D8 cur=3D0 queued=3D0=20=20 iwm0: tx ring 9: qid=3D9 cur=3D58 queued=3D1=20=20 iwm0: tx ring 10: qid=3D10 cur=3D0 queued=3D0=20=20 iwm0: tx ring 11: qid=3D11 cur=3D0 queued=3D0=20=20 iwm0: tx ring 12: qid=3D12 cur=3D0 queued=3D0=20=20 iwm0: tx ring 13: qid=3D13 cur=3D0 queued=3D0=20=20 iwm0: tx ring 14: qid=3D14 cur=3D0 queued=3D0=20=20 iwm0: tx ring 15: qid=3D15 cur=3D0 queued=3D0=20=20 iwm0: tx ring 16: qid=3D16 cur=3D0 queued=3D0=20=20 iwm0: tx ring 17: qid=3D17 cur=3D0 queued=3D0=20=20 iwm0: tx ring 18: qid=3D18 cur=3D0 queued=3D0=20=20 iwm0: tx ring 19: qid=3D19 cur=3D0 queued=3D0=20=20 iwm0: tx ring 20: qid=3D20 cur=3D0 queued=3D0=20=20 iwm0: tx ring 21: qid=3D21 cur=3D0 queued=3D0=20=20 iwm0: tx ring 22: qid=3D22 cur=3D0 queued=3D0=20=20 iwm0: tx ring 23: qid=3D23 cur=3D0 queued=3D0=20=20 iwm0: tx ring 24: qid=3D24 cur=3D0 queued=3D0=20=20 iwm0: tx ring 25: qid=3D25 cur=3D0 queued=3D0=20=20 iwm0: tx ring 26: qid=3D26 cur=3D0 queued=3D0=20=20 iwm0: tx ring 27: qid=3D27 cur=3D0 queued=3D0=20=20 iwm0: tx ring 28: qid=3D28 cur=3D0 queued=3D0=20=20 iwm0: tx ring 29: qid=3D29 cur=3D0 queued=3D0=20=20 iwm0: tx ring 30: qid=3D30 cur=3D0 queued=3D0=20=20 iwm0: rx ring: cur=3D197 iwm0: 802.11 state 3 iwm0: iwm_intr: controller panicked, iv_state =3D 3; restarting iwm0: iwm_newstate: IWM_LQ_CMD failed: 35 iwm0: detached --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-wireless@freebsd.org Sun Dec 1 13:24:09 2019 Return-Path: Delivered-To: freebsd-wireless@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id AE48D1AB137 for ; Sun, 1 Dec 2019 13:24:09 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (mailman.nyi.freebsd.org [IPv6:2610:1c1:1:606c::50:13]) by mx1.freebsd.org (Postfix) with ESMTP id 47QpqY4DD3z3L18 for ; Sun, 1 Dec 2019 13:24:09 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id 8F20E1AB136; Sun, 1 Dec 2019 13:24:09 +0000 (UTC) Delivered-To: wireless@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 8EE4E1AB135 for ; Sun, 1 Dec 2019 13:24:09 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 47QpqY3Cp0z3L17 for ; Sun, 1 Dec 2019 13:24:09 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 5262DF602 for ; Sun, 1 Dec 2019 13:24:09 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id xB1DO91l041444 for ; Sun, 1 Dec 2019 13:24:09 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id xB1DO94T041441 for wireless@FreeBSD.org; Sun, 1 Dec 2019 13:24:09 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: wireless@FreeBSD.org Subject: [Bug 242337] iwm - rate 0 causes iwm panic (and work around) Date: Sun, 01 Dec 2019 13:24:09 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: wireless X-Bugzilla-Version: 12.1-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: dirkx@webweaving.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: wireless@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 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, 01 Dec 2019 13:24:09 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D242337 --- Comment #2 from dirkx@webweaving.org --- As a workaround - in if_iwm.c -- simply picking the first rate from the tab= le (the slowest) makes things work again although it emits below error: iwm0: frame 0/230 b800002c UNHANDLED (this should not happen) tun0: link state changed to UP Function changed below. static int iwm_rate2ridx(struct iwm_softc *sc, uint8_t rate) { int i; for (i =3D 0; i <=3D IWM_RIDX_MAX; i++) { if (iwm_rates[i].rate =3D=3D rate) return i; } device_printf(sc->sc_dev, "%s: WARNING: device rate for %u not found!!\n", __func__, rate); // On KPN Experia ADSL modems - one somehow gets a rate=3D=3D0; // just picking the first value from the table works. if (rate =3D=3D 0) { device_printf(sc->sc_dev, "%s: WARNING: using first rate fom the table.\n", __func__); return 0; }; return -1; } --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-wireless@freebsd.org Sun Dec 1 18:03:25 2019 Return-Path: Delivered-To: freebsd-wireless@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id B73A61B36A7 for ; Sun, 1 Dec 2019 18:03:25 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mailman.nyi.freebsd.org (mailman.nyi.freebsd.org [IPv6:2610:1c1:1:606c::50:13]) by mx1.freebsd.org (Postfix) with ESMTP id 47Qx1n25CYz44pG for ; Sun, 1 Dec 2019 18:03:25 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: by mailman.nyi.freebsd.org (Postfix) id 45DC91B36A5; Sun, 1 Dec 2019 18:03:25 +0000 (UTC) Delivered-To: wireless@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 45A581B36A4 for ; Sun, 1 Dec 2019 18:03:25 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-qk1-x744.google.com (mail-qk1-x744.google.com [IPv6:2607:f8b0:4864:20::744]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 47Qx1k0pXRz44pD; Sun, 1 Dec 2019 18:03:21 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: by mail-qk1-x744.google.com with SMTP id c124so25909574qkg.0; Sun, 01 Dec 2019 10:03:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=3nvYZH5yztHTwC7vorTKHhTNjiUXXx/QqRZNJP8oNqU=; b=fiS3zcRmetD6YUpeJsXy7b1xIiW4NhwmKEGWbP/tarowFBLB6E3nzVsEFUOgnQL/p+ evRTCSaHQCaVUhSJnPPDGJaIWIXx02/SQb3S7tUkKmwqzb0mkC9Sy7VXzWNSPI+aSPDU S9wOxfo+v4HDVRYRZdtB3PeboZYcSTIGsvKHCrlfEQYM5EMySsMN8iehW8lLvAWqa3Gy DOlB2qKjguw06/ZW0+vS/1aoTVRT35VIsZEDGyzxCy7oztJC6B8EUyOVszCPdYo/HlKB VeRXs1FQY9pvlTnkAC+TwWiUq7dayPk92pQItLcuFROxVc0oLqAC31OsFdRiV7yBA9je Z3cQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=3nvYZH5yztHTwC7vorTKHhTNjiUXXx/QqRZNJP8oNqU=; b=ScBv+WzAw7mvcz5/accUVjCDYZW6wx2rOgOB2tUnGIifh3F9Bf/BjF1KycNdK1UmQD zjKMCQsXpQ7y2JpfZd2kUEkQex492SNRDeSVez8IsJXmDHeH736OksgzNaOiC6DCl/DR jFmsg9PjAtg+X4YKzE9yrn1YZ9zGauIQG9rhZXjv7WCF4b8Jf8h9NVZtI3g90aVFqa5s AolhsOZyVsuwlpcSwVJ0P6CMosHnVeqBvcQl71Fcpn3D9AXo3OBB9ADfIDIKLjOxttR/ mhapH++xNhMht7Pmed+R2Y+fwZcADGfOJ/gLQFOM+B3mf2miK9PwWVLmqHqYtctuqn7n AgVw== X-Gm-Message-State: APjAAAV8SelsvzPKJgu0QnZ7daWmAA3mEOkIqIJEvX05Y+UyNzLMJuzi eH29n13/EBP5sgHg83k119oCzL3ubCiPyqpxxLL0xA== X-Google-Smtp-Source: APXvYqzVMlQ3a0PfI6RfHLf11hX/WcpTMI2CYxW2eA0yn64zpZaA8REusTEkLxdpPzbtW8WzTA94DBlHkUvUpYVSlW8= X-Received: by 2002:a37:a20a:: with SMTP id l10mr28025032qke.96.1575223399460; Sun, 01 Dec 2019 10:03:19 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Adrian Chadd Date: Sun, 1 Dec 2019 10:03:07 -0800 Message-ID: Subject: Re: [Bug 242337] iwm - rate 0 causes iwm panic (and work around) To: bugzilla-noreply@freebsd.org Cc: "freebsd-wireless@freebsd.org" Content-Type: text/plain; charset="UTF-8" X-Rspamd-Queue-Id: 47Qx1k0pXRz44pD X-Spamd-Bar: ----- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-5.99 / 15.00]; NEURAL_HAM_MEDIUM(-0.99)[-0.987,0]; NEURAL_HAM_LONG(-1.00)[-0.999,0]; REPLY(-4.00)[]; TAGGED_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, 01 Dec 2019 18:03:25 -0000 Hi! Wait, someone's calling iwn_rate2ridx() with rate=0 ? That's highly bogus and yes will lead to a firmware panic. what's the caller? How's it being called with rate=0 ? It sounds like something in the rate negotiation is failing... -adrian On Sun, 1 Dec 2019 at 05:24, wrote: > > https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=242337 > > --- Comment #2 from dirkx@webweaving.org --- > As a workaround - in if_iwm.c -- simply picking the first rate from the table > (the slowest) makes things work again although it emits below error: > > > iwm0: frame 0/230 b800002c UNHANDLED (this should not happen) > tun0: link state changed to UP > > Function changed below. > > static int > iwm_rate2ridx(struct iwm_softc *sc, uint8_t rate) > { > int i; > > for (i = 0; i <= IWM_RIDX_MAX; i++) { > if (iwm_rates[i].rate == rate) > return i; > } > > device_printf(sc->sc_dev, > "%s: WARNING: device rate for %u not found!!\n", > __func__, rate); > > // On KPN Experia ADSL modems - one somehow gets a rate==0; > // just picking the first value from the table works. > if (rate == 0) { > device_printf(sc->sc_dev, > "%s: WARNING: using first rate fom the table.\n", > __func__); > return 0; > }; > return -1; > } > > -- > You are receiving this mail because: > You are the assignee for the bug. > _______________________________________________ > 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" From owner-freebsd-wireless@freebsd.org Sun Dec 1 21:00:05 2019 Return-Path: Delivered-To: freebsd-wireless@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 5F87B1B8023 for ; Sun, 1 Dec 2019 21:00:05 +0000 (UTC) (envelope-from bugzilla-noreply@FreeBSD.org) Received: from mailman.nyi.freebsd.org (mailman.nyi.freebsd.org [IPv6:2610:1c1:1:606c::50:13]) by mx1.freebsd.org (Postfix) with ESMTP id 47R0xd1wFBz4FyN for ; Sun, 1 Dec 2019 21:00:05 +0000 (UTC) (envelope-from bugzilla-noreply@FreeBSD.org) Received: by mailman.nyi.freebsd.org (Postfix) id 41C001B801F; Sun, 1 Dec 2019 21:00:05 +0000 (UTC) Delivered-To: wireless@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 418431B801D for ; Sun, 1 Dec 2019 21:00:05 +0000 (UTC) (envelope-from bugzilla-noreply@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 47R0xd13svz4FyM for ; Sun, 1 Dec 2019 21:00:05 +0000 (UTC) (envelope-from bugzilla-noreply@FreeBSD.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 0916B1C772 for ; Sun, 1 Dec 2019 21:00:05 +0000 (UTC) (envelope-from bugzilla-noreply@FreeBSD.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id xB1L04n0018237 for ; Sun, 1 Dec 2019 21:00:04 GMT (envelope-from bugzilla-noreply@FreeBSD.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id xB1L04C8018236 for wireless@FreeBSD.org; Sun, 1 Dec 2019 21:00:04 GMT (envelope-from bugzilla-noreply@FreeBSD.org) Message-Id: <201912012100.xB1L04C8018236@kenobi.freebsd.org> X-Authentication-Warning: kenobi.freebsd.org: bugzilla set sender to bugzilla-noreply@FreeBSD.org using -f From: bugzilla-noreply@FreeBSD.org To: wireless@FreeBSD.org Subject: Problem reports for wireless@FreeBSD.org that need special attention Date: Sun, 1 Dec 2019 21:00:04 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 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, 01 Dec 2019 21:00:05 -0000 To view an individual PR, use: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=(Bug Id). The following is a listing of current problems submitted by FreeBSD users, which need special attention. These represent problem reports covering all versions including experimental development code and obsolete releases. Status | Bug Id | Description ------------+-----------+--------------------------------------------------- New | 237921 | wpi: Memory leak in function wpi_free_tx_ring of Open | 154598 | [ath] Atheros 5424/2424 can't connect to WPA netw Open | 236918 | Crash: in iwn_ampdu_tx_stop (or ieee80211_ht_node Open | 238636 | ath: Fix kernel addresses printed in if_ath_sysct 4 problems total for which you should take action. From owner-freebsd-wireless@freebsd.org Mon Dec 2 11:06:44 2019 Return-Path: Delivered-To: freebsd-wireless@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id B7A221CDC31 for ; Mon, 2 Dec 2019 11:06:44 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 47RMkX4Syqz3DKj for ; Mon, 2 Dec 2019 11:06:44 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id 97AB31CDC30; Mon, 2 Dec 2019 11:06:44 +0000 (UTC) Delivered-To: wireless@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 977331CDC2F for ; Mon, 2 Dec 2019 11:06:44 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 47RMkX3VNlz3DKh for ; Mon, 2 Dec 2019 11:06:44 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 5790026068 for ; Mon, 2 Dec 2019 11:06:44 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id xB2B6iGT070420 for ; Mon, 2 Dec 2019 11:06:44 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id xB2B6ipJ070419 for wireless@FreeBSD.org; Mon, 2 Dec 2019 11:06:44 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: wireless@FreeBSD.org Subject: [Bug 242337] iwm - rate 0 causes iwm panic (and work around) Date: Mon, 02 Dec 2019 11:06:44 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: wireless X-Bugzilla-Version: 12.1-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: dirkx@webweaving.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: wireless@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 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: Mon, 02 Dec 2019 11:06:44 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D242337 --- Comment #3 from dirkx@webweaving.org --- It seems that it is not just the KPN/Telfort/Tele2 Experia v8 boxes that ha= ve this issue - but a lot of other Arcadyan based wifi access points as well. --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-wireless@freebsd.org Mon Dec 2 18:35:09 2019 Return-Path: Delivered-To: freebsd-wireless@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 9405A1B3544 for ; Mon, 2 Dec 2019 18:35:09 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 47RYgx3RSPz4CZC for ; Mon, 2 Dec 2019 18:35:09 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id 744C51B3543; Mon, 2 Dec 2019 18:35:09 +0000 (UTC) Delivered-To: wireless@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 741281B3542 for ; Mon, 2 Dec 2019 18:35:09 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 47RYgx2SBJz4CZB for ; Mon, 2 Dec 2019 18:35:09 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 37BC7332A for ; Mon, 2 Dec 2019 18:35:09 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id xB2IZ9TD003281 for ; Mon, 2 Dec 2019 18:35:09 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id xB2IZ9nL003280 for wireless@FreeBSD.org; Mon, 2 Dec 2019 18:35:09 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: wireless@FreeBSD.org Subject: [Bug 242337] iwm - rate 0 causes iwm panic (and work around) Date: Mon, 02 Dec 2019 18:35:07 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: wireless X-Bugzilla-Version: 12.1-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: markj@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: wireless@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 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: Mon, 02 Dec 2019 18:35:09 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D242337 Mark Johnston changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |markj@FreeBSD.org --- Comment #4 from Mark Johnston --- Hmm, note that one of the callers of iwm_rate2idx() already contains this l= ogic (i.e., maps an unknown rate to the lowest one). I guess the problem is with the code which programs the fw rate table.=20 iwm_setrates() already skips over invalid rates... but the code which fills= in the rest of the table is wrong. Can you try this hack instead? I did not test it. There is a larger issue here in that we are ending up with a rate of 0, but= we can at least avoid panicking. diff --git a/sys/dev/iwm/if_iwm.c b/sys/dev/iwm/if_iwm.c index 06bd66cc3ef6..4bd6547cc57f 100644 --- a/sys/dev/iwm/if_iwm.c +++ b/sys/dev/iwm/if_iwm.c @@ -4385,8 +4385,10 @@ iwm_setrates(struct iwm_softc *sc, struct iwm_node *= in, int rix) /* Map 802.11 rate to HW rate index. */ ridx =3D iwm_rate2ridx(sc, rate); - if (ridx =3D=3D -1) + if (ridx =3D=3D -1) { + nrates--; continue; + } #if 0 if (txant =3D=3D 0) --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-wireless@freebsd.org Tue Dec 3 12:47:42 2019 Return-Path: Delivered-To: freebsd-wireless@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 2EA721ADDA1 for ; Tue, 3 Dec 2019 12:47:42 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 47S1wZ0TfNz4M3v for ; Tue, 3 Dec 2019 12:47:42 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id 1084F1ADDA0; Tue, 3 Dec 2019 12:47:42 +0000 (UTC) Delivered-To: wireless@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 103881ADD9F for ; Tue, 3 Dec 2019 12:47:42 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 47S1wY6NvRz4M3s for ; Tue, 3 Dec 2019 12:47:41 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id BEE75FE94 for ; Tue, 3 Dec 2019 12:47:41 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id xB3ClfgK077011 for ; Tue, 3 Dec 2019 12:47:41 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id xB3Clf7u077010 for wireless@FreeBSD.org; Tue, 3 Dec 2019 12:47:41 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: wireless@FreeBSD.org Subject: [Bug 233226] run(4) WiFi card fails periodically: run0: device timeout Date: Tue, 03 Dec 2019 12:47:41 +0000 X-Bugzilla-Reason: CC AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: wireless X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: pirzyk@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: wireless@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 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: Tue, 03 Dec 2019 12:47:42 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D233226 --- Comment #7 from Jim Pirzyk --- FYI the card also times out on 12.1-RELEASE-p1. I have swapped out the card for an Atheros AR9460 card and won't be able to= do more testing. --=20 You are receiving this mail because: You are on the CC list for the bug. You are the assignee for the bug.= From owner-freebsd-wireless@freebsd.org Tue Dec 3 16:41:22 2019 Return-Path: Delivered-To: freebsd-wireless@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id E64F61B4C8E for ; Tue, 3 Dec 2019 16:41:22 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (mailman.nyi.freebsd.org [IPv6:2610:1c1:1:606c::50:13]) by mx1.freebsd.org (Postfix) with ESMTP id 47S76B5v7bz4b57 for ; Tue, 3 Dec 2019 16:41:22 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id C82211B4C8B; Tue, 3 Dec 2019 16:41:22 +0000 (UTC) Delivered-To: wireless@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id C7E681B4C8A for ; Tue, 3 Dec 2019 16:41:22 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 47S76B4wRZz4b56 for ; Tue, 3 Dec 2019 16:41:22 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 8DCC91A95A for ; Tue, 3 Dec 2019 16:41:22 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id xB3GfMS6053570 for ; Tue, 3 Dec 2019 16:41:22 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id xB3GfMQq053569 for wireless@FreeBSD.org; Tue, 3 Dec 2019 16:41:22 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: wireless@FreeBSD.org Subject: [Bug 233226] run(4) WiFi card fails periodically: run0: device timeout Date: Tue, 03 Dec 2019 16:41:22 +0000 X-Bugzilla-Reason: CC AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: wireless X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: yuri@freebsd.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: wireless@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 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: Tue, 03 Dec 2019 16:41:23 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D233226 --- Comment #8 from Yuri Victorovich --- (In reply to Jim Pirzyk from comment #7) Does Atheros AR9460 work well? --=20 You are receiving this mail because: You are on the CC list for the bug. You are the assignee for the bug.= From owner-freebsd-wireless@freebsd.org Tue Dec 3 16:42:48 2019 Return-Path: Delivered-To: freebsd-wireless@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 19EF11B4EF3 for ; Tue, 3 Dec 2019 16:42:48 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (mailman.nyi.freebsd.org [IPv6:2610:1c1:1:606c::50:13]) by mx1.freebsd.org (Postfix) with ESMTP id 47S77q712Nz4bQQ for ; Tue, 3 Dec 2019 16:42:47 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id F07E31B4EF2; Tue, 3 Dec 2019 16:42:47 +0000 (UTC) Delivered-To: wireless@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id F04771B4EF1 for ; Tue, 3 Dec 2019 16:42:47 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 47S77q67Dbz4bQP for ; Tue, 3 Dec 2019 16:42:47 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id B68851A9E1 for ; Tue, 3 Dec 2019 16:42:47 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id xB3Gglno060985 for ; Tue, 3 Dec 2019 16:42:47 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id xB3Ggl1m060984 for wireless@FreeBSD.org; Tue, 3 Dec 2019 16:42:47 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: wireless@FreeBSD.org Subject: [Bug 233226] run(4) WiFi card fails periodically: run0: device timeout Date: Tue, 03 Dec 2019 16:42:47 +0000 X-Bugzilla-Reason: CC AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: wireless X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: pirzyk@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: wireless@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 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: Tue, 03 Dec 2019 16:42:48 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D233226 --- Comment #9 from Jim Pirzyk --- (In reply to Yuri Victorovich from comment #8) So far seems to. --=20 You are receiving this mail because: You are on the CC list for the bug. You are the assignee for the bug.= From owner-freebsd-wireless@freebsd.org Fri Dec 6 06:28:29 2019 Return-Path: Delivered-To: freebsd-wireless@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 6CEFE1C231F for ; Fri, 6 Dec 2019 06:28:29 +0000 (UTC) (envelope-from malepativishnuvardhan1997@gmail.com) Received: from mail-wm1-x32c.google.com (mail-wm1-x32c.google.com [IPv6:2a00:1450:4864:20::32c]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 47TjMc22rGz45Td for ; Fri, 6 Dec 2019 06:28:27 +0000 (UTC) (envelope-from malepativishnuvardhan1997@gmail.com) Received: by mail-wm1-x32c.google.com with SMTP id n9so6064787wmd.3 for ; Thu, 05 Dec 2019 22:28:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to:cc; bh=qWsYkKoB+EfR3FDQYAsDecgRVKwSuopUlhjEX+GKyZE=; b=Xwk7Qk12jVl3hgB7AdfuNtgmbkWnkPlos5PrfW4gHdKqJCZ1YtygxfH7PsVD/yIJ81 1r2EuDeo2LgJAFKJ050x6Sx/2Z+oQgb7cFaBBqRGbgkrIBJIJgcuPA3chtiGtJJDM2f5 0I+SiObojNsVG2HvQnDcCXp1m3oOM4b7IfnuDVGwOwqxeApkoXoMGw9TpJZtZBKoJbam fJCR7BcQAqhCaQB7uk77zuka2sjkPHE9SpARPD14sG154t5MR1fgsuAyhBoxxKA7n4xA Dxi8yiBYjPpSF+kkOgJFrSj5Rh8weIby6gxPtCyLuCRJ+FVBtyIGgRzTyc0FMEZ/1ESy B24w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to:cc; bh=qWsYkKoB+EfR3FDQYAsDecgRVKwSuopUlhjEX+GKyZE=; b=lrYq4rza2z2YeS9S9zkGG5+5szGKA6e91Pz7b2ttC6I/nPqRf0Qu4keD+g7EwAmbtC t0lBJywZduW2CMZgF0ROQuFjSRjsJ/xkM+MwMvb86deKomI3Gpvrn2KIbtrtA1rEOkDP JUEjRn6AkkcH4Ve2Sy8naDPvJNcDyVTB6kE87/peBbRlMmtZks/fCuSXT2REK283jCiX FkCoETbf7/N2LIKbHbPnO6DOfD5dyjknEQlgNvjk76uiGuP73X7FAyebIpQ4Usy1fKBd h5W5Cjn4yH6IvDtsmjakjy94lLsqgjYPfRaTv8PxpoJ159tN2E1Q98hFSz4S9XCmY0Tv 1fKQ== X-Gm-Message-State: APjAAAU44u4fgQThJJkyDFcMKTHNrvW77NR5eui4d8xnFQP0rOmCleXc STVpyZwCFGm0DVyIJ85MUuvZg2S+zEZwd6/o5u8UiJUw X-Google-Smtp-Source: APXvYqzMbat4MdQhxl4zDXmZG6c7Lxj0XZ47mlUFgtsDB8FhRCWdicBngFomtzRjDyjG4o4Y9Z8P43lqabF80Kf2qCs= X-Received: by 2002:a05:600c:388:: with SMTP id w8mr8558134wmd.177.1575613705933; Thu, 05 Dec 2019 22:28:25 -0800 (PST) MIME-Version: 1.0 From: malepati vishnuvardhan Date: Fri, 6 Dec 2019 11:58:15 +0530 Message-ID: Subject: Regarding Chipset selection By the driver To: "freebsd-wireless@freebsd.org" X-Rspamd-Queue-Id: 47TjMc22rGz45Td X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=Xwk7Qk12; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of malepativishnuvardhan1997@gmail.com designates 2a00:1450:4864:20::32c as permitted sender) smtp.mailfrom=malepativishnuvardhan1997@gmail.com X-Spamd-Result: default: False [-3.00 / 15.00]; TO_DN_EQ_ADDR_SOME(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36]; FREEMAIL_FROM(0.00)[gmail.com]; DKIM_TRACE(0.00)[gmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; FROM_EQ_ENVFROM(0.00)[]; IP_SCORE(0.00)[ip: (-9.36), ipnet: 2a00:1450::/32(-2.69), asn: 15169(-1.93), country: US(-0.05)]; MIME_TRACE(0.00)[0:+,1:+,2:~]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; DWL_DNSWL_NONE(0.00)[gmail.com.dwl.dnswl.org : 127.0.5.0]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; TAGGED_RCPT(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-wireless@freebsd.org]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; IP_SCORE_FREEMAIL(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[c.2.3.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.5.4.1.0.0.a.2.list.dnswl.org : 127.0.5.0]; FREEMAIL_CC(0.00)[gmail.com]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[] Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 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: Fri, 06 Dec 2019 06:28:29 -0000 Hi, I wanted to know how driver selects the particular chipset. For example, I have AR9287 chipset installed, But the driver (ath) has code related to all the Chipset versions. I'm new to all these stuff, and I'm unable to trace the flow of driver registration. Please provide me some information regarding the same. Thanks and Regards, Vishnu From owner-freebsd-wireless@freebsd.org Fri Dec 6 08:31:55 2019 Return-Path: Delivered-To: freebsd-wireless@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 731281C5746 for ; Fri, 6 Dec 2019 08:31:55 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-qt1-x841.google.com (mail-qt1-x841.google.com [IPv6:2607:f8b0:4864:20::841]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 47Tm612yPwz49qW for ; Fri, 6 Dec 2019 08:31:53 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: by mail-qt1-x841.google.com with SMTP id s8so6450650qte.2 for ; Fri, 06 Dec 2019 00:31:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=J7V0PotzHaohYjqIqkjC5cvUs+curS4MQRLfrBZ3Nig=; b=PTWwd2a+vI82F++XRADHQnG8GjgasT4FtTSGukMzg+O7UgCw+/CnbeMSnKnxTVU7Uh MOv5VTBXhBQSvu9fXh6y0rZ0d90hAit4lSrquW/8siVydRHDoINSETHv6fmnJ1XhANt2 gPHkmCd/k+GJWEDMqwjWUVhOXjPhN1WrgQQA1KUn3hRhKW4ufiDyKyEz3Ai4vfgaEK+B hqWa3/6i0R+HBudI9th72wPDiqrRLBExgXFMlMHWgyJXth+TTy6T+3CNenl2ClIxxix1 P1QaZIwPqRg1H52IRuMbNrEj1LjRJ6QuvtIarrrW4/y4d+Uhq56xde2r3mtOPQWoJ4IA 5zMA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=J7V0PotzHaohYjqIqkjC5cvUs+curS4MQRLfrBZ3Nig=; b=SMpGwBpHtFExMN+jamNZ6ynL4iPl/DEjdTEP1zESgoMfjhh89kOP17J6wx1INpyXOo U/c/Pf/KXM3vVQgpev0ByGE8jL65WPbPzguYcDPrAn/M64cwcGrXXqCKw/NSCrG6OmCp 9agBE1Rx9rrrnOPgOk2VlVYMa/YQEysKEbb3sJmCDpLUB2BNIWKFzDZu8QuAtfvgNp8h mHBmtkVXeo9EeOeCIrt0e39PDcrokarMrCP7OH8PtvOcx8vw601vpQZAAezo/pUgxXeG hNwzluZH0OtbisRHd2hRb5ZpoRSHasz+1KpLN/dLBSYhSDMvK5HRQk48Jd6IT0PTj+ay RdIg== X-Gm-Message-State: APjAAAU0tstredS3NSn0Olni7B8LF9aVd2H3b6wAbLyTL8E/8dpZJM40 X3C7LaAfyPVyzbkx0lC96TWW/c2UuauLb9aKv1o= X-Google-Smtp-Source: APXvYqzaDeNVWWRAsv9EQvhjKBm9qKq7K/uBpoft+4ER/vXDHsAXl84/+83bCUK06Jw9vJJYSKSsh9y18oN4RL/CRho= X-Received: by 2002:ac8:7157:: with SMTP id h23mr11685785qtp.223.1575621112114; Fri, 06 Dec 2019 00:31:52 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Adrian Chadd Date: Fri, 6 Dec 2019 00:31:39 -0800 Message-ID: Subject: Re: Regarding Chipset selection By the driver To: malepati vishnuvardhan Cc: "freebsd-wireless@freebsd.org" Content-Type: text/plain; charset="UTF-8" X-Rspamd-Queue-Id: 47Tm612yPwz49qW X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=PTWwd2a+; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of adrianchadd@gmail.com designates 2607:f8b0:4864:20::841 as permitted sender) smtp.mailfrom=adrianchadd@gmail.com X-Spamd-Result: default: False [-3.00 / 15.00]; TO_DN_EQ_ADDR_SOME(0.00)[]; TO_DN_SOME(0.00)[]; FREEMAIL_FROM(0.00)[gmail.com]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; DKIM_TRACE(0.00)[gmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; FREEMAIL_TO(0.00)[gmail.com]; FROM_EQ_ENVFROM(0.00)[]; IP_SCORE(0.00)[ip: (2.42), ipnet: 2607:f8b0::/32(-2.23), asn: 15169(-1.93), country: US(-0.05)]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; TAGGED_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com.dwl.dnswl.org : 127.0.5.0]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-wireless@freebsd.org]; IP_SCORE_FREEMAIL(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[1.4.8.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.b.8.f.7.0.6.2.list.dnswl.org : 127.0.5.0]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(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: Fri, 06 Dec 2019 08:31:55 -0000 Hi! I've documented the layout in the wiki: wiki.freebsd.org/dev/ath(4) and wiki.freebsd.org/dev/ath_hal(4) . You should start there. The HAL code is a bit twisty: * the driver - if_ath_*[ch] is common for everything; * the if_ath_pci.c code detects the NIC and creates the if_ath context and sets up the driver; * the ar9287 related bits are in sys/dev/ath/ath_hal/ar9002/ar9287_*.[ch] * I think it also uses a bit of code in the ar9280_.*[ch] and the RF frontend in that directory * the bulk of the MAC support is the same as the other 11n chips, and that's in sys/dev/ath/ath_hal/ar5416/ ; and * to save code duplication, the ar5416 HAL actually uses the code in sys/dev/ath/ath_hal/ar5212/ where the chipset support is the same. The reasons are! * The AR5416 is the first 11n chipset by atheros, and although the radio and chunks of the MAC are different (to do 11n!), the queue and airtime management parts of the MAC are the same as as the AR5212. So to save on code duplication, the original contributor called the AR5212 routines from the AR5416 HAL where the hardware was the same; * The AR9287 is an evolution of the AR9280 NIC, albeit 2G only with some specific extensions which we don't support. I hope that helps! -adrian From owner-freebsd-wireless@freebsd.org Fri Dec 6 10:20:00 2019 Return-Path: Delivered-To: freebsd-wireless@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 45D101C81C4 for ; Fri, 6 Dec 2019 10:20:00 +0000 (UTC) (envelope-from malepativishnuvardhan1997@gmail.com) Received: from mail-wm1-x335.google.com (mail-wm1-x335.google.com [IPv6:2a00:1450:4864:20::335]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 47TpVl39rsz4Gky for ; Fri, 6 Dec 2019 10:19:59 +0000 (UTC) (envelope-from malepativishnuvardhan1997@gmail.com) Received: by mail-wm1-x335.google.com with SMTP id b11so7206099wmj.4 for ; Fri, 06 Dec 2019 02:19:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=ZGCWpEWjKfo/MQCQp3BQGUcJSE8jyHqE6AZwYjQEfXA=; b=Yd4PY74dtm+UoXvnsL+1hYABsGJdF4ctXT4gPTdsa8j+GmRLDnahJCFCHl5V9a19m3 xyjJtr6mMrn2OW+tcsbRAdMZlTlGt93Ps99i2luUX9NEVHh2+dsxTU2v4e0ZdnMdg1/Y F4+QTk8l+CEbPn65iHyZSXLkJlWsv8BbyIb0frK4ROx1k4TAYkAHvyRm+MnVwAkyEN6b i2TqeDcRV6gslxzZhaCo3qAZklisAysz4eYO2COeiafrWhdK1agRAefBydFqlOU9VNYh 7kqVDHCDTiTHkKk8C7CM/JmrXvFvjRaUxM90Z1pIDlEgT8it6j+TPILc6/kPca28PK7a tSPA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=ZGCWpEWjKfo/MQCQp3BQGUcJSE8jyHqE6AZwYjQEfXA=; b=KyWClTikLV6LIyyH+bXCI52Ch8obTx5F3kLSEGrYa8Bi2qxEFa7cD8CT2uHu+a6Ooh gKQwxsvObuMKR9KwPAb3VNQXh8QG/8shhNY7aCEAucrbCwN679iNgWJiP40+/EAznxxj irR3UxsKbwgN7KSNMXZqHdZFlttum2+zZLGEMOYbc2eix/10cVYOlPSWW69T/YD/9s5i 19lDdwPl+tJ8JwB8GXMg/yBuyD9oGnHKOPvQgIOQWyJr45sTPMGPEw2BQ8KN+jjJtC75 nUzOIGdWMGKbyvjiHyZxVkGjJrMEIoH2V2dicXmqb7iUG/aeWk5ArwnxYaEFyAtIhY2L +lQg== X-Gm-Message-State: APjAAAWVYUXZFH+TJ7g96oKhlnMdCPzkLS28IsNlHcdG0RnNXilkAopG VC6iEP0i6GjTBOnuiyarB3LuuCyNECz2zZDcm3kQolAd X-Google-Smtp-Source: APXvYqwuTXFi6KRMTfUGA24EXPC+53mPkDRHuQg73PAYWlUq+Sz0mWHBJhEOi079ZMINm4Oyq70WZt68ZTSL/xNh8R4= X-Received: by 2002:a05:600c:204c:: with SMTP id p12mr9904672wmg.61.1575627596499; Fri, 06 Dec 2019 02:19:56 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: malepati vishnuvardhan Date: Fri, 6 Dec 2019 15:49:45 +0530 Message-ID: Subject: Re: Regarding Chipset selection By the driver To: Adrian Chadd Cc: "freebsd-wireless@freebsd.org" X-Rspamd-Queue-Id: 47TpVl39rsz4Gky X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=Yd4PY74d; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of malepativishnuvardhan1997@gmail.com designates 2a00:1450:4864:20::335 as permitted sender) smtp.mailfrom=malepativishnuvardhan1997@gmail.com X-Spamd-Result: default: False [-3.00 / 15.00]; TO_DN_EQ_ADDR_SOME(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36]; FREEMAIL_FROM(0.00)[gmail.com]; DKIM_TRACE(0.00)[gmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; FREEMAIL_TO(0.00)[gmail.com]; FROM_EQ_ENVFROM(0.00)[]; IP_SCORE(0.00)[ip: (-9.19), ipnet: 2a00:1450::/32(-2.69), asn: 15169(-1.93), country: US(-0.05)]; MIME_TRACE(0.00)[0:+,1:+,2:~]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; DWL_DNSWL_NONE(0.00)[gmail.com.dwl.dnswl.org : 127.0.5.0]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; TAGGED_RCPT(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-wireless@freebsd.org]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; IP_SCORE_FREEMAIL(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[5.3.3.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.5.4.1.0.0.a.2.list.dnswl.org : 127.0.5.0]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[] Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 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: Fri, 06 Dec 2019 10:20:00 -0000 Hi, Thanks a lot for the information. On Fri, Dec 6, 2019 at 2:01 PM Adrian Chadd wrote: > Hi! > > I've documented the layout in the wiki: > > wiki.freebsd.org/dev/ath(4) and wiki.freebsd.org/dev/ath_hal(4) . You > should start there. > > The HAL code is a bit twisty: > > * the driver - if_ath_*[ch] is common for everything; > * the if_ath_pci.c code detects the NIC and creates the if_ath context > and sets up the driver; > * the ar9287 related bits are in sys/dev/ath/ath_hal/ar9002/ar9287_*.[ch] > * I think it also uses a bit of code in the ar9280_.*[ch] and the RF > frontend in that directory > * the bulk of the MAC support is the same as the other 11n chips, and > that's in sys/dev/ath/ath_hal/ar5416/ ; and > * to save code duplication, the ar5416 HAL actually uses the code in > sys/dev/ath/ath_hal/ar5212/ where the chipset support is the same. > > The reasons are! > > * The AR5416 is the first 11n chipset by atheros, and although the > radio and chunks of the MAC are different (to do 11n!), the queue and > airtime management parts of the MAC are the same as as the AR5212. So > to save on code duplication, the original contributor called the > AR5212 routines from the AR5416 HAL where the hardware was the same; > * The AR9287 is an evolution of the AR9280 NIC, albeit 2G only with > some specific extensions which we don't support. > > I hope that helps! > > > > -adrian >