Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp2760571rdh; Sun, 26 Nov 2023 19:14:01 -0800 (PST) X-Google-Smtp-Source: AGHT+IHu7z/8SuUZvmPthwRFgJQKT/uNNcUpnenETStEYVB8NA5yToONL5DNLSUxzjioHPzIiHoj X-Received: by 2002:a17:90b:1643:b0:285:9a7f:30cc with SMTP id il3-20020a17090b164300b002859a7f30ccmr8603217pjb.46.1701054840781; Sun, 26 Nov 2023 19:14:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701054840; cv=none; d=google.com; s=arc-20160816; b=OWDawovtHmALD0iNCmrbZXtKMAlRdwZ/5mXAZYLuzbNKUcCoQSn9YPhJkBhwiDNiaY 3SMJGS/QrSBuS6teK1NyHpYQFndPbtvcaljHk5PLuyfkHzrYQfVxDOq6iTJ4gDOMGRDD DUwfBFPfvt27lPAsNJIDLUhrviuDTEFJz2hslMKU49BRrKzeaTlVHNbIIuYC92nYQChD pntN2bTfFcJOVxtMddvHuUI8dv3nlq5k8m+l/nxSgxkECVEBZojHC7MYlyuXo+30A10P 2+CPc0OlX5WnRJsnD0UnYKsQS9uQ08dllLMj95dLX0lxJfrCAGol2Yc+JedXMZnQX6dX p1xg== 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=5s0PzsvfcZQsvLXTXgt8UYuGdp6i3r8WT96nfPjP/iM=; fh=nfUji9eqmRmRgG+Lsd/nLe7KqjPO1CP1l427hNNSeXg=; b=h6iGjbctILGo1E8756jk4lfZYxnsk27LqzrR7vmllXYbveaLkIjflfCXhEsN8fVUyB cHLvQ0XPF7RYinoKRowALUAwuCPuwsxv9H//jszKhf8DRTfWe++NbuqlnaBW+5wteGHW Tq8jqyIrHFpwrzaRhr4JmNa5CvO8S85OFowV/ANC45INs3m8kEEKYbVblRvz/He9G5+h POQNOeDmne6+3bCN+R7mpgViueG/gH1fqeaYBI86EI7Qz/91PM51x7mrk3BCVYNWseCv JUtQ7YQgYwGl8elW2iV2+rPZ2RqGCZJOAbmYH8zqxw8EA+AX/z2O3taCZEucF3pwooOm ss2A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=NDxQMx1j; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 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 fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id o4-20020a17090ad24400b002859a66662csi5632081pjw.13.2023.11.26.19.14.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 26 Nov 2023 19:14:00 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=NDxQMx1j; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 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 fry.vger.email (Postfix) with ESMTP id 1005C8087B5A; Sun, 26 Nov 2023 19:13:58 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231518AbjK0DN1 (ORCPT + 99 others); Sun, 26 Nov 2023 22:13:27 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52768 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231599AbjK0DN0 (ORCPT ); Sun, 26 Nov 2023 22:13:26 -0500 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.120]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A4A73134 for ; Sun, 26 Nov 2023 19:13:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1701054812; x=1732590812; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=FSddWG7ipoD6ZnLhFi4L7CqLWKepVOAVVFtBLcCGzLI=; b=NDxQMx1jtPK1ydxHICsi0shMasd9i+7t1Qiw0UCPfIvg0w8AAmMllKcf WVA4Zogpsmocs+koJ/Sty7ST7NmaVKkvaMoD50/3t39BICOsyGAyA3QmE 6gUWMKQnmAyQclTOFN5PAuK5onY+UaLbC/LpzRZ1Hbc36oCZwkvfGlOaW UGvXCEthALVHhRkG6Pe6t26K+fN28akP8taTYGtpRlmEZBYJmgxPCWuw6 b8zTu1vifJTo3DRVjfNOgSpQNTOZns9e+yVfSAhxRSUm80e2RroIyleCD O8ugBzLCVzgYYORlFOWwkWrCYxJQ5Y/r3KHpSVfhOhbGS/Nor/LIMEJrj Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10906"; a="391501044" X-IronPort-AV: E=Sophos;i="6.04,229,1695711600"; d="scan'208";a="391501044" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Nov 2023 19:13:23 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10906"; a="858900703" X-IronPort-AV: E=Sophos;i="6.04,229,1695711600"; d="scan'208";a="858900703" Received: from lkp-server01.sh.intel.com (HELO d584ee6ebdcc) ([10.239.97.150]) by FMSMGA003.fm.intel.com with ESMTP; 26 Nov 2023 19:13:21 -0800 Received: from kbuild by d584ee6ebdcc with local (Exim 4.96) (envelope-from ) id 1r7S3j-0005ml-1p; Mon, 27 Nov 2023 03:13:19 +0000 Date: Mon, 27 Nov 2023 11:12:44 +0800 From: kernel test robot To: Jisheng Zhang , Paul Walmsley , Palmer Dabbelt , Albert Ou Cc: llvm@lists.linux.dev, 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: <202311270934.fETTDQTa-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 fry.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 (fry.vger.email [0.0.0.0]); Sun, 26 Nov 2023 19:13:58 -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-rc2 next-20231124] [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-allnoconfig (https://download.01.org/0day-ci/archive/20231127/202311270934.fETTDQTa-lkp@intel.com/config) compiler: clang version 17.0.0 (https://github.com/llvm/llvm-project.git 4a5ac14ee968ff0ad5d2cc1ffa0299048db4c88a) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231127/202311270934.fETTDQTa-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/202311270934.fETTDQTa-lkp@intel.com/ All errors (new ones prefixed by >>): >> arch/riscv/mm/init.c:171:6: error: use of undeclared identifier 'dma_cache_alignment'; did you mean 'dma_get_cache_alignment'? 171 | dma_cache_alignment != 1) { | ^~~~~~~~~~~~~~~~~~~ | dma_get_cache_alignment include/linux/dma-mapping.h:541:19: note: 'dma_get_cache_alignment' declared here 541 | static inline int dma_get_cache_alignment(void) | ^ 1 error generated. 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