From owner-freebsd-hackers@freebsd.org Thu Mar 4 10:33:27 2021 Return-Path: Delivered-To: freebsd-hackers@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 58F4156B965 for ; Thu, 4 Mar 2021 10:33:27 +0000 (UTC) (envelope-from rank1seeker@gmail.com) Received: from mailman.nyi.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 4DrnJl05TCz3Gfp for ; Thu, 4 Mar 2021 10:33:27 +0000 (UTC) (envelope-from rank1seeker@gmail.com) Received: by mailman.nyi.freebsd.org (Postfix) id 0319E56B980; Thu, 4 Mar 2021 10:33:27 +0000 (UTC) Delivered-To: hackers@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 00FF256B77F; Thu, 4 Mar 2021 10:33:27 +0000 (UTC) (envelope-from rank1seeker@gmail.com) Received: from mail-ej1-x629.google.com (mail-ej1-x629.google.com [IPv6:2a00:1450:4864:20::629]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 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 4DrnJk6KHnz3Gln; Thu, 4 Mar 2021 10:33:26 +0000 (UTC) (envelope-from rank1seeker@gmail.com) Received: by mail-ej1-x629.google.com with SMTP id lr13so48358933ejb.8; Thu, 04 Mar 2021 02:33:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=yrrEv04kOALsv0CWSdMFELBznU/Yp9QPjoojzxLKRsM=; b=LXhlKGSjYXxec0Z8b+89T17zElQquoLQGQ672jDbI4/JJcFDowvMeiAy3wFHhQZare dUCtLlMoD2zVDFeJ0akmebCyO8dv1CU4bTyfoIR83gAIl3RtoDuWd7ehV7CCKtymkvdE pBIhkRU/KfR7XZswVRacm/Bo7126KtXXFRpwix+HPDeNHBrardGgb104DGmc597HpYBS 54IGtJ/kqIK+fMz8DwXYUH36p5vhHs86HC/UscrbruZw2awnWw0R7Z9bseASCVGDRBMf MyDxZBDcwNVyzcY/8QiDVrGlcjhTyT9xb2+28u1Nz0xyEUUBoykxtRZDOjZ8qK/5q6JM IIGA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=yrrEv04kOALsv0CWSdMFELBznU/Yp9QPjoojzxLKRsM=; b=t2XcfsmkAkpmBIulEcGbYy5RVyxKh1nKtfFVxVNlmyVFX77sJg09jz4RgXdGn8Ui1s 7p9TanueNbNUCqCOMUN2Blxf0vm0IOTlIBOtvZK0M40WELNya7eFDAcfANMfOZS28gmP lIUfgg+U846ILiES2YCwJYtc6g5n2L1jNpB5dtHPc8xEXbbXJc3I9vAq5c49z5gr8+Iv /9ccvoc4vvvEULrhhXoOwBbyOKt+Mwrj0tkXWWZZ6AQNYi6NQhwqE1GatyYMvJAqom90 ynpfCrXtLbdjer/lk4yxMawBoN1yyWJ/LeQtXv3HHIXaqRdIT48SJSVeahRktUkKvNOm 37DQ== X-Gm-Message-State: AOAM532dq9/ktuTBtQv7WWNKERZMGxfbwBp+9QbRY16GDQwJKtjmg3LC YvYVAhTU9YLbA3G1XW0Ec4o= X-Google-Smtp-Source: ABdhPJy0zb2FdBHMbyYJ6fKeO/fehcYGRHY4pUseDI7LP/6sD+D2mAgczK1KEsAzJZvpe4tcQ5AE+A== X-Received: by 2002:a17:906:8593:: with SMTP id v19mr3536118ejx.32.1614854004036; Thu, 04 Mar 2021 02:33:24 -0800 (PST) Received: from localhost (cpe-109-60-4-54.st3.cable.xnet.hr. [109.60.4.54]) by smtp.gmail.com with ESMTPSA id si3sm2831918ejb.90.2021.03.04.02.33.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Mar 2021 02:33:23 -0800 (PST) Date: Thu, 4 Mar 2021 11:33:54 +0100 From: Domagoj =?UTF-8?Q?Smol=C4=8Di=C4=87?= To: Adrian Chadd Cc: "freebsd-hackers@freebsd.org" , "freebsd-wireless@freebsd.org" Subject: Re: AR9227/AR9287 unresponsive after some time Message-ID: <20210304113354.00004fa6@gmail.com> In-Reply-To: References: <20210303112803.0000260f@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Rspamd-Queue-Id: 4DrnJk6KHnz3Gln X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-4.00 / 15.00]; TAGGED_RCPT(0.00)[]; REPLY(-4.00)[] X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Technical discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 04 Mar 2021 10:33:27 -0000 Hi Adrian, Give me a set of your commands to execute and keep running in parallel with= AR9227 running. I'll be frequently sending you a results/dump files. If you agree/have time, of course. PS: 'interrupt read-and-clear bug' affects ALL chips in section 'Known chip= set issues/limitations/bugs' at =3D> https://wiki.freebsd.org/dev/ath_hal%284%29/HardwareSupport Domagoj On Wed, 3 Mar 2021 08:12:05 -0800 Adrian Chadd wrote: > hi! >=20 > Yeah, there's been some long standing calibration issues with the 9227 > that i've never figured out :( >=20 >=20 > -a >=20 > On Wed, 3 Mar 2021 at 02:27, Domagoj Smol=C4=8Di=C4=87 > wrote: > > > > For about 5 years now I have: > > -- > > ath1@pci0:3:2:0: class=3D0x028000 card=3D0x0300168c > > chip=3D0x002d168c rev=3D0x01 hdr=3D0x00 vendor =3D 'Qualcomm Athero= s' > > device =3D 'AR9227 Wireless Network Adapter' > > class =3D network > > -- > > ath1: mem 0xf1040000-0xf104ffff irq 5 at device 2.0 > > on pci3 ath1: [HT] enabling HT modes > > ath1: [HT] enabling short-GI in 20MHz mode > > ath1: [HT] 1 stream STBC receive enabled > > ath1: [HT] 1 stream STBC transmit enabled > > ath1: [HT] 2 RX streams; 2 TX streams > > ath1: AR9227 mac 384.2 RF5133 phy 15.15 > > ath1: 2GHz radio: 0x0000; 5GHz radio: 0x00c0 > > -- > > > > Everything is perfects upon device's fresh config and init. > > There were and always are problems with this card, AFTER some time > > passes. It's like it simply becomes unresponsive. > > > > Now at 12.2-RELEASE-p3 - i386, after some time passes: > > 1) As station/client =3D> in associated state it simply stops > > transmitting packets It can't ping it's AP! > > # service netif restart ..., "fixes" issue. > > 2) As AP =3D> it ignores it's clients and simply stops transmitting > > packets And WORST, slowly but surely freezes whole OS! > > Even console becomes unresponsive and only hard reset helps! > > > > Where should I look at? > > What should I do? > > > > PS: Take a note that SAME setup poses no problem for: > > -- > > ath0@pci0:3:1:0: class=3D0x020000 card=3D0x3a131186 > > chip=3D0x0013168c rev=3D0x01 hdr=3D0x00 vendor =3D 'Qualcomm Athero= s' > > device =3D 'AR5212/5213/2414 Wireless Network Adapter' > > class =3D network > > subclass =3D ethernet > > -- > > > > I saw in section 'Known chipset issues/limitations/bugs': > > interrupt read-and-clear bug > > Has anyone yet found a way to deal with it? > > > > PS: freebsd-wireless@ =3D> I'm not on a mailing list, so keep me > > posted. > > > > > > Thx in advance, > > Domagoj Smol=C4=8Di=C4=87 > > _______________________________________________ > > freebsd-hackers@freebsd.org mailing list > > https://lists.freebsd.org/mailman/listinfo/freebsd-hackers > > To unsubscribe, send any mail to > > "freebsd-hackers-unsubscribe@freebsd.org"=20