From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net [23.128.96.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C2A4E4A10 for ; Mon, 21 Aug 2023 19:01:57 +0000 (UTC) Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.126]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 85C822B64; Mon, 21 Aug 2023 12:01:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1692644489; x=1724180489; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=Wld6UNWWckrcMq4kcCWkjtCXxw/5IjJuPmlfVgjAk5g=; b=OGCJBEeMDNtri4twUK+p4UbFcTjPw7CpYVDRAF0CBTgmK5HZbJt1QhK2 KyjoBGVlIsyGknFnLsg+fNWcKoYYhkjAQ/tnlPTbwiZwc0AI+v9DLSIBB YL1a9aD2FLKhFo3EBLStBnRY/+/W0Jfd7JJ+T9aJVDpJkc5eyOxyA/jti kV1w3MfI0t070qPpJyajcycrIT6ltTa8F8i901Bme+H9gsu9a0PdbN8Iq JXR3rbsV/NFbPH9BW+mAPRmeTycIkq41ZNrsUZQDR3kca29k5eFiifJsu JYefun3i5SW/UlbEbdTzi1jPJ8RVjXbSE7DUIBvTtlP+hO2PEI3DV7nta w==; X-IronPort-AV: E=McAfee;i="6600,9927,10809"; a="358657242" X-IronPort-AV: E=Sophos;i="6.01,190,1684825200"; d="scan'208";a="358657242" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Aug 2023 11:38:35 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10809"; a="909801641" X-IronPort-AV: E=Sophos;i="6.01,190,1684825200"; d="scan'208";a="909801641" Received: from lkp-server02.sh.intel.com (HELO 6809aa828f2a) ([10.239.97.151]) by orsmga005.jf.intel.com with ESMTP; 21 Aug 2023 11:38:31 -0700 Received: from kbuild by 6809aa828f2a with local (Exim 4.96) (envelope-from ) id 1qY9nH-0000nd-0k; Mon, 21 Aug 2023 18:38:27 +0000 Date: Tue, 22 Aug 2023 02:38:12 +0800 From: kernel test robot To: Daniel Golle , Felix Fietkau , John Crispin , Sean Wang , Mark Lee , Lorenzo Bianconi , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Matthias Brugger , AngeloGioacchino Del Regno , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Cc: oe-kbuild-all@lists.linux.dev, netdev@vger.kernel.org Subject: Re: [PATCH net] net: ethernet: mtk_eth_soc: add reset bits for MT7988 Message-ID: <202308220205.gbt5lcAY-lkp@intel.com> References: Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE, 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 Hi Daniel, kernel test robot noticed the following build errors: [auto build test ERROR on linux-next/master] [cannot apply to net/main linus/master v6.5-rc7] [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#_base_tree_information] url: https://github.com/intel-lab-lkp/linux/commits/Daniel-Golle/net-ethernet-mtk_eth_soc-add-reset-bits-for-MT7988/20230821-102205 base: linux-next/master patch link: https://lore.kernel.org/r/b983a3adf5184a30e4ce620fbbf028c9c76648ae.1692382239.git.daniel%40makrotopia.org patch subject: [PATCH net] net: ethernet: mtk_eth_soc: add reset bits for MT7988 config: alpha-allyesconfig (https://download.01.org/0day-ci/archive/20230822/202308220205.gbt5lcAY-lkp@intel.com/config) compiler: alpha-linux-gcc (GCC) 12.3.0 reproduce: (https://download.01.org/0day-ci/archive/20230822/202308220205.gbt5lcAY-lkp@intel.com/reproduce) If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags | Reported-by: kernel test robot | Closes: https://lore.kernel.org/oe-kbuild-all/202308220205.gbt5lcAY-lkp@intel.com/ All errors (new ones prefixed by >>): In file included from drivers/net/ethernet/mediatek/mtk_eth_soc.c:31: drivers/net/ethernet/mediatek/mtk_eth_soc.c: In function 'mtk_hw_reset': >> drivers/net/ethernet/mediatek/mtk_eth_soc.c:3625:50: error: 'MTK_RSTCTRL_PPE2' undeclared (first use in this function); did you mean 'MTK_RSTCTRL_PPE1'? 3625 | if (MTK_HAS_CAPS(eth->soc->caps, MTK_RSTCTRL_PPE2)) | ^~~~~~~~~~~~~~~~ drivers/net/ethernet/mediatek/mtk_eth_soc.h:1022:53: note: in definition of macro 'MTK_HAS_CAPS' 1022 | #define MTK_HAS_CAPS(caps, _x) (((caps) & (_x)) == (_x)) | ^~ drivers/net/ethernet/mediatek/mtk_eth_soc.c:3625:50: note: each undeclared identifier is reported only once for each function it appears in 3625 | if (MTK_HAS_CAPS(eth->soc->caps, MTK_RSTCTRL_PPE2)) | ^~~~~~~~~~~~~~~~ drivers/net/ethernet/mediatek/mtk_eth_soc.h:1022:53: note: in definition of macro 'MTK_HAS_CAPS' 1022 | #define MTK_HAS_CAPS(caps, _x) (((caps) & (_x)) == (_x)) | ^~ drivers/net/ethernet/mediatek/mtk_eth_soc.c: In function 'mtk_hw_warm_reset': drivers/net/ethernet/mediatek/mtk_eth_soc.c:3673:50: error: 'MTK_RSTCTRL_PPE2' undeclared (first use in this function); did you mean 'MTK_RSTCTRL_PPE1'? 3673 | if (MTK_HAS_CAPS(eth->soc->caps, MTK_RSTCTRL_PPE2)) | ^~~~~~~~~~~~~~~~ drivers/net/ethernet/mediatek/mtk_eth_soc.h:1022:53: note: in definition of macro 'MTK_HAS_CAPS' 1022 | #define MTK_HAS_CAPS(caps, _x) (((caps) & (_x)) == (_x)) | ^~ drivers/net/ethernet/mediatek/mtk_eth_soc.c: In function 'mtk_prepare_for_reset': drivers/net/ethernet/mediatek/mtk_eth_soc.c:4042:50: error: 'MTK_RSTCTRL_PPE2' undeclared (first use in this function); did you mean 'MTK_RSTCTRL_PPE1'? 4042 | if (MTK_HAS_CAPS(eth->soc->caps, MTK_RSTCTRL_PPE2)) | ^~~~~~~~~~~~~~~~ drivers/net/ethernet/mediatek/mtk_eth_soc.h:1022:53: note: in definition of macro 'MTK_HAS_CAPS' 1022 | #define MTK_HAS_CAPS(caps, _x) (((caps) & (_x)) == (_x)) | ^~ drivers/net/ethernet/mediatek/mtk_eth_soc.c: In function 'mtk_pending_work': drivers/net/ethernet/mediatek/mtk_eth_soc.c:4113:50: error: 'MTK_RSTCTRL_PPE2' undeclared (first use in this function); did you mean 'MTK_RSTCTRL_PPE1'? 4113 | if (MTK_HAS_CAPS(eth->soc->caps, MTK_RSTCTRL_PPE2)) | ^~~~~~~~~~~~~~~~ drivers/net/ethernet/mediatek/mtk_eth_soc.h:1022:53: note: in definition of macro 'MTK_HAS_CAPS' 1022 | #define MTK_HAS_CAPS(caps, _x) (((caps) & (_x)) == (_x)) | ^~ vim +3625 drivers/net/ethernet/mediatek/mtk_eth_soc.c 3611 3612 static void mtk_hw_reset(struct mtk_eth *eth) 3613 { 3614 u32 val; 3615 3616 if (mtk_is_netsys_v2_or_greater(eth)) 3617 regmap_write(eth->ethsys, ETHSYS_FE_RST_CHK_IDLE_EN, 0); 3618 3619 if (mtk_is_netsys_v3_or_greater(eth)) { 3620 val = RSTCTRL_PPE0_V3; 3621 3622 if (MTK_HAS_CAPS(eth->soc->caps, MTK_RSTCTRL_PPE1)) 3623 val |= RSTCTRL_PPE1_V3; 3624 > 3625 if (MTK_HAS_CAPS(eth->soc->caps, MTK_RSTCTRL_PPE2)) 3626 val |= RSTCTRL_PPE2; 3627 3628 val |= RSTCTRL_WDMA0 | RSTCTRL_WDMA1 | RSTCTRL_WDMA2; 3629 } else if (mtk_is_netsys_v2_or_greater(eth)) { 3630 val = RSTCTRL_PPE0_V2; 3631 3632 if (MTK_HAS_CAPS(eth->soc->caps, MTK_RSTCTRL_PPE1)) 3633 val |= RSTCTRL_PPE1; 3634 } else { 3635 val = RSTCTRL_PPE0; 3636 } 3637 3638 ethsys_reset(eth, RSTCTRL_ETH | RSTCTRL_FE | val); 3639 3640 if (mtk_is_netsys_v3_or_greater(eth)) 3641 regmap_write(eth->ethsys, ETHSYS_FE_RST_CHK_IDLE_EN, 3642 0x6f8ff); 3643 else if (mtk_is_netsys_v2_or_greater(eth)) 3644 regmap_write(eth->ethsys, ETHSYS_FE_RST_CHK_IDLE_EN, 3645 0x3ffffff); 3646 } 3647 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki