Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp2256827rdb; Thu, 21 Sep 2023 13:05:58 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHM0j+xYN9Q2FxblbqqH24Ff2NG3IOoyxTOYq0X2UBmG+94zincJ418YJFX9vxAS6TGD2el X-Received: by 2002:a17:903:120b:b0:1bc:2c83:f770 with SMTP id l11-20020a170903120b00b001bc2c83f770mr6949163plh.45.1695326757770; Thu, 21 Sep 2023 13:05:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695326757; cv=none; d=google.com; s=arc-20160816; b=SLS/i5mWZt2vC0JCJ5M4STZhdcSzXs+slP8cTZD96u0rzLkvamnNnnwPtTZfvCUkb4 /+RJ12smIxY+dCgBWO9yrtbNmmXliKywMua2qFw1zeLojqO0EuHOejdZKUi4CFEufLcB UT7ICE4tRG5YN9e1LvoFgDI9CcWfB1JroNZSyKCnN5QZIzQFmo57YxREW+YjIQXZIhs8 Cf4vsoFe8Wi27PaQZWlPy8nhRkiJKtV7k3rXP8hrYUmPq5AWrS8oTiuPLHuMF2fcZ8j0 vglrIDGBVoH/ASAenzHFP7PIO94pVMCRRDEEfojTJZKOI0Zwk1gVbmfIoQytw3aiZ/jk fduQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:cc:to:from :subject:message-id:dkim-signature; bh=eMZwRFUJR+1f8odoOkydB8uoU5SbHH/ZVIYDxrngU2U=; fh=58K9wP9ehgDlTnIgy3av115YkRyLD4H/ZFHEPxUhjjE=; b=j9wg2C/m9LQLe7ZjNHfpX0OD/V6P6LcaQMs8+IbWKn8KeP3+z93k1QE3qHs5wjrvLA Bh9I7GpZF0GDagTUb90m6nXbxHpGJNSrVd8N8+7tDjFj4hFh9oCa6yGekZn9aCkSuKGj 1SUsUPFgsB0xQwquAuSvCCR8gzEcDdkdm9UqqYLrPiI9upKAtU3WQOe9N2n8DrzdvGAf TSd4/0Jg2NiQ6cfZZYR9hGpNRBLVd2HNG/KRP5cw2yKU9ewH/PgtKCGCoQjcQPTW4YR+ N/H+513La5xSCAqItJ8p3b2FG7/QU/MGBizUsva9qa8w4bmooR/DSlmH0q44Wb1LE3ff 6KMQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sipsolutions.net header.s=mail header.b=TPQlQ8XO; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=sipsolutions.net Return-Path: Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id t16-20020a170902e85000b001c1e4f9c63esi2232192plg.491.2023.09.21.13.05.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Sep 2023 13:05:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@sipsolutions.net header.s=mail header.b=TPQlQ8XO; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=sipsolutions.net Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id C67D7801B3C5; Thu, 21 Sep 2023 12:47:30 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230306AbjIUTrY (ORCPT + 56 others); Thu, 21 Sep 2023 15:47:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60932 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231315AbjIUTrJ (ORCPT ); Thu, 21 Sep 2023 15:47:09 -0400 Received: from sipsolutions.net (s3.sipsolutions.net [IPv6:2a01:4f8:242:246e::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 831519ECC for ; Thu, 21 Sep 2023 12:29:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sipsolutions.net; s=mail; h=MIME-Version:Content-Transfer-Encoding: Content-Type:References:In-Reply-To:Date:Cc:To:From:Subject:Message-ID:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-To: Resent-Cc:Resent-Message-ID; bh=eMZwRFUJR+1f8odoOkydB8uoU5SbHH/ZVIYDxrngU2U=; t=1695324573; x=1696534173; b=TPQlQ8XOCXGU+HN2UIK+G1uXuyI1lXkb12HAhVAkUzAhanY 7Z5FguAN4CHK+bQCL58i+2wbSk5o4rj3JpRxcgTrYyIffZLGZqcYNFjqssSbRtuI9Ydd2+lTCX6V7 6g3zvzeJm57/BTsvYtBF3hKkZzBFEmvdmbW+aKU2ala8q/yHv8hG+as5r6m8U7Fz1KYTIZPkC3AAn rj526ay2+b+e1iZefMsdyL89vYwEV8X2HNsVWOlQZ3dtSWuTKCyt9/SJdQGLLbLD2j4GTKYrQPycf Q3xueDbmm38iYzBds7lrXoJhqd1kNUiKt5WdbY0Zf8fYh4DSRmKYqDGARf8z1jLA==; Received: by sipsolutions.net with esmtpsa (TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.96) (envelope-from ) id 1qjPMg-00DhQV-0t; Thu, 21 Sep 2023 21:29:30 +0200 Message-ID: <60e2c052f3cedc5c80964e4be90c50cdaa899a87.camel@sipsolutions.net> Subject: Re: Microcode SW error since Linux 6.5 From: Johannes Berg To: Antoine =?ISO-8859-1?Q?Beaupr=E9?= , linux-wireless@vger.kernel.org Cc: Gregory Greenman , ilan.peer@intel.com Date: Thu, 21 Sep 2023 21:29:27 +0200 In-Reply-To: <87ttrncuc8.fsf@angela.anarc.at> References: <87ttrncuc8.fsf@angela.anarc.at> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.48.4 (3.48.4-1.fc38) MIME-Version: 1.0 X-malware-bazaar: not-scanned X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Thu, 21 Sep 2023 12:47:30 -0700 (PDT) On Thu, 2023-09-21 at 13:24 -0400, Antoine Beaupr=C3=A9 wrote: > Hi, >=20 > I've found what I feel might be a regression between Linux 6.1 and > 6.5. For other reasons, I upgraded the kernel on my Debian 12 > ("bookworm", stale) laptop from the distribution 6.1.52 to the unstable > ("sid") version, 6.5.3. >=20 > After the upgrade, I started to notice stuttering in my audio player, I > tracked it down and managed to correlate it with some kernel errors > related to the iwlwifi driver. >=20 > What's interesting is that this happens regardless of whether or not the > NIC is connected to a network. In at least one of the traces, the > computer was connected over a wire and wireless was not associated in > Network Manager. This happens when scanning. > Here's an example of the problem: >=20 > sep 21 09:33:14 angela kernel: iwlwifi 0000:a6:00.0: Microcode SW error d= etected. Restarting 0x0. Can you give a few wpa_supplicant lines (there were some below) above this? Just want to make sure it really is scanning on wlan0, not something with P2P device. > sep 21 09:33:14 angela kernel: iwlwifi 0000:a6:00.0: 0x20103600 | ADVANCE= D_SYSASSERT > sep 21 09:33:14 angela kernel: iwlwifi 0000:a6:00.0: 0x000000FF | umac da= ta1 This means that somehow scan_start_mac_or_link_id in the driver ended up 0xff which is invalid, but I'm not sure I see immediately how that happened, since it looks like in 6.5.3 we do assign it reasonably. I guess somehow in the code link_info->fw_link_id must be 0xff (invalid ID), but I'm not sure I see how that could happen. *thinks* Oh.. This is an older firmware, so it doesn't have IWL_UCODE_TLV_CAPA_MLD_API_SUPPORT! Hah. I feel like I had some concerns in this area before ... but maybe the other way around. I think something like this, perhaps: --- a/drivers/net/wireless/intel/iwlwifi/mvm/scan.c +++ b/drivers/net/wireless/intel/iwlwifi/mvm/scan.c @@ -2342,7 +2342,7 @@ iwl_mvm_scan_umac_fill_general_p_v12(struct iwl_mvm *= mvm, if (gen_flags & IWL_UMAC_SCAN_GEN_FLAGS_V2_FRAGMENTED_LMAC2) gp->num_of_fragments[SCAN_HB_LMAC_IDX] =3D IWL_SCAN_NUM_OF_FRAGS; =20 - if (version < 12) { + if (version < 12 || !iwl_mvm_has_mld_api(mvm->fw)) { gp->scan_start_mac_or_link_id =3D scan_vif->id; } else { struct iwl_mvm_vif_link_info *link_info; johannes