Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3DA69C282D9 for ; Thu, 31 Jan 2019 17:08:03 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 18CC82087F for ; Thu, 31 Jan 2019 17:08:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387817AbfAaRIC (ORCPT ); Thu, 31 Jan 2019 12:08:02 -0500 Received: from mga17.intel.com ([192.55.52.151]:27487 "EHLO mga17.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387838AbfAaRH5 (ORCPT ); Thu, 31 Jan 2019 12:07:57 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga107.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 31 Jan 2019 09:07:56 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.56,545,1539673200"; d="scan'208";a="143124223" Received: from jprestwo.jf.intel.com ([10.54.74.69]) by fmsmga001.fm.intel.com with ESMTP; 31 Jan 2019 09:07:56 -0800 Message-ID: Subject: BCM43602 system freeze with PCI passthrough From: James Prestwood To: linux-wireless@vger.kernel.org Date: Thu, 31 Jan 2019 09:13:04 -0800 Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.28.5-0ubuntu0.18.04.1 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Hi, I posted about a month ago about an Ath9k card that was causing my host machine to freeze/lock up when doing PCI passthrough into a VM. This was resolved by adding: DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_ATHEROS, 0x0034, quirk_no_bus_reset); to drivers/pci/quirks.c and rebuilding the host kernel. Original thread: https://marc.info/?l=linux-wireless&m=154689580213002&w=2 I am now trying to get this BCM43602 card working under the same conditions but again I am seeing the host machine freeze when starting the VM. I did try adding a similar line for this card, which actually prevented the machine from freezing, but I am seeing this when starting the VM: qemu-system-x86_64: vfio: Cannot reset device 0000:0a:00.0, no available reset mechanism. And once inside the VM the device is UNCLAIMED and not usable: $ lshw -C network *-network:2 UNCLAIMED description: Network controller product: BCM43602 802.11ac Wireless LAN SoC vendor: Broadcom Limited physical id: 6 bus info: pci@0000:00:06.0 version: 01 width: 64 bits clock: 33MHz capabilities: pm msi pciexpress cap_list configuration: latency=0 resources: memory:fe890000-fe897fff memory:fe400000-fe7fffff This change was really a shot in the dark as I only have a vague understanding of what its actually doing. I see other entries in quirks.c for the Broadcom vendor ID but would rather not go poking around here without any direction. Thanks, James