Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp2244364rwb; Thu, 19 Jan 2023 23:43:46 -0800 (PST) X-Google-Smtp-Source: AMrXdXtS5tb+J2efQJK3t0pUwz9d1P/epCoysRs6B//WO+kDX2R4ABi6gZfdvTZWBriZfBxUtHip X-Received: by 2002:a17:906:37ca:b0:871:14fc:a299 with SMTP id o10-20020a17090637ca00b0087114fca299mr16749251ejc.1.1674200626747; Thu, 19 Jan 2023 23:43:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674200626; cv=none; d=google.com; s=arc-20160816; b=Jg84mbfZg6y96IT/EA1/tAwtL0M3ONFV04dt2ZgyHDhGA5tLtnUmEHVcTFG0iYkHJ0 pjXRRFOfWfyrLMlMv7nK5jvsDysClnErzU/1O+rqCrr0fyMM6TtOyodMT4vvyuNb+4Kj ljCPHkGBi071fnkMhJ3oGGnDTA3IzIFRbkxEtrqFOLvlzbTEq/Htci3605czwZ2Fy/a5 KQoaJ68moyz7w2uvOEBgPGATCSEMqUGeEgwPJ+s1r7LeIM9hNnQIamSMHc8wuB8/DluB 5wCj1GQ8fT8MbZn8JrEpg2cf39NCDG/pm8ZzQJvrpHsA9lid1q7TI+KSy88MyOGg3xnU XPwA== 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=bExRico1f6Bxr9RdyfY3eDSRsALtb4SZcGBpyZ1zBBo=; b=ytJLe/YBNXSr6QRr5Q1M4mIphb4216GT2ycMnB2VRgZPJYDTTu2/ZVnLfhQqTnfYoU lTqOKKA3YeBgVy0GkARfrHHCYq9Gg0crhJAnmYTir2adhzZC0advxwirRicuKmUvEcFv I2YALIdP4eHZWzPtPz0AJO5+/IqlFQGkQ6axm/Oq+9gdjHQTnevp58q1aVBmWV6xd5Zm bYtKo43FN9IktNgl0BgPDCmOMBF7xTkxjHWpFvQ/czl0wzG+kDnOCG6Zi+dd/qgT6DTw JZC+gzKbwTUGmX4WFvMSvQ8CnsDKgdLbP2P7Uk/GGvE7DZD9k5oE0KCWApWsafJmjNKi Iedg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=icRqwdHL; 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 qf17-20020a1709077f1100b007c17420be5bsi17181621ejc.178.2023.01.19.23.43.35; Thu, 19 Jan 2023 23:43:46 -0800 (PST) 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=icRqwdHL; 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 S230180AbjATHeJ (ORCPT + 47 others); Fri, 20 Jan 2023 02:34:09 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40236 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229445AbjATHeG (ORCPT ); Fri, 20 Jan 2023 02:34:06 -0500 Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DAD0F79E8B for ; Thu, 19 Jan 2023 23:33:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1674200035; x=1705736035; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=sLL9QoGxqkEaaB47NwJbqBPEl2IkXtitMSibR3HLLjw=; b=icRqwdHLXTUdqQpNJX9pBbcMlcA+5/aCOwGxDJishCcp1ww09sCzn7PC p8VbPuOOSanJJDu1MkzM1m4cAtm1kTdgSdc+AKhlbGomZ7c92d3TWR7Bj IWMg4GVfe7cm6fiQEyicjI453gkSII+8yYxeulrVZhxH1frrjWtRhgC+f nQXnArY+Qd4Pki+6u7PDfWOJ+F3gdJ5TGK5yw+U80EnefjXTiaQf9dhjU QG65VRAufnZavx/739kV2adr6qxIjDzQ58kNgCWiKLaCmJzXi3EnC5ffL RCXkYXPOj8Fw/Sp7MFSwqrpORlncOyiJa+bjps2sAPZb5za1yW8dX8Tv0 w==; X-IronPort-AV: E=McAfee;i="6500,9779,10595"; a="326802315" X-IronPort-AV: E=Sophos;i="5.97,231,1669104000"; d="scan'208";a="326802315" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Jan 2023 23:33:55 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10595"; a="690960207" X-IronPort-AV: E=Sophos;i="5.97,231,1669104000"; d="scan'208";a="690960207" Received: from lkp-server01.sh.intel.com (HELO 5646d64e7320) ([10.239.97.150]) by orsmga008.jf.intel.com with ESMTP; 19 Jan 2023 23:33:52 -0800 Received: from kbuild by 5646d64e7320 with local (Exim 4.96) (envelope-from ) id 1pIluE-0002Ka-3D; Fri, 20 Jan 2023 07:33:46 +0000 Date: Fri, 20 Jan 2023 15:33:43 +0800 From: kernel test robot To: Jesse Taube , linux-riscv@lists.infradead.org Cc: oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org, Jesse Taube , Yimin Gu , Waldemar Brodkorb , Albert Ou , Palmer Dabbelt , Paul Walmsley Subject: Re: [PATCH v1 1/2] riscv: Kconfig: Allow RV32 to build with no MMU Message-ID: <202301201538.zNlqgE4L-lkp@intel.com> References: <20230119052642.1112171-2-Mr.Bossman075@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230119052642.1112171-2-Mr.Bossman075@gmail.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 Jesse, Thank you for the patch! Yet something to improve: [auto build test ERROR on linus/master] [also build test ERROR on v6.2-rc4 next-20230120] [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/Jesse-Taube/riscv-Kconfig-Allow-RV32-to-build-with-no-MMU/20230119-132822 patch link: https://lore.kernel.org/r/20230119052642.1112171-2-Mr.Bossman075%40gmail.com patch subject: [PATCH v1 1/2] riscv: Kconfig: Allow RV32 to build with no MMU config: riscv-randconfig-c003-20230119 (https://download.01.org/0day-ci/archive/20230120/202301201538.zNlqgE4L-lkp@intel.com/config) compiler: riscv32-linux-gcc (GCC) 12.1.0 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/4c6876d890ddeab1fb2cb42889027c6d1dbdd02f git remote add linux-review https://github.com/intel-lab-lkp/linux git fetch --no-tags linux-review Jesse-Taube/riscv-Kconfig-Allow-RV32-to-build-with-no-MMU/20230119-132822 git checkout 4c6876d890ddeab1fb2cb42889027c6d1dbdd02f # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=riscv olddefconfig COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=riscv SHELL=/bin/bash If you fix the issue, kindly add following tag where applicable | Reported-by: kernel test robot All errors (new ones prefixed by >>): riscv32-linux-ld: drivers/clk/clk-k210.o: in function `k210_pll_get_rate': >> drivers/clk/clk-k210.c:498: undefined reference to `__udivdi3' vim +498 drivers/clk/clk-k210.c c6ca7616f7d5c2 Damien Le Moal 2021-02-10 480 c6ca7616f7d5c2 Damien Le Moal 2021-02-10 481 static unsigned long k210_pll_get_rate(struct clk_hw *hw, c6ca7616f7d5c2 Damien Le Moal 2021-02-10 482 unsigned long parent_rate) c6ca7616f7d5c2 Damien Le Moal 2021-02-10 483 { c6ca7616f7d5c2 Damien Le Moal 2021-02-10 484 struct k210_pll *pll = to_k210_pll(hw); c6ca7616f7d5c2 Damien Le Moal 2021-02-10 485 u32 reg = readl(pll->reg); c6ca7616f7d5c2 Damien Le Moal 2021-02-10 486 u32 r, f, od; c6ca7616f7d5c2 Damien Le Moal 2021-02-10 487 c6ca7616f7d5c2 Damien Le Moal 2021-02-10 488 if (reg & K210_PLL_BYPASS) c6ca7616f7d5c2 Damien Le Moal 2021-02-10 489 return parent_rate; c6ca7616f7d5c2 Damien Le Moal 2021-02-10 490 c6ca7616f7d5c2 Damien Le Moal 2021-02-10 491 if (!(reg & K210_PLL_PWRD)) c6ca7616f7d5c2 Damien Le Moal 2021-02-10 492 return 0; c6ca7616f7d5c2 Damien Le Moal 2021-02-10 493 c6ca7616f7d5c2 Damien Le Moal 2021-02-10 494 r = FIELD_GET(K210_PLL_CLKR, reg) + 1; c6ca7616f7d5c2 Damien Le Moal 2021-02-10 495 f = FIELD_GET(K210_PLL_CLKF, reg) + 1; c6ca7616f7d5c2 Damien Le Moal 2021-02-10 496 od = FIELD_GET(K210_PLL_CLKOD, reg) + 1; c6ca7616f7d5c2 Damien Le Moal 2021-02-10 497 c6ca7616f7d5c2 Damien Le Moal 2021-02-10 @498 return (u64)parent_rate * f / (r * od); c6ca7616f7d5c2 Damien Le Moal 2021-02-10 499 } c6ca7616f7d5c2 Damien Le Moal 2021-02-10 500 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests