Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp8617985rwp; Wed, 19 Jul 2023 12:34:05 -0700 (PDT) X-Google-Smtp-Source: APBJJlFhdb85OPw7JwCwu4d2EIlEze/8QMQu3UJ21SuvUCcLIUyoFsZJ87O03TQJ11qOPvTRHap3 X-Received: by 2002:a05:6a00:2312:b0:67a:b045:e290 with SMTP id h18-20020a056a00231200b0067ab045e290mr4091613pfh.4.1689795245502; Wed, 19 Jul 2023 12:34:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689795245; cv=none; d=google.com; s=arc-20160816; b=rX7iMTwT5JrCD0w+njT08twMABiCX4WQR6p8hFptJ86rWMczRrY9Sxs7yosq/pjm9j TbMy/BTpqcj8jzuaPNnXmhK8RKblCEIUlMG1g8j14oloeVRagiNjAKCs+WUzVuRz4eGR d9dr6g8ma/0GKJVNd28utNykqVN4Sinv/FNCEPP//VHMwCbpmQuWQh+89tfv3tUPLGFx +uK7Zk9gkquAX7jsBc8kXAxfAGP+dk45bAck1E2bYzaF1RsI6otLNhLERxbZfO4/0pWW 5Fcc8cJ7ffL6VG99WewZGA+ldxlqfBvtuBJ8ESKK5CovvGPPZeFyrKj0YWLEoRBdXple TxLQ== 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=Tp9m0QE3ETcCX6P1PcjWtDxSdDKar5YWR7XsvUEgQuM=; fh=85SMEEYa8bHpfbc+4ByX3Fbs1sgoGGEftgkUakMvkkM=; b=zIUAEN4RK8VVC5O7UVvMS4SXIbWSQmmBVXaJLOMY5XFk0UuJ/JVz3FT+3qE+0ApAqp bdI9AO9Y0DnIR4F23r7dYcy/y9cJGA7AJC0FFz3FKzJ3SSlNk1hZZi8tn+TG+1uZ3Mxc 9/OFA934HOZk1FOYhtWw+P2d/tgomnXJjevFXFImphoBIUhXCDt2zC19zgM/YIcxWQ3C ua+DIRbCSH8KV8lGFyRP3aLV1kF4Bgu9kTIEwoKOZmOe2tJ8ux0kiwpiCRF9AeoqnSOF y+VLTdgnGVG5Q1MVoTHBAn+YdCw6aVmc6RtUcHwaVFB+89tyjL4ZmVrUXW+OACuuzsxF nGmw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=SkEbiWXY; 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 n190-20020a6327c7000000b00553c6af75d5si4069475pgn.315.2023.07.19.12.33.53; Wed, 19 Jul 2023 12:34:05 -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=SkEbiWXY; 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 S230397AbjGSSzj (ORCPT + 99 others); Wed, 19 Jul 2023 14:55:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38384 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230218AbjGSSzi (ORCPT ); Wed, 19 Jul 2023 14:55:38 -0400 Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CE0E710CC; Wed, 19 Jul 2023 11:55:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1689792935; x=1721328935; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=VgOUC4K9fx66jXJxsabJ6cjLbIddps+gucTz9RAEk7M=; b=SkEbiWXYO5ZZQnGI6LJ4KL+gMJ84u5JXU7a5j7KWhLACPY7pEmkeHK5e BBm2lll6i0SZGtBoOA/jslbYZQmllDhx/P11Vi9znqR2Y3ExEx312kEJL r56mtr9dx5lxl/ClC4lpTET7stD6+tJB9GccIKRjsYjeJCVsc2jEd4tjl pyRlqEGwuDL4mW2fyxBUiScyEzrfKNjdS1AClYaTBy34qUtcOZKnXc9g6 mD6wTMzv4nIhwxzOE9QndvoRLM0R4rUndKu72bOB1twwVYBhp6Zcz9qL1 0xQNIr0SrhVu+ZF1jykzYJtvLWkhCDsQFAANOSPTkh/1eMlXaAGz/GU/6 w==; X-IronPort-AV: E=McAfee;i="6600,9927,10776"; a="366586882" X-IronPort-AV: E=Sophos;i="6.01,216,1684825200"; d="scan'208";a="366586882" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Jul 2023 11:55:35 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10776"; a="848148918" X-IronPort-AV: E=Sophos;i="6.01,216,1684825200"; d="scan'208";a="848148918" Received: from lkp-server02.sh.intel.com (HELO 36946fcf73d7) ([10.239.97.151]) by orsmga004.jf.intel.com with ESMTP; 19 Jul 2023 11:55:29 -0700 Received: from kbuild by 36946fcf73d7 with local (Exim 4.96) (envelope-from ) id 1qMCKf-0005OE-0T; Wed, 19 Jul 2023 18:55:29 +0000 Date: Thu, 20 Jul 2023 02:54:50 +0800 From: kernel test robot To: Johannes Zink , Giuseppe Cavallaro , Alexandre Torgue , Jose Abreu , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Maxime Coquelin , Richard Cochran , Russell King Cc: oe-kbuild-all@lists.linux.dev, netdev@vger.kernel.org, patchwork-jzi@pengutronix.de, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Johannes Zink Subject: Re: [PATCH] net: stmmac: correct MAC propagation delay Message-ID: <202307200225.B8rmKQPN-lkp@intel.com> References: <20230719-stmmac_correct_mac_delay-v1-1-768aa4d09334@pengutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230719-stmmac_correct_mac_delay-v1-1-768aa4d09334@pengutronix.de> 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, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED 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 Johannes, kernel test robot noticed the following build errors: [auto build test ERROR on 36395b2efe905650cd179d67411ffee3b770268b] url: https://github.com/intel-lab-lkp/linux/commits/Johannes-Zink/net-stmmac-correct-MAC-propagation-delay/20230719-221258 base: 36395b2efe905650cd179d67411ffee3b770268b patch link: https://lore.kernel.org/r/20230719-stmmac_correct_mac_delay-v1-1-768aa4d09334%40pengutronix.de patch subject: [PATCH] net: stmmac: correct MAC propagation delay config: i386-randconfig-i002-20230720 (https://download.01.org/0day-ci/archive/20230720/202307200225.B8rmKQPN-lkp@intel.com/config) compiler: gcc-12 (Debian 12.2.0-14) 12.2.0 reproduce: (https://download.01.org/0day-ci/archive/20230720/202307200225.B8rmKQPN-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/202307200225.B8rmKQPN-lkp@intel.com/ All errors (new ones prefixed by >>): ld: drivers/net/ethernet/stmicro/stmmac/stmmac_hwtstamp.o: in function `correct_latency': >> drivers/net/ethernet/stmicro/stmmac/stmmac_hwtstamp.c:83: undefined reference to `__udivdi3' vim +83 drivers/net/ethernet/stmicro/stmmac/stmmac_hwtstamp.c 62 63 static void correct_latency(struct stmmac_priv *priv) 64 { 65 void __iomem *ioaddr = priv->ptpaddr; 66 u32 reg_tsic, reg_tsicsns; 67 u32 reg_tsec, reg_tsecsns; 68 u64 scaled_ns; 69 u32 val; 70 71 /* MAC-internal ingress latency */ 72 scaled_ns = readl(ioaddr + PTP_TS_INGR_LAT); 73 74 /* See section 11.7.2.5.3.1 "Ingress Correction" on page 4001 of 75 * i.MX8MP Applications Processor Reference Manual Rev. 1, 06/2021 76 */ 77 val = readl(ioaddr + PTP_TCR); 78 if (val & PTP_TCR_TSCTRLSSR) 79 /* nanoseconds field is in decimal format with granularity of 1ns/bit */ 80 scaled_ns = (NSEC_PER_SEC << 16) - scaled_ns; 81 else 82 /* nanoseconds field is in binary format with granularity of ~0.466ns/bit */ > 83 scaled_ns = ((1ULL << 31) << 16) - scaled_ns * PSEC_PER_NSEC / 466; 84 85 reg_tsic = scaled_ns >> 16; 86 reg_tsicsns = scaled_ns & 0xff00; 87 88 /* set bit 31 for 2's compliment */ 89 reg_tsic |= BIT(31); 90 91 writel(reg_tsic, ioaddr + PTP_TS_INGR_CORR_NS); 92 writel(reg_tsicsns, ioaddr + PTP_TS_INGR_CORR_SNS); 93 94 /* MAC-internal egress latency */ 95 scaled_ns = readl(ioaddr + PTP_TS_EGR_LAT); 96 97 reg_tsec = scaled_ns >> 16; 98 reg_tsecsns = scaled_ns & 0xff00; 99 100 writel(reg_tsec, ioaddr + PTP_TS_EGR_CORR_NS); 101 writel(reg_tsecsns, ioaddr + PTP_TS_EGR_CORR_SNS); 102 } 103 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki