Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp2109048lqo; Mon, 13 May 2024 08:07:58 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVLRQLqjwAAdAx6lr/TJ/GoyLdnHRB1mZJSQCmeHKxEJdff5hYlxy2CMVl1YYhQ/pahzzkONbYhvmavrpVUH6JeA+VvL05ovlM+l/iPSg== X-Google-Smtp-Source: AGHT+IG9NE1vFZSzOeYygxRv7Fn7KNsdSYEufVMghIRaWeKCIApRDUhG1pYpsAhzny6eiKRC2ipz X-Received: by 2002:a05:6a20:d411:b0:1af:ac57:d4f6 with SMTP id adf61e73a8af0-1afde1979f8mr8239288637.49.1715612878146; Mon, 13 May 2024 08:07:58 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715612878; cv=pass; d=google.com; s=arc-20160816; b=r5RJ7avT50Oep2Bh53n2DG4i3QtvKP1a0YN/vyDJrCUx2zrI/5auGCDb3F4eqjk63d 9tlQ4JcOdXlkq5eRUZFWwU5YRGnuVecTdGrUmyepLz8a+hvRDwCJbwjpkZB7KsMOA9Nq HbiP8AHDpV/4VObRn7AK5DI9/+UTQFazpKmJlrmrIXv605iHBxv9iKfpfRwWom4RhqQ0 Okn5P1b1fhS6D7lWyBx0U++/3QjfCkqiNQg2Hk8YFzAn4eCRQCcfsgwR4FoWo0/AJWq4 /gs0aL7CNojfe2Y696274itquYtWJ3Yc5Rpd3E0/MybTYMetZDD7gvoZ0EyXayGXsuoo OE2w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=7pKzpnFZTfg1XkoB392nlEwWJtKSc4VJ7EameRTBfnA=; fh=fH0Qm2iZsGHsmm3ikwDBrIx+L73xCdOVi6sLzuYfBuo=; b=GN1aWMuNG1WUlxgHT54kbtNfRAWkWXv0XlMT/6hqOwn4JX6xeHQg6T1KXC8iBRcBnF GflL/TOeHdunLJ2uuKxT619okUDdU7Eyj+nGH5EV91pd7D3puo1EVNCmqhG2HjjiF2W0 pQpzGt4bDRPCHdVLP1DZyvqJXGs5rW3fTHcf6esjQvjbnLyM0WD1g5I78uIUFqN9orfB W/vopwcllr+3XgZ7/Rg5PM67vX+mwEQ2vi8RRWYwbQzE8Q97ijkL8D2LgeI6AXDx6lvD /eHdnbjk8hhM9KkeT+cdjw7836OA5vtDFBjV3UuVkYGYWdI0B3JKWDfG7yxlk3Mj9Y2G +5HQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@denx.de header.s=phobos-20191101 header.b=j7Zjeioy; arc=pass (i=1 spf=pass spfdomain=denx.de dkim=pass dkdomain=denx.de dmarc=pass fromdomain=denx.de); spf=pass (google.com: domain of linux-wireless+bounces-7600-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-7600-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=denx.de Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id 41be03b00d2f7-63412958d4esi9459515a12.620.2024.05.13.08.07.57 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 May 2024 08:07:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless+bounces-7600-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@denx.de header.s=phobos-20191101 header.b=j7Zjeioy; arc=pass (i=1 spf=pass spfdomain=denx.de dkim=pass dkdomain=denx.de dmarc=pass fromdomain=denx.de); spf=pass (google.com: domain of linux-wireless+bounces-7600-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-7600-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=denx.de Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 094E4284809 for ; Mon, 13 May 2024 15:07:57 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8085D1DDC5; Mon, 13 May 2024 15:06:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=denx.de header.i=@denx.de header.b="j7Zjeioy" X-Original-To: linux-wireless@vger.kernel.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E09A157C97 for ; Mon, 13 May 2024 15:06:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=85.214.62.61 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715612815; cv=none; b=J9qMt18L7Va23ZeCDgjEFuyo0DFyY3HVlKCU8XzfJVeLCx4pGjncLhAaeMUQgtV4nMp5tMljcOPcP26I1I7NyZvtDR4/9apbhHe7r5ldF6ZNUZePrQjMkQEa9SnDvhDYiJkMLKaHD6lYqca4/Hh3hEQNdmfbTdJHTlge/cWmZQM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715612815; c=relaxed/simple; bh=yRLKQtJMHk/KHyK5GJ9hiBA/zwIirWhmcUm/w3Yo7w8=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=urDKgea0aEdjMaHmYEjleCPrMtdK9DlL/YacTXHzkXOjMPSE1nIgu0NzfzdGDzpu5A13hrrmWzfnJKCXpV5Gz3UTLuku9x1pfrlA6g4yEFZqakma0axoHjSDOP50TT+Q9mfeUP+Dd7aGhD+1ovriyrPlU9TnqCx2oBtBIDHUEUU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=denx.de; spf=pass smtp.mailfrom=denx.de; dkim=pass (2048-bit key) header.d=denx.de header.i=@denx.de header.b=j7Zjeioy; arc=none smtp.client-ip=85.214.62.61 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=denx.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=denx.de Received: from [127.0.0.1] (p578adb1c.dip0.t-ipconnect.de [87.138.219.28]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: marex@denx.de) by phobos.denx.de (Postfix) with ESMTPSA id AA83B88210; Mon, 13 May 2024 17:06:51 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1715612812; bh=7pKzpnFZTfg1XkoB392nlEwWJtKSc4VJ7EameRTBfnA=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=j7Zjeioy6HuZARpb+upPamIrPhySUfzMMVys3MJ8ncnW20MbDLwCYMQjyj2VHOQuv 6ErjQncn6BoKv7inqO9GQJIA6VrBDJw6ZU3wvqGvKIHGuRC4IjiBrVcmiihyH19P+W N5RzSj4bcvmboc6mzwY3SW4zL6vNR3fZFP7NmI6cXhs+iG/B9T4FbgEN048ef5rhiO u5IUOfMM3YhxC2ycMwB5xbSoOltA1VwVrJeTFLiOeWY/bWbehU6PHiKshT2NNY+Dri UYEHTvdTY0SQmawARx5UcrnxGaJl47YP6Tf1TmpLZjgFHe0Cwedx8P6T+dqRA0qjUn 13eHSeNiVrwXw== Message-ID: <3fb87569-61af-4779-a468-5e91d50482b3@denx.de> Date: Mon, 13 May 2024 16:44:40 +0200 Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] iwlwifi: mvm: Ignore NVM write status 0x1000 To: "Korenblit, Miriam Rachel" , "linux-wireless@vger.kernel.org" Cc: Abhishek Naik , "Grumbach, Emmanuel" , Gregory Greenman , "Berg, Johannes" , Kalle Valo References: <20240512184932.25831-1-marex@denx.de> Content-Language: en-US From: Marek Vasut In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean On 5/13/24 9:26 AM, Korenblit, Miriam Rachel wrote: > >> -----Original Message----- >> From: Marek Vasut >> Sent: Sunday, 12 May 2024 21:49 >> To: linux-wireless@vger.kernel.org >> Cc: Marek Vasut ; Abhishek Naik ; >> Grumbach, Emmanuel ; Gregory Greenman >> ; Berg, Johannes ; >> Kalle Valo ; Korenblit, Miriam Rachel >> >> Subject: [PATCH] iwlwifi: mvm: Ignore NVM write status 0x1000 >> >> When loading custom NVM file on Wireless-AC 9260 160MHz, REV=0x324 >> 8086:2526 (rev 29) Subsystem: 8086:001c firmware version 46.6b541b68.0 9260- >> th-b0-jf-b0-46.ucode , the NVM_WRITE_OPCODE return status is 0x1000 for all >> sections. What does this mean is unknown, however clearing the top 4 bits >> permits the NVM to be written and the card operates as it should. >> >> Hexdump of the iNVM file is below, the iNVM file overrides antenna settings to >> only use AUX antenna and disables MIMO . > > The custom NVM is meant for internal use only. But why does NVM loading not work without this patch ? > To override antenna settings please use the nl80211 command: NL80211_CMD_SET_WIPHY > You can use the 'iw set antenna' command. I need to use only the AUX antenna and disable MIMO entirely, the 'iw set antenna' didn't work, the custom NVM fragment does work. But I do need this extra patch to load the NVM fragment. Is the patch correct ? Why is the 0x1000 returned and why does it have to be masked out ?