Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp307581rwn; Fri, 16 Sep 2022 21:17:01 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4v1HhACEvn1zX/dst+OwLoaFHmRSsxAMpfM+b9OO0YuG3l925ICqBgrKq9H7jJL40OKx2L X-Received: by 2002:a17:90b:3809:b0:202:b482:b7d6 with SMTP id mq9-20020a17090b380900b00202b482b7d6mr19269454pjb.209.1663388221257; Fri, 16 Sep 2022 21:17:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663388221; cv=none; d=google.com; s=arc-20160816; b=xO+GgkYtmlkytnBPt/xij1XoZhtzyfui/R/soECNS3AsASJxFgqvu/Oht0graR6KxE XAioTOskszA3PpuuXkY4HBoxmOz7zq2J4nqWmamp963lTNiobIMsbFMxtMkdGsYIFGNK zSHvBFylo3le5RDGba0uipHTwuzMBLN1cL8d7kPo5akWtXCDttQPRQH0zWQUDaB+BGXJ 9Q0UdaW+jcD3iTbCxWtpYDptBkb1L9sA2LS3GNAX2WenP15hqlU54Z4QYb32ltZYmiTp P8fohA6VE5goyyfXngDLmmQcMn4Bd6y9/P1HFTjJDqHDqaCpc+iNbT5EtS7qH4I+2nyq GvHQ== 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=KE8ra3XKt7b4deJAnLgCAkptnxNL3jiCMM45NW6wfeE=; b=hixR59ByI2LkUzpGgAQxFpIrakr9+bsyQvlyumZrMqc7LcVylG/SG0yxVGtnLmMb2h 43ERbVdqDX2iXgWVfJzHNtd6C4S9vq0UjMJEfNe7e5oiwNQKqKZDihZkZ0EpUZYhq4sy 4WIi+3yTbY6w6i+rPOgiSsYNxCLXWIgylbB0ecNDt4t6NfiIRxXiX3FFTlaXB3sNmfU+ G00ztBdGYzaTVB+4Z8RzW1AUL2oFER/0YRyF6Cs6KQj/LfoAmHHIUIAP0eWrzFRdPZUw bFijGrBtftqp03PJpvJNj+15WxzvRKxGD0B8NwuM8amDvyZaSuwEnCk03IubPQRoFIrC K8XQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="Y/T0koT0"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-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 c189-20020a6335c6000000b004302c6cb4c3si25677791pga.767.2022.09.16.21.16.49; Fri, 16 Sep 2022 21:17:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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="Y/T0koT0"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-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 S229379AbiIQEGD (ORCPT + 99 others); Sat, 17 Sep 2022 00:06:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50966 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229495AbiIQEF7 (ORCPT ); Sat, 17 Sep 2022 00:05:59 -0400 Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 216F165562; Fri, 16 Sep 2022 21:05:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1663387558; x=1694923558; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=8egC0iJIchIflEUw3SgvHUHfLLT8j/1o/nymXrl1Dz0=; b=Y/T0koT0RalL/dLfFWb93lVnLTdiG0yNz8mdEQH083anTZzv1no26ttx 9u2ws4uSFaY74weCnGPZtg0torkqwVskYSz4UzUcPJZue+1nefKWojvvW dEy/5lkdLhdWOIPAoScYsJtLB75rHppIm1T2kgzdyAuN13SAoQdUFOhaz Fpt+mLHxVRMwnjnIgtfdFD4xNCzTPM5eeDYmY9Im+49Zn6pVjwkh9HhMm phKcl/WlpSVNCPTuQdbVwPmX5tyEekCClOqKFH/nmuywDN8UEX6nbmLt0 lKitGXvJ6xkVunwGlEJtIWYIKIjsgHszbME98sEZvL66Eh2yarWUi0GEy Q==; X-IronPort-AV: E=McAfee;i="6500,9779,10472"; a="286163637" X-IronPort-AV: E=Sophos;i="5.93,322,1654585200"; d="scan'208";a="286163637" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Sep 2022 21:05:57 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.93,322,1654585200"; d="scan'208";a="686366464" Received: from lkp-server02.sh.intel.com (HELO 41300c7200ea) ([10.239.97.151]) by fmsmga004.fm.intel.com with ESMTP; 16 Sep 2022 21:05:54 -0700 Received: from kbuild by 41300c7200ea with local (Exim 4.96) (envelope-from ) id 1oZP5V-0002Sg-2x; Sat, 17 Sep 2022 04:05:53 +0000 Date: Sat, 17 Sep 2022 12:05:04 +0800 From: kernel test robot To: Colin Foster , linux-kernel@vger.kernel.org, netdev@vger.kernel.org Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org, Paolo Abeni , Jakub Kicinski , Eric Dumazet , UNGLinuxDriver@microchip.com, Alexandre Belloni , Claudiu Manoil , Vladimir Oltean Subject: Re: [PATCH v1 net-next 1/2] net: mscc: ocelot: utilize readx_poll_timeout() for chip reset Message-ID: <202209171105.95JOLHu6-lkp@intel.com> References: <20220916191349.1659269-2-colin.foster@in-advantage.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220916191349.1659269-2-colin.foster@in-advantage.com> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,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 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Colin, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on net-next/master] url: https://github.com/intel-lab-lkp/linux/commits/Colin-Foster/clean-up-ocelot_reset-routine/20220917-031554 base: https://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git 862deb68c1bc19783ab7a98ba17a441aa76eba52 config: x86_64-allyesconfig (https://download.01.org/0day-ci/archive/20220917/202209171105.95JOLHu6-lkp@intel.com/config) compiler: clang version 14.0.6 (https://github.com/llvm/llvm-project f28c006a5895fc0e329fe15fead81e37457cb1d1) 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/11df0e8e7af298721b4bb1af286571272dd0d56e git remote add linux-review https://github.com/intel-lab-lkp/linux git fetch --no-tags linux-review Colin-Foster/clean-up-ocelot_reset-routine/20220917-031554 git checkout 11df0e8e7af298721b4bb1af286571272dd0d56e # 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/ethernet/mscc/ If you fix the issue, kindly add following tag where applicable Reported-by: kernel test robot All warnings (new ones prefixed by >>): >> drivers/net/ethernet/mscc/ocelot_vsc7514.c:222:6: warning: cast to 'void *' from smaller integer type 'int' [-Wint-to-void-pointer-cast] if (IS_ERR_VALUE(err)) ^~~~~~~~~~~~~~~~~ include/linux/err.h:22:49: note: expanded from macro 'IS_ERR_VALUE' #define IS_ERR_VALUE(x) unlikely((unsigned long)(void *)(x) >= (unsigned long)-MAX_ERRNO) ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/compiler.h:78:42: note: expanded from macro 'unlikely' # define unlikely(x) __builtin_expect(!!(x), 0) ^ 1 warning generated. vim +222 drivers/net/ethernet/mscc/ocelot_vsc7514.c 208 209 static int ocelot_reset(struct ocelot *ocelot) 210 { 211 int err; 212 u32 val; 213 214 regmap_field_write(ocelot->regfields[SYS_RESET_CFG_MEM_INIT], 1); 215 regmap_field_write(ocelot->regfields[SYS_RESET_CFG_MEM_ENA], 1); 216 217 /* MEM_INIT is a self-clearing bit. Wait for it to be cleared (should be 218 * 100us) before enabling the switch core. 219 */ 220 err = readx_poll_timeout(ocelot_mem_init_status, ocelot, val, !val, 221 MEM_INIT_SLEEP_US, MEM_INIT_TIMEOUT_US); > 222 if (IS_ERR_VALUE(err)) 223 return err; 224 225 regmap_field_write(ocelot->regfields[SYS_RESET_CFG_MEM_ENA], 1); 226 regmap_field_write(ocelot->regfields[SYS_RESET_CFG_CORE_ENA], 1); 227 228 return 0; 229 } 230 -- 0-DAY CI Kernel Test Service https://01.org/lkp