Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp1428288pxb; Wed, 12 Jan 2022 14:41:17 -0800 (PST) X-Google-Smtp-Source: ABdhPJyIRgCyThQRjPjtvR3+7eRnFDOoxv8ntnJaQQe47/CB6piyh71PAP0OyMVjXMCQe75c2ykp X-Received: by 2002:a05:6a00:140e:b0:4bf:3308:8c76 with SMTP id l14-20020a056a00140e00b004bf33088c76mr1439668pfu.27.1642027277085; Wed, 12 Jan 2022 14:41:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1642027277; cv=none; d=google.com; s=arc-20160816; b=b6/+pLq/O7qMdlyuiUr3fMuQTW967U/7+GZtEjJ/Jqz7tsGKzsWgEqpkHGS1Mw0uA8 MxZRfweqOpiJ9bQ7B7KABMpqoKqXQPJPNXZ2fpSaQ8z6ggYk72yD6PuBRuUkELaLnGBa nfLbo9IwIXw+NDnNRV7w/441SwtbQmc0Mx2zjJmeo0FpRxQ9YGROQQYaFWQsXiqMm31l ckOujsuau72BfTF835cRDC+WH5cWkHlxmUGHH0NEXvb9N6pBx5Lh80BMoETKCIw/TvV3 P2hzRcnndoIcfSxPcpdXcmjsZobGVMQs8yvsxtMeW+dxYZMFDO91egB7MJjsnOC2EXQO TVqA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id:dkim-signature; bh=ZAILcBl9MFCqNF5xo+TSUrpyTgN3z6lwe32mDarWH/A=; b=UzcAAMhrX8Mj1sCVNDmNMe8dFMmTR1MvU7eeoftvMkOjYwKNczAvasdFP9li9eiycn dMKLe8x0Qn6+M5Gz3Uswcyl7OADzgG60jv3Qof66OyOwSy3+cRZ1mWTApoHeWKZEzyyl dX9oz4Tr/YTd/LrtGicToOO3aS8jCpxYydXPSSiqt0MV6cezz1M5yP2QZKuPLvoDpJjK 75fE+VknDRsALlUd60eufCMkD3S3dXKfIUSzja1kmJdIP1aYFxWwZsFRht+36E+Gr5Dj GEKbSxmPUAFyyzoO33pFw48ICoBf2XA04hMtgsoP7GUvN8iqmOQfRyrD5EPFGzxFJvm3 KZCw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sipsolutions.net header.s=mail header.b=wRt7XYTz; 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=REJECT dis=NONE) header.from=sipsolutions.net Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d5si1174116plr.206.2022.01.12.14.41.08; Wed, 12 Jan 2022 14:41:17 -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; dkim=pass header.i=@sipsolutions.net header.s=mail header.b=wRt7XYTz; 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=REJECT dis=NONE) header.from=sipsolutions.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238532AbiALJ1a (ORCPT + 71 others); Wed, 12 Jan 2022 04:27:30 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34828 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238137AbiALJ1a (ORCPT ); Wed, 12 Jan 2022 04:27:30 -0500 Received: from sipsolutions.net (s3.sipsolutions.net [IPv6:2a01:4f8:191:4433::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4C49AC06173F for ; Wed, 12 Jan 2022 01:27:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sipsolutions.net; s=mail; h=Content-Transfer-Encoding:MIME-Version: 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=ZAILcBl9MFCqNF5xo+TSUrpyTgN3z6lwe32mDarWH/A=; t=1641979650; x=1643189250; b=wRt7XYTzhlxG7aHhJTLacfsHhra2kvNXzXUYNDvcZ3CW2Kj 5co6u+BdxnxvLTbQK+LGvjZ4kH/tFuvvP4MtLXAMY6+66QtapXLipvdAfYplnhxSw8oCdQsF23nyx kwqKOxhCOgX0ZTmJjyR2v2baECHm6FAE39CEdojNJ7PP/jfREl21aTnm4yAEYNBW+fjK4JNI1e2pN ykRZSvAQ1qLAAu0sy2xhbJeZitnJTLEciYBKyd1Iod35Ywq0R7Ug2DhdP3Z878Paw8r/XZpnhbnEC fYgQ218o+WG3enbq1Vg4CtrqL/s9SlY7k2AY/l33iej+BHO0z2Wx9sHSHv6kOEtA==; Received: by sipsolutions.net with esmtpsa (TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.95) (envelope-from ) id 1n7Zud-004jvy-G8; Wed, 12 Jan 2022 10:27:23 +0100 Message-ID: Subject: Re: iwlwifi 0000:3a:00.0: Microcode SW error detected. Restarting 0x2000000. From: Johannes Berg To: "Coelho, Luciano" , "lenb@kernel.org" Cc: "linux-wireless@vger.kernel.org" Date: Wed, 12 Jan 2022 10:27:22 +0100 In-Reply-To: <4c1089474bb5982aee82d58a9d300ca55e7e0c69.camel@intel.com> References: <0bb2a3b794c19514ad30ecc0ca60d1d6e9e438b0.camel@sipsolutions.net> <4c1089474bb5982aee82d58a9d300ca55e7e0c69.camel@intel.com> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.42.2 (3.42.2-1.fc35) MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-malware-bazaar: not-scanned Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org > > diff --git a/drivers/net/wireless/intel/iwlwifi/mvm/fw.c b/drivers/net/wireless/intel/iwlwifi/mvm/fw.c > index 863fec150e53..f13825185094 100644 > --- a/drivers/net/wireless/intel/iwlwifi/mvm/fw.c > +++ b/drivers/net/wireless/intel/iwlwifi/mvm/fw.c > @@ -834,6 +834,9 @@ static int iwl_mvm_sar_geo_init(struct iwl_mvm *mvm) > offsetof(struct iwl_geo_tx_power_profiles_cmd_v4, ops) != > offsetof(struct iwl_geo_tx_power_profiles_cmd_v5, ops)); > > + if (!iwl_sar_geo_support(&mvm->fwrt)) > + return -EOPNOTSUPP; > + > /* 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); I was going to say it should probably return 0, but the caller looks a bit fishy too? ret = iwl_mvm_sar_init(mvm); if (ret == 0) ret = iwl_mvm_sar_geo_init(mvm); else if (ret < 0) goto error; ret = iwl_mvm_sgom_init(mvm); should that "else" be removed? johannes