Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp1632843rdd; Thu, 11 Jan 2024 05:11:20 -0800 (PST) X-Google-Smtp-Source: AGHT+IFHWRaWrz8YtGc5iJGj+kFl9qT2QqtJBSGrfgh/tg3KXcYBe+5bDur6ry+bK1eTM5v24sCz X-Received: by 2002:a67:fb8e:0:b0:467:e5e1:55bc with SMTP id n14-20020a67fb8e000000b00467e5e155bcmr364846vsr.8.1704978679953; Thu, 11 Jan 2024 05:11:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704978679; cv=none; d=google.com; s=arc-20160816; b=t3qTCDfnL4N2AME8wbqjhL72XcBKbscVqV16JAEeZAwt6M73KRT/yToAe9rDYVbUOD wNPU2ylX3tUm+Fh5zYm3Uv8sCVZ77LjoBmVvOocrl2J/0VrLOQRAzeJfT84K2SeGauAl e4+c/ErXcpBal/6YB6FUEaR6CI5HMxN9aGao9H4ZbQGjsf/MmqLwl2ScU2a9m1ulDU+0 OIx9hUVM3hRQkPPGUoaWw2Sr/vzPHh1kZb64wS7ZlV9tKGGlPUU/2lpVQpb1qFLeyj1A A4YdnxZ7x9UkOuc/TY2YFpNSsby9+IsOkw00bkbyowec5xZ1pE21Gh5jXfrVfSgaQVXA XM0Q== 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:user-agent:message-id:in-reply-to :date:references:subject:cc:to:from:dkim-signature; bh=Xk53MHcXaBc/qe4901eYqEK9cjk9W7j8opCQ74N4LDI=; fh=0+q+pe671ZjunKT/v2aM5yoJ/5TrP1PRz+U0oYd1vWA=; b=YYI6eI3qb/WUyZVUpXiJ77RUo/mePOTd9QCI1Hix3Pp9rRTofuVzQHQWwvw48UjjQL q1s0VdBIs1L/uke6D2MBmViYPyndhCB27ASnNssEOA4Tm+SjTpinLtgaB8Xe7wveg+H5 BMAreYvK7F2kvE+wKufmazWOXlaqC/GDf83ygvoWQ2fjj6IXaGnk3j+8trthxEPi81Oa hNP4EQ2rRiUAh87XEq8e1KFWB9GzeJjeIy4DLC8k96v+ZiHWMaFXkSu/sWRD322NmSU4 z4B4o7oYvfm81SzFtZw4i9ZoU15QiX8KqC8i6HcF9seMN/k6/PwtFnRhyydATXwfxlq0 TNFg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=KJu+E5D6; spf=pass (google.com: domain of linux-wireless+bounces-1717-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-wireless+bounces-1717-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. [147.75.199.223]) by mx.google.com with ESMTPS id z1-20020a0561023b8100b00467052d165dsi76867vsu.638.2024.01.11.05.11.18 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Jan 2024 05:11:18 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless+bounces-1717-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=KJu+E5D6; spf=pass (google.com: domain of linux-wireless+bounces-1717-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-wireless+bounces-1717-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 B09731C208C3 for ; Thu, 11 Jan 2024 13:11:18 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7826E15AE9; Thu, 11 Jan 2024 13:11:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="KJu+E5D6" 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 5CB51171AE for ; Thu, 11 Jan 2024 13:11:11 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E759FC433A6; Thu, 11 Jan 2024 13:11:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1704978670; bh=Xk53MHcXaBc/qe4901eYqEK9cjk9W7j8opCQ74N4LDI=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=KJu+E5D6hDXtT0PQSkE7t4X3wZzElymcoTMLRiL/R9I2E9a75+ajSzpByNuICy3qs CKTBwG2FOrqYJ5Td8QFuscQAjQ3jdBAmgttGcZ7xZHuFu+hIMc/q3d3FBYLSdWvhLo 3obcOJLvkNMwhPRzAJkQjLVktWCfRFL65wEASNy0/rP/Ich7zdhGP0uebLjpez7kKX W6uAokqHECGXwqtnlCBLRbcqcgwSpJx6hyHxnFQb6a3YA9bzxCDtgJKlrwNdD9AiOD SX/OOJgX6ef7Rr2jB/OGL3e6pN3XpU4eyii6ELhBw2asPLUDsyCaAF/GLEH+43REBi cuGi9pZJYjI4g== From: Kalle Valo To: James Prestwood Cc: Baochen Qiang , linux-wireless@vger.kernel.org, ath11k@lists.infradead.org Subject: Re: ath11k and vfio-pci support References: <8734v5zhol.fsf@kernel.org> <87fa5220-6fd9-433d-879b-c55ac67a0748@gmail.com> <87r0ipcn7j.fsf@kernel.org> <356e0b05-f396-4ad7-9b29-c492b54af834@gmail.com> <26119c3f-9012-47bb-948e-7e976d4773a7@quicinc.com> <87mstccmk6.fsf@kernel.org> Date: Thu, 11 Jan 2024 15:11:07 +0200 In-Reply-To: (James Prestwood's message of "Thu, 11 Jan 2024 04:48:24 -0800") Message-ID: <8734v4auc4.fsf@kernel.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable James Prestwood writes: > Hi Kalle, Baochen, > > On 1/11/24 12:16 AM, Kalle Valo wrote: >> Baochen Qiang writes: >> >>> On 1/10/2024 10:55 PM, James Prestwood wrote: >>>> Hi Kalle, >>>> On 1/10/24 5:49 AM, Kalle Valo wrote: >>>>> James Prestwood writes: >>>>> >>>>>>> But I have also no idea what is causing this, I guess we are doing >>>>>>> something wrong with the PCI communication? That reminds me, you co= uld >>>>>>> try this in case that helps: >>>>>>> >>>>>>> https://patchwork.kernel.org/project/linux-wireless/patch/202312120= 31914.47339-1-imguzh@gmail.com/ >>>>>> Heh, I saw this pop up a day after I sent this and was wondering. Is >>>>>> this something I'd need on the host kernel, guest, or both? >>>>> On the guest where ath11k is running. I'm not optimistic that this wo= uld >>>>> solve your issue, I suspect there can be also other bugs, but good to >>>>> know if the patch changes anything. >>>> Looks the same here, didn't seem to change anything based on the >>>> kernel logs. >>>> >>> Could you try this? >>> >>> https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/comm= it/drivers/net/wireless/ath/ath11k/pci.c?id=3D39564b475ac5a589e6c22c43a08cb= d283c295d2c >> This reminds me, I assumed James was testing with ath.git master branch >> (which has that commit) but I never checked that. So for testing please >> always use the master branch to get the latest and greatest ath11k: >> >> https://git.kernel.org/pub/scm/linux/kernel/git/kvalo/ath.git/ >> >> There's a quite long delay from ath.git to official releases. > > Good to know, and I was not in fact using that branch. Rebuilt from > ath.git/master but still roughly the same behavior. There does appear > to be more output now though, specifically a firmware crash: > > [=C2=A0=C2=A0=C2=A0 2.281721] ath11k_pci 0000:00:06.0: failed to receive = control > response completion, polling.. > [=C2=A0=C2=A0=C2=A0 2.282101] ip (65) used greatest stack depth: 12464 by= tes left > [=C2=A0=C2=A0=C2=A0 3.306039] ath11k_pci 0000:00:06.0: Service connect ti= meout > [=C2=A0=C2=A0=C2=A0 3.307588] ath11k_pci 0000:00:06.0: failed to connect = to HTT: -110 > [=C2=A0=C2=A0=C2=A0 3.309286] ath11k_pci 0000:00:06.0: failed to start co= re: -110 > [=C2=A0=C2=A0=C2=A0 3.519637] ath11k_pci 0000:00:06.0: firmware crashed: = MHI_CB_EE_RDDM > [=C2=A0=C2=A0=C2=A0 3.519678] ath11k_pci 0000:00:06.0: ignore reset dev f= lags 0x4000 > [=C2=A0=C2=A0=C2=A0 3.627087] ath11k_pci 0000:00:06.0: firmware crashed: = MHI_CB_EE_RDDM > [=C2=A0=C2=A0=C2=A0 3.627129] ath11k_pci 0000:00:06.0: ignore reset dev f= lags 0x4000 > [=C2=A0=C2=A0 13.802105] ath11k_pci 0000:00:06.0: failed to wait wlan mode > request (mode 4): -110 > [=C2=A0=C2=A0 13.802175] ath11k_pci 0000:00:06.0: qmi failed to send wlan= mode > off: -110 Ok, that's progress now. Can you try next try the iommu patch[1] we talked about earlier? It's already in master-pending branch (along with other pending patches) so you can use that branch if you want. [1] https://patchwork.kernel.org/project/linux-wireless/patch/2023121203191= 4.47339-1-imguzh@gmail.com/ --=20 https://patchwork.kernel.org/project/linux-wireless/list/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatc= hes