Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp553824pxb; Sat, 21 Aug 2021 10:26:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJye5/xiPbBaN6u4YFYbI/Ya2sPb97zAxalESDEU8JFNtL+OLV4wmlLksxO2hfHg0o19BM2b X-Received: by 2002:a02:cca8:: with SMTP id t8mr23136215jap.51.1629566812604; Sat, 21 Aug 2021 10:26:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629566812; cv=none; d=google.com; s=arc-20160816; b=UpYvRcG4ktgvd0j6mzxGw2dPV/Qe9zN/dHd+UPU+XZF59E2CtaUV/7tm5pF9qaVA2u fwE3BwzRnnyvsbTQLWdtgctFz1Chn91zl1hldyPwk1SDbtp6ju51UbeRGzl40XLRsedF sAq9v1B2QunDGCxzC/GbEcnumnJ0CnVZNo396/VSwQSNScA0id8+HER1REmJF5ML8FRH AzeEKeczL/x7HBJ/kygCDt0VqY5EHYExRUe479C9zEyjgoqszE7H18TWPd1uQ0dGZqGG LBRk7MOgclZhc1gSB/T6QaqHIgg1C8tq7yfx3I/sisf85g8LJBgBjFWa4EHJy6Ssw090 AXBQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:date:message-id:user-agent:cc:to:references :in-reply-to:from:subject:content-transfer-encoding:mime-version :dmarc-filter:sender:dkim-signature; bh=6WsGx9ae68Ps20lCTKcLH+Mv3aDl+4r3zhiufzd6GVI=; b=N/dTjLtXF23vMf2bE2eCkV/Ehd7fnt3Wc0rvJEIIGOEIq9IPK42N0/tepg1k6kLpZg WCjVYK/rS1fndqTTdof1zvVUWNU6SPqJinwiTvbAZ4WLLfnzZM+jwAp1n13yYfO3UROv /EVzIVSHJcjIiiUSmZVLnv4Te2GzlfJIoZsAxJY35v5A4eScEx0xETqKmVypcj9LuRPu cnRc+HRp00Q27Kv9aaOFSYGPWdpC/XLFsNKOCROB0Yb8Qon2EXYdVYgeRfVD4cl6joSV vwkLkEjEiHx1/6i6g0Sh6+SstA97UMKgTY/EGc063BHn2wOnytoH3/07sbVNHkFIEezW Udmg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=DlmBAk+p; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z16si10440589jat.29.2021.08.21.10.26.39; Sat, 21 Aug 2021 10:26:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=DlmBAk+p; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231313AbhHUR1M (ORCPT + 99 others); Sat, 21 Aug 2021 13:27:12 -0400 Received: from m43-7.mailgun.net ([69.72.43.7]:33132 "EHLO m43-7.mailgun.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229803AbhHUR1K (ORCPT ); Sat, 21 Aug 2021 13:27:10 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1629566791; h=Date: Message-Id: Cc: To: References: In-Reply-To: From: Subject: Content-Transfer-Encoding: MIME-Version: Content-Type: Sender; bh=6WsGx9ae68Ps20lCTKcLH+Mv3aDl+4r3zhiufzd6GVI=; b=DlmBAk+pqLcatpi0BLHVOd7ekU6xaFHGeQFq45A1v50HE35nUG8R8/ANfZP6mggDzE1hkd0F VRuNdunDOsV8hJxD98FRHWmxFPJ4HQbw1Xkdx+2K5hMKTbTskbyEvexlvAsJQof6r0ZWjrtA U+hMJpp+ycT2xHIx7yWHuppsVFE= X-Mailgun-Sending-Ip: 69.72.43.7 X-Mailgun-Sid: WyI3YTAwOSIsICJsaW51eC13aXJlbGVzc0B2Z2VyLmtlcm5lbC5vcmciLCAiYmU5ZTRhIl0= Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by smtp-out-n04.prod.us-east-1.postgun.com with SMTP id 61213739a2d1fbf62b2a4edf (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Sat, 21 Aug 2021 17:26:17 GMT Sender: kvalo=codeaurora.org@mg.codeaurora.org Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 06659C43616; Sat, 21 Aug 2021 17:26:17 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=2.0 tests=ALL_TRUSTED,BAYES_00, MISSING_DATE,MISSING_MID,SPF_FAIL autolearn=no autolearn_force=no version=3.4.0 Received: from tykki.adurom.net (tynnyri.adurom.net [51.15.11.48]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: kvalo) by smtp.codeaurora.org (Postfix) with ESMTPSA id 5E4C6C4338F; Sat, 21 Aug 2021 17:26:14 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 smtp.codeaurora.org 5E4C6C4338F Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; spf=fail smtp.mailfrom=codeaurora.org Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Re: [PATCH 1/3] rsi: fix occasional initialisation failure with BT coex From: Kalle Valo In-Reply-To: <1628245403-2517-2-git-send-email-martin.fuzzey@flowbird.group> References: <1628245403-2517-2-git-send-email-martin.fuzzey@flowbird.group> To: Martin Fuzzey Cc: linux-wireless@vger.kernel.org, Amitkumar Karwar , Siva Rebbagondla , Jakub Kicinski , Prameela Rani Garnepudi , linux-kernel@vger.kernel.org, Martin Fuzzey User-Agent: pwcli/0.1.0-git (https://github.com/kvalo/pwcli/) Python/3.7.3 Message-Id: <20210821172617.06659C43616@smtp.codeaurora.org> Date: Sat, 21 Aug 2021 17:26:17 +0000 (UTC) Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Martin Fuzzey wrote: > When BT coexistence is enabled (eg oper mode 13, which is the default) > the initialisation on startup sometimes silently fails. > > In a normal initialisation we see > usb 1-1.3: Product: Wireless USB Network Module > usb 1-1.3: Manufacturer: Redpine Signals, Inc. > usb 1-1.3: SerialNumber: 000000000001 > rsi_91x: rsi_probe: Initialized os intf ops > rsi_91x: rsi_load_9116_firmware: Loading chunk 0 > rsi_91x: rsi_load_9116_firmware: Loading chunk 1 > rsi_91x: rsi_load_9116_firmware: Loading chunk 2 > rsi_91x: Max Stations Allowed = 1 > > But sometimes the last log is missing and the wlan net device is > not created. > > Running a userspace loop that resets the hardware via a GPIO shows the > problem occurring ~5/100 resets. > > The problem does not occur in oper mode 1 (wifi only). > > Adding logs shows that the initialisation state machine requests a MAC > reset via rsi_send_reset_mac() but the firmware does not reply, leading > to the initialisation sequence being incomplete. > > Fix this by delaying attaching the BT adapter until the wifi > initialisation has completed. > > With this applied I have done > 300 reset loops with no errors. > > Fixes: 716b840c7641 ("rsi: handle BT traffic in driver") > Signed-off-by: Martin Fuzzey > CC: stable@vger.kernel.org Failed to apply, please rebase on top of wireless-drivers-next. error: sha1 information is lacking or useless (drivers/net/wireless/rsi/rsi_91x_mgmt.c). error: could not build fake ancestor hint: Use 'git am --show-current-patch' to see the failed patch Applying: rsi: fix occasional initialisation failure with BT coex Patch failed at 0001 rsi: fix occasional initialisation failure with BT coex 3 patches set to Changes Requested. 12423167 [1/3] rsi: fix occasional initialisation failure with BT coex 12423171 [2/3] rsi: fix key enabled check causing unwanted encryption for vap_id > 0 12423173 [3/3] rsi: fix rate mask set leading to P2P failure -- https://patchwork.kernel.org/project/linux-wireless/patch/1628245403-2517-2-git-send-email-martin.fuzzey@flowbird.group/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches