From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 709C1C982CD for ; Thu, 17 Sep 2026 07:17:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:content-type: Content-Transfer-Encoding:MIME-Version:Message-ID:Date:Subject:Cc:To:From: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=VhU95cDMBIXQvMna+tKy46BOvuCr3e2931Pn9vAkduA=; b=yOEZpGRZ/j1leukJJLX7MxhOF+ pzDKTxADAqKXf29rTQrLwV+p5Wt7iiUXjft3Y6ZwPBG2J/3RbXJFJ/t5pIvr5AED9ExujFIokJTP+ +ljobiLc0xe2gwcb3vFyIZYNgX9Ja62Ho2pvHoPxthdITth7xoihUXJsZR1ZfRP9eofVgePG8SlaG sB4JaSF7j+iPGQJQoGsUm+i2bMmdjvL1F+PnN/k69iql42zNR3F2yrkYG2G4VjCc0rYoBKFnEx4EP itMzAty81vHsbF5rabtDcE6I7uccEOjF9WDnrhSV7OEgjLIn8jE0FCbUbgYTEk+X+5KCIRD56PA6m nIELs+zQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.99.1 #2 (Red Hat Linux)) id 1x76Mp-0000000Aka5-24gz; Thu, 17 Sep 2026 07:17:11 +0000 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]) by bombadil.infradead.org with esmtps (Exim 4.99.1 #2 (Red Hat Linux)) id 1x76Mn-0000000AkZI-0A42 for ath11k@lists.infradead.org; Thu, 17 Sep 2026 07:17:10 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1789629427; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=VhU95cDMBIXQvMna+tKy46BOvuCr3e2931Pn9vAkduA=; b=bniM6CQieP1q2g5PslZrtIDfWriYk86qaeS09ND81bTXpHakJYNkjGWjC2JmNpWgeRblO9 CqKrlGkDfqPOBCh7HhFhdv68eHdj/hQH/avGS1z+6s6G++F8sMuotoviEwPE+1I0Mn5V4n YAIGUig+eTtsACprkiUsa+uyf6ZWWXk= Received: from mx-prod-mc-08.mail-002.prod.us-west-2.aws.redhat.com (ec2-35-165-154-97.us-west-2.compute.amazonaws.com [35.165.154.97]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-584-AUHHK_xEM-uUnwU6D4tLMA-1; Thu, 17 Sep 2026 03:17:04 -0400 X-MC-Unique: AUHHK_xEM-uUnwU6D4tLMA-1 X-Mimecast-MFC-AGG-ID: AUHHK_xEM-uUnwU6D4tLMA_1789629422 Received: from mx-prod-int-10.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-10.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.95]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-08.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 2E17E184B3A8; Thu, 17 Sep 2026 07:17:02 +0000 (UTC) Received: from fedora.redhat.corp (headnet05.pony-001.prod.iad2.dc.redhat.com [10.2.32.117]) by mx-prod-int-10.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 0C799427; Thu, 17 Sep 2026 07:16:58 +0000 (UTC) From: Jose Ignacio Tornos Martinez To: bhelgaas@google.com, alex@shazbot.org, mani@kernel.org Cc: jjohnson@kernel.org, linux-pci@vger.kernel.org, linux-wireless@vger.kernel.org, ath11k@lists.infradead.org, ath12k@lists.infradead.org, mhi@lists.linux.dev, linux-kernel@vger.kernel.org, Jose Ignacio Tornos Martinez Subject: [PATCH v14 0/2] PCI: Add device-specific reset for Qualcomm devices Date: Thu, 17 Sep 2026 09:16:49 +0200 Message-ID: <20260917071651.14174-1-jtornosm@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.6 on 10.30.177.95 X-Mimecast-MFC-PROC-ID: KWGqeSBhY7QtnOBLCg2dvmPqwCu6x2CwA1n-m_jfxaE_1789629422 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: 8bit content-type: text/plain; charset="US-ASCII"; x-default=true X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20260917_001709_187339_3CB68CD3 X-CRM114-Status: UNSURE ( 7.85 ) X-CRM114-Notice: Please train this message. X-BeenThere: ath11k@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "ath11k" Errors-To: ath11k-bounces+ath11k=archiver.kernel.org@lists.infradead.org Some Qualcomm PCIe devices (WCN6855, WCN7850 WLAN; SDX62/SDX65 modems) lack working reset methods for VFIO passthrough scenarios. These devices have no FLR capability, advertise NoSoftRst+ (blocking PM reset), and have broken bus reset (addressed by quirk_no_bus_reset, merged for v7.2). VFIO attempts to reset devices on every reassignment: - For the listed modems, without a proper reset capability, these devices never successfully initialize even on first VM assignment. - For the listed WLAN devices, without a working reset method, the attempt fails. On clean VM shutdown, the guest driver properly deinitializes the device via .shutdown/.remove callbacks, leaving it in a usable state despite the failed reset. However, on unclean VM termination (crash, force-off), the guest driver callbacks are not triggered, the device remains in an undefined state (DMA active, interrupts enabled, etc.), and without a working reset it cannot be reused. Add device-specific reset methods using BAR-space hardware reset registers that exist in these devices: Patch 1: SDX62/SDX65 modem reset via MHI SoC reset Patch 2: WCN6855/WCN7850 WLAN reset via SoC global reset These are true hardware reset mechanisms (not power management or firmware error recovery), providing proper device reset for VFIO scenarios. Testing shows stable operation over 100+ VM crash/reset cycles. Device- specific reset is position #1 in the reset hierarchy, so these devices will use hardware reset as their primary reset method. Jose Ignacio Tornos Martinez (2): PCI: Add device-specific reset for Qualcomm SDX62/SDX65 modems PCI: Add device-specific reset for Qualcomm WCN6855/WCN7850 WLAN drivers/pci/quirks.c | 116 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 116 insertions(+) --- v14: Address Bjorn Helgaas feedback: - Split WLAN and modem resets into two separate patches - Clarify commit message for WLAN devices: VFIO resets on every reassignment, clean shutdown leaves device in usable state via driver callbacks, but unclean termination is where the lack of reset is critical - No code changes from v13, only patch split and commit message clarification (Mani's Reviewed-by retained) v13: https://lore.kernel.org/all/20260915223634.GA878346@bhelgaas/ -- 2.54.0