Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp1018515pxb; Tue, 14 Sep 2021 14:14:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzQfO9IlDaF5uv0yzLqYfuNyFA0PZv/k/kmQYrV+ZklUNiGeREPu+mgKkV6uA9vCnm1bI2M X-Received: by 2002:a02:7117:: with SMTP id n23mr11772880jac.143.1631654056746; Tue, 14 Sep 2021 14:14:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631654056; cv=none; d=google.com; s=arc-20160816; b=PCvee7JsBk+SI0xgD24VE34wMbvgXALXssptEWbjbYZGC/e4o9nnW84NJt8u7AhU9U 4c/nre2GcQ51pWJbooE5Z5E5OXhOPyATcS8orfKysdTFTXvrYi7YWXm7Jq5hwAdvBgsI hC88oRDwnSzl84lFYDLjIms0L5L18dUBoFcoUMLTT6pcyYOMYd8S+aXmHqVQjVfuVJAt KuUN1Agfg3aQXA6jXOjsI+w/4+BWRRFgooEN8UqWfMkVIEZInv5OKvpin7aTRNy+jFrv +48lCZNmt57dKxtIszVhH895Ptg9PCCeW4me9ysKp6cYL0EfZNctn1hSawgcA+rrMc6j VueA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:message-id:subject:cc:to:from:date :dkim-signature; bh=zgqjzv1med8bI/avFLA+5bncaSmi79rXeJ77wy8EbMc=; b=GKFWfBR7POJY41bLQwWswwW6yMiRSWBtwrTL3bJi5QBjfmR5v/EahDwXj+hyrEMk15 Teb3vcFB1bX8MqK8ci8XNAMDoXB9YXWEz3fJB2N9+7VKfeTfMC12uJ3xDX0vn9NfQH7N p6CATuWNVOMW/lhBs3aVJNBIe/HoFnPFoR+evmsl5AyT6pOp3RxkKA1qcBFMvcCQ1/0M vxwzBl2Y6Db+XR4z5QRF6K+HX6w+vPN4MRfeG5hrYIwC6qnhtSb4yT1ajo01uPAk8S0/ 3x5qjeqbHwi2luVDd5SSe/BDxQME/fuPk5ro/sZTvyQuKOTLCYQHssC/cZwndQ7jUMfZ pQBw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=jXsA6V2A; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d5si11109559ilu.50.2021.09.14.14.14.04; Tue, 14 Sep 2021 14:14:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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=@kernel.org header.s=k20201202 header.b=jXsA6V2A; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233952AbhINVMn (ORCPT + 99 others); Tue, 14 Sep 2021 17:12:43 -0400 Received: from mail.kernel.org ([198.145.29.99]:58850 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233954AbhINVMn (ORCPT ); Tue, 14 Sep 2021 17:12:43 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 3D71F61213; Tue, 14 Sep 2021 21:11:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1631653885; bh=Bxd0VKLvfxzsriy+yfxBwQo/1hSOtbhmS3G7wRMa/Vo=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=jXsA6V2AtKrgjvlY9XmQf9jWCECD4NEffshM1CgcN+n50D4I1Imkb8OibAdo59Vom b9MjI1AxzOddUUvqHMoD+ZwUsTZj2zc3lCogBnp2vLElQ78VB/7RQDPdpvKm4uBx5+ igEMMGVjwfNx6QWGz1U0Oj1W88znhmjRrhHbHWEoMUz86A+pc8kGC1j8V/jsbb1nFo Rb7vgUXVZDBZnjp92BA7HUjrkiXeRgvVcBvX9HZz6Pxp01KYojZZmukhNwPwJsFCpw 0U56j+2O9crxszjrugUgRs65+V9dqDr4xSaDcmMCoVzieHeXkN33kZYJXvCqnAaOom nCf0afDpF9yVQ== Date: Tue, 14 Sep 2021 16:11:23 -0500 From: Bjorn Helgaas To: Ingmar Klein Cc: bhelgaas@google.com, linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: QCA6174 pcie wifi: Add pci quirks Message-ID: <20210914211123.GA1457901@bjorn-Precision-5520> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <08982e05-b6e8-5a8d-24ab-da1488ee50a8@web.de> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Apr 09, 2021 at 11:26:33AM +0200, Ingmar Klein wrote: > Edit: Retry, as I did not consider, that my mail-client would make this > party html. > > Dear maintainers, > I recently encountered an issue on my Proxmox server system, that > includes a Qualcomm QCA6174 m.2 PCIe wifi module. > https://deviwiki.com/wiki/AIRETOS_AFX-QCA6174-NX > > On system boot and subsequent virtual machine start (with passed-through > QCA6174), the VM would just freeze/hang, at the point where the ath10k > driver loads. > Quick search in the proxmox related topics, brought me to the following > discussion, which suggested a PCI quirk entry for the QCA6174 in the kernel: > https://forum.proxmox.com/threads/pcie-passthrough-freezes-proxmox.27513/ > > I then went ahead, got the Proxmox kernel source (v5.4.106) and applied > the attached patch. > Effect was as hoped, that the VM hangs are now gone. System boots and > runs as intended. > > Judging by the existing quirk entries for Atheros, I would think, that > my proposed "fix" could be included in the vanilla kernel. > As far as I saw, there is no entry yet, even in the latest kernel sources. > > Thank you very much! > Best regards, > Ingmar I wrote a commit log and applied this to pci/virtualization for v5.16 with Pali's reviewed-by and your signed-off-by from https://lore.kernel.org/r/408e5b45-3eaa-fa13-318d-48f7d1ecdacf@web.de PCI: Mark Atheros QCA6174 to avoid bus reset When passing the Atheros QCA6174 through to a virtual machine, the VM hangs at the point where the ath10k driver loads. Add a quirk to avoid bus resets on this device, which avoids the hang. [bhelgaas: commit log] Link: https://lore.kernel.org/r/08982e05-b6e8-5a8d-24ab-da1488ee50a8@web.de Signed-off-by: Ingmar Klein Signed-off-by: Bjorn Helgaas Reviewed-by: Pali Roh?r Cc: stable@vger.kernel.org Thank you! > diff --git a/drivers/pci/quirks.c b/drivers/pci/quirks.c > index 706f27a86a8e..ecfe80ec5b9c 100644 > --- a/drivers/pci/quirks.c > +++ b/drivers/pci/quirks.c > @@ -3584,6 +3584,7 @@ DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_ATHEROS, 0x0032, quirk_no_bus_reset); > DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_ATHEROS, 0x003c, quirk_no_bus_reset); > DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_ATHEROS, 0x0033, quirk_no_bus_reset); > DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_ATHEROS, 0x0034, quirk_no_bus_reset); > +DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_ATHEROS, 0x003e, quirk_no_bus_reset); > > /* > * Root port on some Cavium CN8xxx chips do not successfully complete a bus