Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp23633rwb; Tue, 13 Dec 2022 13:29:41 -0800 (PST) X-Google-Smtp-Source: AA0mqf7bAPA/mUUNCFr0jf9HRQDJTF1CM5eQDjwreLpJqUcZhDps3Tg/gjKPsDDhzbf6vO8UH8Bl X-Received: by 2002:a50:eb01:0:b0:46f:9507:36bc with SMTP id y1-20020a50eb01000000b0046f950736bcmr15543057edp.16.1670966981145; Tue, 13 Dec 2022 13:29:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670966981; cv=none; d=google.com; s=arc-20160816; b=nZYUQ9dNTJ1TGDrJq85QWG+xDiyjxTY5cb1G5Mim8jGdE1NASDOguWEhNOjZ+wEmQZ a4ftc2sKlQL0TveLJocVn2cKgNrZtojhQm7SXDAaSz2BvChyFRpcwe7OFXH9sWSJLZfb Rw8wTLOSM96ArQJT9I0spTq0kmGuyQC3EvmZS1oXdBdVYoV/HIUieMTFRenRiF3rkf57 0Pn4n/VYU4YxVFQgDxIJpqFBtxpZs1NEJXFnQeaJAQ6wfhTbSIVle1CTcExeWWz0bdle VDe3i1+m64p0HBO23hq/bMWEp/tjxeEeM8XmqmfHqwnUMzmfU8/OZ5rdhTw2Hc+g0qE7 L44A== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=+Cof1UgBlCJlvA46EepUDwCBNQzsoDtxssH4B30nnSc=; b=ZMaVrb5M9/l3UXNCEcAnSIvbSpi3IUi00oF6K9uGnrvHWADs1PfZbKAgh5ItgGXclU JX8IxSGqbivwJyLVm7Y/0HgNsDdoWq8PzbhoMocUpu3r9Hl5K2ainf/EVZ313uuA0jPG NjtU9QGJ0pnHQi04yyQvWzYEU/kMIsKN27mwGz6Was2rwucDmP1hyt0zqfA6M8EQkDQj 4TJwrIzZvOWX1OcV1+Nw/WYr4Ft+vFVoM/u4AwjovjjOxGGT0PvZ0eBWSowWGlJDOQHC iHn+MqZ/1JddUFAtD/VMmpSztVJKAA6PmEjAbak+odVCkGcyVZxdaRycUQkNoYH//e/L eFCQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=EJqOVNrJ; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a10-20020a509b4a000000b00461c0fd2597si10606819edj.89.2022.12.13.13.29.18; Tue, 13 Dec 2022 13:29:41 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=EJqOVNrJ; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236288AbiLMVQl (ORCPT + 66 others); Tue, 13 Dec 2022 16:16:41 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59528 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235112AbiLMVQj (ORCPT ); Tue, 13 Dec 2022 16:16:39 -0500 Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BCE5522291 for ; Tue, 13 Dec 2022 13:16:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1670966198; x=1702502198; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=wutIuhJXADgcp6849lC/HVvOwY1qXDl19M5ZK3UW/M0=; b=EJqOVNrJEBqRlsapyu/CVrGWgX6JIp7U5VOCU7A2RpNbJJpVTocG5ljE rs3v7ZUz58bBlGJW56Pfvy6eNZxoVqm/aH+aGRM+YBZJOjSreW7y9MAOW CB+tP4s8YVobxQsOYyKqjYoN0v//5JmrXxGIIcMSFKYCYWj4z4LAfXS1v DsFQAJd4Y99Wo2o2UoNtYbzTJn4m7SctmfEox2rV80XOb7eAUFogK1s0N PxcMhchyXcNM5Ns1UgpMMx+DuSN62nAV5isb7KsrTszs66rX6hP12x9YG OoXtDJ8ntzrRw5W3faZvuc8N7Gcu08vgiuk/6p4dYrUtpgV1TV3MfJU2P g==; X-IronPort-AV: E=McAfee;i="6500,9779,10560"; a="345305506" X-IronPort-AV: E=Sophos;i="5.96,242,1665471600"; d="scan'208";a="345305506" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Dec 2022 13:16:19 -0800 X-IronPort-AV: E=McAfee;i="6500,9779,10560"; a="679436154" X-IronPort-AV: E=Sophos;i="5.96,242,1665471600"; d="scan'208";a="679436154" Received: from szamir-mobl.ger.corp.intel.com (HELO ggreenma-mobl2.lan) ([10.251.183.161]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Dec 2022 13:16:16 -0800 From: gregory.greenman@intel.com To: kvalo@kernel.org, johannes@sipsolutions.net Cc: linux-wireless@vger.kernel.org, Johannes Berg , =?UTF-8?q?=C3=8D=C3=B1igo=20Huguet?= , Gregory Greenman Subject: [PATCH] wifi: iwlwifi: fw: skip PPAG for JF Date: Tue, 13 Dec 2022 23:15:04 +0200 Message-Id: <20221213225723.2a43415d8990.I9ac210740a45b41f1b2e15274e1daf4284f2808a@changeid> X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org From: Johannes Berg For JF RFs we don't support PPAG, but many firmware images lie about it. Always skip support for JF to avoid firmware errors when sending the command. Reported-and-tested-by: Íñigo Huguet Link: https://lore.kernel.org/linux-wireless/CACT4oufQsqHGp6bah2c4+jPn2wG1oZqY=UKa_TmPx=F6Lxng8Q@mail.gmail.com Signed-off-by: Johannes Berg Signed-off-by: Gregory Greenman --- This is a fix for a firmware assert. It can wait until the next RC of v6.2. Kalle - should I send a pull request for it? Thanks! drivers/net/wireless/intel/iwlwifi/fw/acpi.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/net/wireless/intel/iwlwifi/fw/acpi.c b/drivers/net/wireless/intel/iwlwifi/fw/acpi.c index e6d64152c81a..a02e5a67b706 100644 --- a/drivers/net/wireless/intel/iwlwifi/fw/acpi.c +++ b/drivers/net/wireless/intel/iwlwifi/fw/acpi.c @@ -1106,6 +1106,11 @@ int iwl_read_ppag_table(struct iwl_fw_runtime *fwrt, union iwl_ppag_table_cmd *c int i, j, num_sub_bands; s8 *gain; + /* many firmware images for JF lie about this */ + if (CSR_HW_RFID_TYPE(fwrt->trans->hw_rf_id) == + CSR_HW_RFID_TYPE(CSR_HW_RF_ID_TYPE_JF)) + return -EOPNOTSUPP; + if (!fw_has_capa(&fwrt->fw->ucode_capa, IWL_UCODE_TLV_CAPA_SET_PPAG)) { IWL_DEBUG_RADIO(fwrt, "PPAG capability not supported by FW, command not sent.\n"); -- 2.38.1