Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp595333ybl; Thu, 22 Aug 2019 01:46:34 -0700 (PDT) X-Google-Smtp-Source: APXvYqx3LltRighoI28ytwxaWl9J4DQI4k/IkGWTVuFhAJ95YkwpTFjE9Tpwk5CX7pMLMyW1Qldf X-Received: by 2002:aa7:96ec:: with SMTP id i12mr40445325pfq.125.1566463594459; Thu, 22 Aug 2019 01:46:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566463594; cv=none; d=google.com; s=arc-20160816; b=MpG9lKUBUg/oJQX+VPeQ2hx5Jdu41MEIBhTH9norcS7iCgjJ+by6fwulvYFeFDVKLo b4bs09yi7AOO+55vf2/9coDygB04Xyo5gDrMYZODF6thnBsbJTS6qq+UlJnVW7abXsF8 TN3n/3nn4GBNRWvSr+vFjLA9DQC7tdyAl+/u4gP8s+6EAuKa0sEvDEkP8ygi8BOu0e1f R3DRKqvdFT7lZ84WsB2e0YqqBdlLm4f2qvYG3uRtDIWgOENuEZ095ONpvuQ0obRKYgLD ze2ZC5kNoUfKgFB0MwlEJqBRUDbEjLQmVlFDMTyB5k6+d9Gtt3yk7ryRQV+sJ9r4pkt9 xf5A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:autocrypt:openpgp:from:references:cc:to:subject :dkim-signature; bh=MpxEvYdF0A5oRvLeItRazTuQVEm3aMYwiz/tcTLfxCw=; b=fcm/VIs17KNLaGmX9MolXgRGDOfeFQFkWqq1P+p9CmCIGhsm2yIrSX7YDreI3RHSeu CeSGJ13Hyzy03otmMMxGWu+NRYN5zbYPEiKO/RYqUZy6mqP28A8wnp8oljcH5nbNXI2B toA1i9RU+A4gJuz3fI6YKM4BZkzRW4IveUZPPbes0PqRwrulSi77cVWmgbp8hQ2QdqSX 4nAjLjoRkjSn+YFdd8OkEfDyhMbKqt9aJ0Mow6I8+Xt6qzWzlSvBxY8yox8ci4jka9xZ h4eTZLLfD+Nr/6dDMW5t6fqLRCZniNB1QG35bMqTiFqoSRf/XC5ZhABXUOjdE1DRlabE i8yA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@nbd.name header.s=20160729 header.b=Q2rQlOkv; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g17si8301684plj.399.2019.08.22.01.46.09; Thu, 22 Aug 2019 01:46:34 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@nbd.name header.s=20160729 header.b=Q2rQlOkv; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731549AbfHVHX6 (ORCPT + 99 others); Thu, 22 Aug 2019 03:23:58 -0400 Received: from nbd.name ([46.4.11.11]:47842 "EHLO nbd.name" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730108AbfHVHX5 (ORCPT ); Thu, 22 Aug 2019 03:23:57 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=nbd.name; s=20160729; h=Content-Transfer-Encoding:Content-Type:In-Reply-To: MIME-Version:Date:Message-ID:From:References:Cc:To:Subject:Sender:Reply-To: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=MpxEvYdF0A5oRvLeItRazTuQVEm3aMYwiz/tcTLfxCw=; b=Q2rQlOkvTKhatpMloNd33JY6Lr H3FC0Qzl21D+jTkkERssc5gn/Ax+QuTUoGaqS9+HG9AnVtHv1JSEwQeYZ0Z+lOblPyrBwOGemaJGI X6Vd4z7L3EO8AOCe5RWWKvQTiu1c3Ac8BwR3/Atx012pfAjNNOeSucEOFm/sLfZeq7t4=; Received: from p54ae9443.dip0.t-ipconnect.de ([84.174.148.67] helo=nf.local) by ds12 with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from ) id 1i0hRo-0002Ct-OR; Thu, 22 Aug 2019 09:23:52 +0200 Subject: Re: [PATCH 5.3] mt76: mt76x0e: don't use hw encryption for MT7630E To: Stanislaw Gruszka Cc: Lorenzo Bianconi , linux-wireless , Ryder Lee , Roy Luo References: <1565703400-10623-1-git-send-email-sgruszka@redhat.com> <20190815100936.GA21775@redhat.com> <727fd528-16c1-e3b3-e1a9-2edbcbdddee7@nbd.name> <20190819110639.GA6037@redhat.com> <7b46ab63-d69d-f389-b3c2-245cbe11c7b7@nbd.name> <20190820112438.GA2227@redhat.com> <20190821084724.GB20223@redhat.com> <433c1d1f-3590-375f-ed8d-c9de2af873d5@nbd.name> <876a4137-ecd5-2e6c-0c75-87eae895e672@nbd.name> <20190821112244.GA23546@redhat.com> From: Felix Fietkau Openpgp: preference=signencrypt Autocrypt: addr=nbd@nbd.name; prefer-encrypt=mutual; keydata= mQGiBEah5CcRBADIY7pu4LIv3jBlyQ/2u87iIZGe6f0f8pyB4UjzfJNXhJb8JylYYRzIOSxh ExKsdLCnJqsG1PY1mqTtoG8sONpwsHr2oJ4itjcGHfn5NJSUGTbtbbxLro13tHkGFCoCr4Z5 Pv+XRgiANSpYlIigiMbOkide6wbggQK32tC20QxUIwCg4k6dtV/4kwEeiOUfErq00TVqIiEE AKcUi4taOuh/PQWx/Ujjl/P1LfJXqLKRPa8PwD4j2yjoc9l+7LptSxJThL9KSu6gtXQjcoR2 vCK0OeYJhgO4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Bes6z0QdaSOwZCRA3QSLHBwtgUsrT6RxRSweLrcabiEkE GBECAAkFAkah5FQCGwwACgkQ130UHQKnbvW2GgCfTKx80VvCR/PvsUlrvdOLsIgeRGAAn1ee RjMaxwtSdaCKMw3j33ZbsWS4 Message-ID: <05f1198f-f10e-a1df-a4b0-231ff70ac073@nbd.name> Date: Thu, 22 Aug 2019 09:23:52 +0200 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <20190821112244.GA23546@redhat.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On 2019-08-21 13:22, Stanislaw Gruszka wrote: > On Wed, Aug 21, 2019 at 12:40:14PM +0200, Felix Fietkau wrote: >> On 2019-08-21 11:03, Felix Fietkau wrote: >> > On 2019-08-21 10:47, Stanislaw Gruszka wrote: >> >> On Tue, Aug 20, 2019 at 01:24:39PM +0200, Stanislaw Gruszka wrote: >> >>> > Can you test if disabling hw encryption only for shared or only for >> >>> > pairwise keys makes any difference? >> >>> >> >>> Disabling only pairwise keys helps. Disabling only shared keys does >> >>> not help. >> >>> >> >>> Not sure if this will be helpful information or make things more >> >>> confusing, but seems the difference between mt76_txq_schedule() >> >>> and tasklet_schedule() in mt76_wake_tx_queue() is that on >> >>> mt76_txq_schedule() some tx packets are serialized by dev->rx_lock >> >>> (because some ARP and TCP packets are sent via network stack as response >> >>> of incoming packet within ieee80211_rx_napi() call). Removing >> >>> spin_lock(&dev->rx_lock) in mt76_rx_complete() make the problem >> >>> reproducible again with mt76_txq_schedule() & HW encryption. >> >> >> >> So, I think this is FW/HW issue related with encryption and ordering >> >> and we should apply patch originally posted in this thread that >> >> disable HW encryption for MT7630E. >> >> >> >> I do not think we should disable HW encryption only for pairwise keys, >> >> because FW/HW can have the same bug for shared keys, but is not >> >> triggered in my test, as we do not sent lot of group frames. >> > I'm still not convinced that this is just the hardware implementation of >> > hw crypto being faulty. I think it's more likely that there's a bug in >> > the tx path somewhere, which causes hangs on MT7630E but remains hidden >> > (or at least recoverable) on other devices. >> > I'm currently reviewing key handling in the mac80211 fast-xmit codepath >> > and get the feeling that something might be racy there. >> > I will let you know when I make some progress with that review. >> > If we can't find the bug soon, then I'm fine with merging this patch. >> > Right now, I would like to see first if we can fix it properly. >> Another question: Does a watchdog restart happen before tx fails? > > No, we do not run wdt_work for mt76x0e. I didn't find anything conclusive yet, so I agree with merging this patch for now until we have a better fix. - Felix