Received: by 2002:a05:6a10:5594:0:0:0:0 with SMTP id ee20csp92678pxb; Mon, 25 Apr 2022 06:27:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw8ndW9ATWRbo7BOUkHvebAyvv5bYVU9+Kz4UKQrVEyfhLmJkZtcfcp4WauNKt6RROO8tTi X-Received: by 2002:a17:902:8e82:b0:151:6f68:7088 with SMTP id bg2-20020a1709028e8200b001516f687088mr18366576plb.11.1650893274486; Mon, 25 Apr 2022 06:27:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650893274; cv=none; d=google.com; s=arc-20160816; b=niyPvc3p6NhTBHDMl/mGOpIYJRNhPmc13s/p4k51qKPzn9RX6wzXLZa7FavvxJ3Fj0 cwUCjnqtuqpFGWyTluvo31tlBU09rsw5x7m/GO6A4xih3Z1LX9S1ZhkJ5HDjrxs/tfjp Z40zi3hRDbm2NkKDepL18Lza+cv/pDpuZibo+LFYRGpSt3IBhBNxBxGhCQVislRfouH+ dpzIX5Lmhg/NWHnVQtT4mSVs0HJUYNZZqa0WFZ3g3ItBND68xiJ1z10vobGs28JK0Wig jbuaUPYWGC9d57mzG2ed9DJ0jU6DoKuKs2sGXvdaXnpTZCvW/15GP+MGcqVcu45p0RzI jeIA== 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=M2Xwc4gnzeUWKf/7pA5bAOwl+i3JeR3XPfRQyLn6sr0=; b=WZwbn+C0+mi5eX9wcEhxQ7OwI8cIJxJNz+RXeN08xXVbC7O9eXiSqo66r9+aDKhBTa 5xjLUtWHvbuqDK00SYfVmtRzXP5FNp55d3KDGgMtMEGzsIttJiV7tJxuO3TnYQyOPDpQ hxPIjKg6QK2j8ZKjUsM4j4Rfw5bs8A4/7UaJ9P41UaoHB6f8ZAsqp0bZiEUFm0URjFfm 15H78p6ZMBhZSGXEMR9zTTk7TjSl+9dqS/lmcOAGASBhiAZi3UgBrNjju1FSmgKCXFiy 3YwTyrJj/MPKZ0sgf5Zi2zxnUiDBjmFlCNXvnNaBbuje0+0Uy3tlz15Ljzhxotkq7lcy FMmg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=c42tKBe+; 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 y10-20020a170902b48a00b00153b2d16619si15082194plr.545.2022.04.25.06.27.36; Mon, 25 Apr 2022 06:27:54 -0700 (PDT) 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=c42tKBe+; 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 S241991AbiDYMyJ (ORCPT + 67 others); Mon, 25 Apr 2022 08:54:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43930 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241817AbiDYMyG (ORCPT ); Mon, 25 Apr 2022 08:54:06 -0400 Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B4F9D29CAD for ; Mon, 25 Apr 2022 05:51:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1650891061; x=1682427061; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=7uCeImf+o2Hrbcmda0wf1EyZkteFnt4hYGpfvkGjX0w=; b=c42tKBe+yUcqayv+5etl3295jDlo0i4kSCHLBRDerCz7nSYKTnRPf7YI T0gHDU23L/Hc4hzz7X3kin30I3Vihcn3gkqHcAj/1PFPxQ/xIDKhl4unw 0CQAORN6fdGSS7YUnIcbEV7as29O+kfLQv3ORxmOQ7Xt9w40AQ5DmT1b4 IJ0JRAnhZy3gpH1Bh03JrX3uMkgPBfMTfOrLUa+HinZDGUo4WY0MT59FH adSgjBupnUs6lB1PJASGcDaLFQaEd4/1QGQEs3O5FsymnFDy1y0gtO+Da ZFNJ8Dc57UvZzt82wDKreutDEfo2UmGqWRZuhHyZAQVRVF3v/WIExKWeW A==; X-IronPort-AV: E=McAfee;i="6400,9594,10327"; a="245162529" X-IronPort-AV: E=Sophos;i="5.90,288,1643702400"; d="scan'208";a="245162529" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Apr 2022 05:51:01 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.90,288,1643702400"; d="scan'208";a="872674513" Received: from lkp-server01.sh.intel.com (HELO 5056e131ad90) ([10.239.97.150]) by fmsmga005.fm.intel.com with ESMTP; 25 Apr 2022 05:50:58 -0700 Received: from kbuild by 5056e131ad90 with local (Exim 4.95) (envelope-from ) id 1niyB7-0002VD-Qq; Mon, 25 Apr 2022 12:50:57 +0000 Date: Mon, 25 Apr 2022 20:50:42 +0800 From: kernel test robot To: Bo Jiao , Felix Fietkau Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org, linux-wireless , Ryder Lee , Sujuan Chen , "lian . chen" , Shayne Chen , Evelyn Tsai , linux-mediatek , Bo Jiao Subject: Re: [PATCH v2] mt76: mt7915: dump SER stats through debugfs Message-ID: <202204252050.kt1MHzwD-lkp@intel.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-5.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_PASS,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 Hi Bo, I love your patch! Perhaps something to improve: [auto build test WARNING on wireless-next/main] [also build test WARNING on wireless/main v5.18-rc4 next-20220422] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch] url: https://github.com/intel-lab-lkp/linux/commits/Bo-Jiao/mt76-mt7915-dump-SER-stats-through-debugfs/20220425-113739 base: https://git.kernel.org/pub/scm/linux/kernel/git/wireless/wireless-next.git main config: x86_64-allyesconfig (https://download.01.org/0day-ci/archive/20220425/202204252050.kt1MHzwD-lkp@intel.com/config) compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project 1cddcfdc3c683b393df1a5c9063252eb60e52818) reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # https://github.com/intel-lab-lkp/linux/commit/3d98cf66e18c4da1c5ee68eb987c34598e959da4 git remote add linux-review https://github.com/intel-lab-lkp/linux git fetch --no-tags linux-review Bo-Jiao/mt76-mt7915-dump-SER-stats-through-debugfs/20220425-113739 git checkout 3d98cf66e18c4da1c5ee68eb987c34598e959da4 # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash drivers/net/wireless/mediatek/mt76/mt7915/ lib/ If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All warnings (new ones prefixed by >>): >> drivers/net/wireless/mediatek/mt76/mt7915/debugfs.c:87:2: warning: unannotated fall-through between switch labels [-Wimplicit-fallthrough] default: ^ drivers/net/wireless/mediatek/mt76/mt7915/debugfs.c:87:2: note: insert 'break;' to avoid fall-through default: ^ break; 1 warning generated. vim +87 drivers/net/wireless/mediatek/mt76/mt7915/debugfs.c 6d6dc980e07d1f8 Ryder Lee 2021-01-14 43 6d6dc980e07d1f8 Ryder Lee 2021-01-14 44 DEFINE_DEBUGFS_ATTRIBUTE(fops_implicit_txbf, mt7915_implicit_txbf_get, 6d6dc980e07d1f8 Ryder Lee 2021-01-14 45 mt7915_implicit_txbf_set, "%lld\n"); 6d6dc980e07d1f8 Ryder Lee 2021-01-14 46 e57b7901469fc0b Ryder Lee 2020-04-25 47 /* test knob of system layer 1/2 error recovery */ 3d98cf66e18c4da Ryder Lee 2022-04-25 48 static ssize_t mt7915_fw_ser_set(struct file *file, 3d98cf66e18c4da Ryder Lee 2022-04-25 49 const char __user *user_buf, 3d98cf66e18c4da Ryder Lee 2022-04-25 50 size_t count, loff_t *ppos) e57b7901469fc0b Ryder Lee 2020-04-25 51 { e57b7901469fc0b Ryder Lee 2020-04-25 52 enum { 3d98cf66e18c4da Ryder Lee 2022-04-25 53 SER_QUERY = 0, e57b7901469fc0b Ryder Lee 2020-04-25 54 SER_SET_RECOVER_L1 = 1, e57b7901469fc0b Ryder Lee 2020-04-25 55 SER_SET_RECOVER_L2, e57b7901469fc0b Ryder Lee 2020-04-25 56 SER_ENABLE = 2, e57b7901469fc0b Ryder Lee 2020-04-25 57 SER_RECOVER e57b7901469fc0b Ryder Lee 2020-04-25 58 }; 3d98cf66e18c4da Ryder Lee 2022-04-25 59 struct mt7915_dev *dev = file->private_data; 3d98cf66e18c4da Ryder Lee 2022-04-25 60 char buf[16]; 3d98cf66e18c4da Ryder Lee 2022-04-25 61 u16 val; 3d98cf66e18c4da Ryder Lee 2022-04-25 62 3d98cf66e18c4da Ryder Lee 2022-04-25 63 if (count >= sizeof(buf)) 3d98cf66e18c4da Ryder Lee 2022-04-25 64 return -EINVAL; 3d98cf66e18c4da Ryder Lee 2022-04-25 65 3d98cf66e18c4da Ryder Lee 2022-04-25 66 if (copy_from_user(buf, user_buf, count)) 3d98cf66e18c4da Ryder Lee 2022-04-25 67 return -EFAULT; 3d98cf66e18c4da Ryder Lee 2022-04-25 68 3d98cf66e18c4da Ryder Lee 2022-04-25 69 if (count && buf[count - 1] == '\n') 3d98cf66e18c4da Ryder Lee 2022-04-25 70 buf[count - 1] = '\0'; 3d98cf66e18c4da Ryder Lee 2022-04-25 71 else 3d98cf66e18c4da Ryder Lee 2022-04-25 72 buf[count] = '\0'; 3d98cf66e18c4da Ryder Lee 2022-04-25 73 3d98cf66e18c4da Ryder Lee 2022-04-25 74 if (kstrtou16(buf, 0, &val)) 3d98cf66e18c4da Ryder Lee 2022-04-25 75 return -EINVAL; e57b7901469fc0b Ryder Lee 2020-04-25 76 e57b7901469fc0b Ryder Lee 2020-04-25 77 switch (val) { 3d98cf66e18c4da Ryder Lee 2022-04-25 78 case SER_QUERY: 3d98cf66e18c4da Ryder Lee 2022-04-25 79 /* grab firmware SER stats */ 3d98cf66e18c4da Ryder Lee 2022-04-25 80 mt7915_mcu_set_ser(dev, 0, 0, 0); 3d98cf66e18c4da Ryder Lee 2022-04-25 81 break; e57b7901469fc0b Ryder Lee 2020-04-25 82 case SER_SET_RECOVER_L1: e57b7901469fc0b Ryder Lee 2020-04-25 83 case SER_SET_RECOVER_L2: 3d98cf66e18c4da Ryder Lee 2022-04-25 84 mt7915_mcu_set_ser(dev, SER_ENABLE, BIT(val), 0); e57b7901469fc0b Ryder Lee 2020-04-25 85 3d98cf66e18c4da Ryder Lee 2022-04-25 86 mt7915_mcu_set_ser(dev, SER_RECOVER, val, 0); e57b7901469fc0b Ryder Lee 2020-04-25 @87 default: e57b7901469fc0b Ryder Lee 2020-04-25 88 break; e57b7901469fc0b Ryder Lee 2020-04-25 89 } e57b7901469fc0b Ryder Lee 2020-04-25 90 3d98cf66e18c4da Ryder Lee 2022-04-25 91 return count; 3d98cf66e18c4da Ryder Lee 2022-04-25 92 } 3d98cf66e18c4da Ryder Lee 2022-04-25 93 -- 0-DAY CI Kernel Test Service https://01.org/lkp