Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp2373400lqp; Sun, 24 Mar 2024 16:25:33 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUULnG4hw7GqDJ4efyGLoqOwfVopc1AG71f+BoED8AT0pXEXdML8E3eDamDeMpC/WrU8/cA6KioKrdvhMOoxCLdYzRJ+blZBxv4VQ3kUg== X-Google-Smtp-Source: AGHT+IFcRuZulto9sfgj8gei7UO0BdmX/q53DSya+SSgVWR5nt5K90SutSsfGE2ya/aeRTSaOVYj X-Received: by 2002:a05:690c:4282:b0:611:4419:702b with SMTP id gj2-20020a05690c428200b006114419702bmr2479522ywb.3.1711322733651; Sun, 24 Mar 2024 16:25:33 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711322733; cv=pass; d=google.com; s=arc-20160816; b=ECILQF3HxiIRmLqWLxOTruNlpBSY4zHXL5K0lV64xalxD664lIzNrCFmePyoq8e0Vr d6t7mHS92cydUt+paKA0B/OUf9HZagx88nE4kiyfiFAx6qRTPcjyjOh2EuWqisJYvIpZ Q/vu2jT5glPNGPqoHLEEFLQHWWa3wCIBhxWoVg35LFk7qIKFy1Qqr4fmvJ9b9hTMy3T2 x6vxRikmRpXRFo/lUw8raI56pWTorc8i16r8O7rYVqB9xxRzdXKKYbzTQka21Msz7yPW 4l6JuJth/t5Jew1298xOiBZ7VtsopLJqbUl9bCcxc3vRtmCHeoX9S7qe33iU1uDWP5N5 uoZQ== ARC-Message-Signature: i=2; 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:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=IY7wW5OTQ3qjyJOh4+2/d3wCPj11qWmouF3rtf9GkUU=; fh=1J1MwLt8Xqbs+jOhZqDOs9oXfw3hhlmS/31DbFapG9E=; b=yVk7xl7DV6So3DPkSB/1r4UCZCXDJ2XPYhHkYlm6w5xe/kYlZpwVN9pY5tzvmo5cSp dt+7ahExA/dsfOKu6jPDAhH6t1MROn9HF+ksv76CJS2fkwS9cotD5TYTMK0S0hJbUFOn zO8uqzZiBTjARGUsfFFnoo/pe7kNm5F38bR4M4p8q/ieP+POYT3Q4MV51BUBfAeBNntN HEoezw7xefIO02MHMMDfo1FkLVLY/j87AGy/uL2VyqcnBL72JhzmCxUB/GjXAdZ9k1nA 6EvLe5t8E5IvgP9M8h52lS5CWEmgA8WcZuXLSYCgbwGhvC28tMlhcjci0eW25ektIROX Dukw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=oviC+T9+; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-113120-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-113120-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id ye20-20020a05620a3b9400b00789f16a2881si4321449qkn.509.2024.03.24.16.25.33 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 24 Mar 2024 16:25:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-113120-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=oviC+T9+; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-113120-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-113120-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 5D8751C21C54 for ; Sun, 24 Mar 2024 23:25:33 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1D78815B97C; Sun, 24 Mar 2024 22:38:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=fail reason="key not found in DNS" (0-bit key) header.d=kernel.org header.i=@kernel.org header.b="oviC+T9+" 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 2A05715B119; Sun, 24 Mar 2024 22:38:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711319928; cv=none; b=j+g/30etb1kdZm8VOYe9+z/23J2Rc4y3NnoDTjpw6UIuCLKA1vs6tAScYaaOOGg2enZoIII94gwGn88F9Pe0XuSSW2JZ1FLkpxkw/LmwJ4SIniUGBMAXYv67qJA543K2yl62COda9OQAFkj+SwPS5/8DEROPA7dN4gtKl72zRbU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711319928; c=relaxed/simple; bh=4HXVmvJJAi7+alimoqiVvNXc6ec3CXY1JNDIKUw8Mp8=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=gJkwIWP+tHLtfiEE/fRB9KuwKxAVJLYyyk8k5a88XI1s6rLmLuIj/BtuUkiwX/bBoUK+op0bqw4tzs5H7DFaznN4fwPoiqq3O7dKMhT187ukkPdMz8+Or0RNdTr+OMFVz2XhTLPXhSIsLYOXf/ybUAQJj9/sEICZmLvRWGumGp0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=oviC+T9+; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 17069C43390; Sun, 24 Mar 2024 22:38:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711319927; bh=4HXVmvJJAi7+alimoqiVvNXc6ec3CXY1JNDIKUw8Mp8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=oviC+T9+V44Hr3NMX2CF6YR3B+kK/vNRvI7dIeX2idfzUIPKEk4q3ZNHwDKxPZ2dQ pJujiLnoPisTYssWzVmNLKEtTwsWdK68AFAdO1zE7GgoTqTPjI/TlR7IBwskXkQBgl 4f+gxJJBWMt7cWGbFu49EAl737nTGPIyOK5NfRcDZXr52kWxEoDF594CHYLb+U/WYN 7uYP2tim1fI188dPT5ZzsSRCNPsXv3dMtsMApEabPPFNkcpSmb0j74/b7OTL1DHMpV VqX1yrI26SLke0nnQ/Q8XYms9jo/ZgAuYasvxWYmpEbxZ11yzteUTQu2SRIZiiUx+s r6+oBOIk1ld9w== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Lorenzo Bianconi , "Sujuan Chen" , Felix Fietkau , Sasha Levin Subject: [PATCH 6.8 233/715] wifi: mt76: mt7996: fix fw loading timeout Date: Sun, 24 Mar 2024 18:26:52 -0400 Message-ID: <20240324223455.1342824-234-sashal@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240324223455.1342824-1-sashal@kernel.org> References: <20240324223455.1342824-1-sashal@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit From: Lorenzo Bianconi [ Upstream commit 030d2e287a902b44ef45e660cf1d73af23fe7d2e ] 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 Signed-off-by: Felix Fietkau Signed-off-by: Sasha Levin --- 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 483ad81b6eec6..fe37110e66875 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