Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp1470608pxb; Wed, 12 Jan 2022 15:52:33 -0800 (PST) X-Google-Smtp-Source: ABdhPJyNGBCVx/c8r2xYW1Def2akeKLLAcPbV0oBnrN9YhdLW23lve4izCU8zRzRKEZsqoSK4hO0 X-Received: by 2002:a05:6a00:1622:b0:4c0:6302:5308 with SMTP id e2-20020a056a00162200b004c063025308mr1906665pfc.62.1642031553442; Wed, 12 Jan 2022 15:52:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1642031553; cv=none; d=google.com; s=arc-20160816; b=pAqdhaxoZ1ylvYasECI6zVEpA+ftfxqwZhWh6keQCeqbI/1hsmQog4RMsEa9c7TGnp uOT3hlh6ZHDHzKelO0tXfPNEmh/sDM/k7PnOpQmU99FAkDWyM+0dX/7psVBEw9CBU/i6 E6W6tDvmO7R+tA/GZQN6OqdzW6xjtM67lOXSRxURvXfcWhMkuMv7pUfiE//YAiPoHgf4 ENjakJi2n9g30IP7WEvSPGaDOiFVxRzhw3VOQYLazI66AGMzV6DHx5PEuyEbggVxkO1b oA9dU4oOKuKOApUuKLGJ+5jBeNUD3wTeEHTGA5dZrtt/vdI8ZSPycc4y2sXR81jWo3ek vATg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version; bh=5nye0DiCqjNr3aFUpaJZ/kaqZMmnDI1WKX5tmwjOLIg=; b=Y55Kqy8gJQ020h8tT3Nedh22nboIwGR9dDkycGDdZ5BYP7/jbxDxPQbx40h8xoeJLc lLqTEGMAbFbC/4dadDIkEE6onXBkuObxQykuo4YT5nG62RFwy8xwsmi/z/J+nUiyK9oq CrQI2h5ubX03+NCym+VhZMtyta3PfHOCzsqYFVqte2We/JYccmt71Geyle8YCRBWisxa fAiG1XdoeMeGGiBOvBESl3+rVumRORQJqqQ9eJGnGGJfpi9KJ7F+Q1WgiINcqB775O+M sUv1GKgwF50Jhzv+eXLEKNlFYzDBseQyUTHvTP+7y/B1XjAiKkey/hSl29M7leTdxssO 83Xg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-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 r6si1398599pgv.340.2022.01.12.15.52.24; Wed, 12 Jan 2022 15:52:33 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-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 S1356464AbiALSuA (ORCPT + 71 others); Wed, 12 Jan 2022 13:50:00 -0500 Received: from mail-lf1-f47.google.com ([209.85.167.47]:44020 "EHLO mail-lf1-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1356514AbiALStm (ORCPT ); Wed, 12 Jan 2022 13:49:42 -0500 Received: by mail-lf1-f47.google.com with SMTP id x22so11301385lfd.10 for ; Wed, 12 Jan 2022 10:49:42 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=5nye0DiCqjNr3aFUpaJZ/kaqZMmnDI1WKX5tmwjOLIg=; b=yF37zVhilTx4saT7dA852DMD3Qf0GDleKCuKAjzjdPFfJCls7tVwcLFzG9U7D7TG8t WxXhw3PCXtFvVdqor4V0SNL842D29leui2v+4WuoeyPR2Zd4aynKTSZR8YDCEPBVu5z+ Tv7vv4ojwW2TvseAKw7W2NrjXmTCtOOxGTa8oPM2pOq5oq5XwoiTKavPBoY/SLsU3UBz OpPE06CxhwlxhRFtKe+KOtWc7eae0T9gMI4XPHTM687nXC5xuF1NI/VkCWkRp365bWGs q+tELzWntFhHHOmV8OG5X5RcXqeqDTsBEZ/FLS1w5aXp3mzONAsB0oiTurTUWtRV9tEV LJJA== X-Gm-Message-State: AOAM533K8TM1dPuHYeUwAQCP9Urq35tyjgVWzfGyFqNuXrj8tbaXlFn5 1Zvg29B1/yMHtafVJ5j3kaPKxjckYjyNjxmYj9eIsxnfV7DvOg== X-Received: by 2002:a2e:b88b:: with SMTP id r11mr586312ljp.50.1642013381547; Wed, 12 Jan 2022 10:49:41 -0800 (PST) MIME-Version: 1.0 References: <0bb2a3b794c19514ad30ecc0ca60d1d6e9e438b0.camel@sipsolutions.net> In-Reply-To: <0bb2a3b794c19514ad30ecc0ca60d1d6e9e438b0.camel@sipsolutions.net> From: Len Brown Date: Wed, 12 Jan 2022 13:49:30 -0500 Message-ID: Subject: Re: iwlwifi 0000:3a:00.0: Microcode SW error detected. Restarting 0x2000000. To: Johannes Berg Cc: Luca Coelho , linux-wireless@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On Wed, Jan 12, 2022 at 3:34 AM Johannes Berg wrote: > Something like this might help? Yes! I have confirmed that this patch allows wifi to work, when applied to Linux-5.16. Let me know when you'd like me to test a production patch. thanks! Len Brown, Intel Open Source Technology Center > diff --git a/drivers/net/wireless/intel/iwlwifi/mvm/fw.c b/drivers/net/wireless/intel/iwlwifi/mvm/fw.c > index 7ee4802a5ef1..56b9363a9111 100644 > --- a/drivers/net/wireless/intel/iwlwifi/mvm/fw.c > +++ b/drivers/net/wireless/intel/iwlwifi/mvm/fw.c > @@ -1026,7 +1026,9 @@ static int iwl_mvm_sar_geo_init(struct iwl_mvm *mvm) > /* the ops field is at the same spot for all versions, so set in v1 */ > cmd.v1.ops = cpu_to_le32(IWL_PER_CHAIN_OFFSET_SET_TABLES); > > - if (cmd_ver == 5) { > + if (cmd_ver == IWL_FW_CMD_VER_UNKNOWN) { > + return 0; > + } else if (cmd_ver == 5) { > len = sizeof(cmd.v5); > n_bands = ARRAY_SIZE(cmd.v5.table[0]); > n_profiles = ACPI_NUM_GEO_PROFILES_REV3;