Received: by 2002:a05:7412:8521:b0:e2:908c:2ebd with SMTP id t33csp216068rdf; Thu, 2 Nov 2023 20:17:40 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEkwUuxf9PjNFM2RTjKLdyXUFIPDAeK1LPsTFfqmK0aejuS1jAQA9vPWD3dkK2NECal38yd X-Received: by 2002:a05:6871:5a87:b0:1e9:dd69:2fc1 with SMTP id oo7-20020a0568715a8700b001e9dd692fc1mr28000427oac.7.1698981459749; Thu, 02 Nov 2023 20:17:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698981459; cv=none; d=google.com; s=arc-20160816; b=xGfN06G8ZS3vLw1SJbjSvRP3BrqQ3fc0v4RGcg3pQRFFLNtd7BLC/k40wi3bjLbNVI Irr8lfcZRbEBM+HywLkXAb4BjW5VPm/ONl8FRRlZq+WnBXCQU8zG9GJ6lttwUi+fluBv CwTmRV2jrWklA2RxLMkdJpYti4oXvOcGjttjNZiJ3//Q15IeoKYv6bc9Bz4PRJnRSlvM +rVAhsspSAlvJGwBQxhRYB3X9vNSiYhbD0s8fn5pu3MVVNs4duROOP0eFf/2cL9JUV41 1MD0xdOQjHecTKh9M55M36TqK3WVxnsg2b9EcB25cK+KC+dDyfAdUHgVfgcFy8DiTy0h 9jlQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=rd6Uvjx5ux+GNZWhRZHyrra3DP99Oz9DICaycl4Qz1o=; fh=ynRitiQuAF/lYAVAAdXPV1elvxURcdCsYvWvhhD477g=; b=S5wBz8WIsbpwkWHYDUkHltGqAN1jF4/HPVByWe7p95EqoN9WSIjm21Pky97K704q3e xI3htvY9ZcNUb892YXzrX4tjdSW7GGg4iKKEGX8SPjrAbdfHRiM8e2mN7yPKtmCjv+H7 Uc4h6BwqheEYubiC4OhLJusnGiOXrBDqdy3VBm5Huy8aNNoD6zcd7PG4QVh5ZXEu9Qe6 dxvmljHz32W4BdIdNiYuW4B43t0fkPf8cixUkT+HMAjo4uUm9lfuGRKMwSc8ObpDAPME 2V3OoPpSd6zvglEpB47+49kTE6aXUCkheLIsTNWhYqQlBF8jaw1+iS9599AXY74YMHaG V9ug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=eFYjjneu; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.33 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 lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id i70-20020a636d49000000b005b9600b9f4asi755119pgc.228.2023.11.02.20.17.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 Nov 2023 20:17:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=eFYjjneu; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 90F47824E519; Thu, 2 Nov 2023 20:17:32 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231771AbjKCDRV (ORCPT + 52 others); Thu, 2 Nov 2023 23:17:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56736 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229573AbjKCDRO (ORCPT ); Thu, 2 Nov 2023 23:17:14 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 836A5D64 for ; Thu, 2 Nov 2023 20:17:07 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E0B6CC433C7; Fri, 3 Nov 2023 03:17:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1698981427; bh=5cXg9Qk54Xh5eNzC8ZbkNvf6lUi2E4Ob8KJRtjuR7z4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=eFYjjneuK17kUNgEiiVN8lYYaah9VwTVkI5228Myjp4xSbtJASjPd7yKxcSIruU4w VtwP0MXy0ogJUcIRXQRCZTkk0yg3TZXI7eQtA0c1NhvFeZ6rhtxnaYRGAUSAW3qP+6 Q0yMu+GYP8Vz1hInZNUmbvmxWPWvrtkz1vBUbfl7B8ROxXZX8OaZqV4GMpdtmcTGrv YbONWEbA4uiXN3UEL4sWEHscbaXXNNkBTACTA25mJG+kuRrX6cUpgXKK0stRzqr230 a2vxbmOE6pxfXs6R1X9oJbkwa5D8RHgPfoKT9x9T0NwEtRjQZ+FCzmKDrr9Dhp43hh RH+aoX/xQAbvQ== Date: Thu, 2 Nov 2023 20:17:05 -0700 From: Eric Biggers To: gregory.greenman@intel.com Cc: johannes@sipsolutions.net, linux-wireless@vger.kernel.org, Anjaneyulu Subject: Re: [PATCH 01/10] wifi: iwlwifi: mvm: implement new firmware API for statistics Message-ID: <20231103031705.GA947@sol.localdomain> References: <20231022145556.244202-1-gregory.greenman@intel.com> <20231022173519.8cc7df0ebff2.If1dcb57145841c5b3c68ed112bbfcd0201f7acc3@changeid> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231022173519.8cc7df0ebff2.If1dcb57145841c5b3c68ed112bbfcd0201f7acc3@changeid> X-Spam-Status: No, score=-1.6 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Thu, 02 Nov 2023 20:17:32 -0700 (PDT) Hi Gregory and Anjaneyulu, On Sun, Oct 22, 2023 at 05:55:47PM +0300, gregory.greenman@intel.com wrote: > From: Anjaneyulu > > The new firmware API uses a new command and notification, > the command configures in which statistics types driver is > interested and the notification is sent periodically. > An additional change in the API is that most of the statistics > data is accumulated and reported by the firmware per MLO link. > Implement new command and notification handlers and adjust to > per-link statistics. > > Signed-off-by: Anjaneyulu > Signed-off-by: Gregory Greenman I'm seeing a warning at boot time due to this patch. See below. It's from 'WARN_ON(iwl_cmd_groups_verify_sorted(trans_cfg));'. Looks like there's an array that is supposed to be sorted that isn't sorted anymore. [ 5.342367] Intel(R) Wireless WiFi driver for Linux [ 5.342405] iwlwifi 0000:04:00.0: enabling device (0000 -> 0002) [ 5.342978] iwlwifi 0000:04:00.0: Detected crf-id 0xbadcafe, cnv-id 0x10 wfpm id 0x80000000 [ 5.342993] iwlwifi 0000:04:00.0: PCI dev 24fd/1010, rev=0x230, rfid=0xd55555d5 [ 5.343131] xhci_hcd 0000:01:00.0: xHCI Host Controller [ 5.343137] xhci_hcd 0000:01:00.0: new USB bus registered, assigned bus number 1 [ 5.346469] iwlwifi 0000:04:00.0: loaded firmware version 36.ca7b901d.0 8265-36.ucode op_mode iwlmvm [ 5.346502] ------------[ cut here ]------------ [ 5.346503] WARNING: CPU: 1 PID: 20 at drivers/net/wireless/intel/iwlwifi/mvm/../iwl-trans.h:1158 iwl_op_mode_mvm_start+0x995/0x9b0 [ 5.346511] CPU: 1 PID: 20 Comm: kworker/1:0 Not tainted 6.6.0-11999-gae7b1149d4fb #1 [ 5.346514] Hardware name: Gigabyte Technology Co., Ltd. X399 AORUS Gaming 7/X399 AORUS Gaming 7, BIOS F2 08/31/2017 [ 5.346516] Workqueue: events request_firmware_work_func [ 5.346520] RIP: 0010:iwl_op_mode_mvm_start+0x995/0x9b0 [ 5.346524] Code: 41 5e 41 5f 5d e9 2b 4c 59 00 cc 48 c7 c7 10 58 a2 ba 48 c7 c6 8a 0c a3 ba e8 87 f1 57 00 e9 b6 fb ff ff 0f 0b e9 b2 fe ff ff <0f> 0b e9 aa fc ff ff e8 6f 96 58 00 66 66 66 66 66 66 2e 0f 1f 84 [ 5.346526] RSP: 0018:ffffa87d402e7bf8 EFLAGS: 00010286 [ 5.346529] RAX: 00000000ffffffff RBX: ffffa87d402e7c00 RCX: ffffffffba721630 [ 5.346531] RDX: 0000000000000000 RSI: 0000000000000002 RDI: ffffffffba721cc0 [ 5.346532] RBP: ffff8ba7c72e0028 R08: 0000000000000090 R09: 0000000000000070 [ 5.346534] R10: 0000000000000070 R11: 00000000000000ff R12: ffff8ba7c7241f88 [ 5.346536] R13: ffff8ba7c6fff814 R14: ffff8ba7c7241f80 R15: 0000000000000000 [ 5.346537] FS: 0000000000000000(0000) GS:ffff8baf1e840000(0000) knlGS:0000000000000000 [ 5.346540] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 5.346541] CR2: 0000000000000000 CR3: 0000000056228000 CR4: 00000000003506f0 [ 5.346543] Call Trace: [ 5.346546] [ 5.346548] ? __warn+0xa7/0x140 [ 5.346551] ? iwl_op_mode_mvm_start+0x995/0x9b0 [ 5.346554] ? report_bug+0xe8/0x180 [ 5.346557] ? handle_bug+0x3d/0x90 [ 5.346560] ? exc_invalid_op+0x1a/0x60 [ 5.346562] ? asm_exc_invalid_op+0x1a/0x20 [ 5.346566] ? iwl_op_mode_mvm_start+0x995/0x9b0 [ 5.346568] ? iwl_op_mode_mvm_start+0x63e/0x9b0 [ 5.346571] _iwl_op_mode_start+0x4e/0xa0 [ 5.346575] iwl_req_fw_callback+0x2501/0x2610 [ 5.346579] ? srso_return_thunk+0x5/0x5f [ 5.346582] ? __switch_to+0x80/0x480 [ 5.346586] request_firmware_work_func+0x62/0xa0 [ 5.346589] process_scheduled_works+0x263/0x3d0 [ 5.346593] worker_thread+0x222/0x300 [ 5.346595] ? __cfi_worker_thread+0x10/0x10 [ 5.346598] kthread+0xf4/0x110 [ 5.346602] ? __cfi_kthread+0x10/0x10 [ 5.346604] ret_from_fork+0x43/0x50 [ 5.346608] ? __cfi_kthread+0x10/0x10 [ 5.346610] ret_from_fork_asm+0x1b/0x30 [ 5.346614] [ 5.346615] ---[ end trace 0000000000000000 ]--- [ 5.346617] iwlwifi 0000:04:00.0: Detected Intel(R) Dual Band Wireless AC 8265, REV=0x230