Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2443463pxb; Thu, 11 Feb 2021 12:29:06 -0800 (PST) X-Google-Smtp-Source: ABdhPJxoauqIegiDAfoy+beYSu2pntqbv5YQ/H6w78WGDyInAWXUHSxftLmI6Fo6rhGvYUTFiDAy X-Received: by 2002:a17:906:938d:: with SMTP id l13mr9856277ejx.271.1613075346744; Thu, 11 Feb 2021 12:29:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613075346; cv=none; d=google.com; s=arc-20160816; b=T0/lEdifwytLX5qj+zjDogUMBnX54eX1yS+iBM/y5bexJYYayLVtUBoW27VLcIdMpC 3ORlfowVOtPTJrO+G7xL+F2zXs1LTSP8P6OZ0yYrK2SMedoBS2qrw86MMfqTBjP5m3/0 wTrooIJunPusGHF2v8auxhq3czi1jGlib3ri+DzphjHlcYRadVrEgBJUT/gpPuqZ0pbi hIbwwgJjiaErNSzPwzUF0fogZMUYPLoiMpq/1IqyXasJxAuMTYM0XBBzla37XlENgkuV MrDysNNYU2fundgj4FOBM7SupNJVzYVEVSaxLJnYgQVzmBiqCBix82aEj9JxQ5HPawSJ yKhA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:subject:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:date:cc:to:from:message-id; bh=6MBSlx+bFeYhlI1HBSifwXFlKbsDtIRugf18tmd+vfg=; b=ESyzqvoX3Vs8s6U3fvoeVZgKKYZkHLqoUp1q4g3wwGCo83SpyikhD9S+iI9BlSbXYU AaU0TquyixMP2jJTyVW14cMx2tD5sUSZESa2tcSb190vK6aAW7AsMsi9E3NAhRZRTvnU MdItJzKxG4YsL1yid2wVb0Fcd7dID9/qQeZU4wUSuz0DlgPfyN1LfyOgXOt+WAiEXQyM DD0CReEb07zMH491dlc7Y6ze0wPh0yMwF2wcJxTyYJcYKoXwkRW6YTxEKJH139ztqGlr 1iRN2pP0PpkIXiVSm3xvAiFj+0jMsrEBOWFzA9tXDNaRTlHKiU22WJTJh1S6uVrulkZv w3Fg== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id hp19si4241201ejc.733.2021.02.11.12.28.42; Thu, 11 Feb 2021 12:29:06 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229544AbhBKU0k (ORCPT + 99 others); Thu, 11 Feb 2021 15:26:40 -0500 Received: from paleale.coelho.fi ([176.9.41.70]:45620 "EHLO farmhouse.coelho.fi" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S231818AbhBKU0T (ORCPT ); Thu, 11 Feb 2021 15:26:19 -0500 Received: from 91-156-6-193.elisa-laajakaista.fi ([91.156.6.193] helo=[192.168.100.69]) by farmhouse.coelho.fi with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.93) (envelope-from ) id 1lAIWk-004DF2-5Y; Thu, 11 Feb 2021 22:25:26 +0200 Message-ID: <841a853821eb13029ec23b9d877ff0210c8e46b3.camel@coelho.fi> From: Luca Coelho To: Kalle Valo Cc: linux-wireless@vger.kernel.org Date: Thu, 11 Feb 2021 22:25:25 +0200 In-Reply-To: <87sg62shgk.fsf@codeaurora.org> References: <87sg62shgk.fsf@codeaurora.org> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.38.3-1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on farmhouse.coelho.fi X-Spam-Level: X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00, TVD_RCVD_IP autolearn=ham autolearn_force=no version=3.4.4 Subject: Re: [PATCH v2] iwlwifi: pnvm: implement reading PNVM from UEFI Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On Thu, 2021-02-11 at 18:21 +0200, Kalle Valo wrote: > Luca Coelho writes: > > > From: Luca Coelho > > > > We now support fetching the PNVM data from a UEFI variable. Add the > > code to read this variable first and use it. If it's not available, > > we fall back to reading the data from the filesystem, as before. > > > > Signed-off-by: Luca Coelho > > [...] > > > --- a/drivers/net/wireless/intel/iwlwifi/fw/pnvm.c > > +++ b/drivers/net/wireless/intel/iwlwifi/fw/pnvm.c > > @@ -10,6 +10,7 @@ > >  #include "fw/api/commands.h" > >  #include "fw/api/nvm-reg.h" > >  #include "fw/api/alive.h" > > +#include > >   > > > > > > > >  struct iwl_pnvm_section { > >   __le32 offset; > > @@ -219,6 +220,88 @@ static int iwl_pnvm_parse(struct iwl_trans *trans, const u8 *data, > >   return -ENOENT; > >  } > >   > > > > > > > > +/* > > + * This is known to be broken on v4.19 and to work on v5.4. Until we > > + * figure out why this is the case and how to make it work, simply > > + * disable the feature in old kernels. > > + */ > > +#if defined(CONFIG_EFI) > > The comment doesn't really make sense anymore, can you send a followupb > patch to remove it? No need to change the tag because of this. Ugh, sorry about that. I just saw that the version check had slipped in and fixed it quickly at 2am, so I could still send you the pull-req before going to sleep... I'll send a patch removing this now. -- Cheers, Luca.