From patchwork Fri Sep 10 16:04:34 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?SsOpcsO0bWUgUG91aWxsZXI=?= X-Patchwork-Id: 12485399 X-Patchwork-Delegate: johannes@sipsolutions.net Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,MSGID_FROM_MTA_HEADER,SPF_HELO_NONE,SPF_PASS, USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 18550C43219 for ; Fri, 10 Sep 2021 16:05:50 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id EA04461207 for ; Fri, 10 Sep 2021 16:05:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229998AbhIJQGx (ORCPT ); Fri, 10 Sep 2021 12:06:53 -0400 Received: from mail-co1nam11on2067.outbound.protection.outlook.com ([40.107.220.67]:25696 "EHLO NAM11-CO1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S229451AbhIJQGq (ORCPT ); Fri, 10 Sep 2021 12:06:46 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=HpblC7YtiFdT1xEjIkzD0L77ll287DKZYDLINgOZKEXQK6+mt7ZfAMXLcC6mZGPQKIZXa0cCb2OAVo17e2iguPRMkhqBsuU0UIlg5iN6OJBXsub7YZW8F/RsJ5JuYGmZeah5kEOXyxpPvBQBtZoSln+7k5/p7yWCX5Ek8SGgD8JeIobQZBXkbUVemy+3GyYpmcNKzl4Xutbgz8We3G7M0z825sxzlevmQOL5M57SrnaLS9mIJiep8v4ig28UrhWwEEFl272kzxnBQaLfbH6xmDIbfrdOhej4uokjVsmao9EE5ahudRSn5TDbMPoYum5CJtwNePBZ9wl0HUBxTMW0rg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=Fib8Y8j+Fw/sN2NX69u9T+P9uNpyVHksmDfyGgxLK4M=; b=PZ/CuwMOMpYpxBA1JkidjrnisZj5F691XAZU8hFiC8InzCy1qz3P+yd+ORiZ3XgrRBjymeoCnXWkukRLjlX6Xrng+VkmJzFxipW5T4O9MtWyf0ZF8cXqXb1xydRFCXSTucbZ/uJJJewi29HCTl+iz7YU0gCOTVAGlzvbPsEwykJaxhonTRH5XNn3xXrYFWLfmFl2wE2+HoWVnL55aN+uzZLA68hvSJzgMPyiaGGk5C5Umi+d1L5YWTM3j9nLjgfo4MZiDued/a2s0nTqWaq4euSZ2ar+S4wwx1fTi98ILUZnga+EN7Tjr4uAyW8xNy0yPq4unC8ALhVH90AdxCfpTQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=silabs.com; dmarc=pass action=none header.from=silabs.com; dkim=pass header.d=silabs.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=silabs.onmicrosoft.com; s=selector2-silabs-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Fib8Y8j+Fw/sN2NX69u9T+P9uNpyVHksmDfyGgxLK4M=; b=RZ3LmnX+F3GuvRCuJ5ac1Yjsjby2ooolA0MwRHRS/aaSmcaKkJdEwW+7yiXluFOcYQDoLbqrBwQuCIAXvyET/B+I7zn9h2LShoPXeKU7pDjS4fQazliifUKSA2n9s6MBKsxYi2i0pEr1OHKw/xsaUzm6dGh7s3BuKV5UTzfqiug= Authentication-Results: driverdev.osuosl.org; dkim=none (message not signed) header.d=none;driverdev.osuosl.org; dmarc=none action=none header.from=silabs.com; Received: from SN6PR11MB2718.namprd11.prod.outlook.com (2603:10b6:805:63::18) by SA0PR11MB4592.namprd11.prod.outlook.com (2603:10b6:806:98::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4500.17; Fri, 10 Sep 2021 16:05:33 +0000 Received: from SN6PR11MB2718.namprd11.prod.outlook.com ([fe80::7050:a0a:415:2ccd]) by SN6PR11MB2718.namprd11.prod.outlook.com ([fe80::7050:a0a:415:2ccd%7]) with mapi id 15.20.4500.017; Fri, 10 Sep 2021 16:05:33 +0000 From: Jerome Pouiller To: devel@driverdev.osuosl.org, linux-wireless@vger.kernel.org Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Greg Kroah-Hartman , Kalle Valo , "David S . Miller" , =?utf-8?b?SsOpcsO0bWUgUG91aWxsZXI=?= Subject: [PATCH 01/31] staging: wfx: use abbreviated message for "incorrect sequence" Date: Fri, 10 Sep 2021 18:04:34 +0200 Message-Id: <20210910160504.1794332-2-Jerome.Pouiller@silabs.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210910160504.1794332-1-Jerome.Pouiller@silabs.com> References: <20210910160504.1794332-1-Jerome.Pouiller@silabs.com> X-ClientProxiedBy: SN4PR0601CA0006.namprd06.prod.outlook.com (2603:10b6:803:2f::16) To SN6PR11MB2718.namprd11.prod.outlook.com (2603:10b6:805:63::18) MIME-Version: 1.0 Received: from pc-42.silabs.com (2a01:e34:ecb5:66a0:9876:e1d7:65be:d294) by SN4PR0601CA0006.namprd06.prod.outlook.com (2603:10b6:803:2f::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4500.15 via Frontend Transport; Fri, 10 Sep 2021 16:05:31 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 3c400d46-7ec7-4b36-dcf7-08d97474d190 X-MS-TrafficTypeDiagnostic: SA0PR11MB4592: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:4125; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: DkUjH7DWdYbciEtKdegbBTHDuM0ThY4NiKyTUEHBYGzviWajPiC7GVcL2RfD4vM6zegxop4ibZJ3Q0uvi2jQflpQWubsHeQ3nDABF3xGHmIl7e3QM+DVZye1ycrTCgOR/xENcH803OraTfSrJ6VyCaXLAwlzfWDP4Ml/kFu0733RziDFpgJ9uyy4MUnu9wdT+XMitzyfPqThXcd9D83XZ9gEIbFGekc+kvEFSsKI9k2JN47F3di6vwRtBqs020r7NSPSD6HOpkkqhE3XD/6derpV0WEidkqPHF8y0367eQMW7v3cygtz1ZB1cAqII/yreJ/+MeStwZGJGVd9ZHkN43T4MtrDALYI4qZGdiDPfeLajq8nLJrKsI9u0H5blKx12kMy/Sj4Bg4lC0Yqw4BkzD0fmen+6yN5n/E53selhL2L+E7ULEzZFNRpNKIafMBtTMuqnNvR06tiDjhrHnMoRL8lPPcU2fN2T3kcfH8/LuK2UMKp1GSgGu1HUwmneJpQtd3O/HJtp5MuDgNBbGa1OSzATCtLLb7d9Lwv4An2R5x6/o4oTcvLMEwjAC5mzg1p87oPAdGium7c4zYiAAgaoxPR8Ke2FMRmRzV0O1pOzjqfmFVRgQfcaHzC8qLOj7R6lm9eMYqeYMvFiVj6l2Z8dg== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SN6PR11MB2718.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(366004)(508600001)(2906002)(66556008)(66476007)(316002)(66946007)(83380400001)(66574015)(8676002)(8936002)(36756003)(15650500001)(86362001)(6486002)(107886003)(7696005)(52116002)(54906003)(2616005)(5660300002)(4326008)(38100700002)(1076003)(186003);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?ZlpdSP18mIFTP6BLybV2wpd0WkSG?= =?utf-8?q?L6+uM53o8xukeNACXbyNQ4/bDOBsqzMwwPsEbrEqk9l7Vw6RlRJiR/EYoQo5Kk3yW?= =?utf-8?q?U7cqHNtYgA0Gg5/qkEm0G/P1oZkTylQoqkRjeZDUv9b9F/eCyZz8ymTBZzAc18B6/?= =?utf-8?q?EoHYXh2pXMV2+33EGzgZpWAq2ymbL2VVWg8wA7dyqlx4p/1CIKMdcMIFN4+bH4lXL?= =?utf-8?q?zP9rzVMixOaAMo1Zfe/kUZbukPP8/5/F7/20xZ4g6nO4tGLXwzJ2XcPa7FqJB+4YT?= =?utf-8?q?C98HuPVC5yQtqhimrPeO6dFRwAcw8Egr4HBv5H1ZR6C02BoppFFPuMG9KC0RWrkpx?= =?utf-8?q?goUneMrLNzsmLNhUx5H9hrqlZdAE23M1ARMf49wTSfWuZ9KRdxrnH7fnLkBXuPO08?= =?utf-8?q?/BVkzv+RL6Fq2xo+DAO2pRPeylyAwowKvt/UforOz4dbLHg2bgZgBMvz9mRb2a7dH?= =?utf-8?q?280Whkd7VUTVQS4ZQ5ZM+OpsQGqCOYERP7o722K/lVvl1cveitZBVPY9mYqEYmcPx?= =?utf-8?q?cJMryZbVFzzS/AosoQGgJ77kslBYNxGTzZV4vwD9TqofROtCQV/5Bkz4x/WhrR4BH?= =?utf-8?q?PiY8cFlBSmiaTSIB96pc9qyMHTVVrzVo+bi7DSpmK2XTNGvWfqKaUZLABt1cYXrCL?= =?utf-8?q?2AJrPwCXCKHDKqbkEk0GqSVUbb4OKJh2O0l1izOf2VU1oao8Pc6yfspZeygnwLUV4?= =?utf-8?q?WxI4tiWGFklkW3ShYNQQyR5rvGxIzLmK1FlAlHjOHKgJdGOZvJmp5kIXtJ+npMpCA?= =?utf-8?q?h3T7cFtK3WKPCgcJUHhD4LXPgzsaZpuayBkL7N2A5xsBKeAmUHEMN54bUtpzwpGXW?= =?utf-8?q?OpFmv8RiMWx60TngNaIhrz2z6cZ2TtHXCu49pSLQFgfoyLKEhdetEdS31o4SGwj8M?= =?utf-8?q?DDeOhw1p0INpLz8CoDCoKmPa6kSc3/J8gVTeKnxNYau0NJxc37vcgWTkg3V9YrGEx?= =?utf-8?q?3x6yiLsNyEavTjVSyy/Rfe+QBg4DDftrovUQ6+kq99l5ayrU3fvYCWmjjoAvlk2lf?= =?utf-8?q?Zuo6b1qo77FswbuCq3ICdTEA0dIKmGWcLsFiZ6mhI/Io5QpDD2poA3kqXP/Utm2bH?= =?utf-8?q?93iDSwaaAJSpJsK7Z27eYle0g4b/BJTU5FR50TyLft9DiILXHhn6WrZQzZpZwvmif?= =?utf-8?q?g+6AsMKGAt+QnVUtuPU3lDOsBtKFLHv/sxrPhuKHhRV4AnrsVdkbGmaLcJP4BdFgp?= =?utf-8?q?SsY2byKcDGQpDWCxANBJ6cbDufd7PpIQrSOb54sBMgViXED0tkdkcK5dC9XHwWKb3?= =?utf-8?q?8wI2Xf22YB1VT/h6UU3EQm4nzL0UuhnyfTjvtriZwxupFBsFC9l2+GUWr8hSXcowk?= =?utf-8?q?Zg4BSAnYXxhT4rW?= X-OriginatorOrg: silabs.com X-MS-Exchange-CrossTenant-Network-Message-Id: 3c400d46-7ec7-4b36-dcf7-08d97474d190 X-MS-Exchange-CrossTenant-AuthSource: SN6PR11MB2718.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Sep 2021 16:05:33.3314 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 54dbd822-5231-4b20-944d-6f4abcd541fb X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 58QN90y1o+PcHxaEc74BzhVXvJzFcB/LEHjCOrb/yO3hSmsLhDlQdCiayjnXJ9Mcmh22URrXky3mkMWwmmgKjg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA0PR11MB4592 Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org From: Jérôme Pouiller The wfx driver checks carefully the coherency of of the DTIM notifications. We have noticed several times some small inconsistencies from the firmware on these notification. They have never been critical. However on the driver side they lead to big fat warnings. Worse, if these warning are displayed on UART console, they can be long to display (several hundreds of millisecs). Since, this warning is generated from a work queue, it can delay all the workqueue users. Especially, it can drastically slow down the frame management of the driver and then generate errors that are serious this time (eg. an overflow of the indication queue of the device). Signed-off-by: Jérôme Pouiller --- drivers/staging/wfx/sta.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/staging/wfx/sta.c b/drivers/staging/wfx/sta.c index cb7e8abdf43c..a236e5bb6914 100644 --- a/drivers/staging/wfx/sta.c +++ b/drivers/staging/wfx/sta.c @@ -631,8 +631,9 @@ void wfx_suspend_resume_mc(struct wfx_vif *wvif, enum sta_notify_cmd notify_cmd) { if (notify_cmd != STA_NOTIFY_AWAKE) return; - WARN(!wfx_tx_queues_has_cab(wvif), "incorrect sequence"); - WARN(wvif->after_dtim_tx_allowed, "incorrect sequence"); + if (!wfx_tx_queues_has_cab(wvif) || wvif->after_dtim_tx_allowed) + dev_warn(wvif->wdev->dev, "incorrect sequence (%d CAB in queue)", + wfx_tx_queues_has_cab(wvif)); wvif->after_dtim_tx_allowed = true; wfx_bh_request_tx(wvif->wdev); }