Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp30693rdb; Thu, 21 Dec 2023 01:43:46 -0800 (PST) X-Google-Smtp-Source: AGHT+IHWDNRO2O1xIP4lhwlbY4US98P1hS4YfGwpkCqllHlEHPKt2pzeXDV0MMfw/L2JGFteOl/g X-Received: by 2002:a17:907:1004:b0:a23:9a59:b882 with SMTP id ox4-20020a170907100400b00a239a59b882mr448576ejb.54.1703151826419; Thu, 21 Dec 2023 01:43:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703151826; cv=none; d=google.com; s=arc-20160816; b=HJ/98GvmMo7N+HZK+vSGiAEsgkFs2hja5PbpuHpyVP3CUvqCJea6bPPepsmprkcHxu MqS6V4lNxTV+NEeLN/A0H0srRSPNlaH5gMCudT2mTsFqxVXRbllJJ4XQZA3OB3z4vMAX UdrjrV9Q8hbedrTKz1eWLHUbBYDR0DJVMyOCcsNamN7bZ/vw41G4qMYOIzP/YGuMfB0n rUATRDiTL2tP7+xOZPHtKY9RbygGtlliPW4Uqw8WUHCb3hotHTm43kmxMna3uPsjdpNC 81mcHNds82INBk1vX9mg4viXMi+rn04mnboA4tEKDOwRitpm0/Pc7xDNSVmmF9dq2Xs0 EZvw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=ruzpjaIVO0jYgbLOtByzwYzSuRohPNIdlVB9Yf4+wyE=; fh=9c8B/F5tNe9bsw1LXcIC3v/joM9Dl067yHITuXN/bXk=; b=prJb369+TK6cs9+ePSXQBjCdx0ysHvaRvyjVwBXkh08dh+beW5/PlHn5ko0B3EsH/P Mho7hkOoDLRnyjXcsP3V2yOLnQEXyzlsHipqbjFfi2JjRHQiQLt0jkaLPNFcr4V8OMys 1uwX8VExrMkT70k9RR3/zVIRMJgqIna78WVMHzQGUp/vuVWchDHiNTxVtCJFDQ68QzvX p7gEEvgtL7x6uSJlwYTMJTmVZXmWF9oq/jBk88TJcdh8Kz5LGmUcKYS+jyktDAOII6OT pCryqrK7/cJCwwC2R8sUWFzqvAGxH8v4TM2cGRIfEgcCWEevLlub3TpIRLiQd+p2FBxu ZXNQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=OOiKugYq; spf=pass (google.com: domain of linux-wireless+bounces-1140-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-wireless+bounces-1140-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id a14-20020a170906684e00b00a23363fce85si685715ejs.570.2023.12.21.01.43.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Dec 2023 01:43:46 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless+bounces-1140-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=OOiKugYq; spf=pass (google.com: domain of linux-wireless+bounces-1140-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-wireless+bounces-1140-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 1B6841F2562A for ; Thu, 21 Dec 2023 09:43:46 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DED0540C1C; Thu, 21 Dec 2023 09:41:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="OOiKugYq" X-Original-To: linux-wireless@vger.kernel.org Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C5226405D0 for ; Thu, 21 Dec 2023 09:41:23 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E5312C433C7; Thu, 21 Dec 2023 09:41:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1703151683; bh=4KB9cNfKyUtmstEW8ccP6ovy2zqVxJYT1eY1JmYfZcg=; h=From:To:Cc:Subject:Date:From; b=OOiKugYq0AEpmAk309FFVzvkuUnsOSvSyJoBPoESRrdpgEDm7w4lx+VUxdj+Jix7P 6ZTHxrhMvLkOFfKDXFtyilEJIDEyQr+S1f7jyH0/zwYVafd1w8cYKHxE7TmAP0nojz g6tOmBfV86PANZEQX4WAIewpW9LZYVxuX6RGOnm9WOH4vIHeJnyB4BBDNblQIqIIUv aslzZGLv+mlco3vOKOB6hYI1YmwmeFbPRpP6HY/Zz+TgdlTpq7IhnZQlq3b++2K9in zcAyzXcbB7jyegeuSQtkRjxGTDksTjC5M/TJkLNb+nuBtC+AK8nH6b3qQTym6fKeXF T9LWd8Tv1BvtA== From: Lorenzo Bianconi To: nbd@nbd.name Cc: lorenzo.bianconi@redhat.com, linux-wireless@vger.kernel.org, sujuan.chen@mediatek.com Subject: [PATCH] wifi: mt76: mt7996: fix fw loading timeout Date: Thu, 21 Dec 2023 10:41:18 +0100 Message-ID: <7c0df5b926c2fd6383cde8c9ee50b313443110ab.1703151499.git.lorenzo@kernel.org> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Fix the following firmware loading error due to a wrong dma register configuration if wed is disabled. [ 8.245881] mt7996e_hif 0001:01:00.0: assign IRQ: got 128 [ 8.251308] mt7996e_hif 0001:01:00.0: enabling device (0000 -> 0002) [ 8.257674] mt7996e_hif 0001:01:00.0: enabling bus mastering [ 8.263488] mt7996e 0000:01:00.0: assign IRQ: got 126 [ 8.268537] mt7996e 0000:01:00.0: enabling device (0000 -> 0002) [ 8.274551] mt7996e 0000:01:00.0: enabling bus mastering [ 28.648773] mt7996e 0000:01:00.0: Message 00000010 (seq 1) timeout [ 28.654959] mt7996e 0000:01:00.0: Failed to get patch semaphore [ 29.661033] mt7996e: probe of 0000:01:00.0 failed with error -11 Suggested-by: Sujuan Chen" Fixes: 4920a3a1285f ("wifi: mt76: mt7996: set DMA mask to 36 bits for boards with more than 4GB of RAM") Signed-off-by: Lorenzo Bianconi --- drivers/net/wireless/mediatek/mt76/mt7996/dma.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/wireless/mediatek/mt76/mt7996/dma.c b/drivers/net/wireless/mediatek/mt76/mt7996/dma.c index 885ddf2c0d01..73e633d0d700 100644 --- a/drivers/net/wireless/mediatek/mt76/mt7996/dma.c +++ b/drivers/net/wireless/mediatek/mt76/mt7996/dma.c @@ -237,7 +237,8 @@ void mt7996_dma_start(struct mt7996_dev *dev, bool reset, bool wed_reset) MT_WFDMA0_GLO_CFG_TX_DMA_EN | MT_WFDMA0_GLO_CFG_RX_DMA_EN | MT_WFDMA0_GLO_CFG_OMIT_TX_INFO | - MT_WFDMA0_GLO_CFG_OMIT_RX_INFO_PFET2); + MT_WFDMA0_GLO_CFG_OMIT_RX_INFO_PFET2 | + MT_WFDMA0_GLO_CFG_EXT_EN); if (dev->hif2) mt76_set(dev, MT_WFDMA0_GLO_CFG + hif1_ofs, -- 2.43.0