Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp2875416rdh; Mon, 27 Nov 2023 00:36:37 -0800 (PST) X-Google-Smtp-Source: AGHT+IFIOn5B60ifoQQWDAGlkyjwmeHiCzsyt4w8jX1Klo+8+VSprDYs3Xi8h2EYcxZxKrbPyKBE X-Received: by 2002:a17:90b:3143:b0:285:ad29:40b8 with SMTP id ip3-20020a17090b314300b00285ad2940b8mr6698608pjb.9.1701074197574; Mon, 27 Nov 2023 00:36:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701074197; cv=none; d=google.com; s=arc-20160816; b=jJlkhTgbWXWALJBDt5sCTpQThS0cFvLel6TJXazC6yvttpBCCQmVQmp7lKwrSkGo+J ZzZ7hKTMpY2S1SyJJGqAqWVcdbDqE0ps+/hE++gBG6OVs0lWmRGPFJ0mTAc7Lu51mcMp JSpR4znMeuX27lEzuRpm6zukMdK0cqprykdC+dlVVsnVc70Iw5scO7CrT5iVXJJmFu7p SYLhxJSczmqHrXumdKKH14nvZLPpmaa2wq/Hl2X90x+osYGlV1c5h8v138OohjmMFewY DOQigkuX28frolpF1qolBpypWj5ieBHv3xXtONVgx9GIVZQT/EGJbNY15/04a2T78rS2 bs9g== 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=vey4hqjzFTRvyIRb0qswUerSfEoKn3cLCjQDKizCM1U=; fh=BXks9LXFydtAw3LShMj0/u8dToWywg2zRHUKu2FazAA=; b=cnapKk1LLecOQ/TwTKs3SrKFlPuQSKhBI+rZk31O412xrYsF+N2UcQMPIu82t+zxOu rj6s/RESBQzqUkdkZnSqGXTM1rZc5HPWgLLb921VD92FvtwQK3Dl7eDQJ5F+xwLAru6x gtz+w/ujEvzvmBnIfVsJBkRG/bl+o30VNdpL49oy349Dyh4xTQAlphdGTK4xwKnCCwKo 3f6zyoZnwU8Bg9cuU466oOA/x/lrKh+3qFsdRhFOhRdJKP9CZ8AFEwQbdlBL4RMCjiCt 12jwA5iMRIhawGHbANEKVpAey3PLx8IZFuxAiqFPme/n1+s3owQeccBovwomvHROY9uj pP0Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=db++Bv4s; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 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 lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id o2-20020a17090aac0200b00285a910661esi4387664pjq.10.2023.11.27.00.36.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Nov 2023 00:36:37 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=db++Bv4s; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id E7001806717E; Mon, 27 Nov 2023 00:36:34 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232649AbjK0IgS (ORCPT + 99 others); Mon, 27 Nov 2023 03:36:18 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57854 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232558AbjK0IgR (ORCPT ); Mon, 27 Nov 2023 03:36:17 -0500 Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.65]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A67DA181 for ; Mon, 27 Nov 2023 00:36:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1701074183; x=1732610183; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=OMiaSPz2lvh6rMJ9002RnlhoTiuoF3QujEVFdhr1e2Y=; b=db++Bv4s22sRIpsvO4hzsoQ77e4dTY5i0CBrKvt98tu6q0T/TC7EOYQo nROG3RT3kJOK6NnCd3iYJdCv0KmM8zjoDAmjSklEptcQ6lFgSpdaEEGFI 1UHDSWBZTT8gQf9a2MAi0Io4c43MC9HWlPmFkkYN2kNLGbkA5kfq/Z9yx PPO5PYhRDlYBHQytDFdY42aWzSWK0N4KdMeUXQbvzEZcKq6tQkV2N1jfx b8zsM6tSw7/ni2wEVGzyDjsDk67xnT5qo36gOAn/wrhwuTGAt1CaO+zQZ nHdwHll/AgRsDiJwfQGaBc2ZucN1Z6MY6sua6wcrVpz3EMcRrBioCKred w==; X-IronPort-AV: E=McAfee;i="6600,9927,10906"; a="396568148" X-IronPort-AV: E=Sophos;i="6.04,230,1695711600"; d="scan'208";a="396568148" Received: from orviesa002.jf.intel.com ([10.64.159.142]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Nov 2023 00:36:23 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.04,230,1695711600"; d="scan'208";a="9564110" Received: from lkp-server01.sh.intel.com (HELO d584ee6ebdcc) ([10.239.97.150]) by orviesa002.jf.intel.com with ESMTP; 27 Nov 2023 00:36:21 -0800 Received: from kbuild by d584ee6ebdcc with local (Exim 4.96) (envelope-from ) id 1r7X6H-00063z-2s; Mon, 27 Nov 2023 08:36:17 +0000 Date: Mon, 27 Nov 2023 16:35:26 +0800 From: kernel test robot To: Jisheng Zhang , Paul Walmsley , Palmer Dabbelt , Albert Ou Cc: oe-kbuild-all@lists.linux.dev, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] riscv: mm: still create swiotlb buffer for kmalloc() bouncing if required Message-ID: <202311271323.n71NKhJ5-lkp@intel.com> References: <20231126162528.2411-1-jszhang@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231126162528.2411-1-jszhang@kernel.org> X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Mon, 27 Nov 2023 00:36:35 -0800 (PST) Hi Jisheng, kernel test robot noticed the following build errors: [auto build test ERROR on linus/master] [also build test ERROR on v6.7-rc3 next-20231127] [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/Jisheng-Zhang/riscv-mm-still-create-swiotlb-buffer-for-kmalloc-bouncing-if-required/20231127-014531 base: linus/master patch link: https://lore.kernel.org/r/20231126162528.2411-1-jszhang%40kernel.org patch subject: [PATCH] riscv: mm: still create swiotlb buffer for kmalloc() bouncing if required config: riscv-randconfig-002-20231127 (https://download.01.org/0day-ci/archive/20231127/202311271323.n71NKhJ5-lkp@intel.com/config) compiler: riscv64-linux-gcc (GCC) 13.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231127/202311271323.n71NKhJ5-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/202311271323.n71NKhJ5-lkp@intel.com/ All errors (new ones prefixed by >>): arch/riscv/mm/init.c: In function 'mem_init': >> arch/riscv/mm/init.c:171:13: error: 'dma_cache_alignment' undeclared (first use in this function); did you mean 'dma_get_cache_alignment'? 171 | dma_cache_alignment != 1) { | ^~~~~~~~~~~~~~~~~~~ | dma_get_cache_alignment arch/riscv/mm/init.c:171:13: note: each undeclared identifier is reported only once for each function it appears in vim +171 arch/riscv/mm/init.c 169 170 if (IS_ENABLED(CONFIG_DMA_BOUNCE_UNALIGNED_KMALLOC) && !swiotlb && > 171 dma_cache_alignment != 1) { 172 /* 173 * If no bouncing needed for ZONE_DMA, allocate 1MB swiotlb 174 * buffer per 1GB of RAM for kmalloc() bouncing on 175 * non-coherent platforms. 176 */ 177 unsigned long size = 178 DIV_ROUND_UP(memblock_phys_mem_size(), 1024); 179 swiotlb_adjust_size(min(swiotlb_size_or_default(), size)); 180 swiotlb = true; 181 } 182 183 swiotlb_init(swiotlb, SWIOTLB_VERBOSE); 184 memblock_free_all(); 185 186 print_vm_layout(); 187 } 188 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki