Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp1618348rdd; Thu, 11 Jan 2024 04:48:33 -0800 (PST) X-Google-Smtp-Source: AGHT+IHk3YtHPTevpLwIcCis9GagNQs1TNsTZ7FiPjT7Yi3n82AgOE6tk5s2NdSM7tKY+FteJdTG X-Received: by 2002:a05:620a:439f:b0:783:3976:e17a with SMTP id a31-20020a05620a439f00b007833976e17amr1300568qkp.52.1704977313433; Thu, 11 Jan 2024 04:48:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704977313; cv=none; d=google.com; s=arc-20160816; b=FlkGXjl6RdyH5VTt45HAEUhuyFL8pziq889YxZbqX+i/M4fW6cJPCj66Yq/W/KGuHY Mig5ioXKM5/ZX3e4es9CoKWH0TIy5G6Dy9klKdEWFAFTTCpnXS5e4KMSuB5z6/NO46p6 oM84EV5R0zYaOXTUXFTh8ZreDnpEGsf6KR1AfxdJQdkpGn0ETyQF9Y577/VfsbSfL4/1 P3X3GHslm7J0vSYfG0yNXAb0rzpEfqFJW3xu52F605SGwtnmArik0Hef3JUgRdzHIC4e rW1J/+nf3XNMc1kLoA74TnOGGHS4lbpWmEllpASQ5HbSuPKS25aXcpC8JsyZlSdeHTkK Bt3Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=A6whrmn+g/DFxEN3vjjKCiQLmg4dZXZT9/IAiHb8rGs=; fh=bubiCKK6U1gQknKG4ZibwRaMGMX9+n8H5yBVNyFXKqI=; b=gD7WXfXD/Qb6Q+FWpnvsQq6wiGyl8Z+gFBEWIn8NVgQaXNbmUZvmH4jkdKnULlsTEX o82Qd+7LaY45tB1ZCXQFR8PYkSrtRS7HvQz3fS0l+qNJouQ4UHxQkCU62hjMnhUPggjx hmOCclpznKAHjEoBNwLTvDL2Q1oWZI/kZJ/jOuBDV5jGnwrTj+Eqic7gHn9bJ8wwisvy UyD9Za1cQ0U9+CiP4ouKScF+3zwmhQKFsHzNYpm+YCNMQ0cZZ7plmXmDpdPIslGkYuZg HWfgO7HgA59hMk/uGbZy+m3kiBD2FbuAbU2crgftFhiQDj3k8AN/zOUfIgw3YjV+AWvL 92gQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=e6TUWK5C; spf=pass (google.com: domain of linux-wireless+bounces-1714-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-wireless+bounces-1714-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id m12-20020a05620a220c00b007830c3de57fsi799886qkh.239.2024.01.11.04.48.33 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Jan 2024 04:48:33 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless+bounces-1714-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=@gmail.com header.s=20230601 header.b=e6TUWK5C; spf=pass (google.com: domain of linux-wireless+bounces-1714-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-wireless+bounces-1714-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com 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 22FA51C20C83 for ; Thu, 11 Jan 2024 12:48:33 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9273E15AF8; Thu, 11 Jan 2024 12:48:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="e6TUWK5C" X-Original-To: linux-wireless@vger.kernel.org Received: from mail-yw1-f178.google.com (mail-yw1-f178.google.com [209.85.128.178]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1E68815AF7 for ; Thu, 11 Jan 2024 12:48:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-yw1-f178.google.com with SMTP id 00721157ae682-5fa4b03f3f5so21722627b3.1 for ; Thu, 11 Jan 2024 04:48:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1704977307; x=1705582107; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=A6whrmn+g/DFxEN3vjjKCiQLmg4dZXZT9/IAiHb8rGs=; b=e6TUWK5CqwOhD2v08ZJYFzY42Fdhe7P4/QovPidFHNLJoOmV84p4JxgsUUqUUXmivy irXZOKGCbPbC42f+3RN99UHsfmkbHTMRflo68iITto+hIIifWqB2xwjxKUUUrgynOXu9 1DT/ntFtA4lZGPEMGgMv8xVN+x5vGHAioNeTMVs4c1bhD7wAYpCOdDGCCGf5V2385t90 wogRInyUh6pEz4IInXt6ZuUdsRU96PjBNyHCPhIfXbs2sPPAB3VrKTx2Xs5PK3lVCDBL Ho9+VmbQPKxSW1elB5w7QjcLIzxiIRqBFVlkgeYaLdydtgNISViPuUixKjQ9WOpRwhjK 8LCw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704977307; x=1705582107; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=A6whrmn+g/DFxEN3vjjKCiQLmg4dZXZT9/IAiHb8rGs=; b=WwRfTu/rt/K1AlMCI97kKWoX5mWmdcyvXNbzgzE/Y5nyxTdw+D11L4kSyOlSDhEZiF uKcNktsBllDj0TvkUwYOY32Iru9Dd7JcJkbyFi15QYCWyjNT10AvTMrHfbJVANHX4cJN iqKIjjdwVfrh21IrBtAdNxN7izuYJrcAvhkxZSiKRLc1pHQ4r09gh6dDjCzrG0RRH+Ih Du51sO8XSef4hkCqZkpVLuWY48dw6C1aHeL+rguxjiizXLyiE66xJzxbLNbpqvy8+kP8 bA+jBFCE+vyKhhqAv28QA+HuDBIL9T/nOzTfJSg3eg6zNg50/5fLoBpaFJzyev4wQMOw j/OA== X-Gm-Message-State: AOJu0Yzfx63L+mCwem4DowpownxETc0FF3DTCWAMxWl2JuBClHyzo8IX mjA138zXNz6C+N2dk0h+mUHtWiNwoJE= X-Received: by 2002:a81:99d2:0:b0:5d7:60ed:6a93 with SMTP id q201-20020a8199d2000000b005d760ed6a93mr510107ywg.54.1704977306991; Thu, 11 Jan 2024 04:48:26 -0800 (PST) Received: from [10.102.4.159] (50-78-19-50-static.hfc.comcastbusiness.net. [50.78.19.50]) by smtp.gmail.com with ESMTPSA id o24-20020a05620a22d800b007831f8c5aeasm315052qki.55.2024.01.11.04.48.25 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 11 Jan 2024 04:48:26 -0800 (PST) Message-ID: Date: Thu, 11 Jan 2024 04:48:24 -0800 Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: ath11k and vfio-pci support Content-Language: en-US To: Kalle Valo , Baochen Qiang Cc: linux-wireless@vger.kernel.org, ath11k@lists.infradead.org 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> From: James Prestwood In-Reply-To: <87mstccmk6.fsf@kernel.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit 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 could >>>>>> try this in case that helps: >>>>>> >>>>>> https://patchwork.kernel.org/project/linux-wireless/patch/20231212031914.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 would >>>> 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/commit/drivers/net/wireless/ath/ath11k/pci.c?id=39564b475ac5a589e6c22c43a08cbd283c295d2c > 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: [    2.281721] ath11k_pci 0000:00:06.0: failed to receive control response completion, polling.. [    2.282101] ip (65) used greatest stack depth: 12464 bytes left [    3.306039] ath11k_pci 0000:00:06.0: Service connect timeout [    3.307588] ath11k_pci 0000:00:06.0: failed to connect to HTT: -110 [    3.309286] ath11k_pci 0000:00:06.0: failed to start core: -110 [    3.519637] ath11k_pci 0000:00:06.0: firmware crashed: MHI_CB_EE_RDDM [    3.519678] ath11k_pci 0000:00:06.0: ignore reset dev flags 0x4000 [    3.627087] ath11k_pci 0000:00:06.0: firmware crashed: MHI_CB_EE_RDDM [    3.627129] ath11k_pci 0000:00:06.0: ignore reset dev flags 0x4000 [   13.802105] ath11k_pci 0000:00:06.0: failed to wait wlan mode request (mode 4): -110 [   13.802175] ath11k_pci 0000:00:06.0: qmi failed to send wlan mode off: -110 Thanks, James