From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0DBEFC76196 for ; Thu, 23 Mar 2023 17:12:54 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 99BA96B0072; Thu, 23 Mar 2023 13:12:53 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 94BCA6B0074; Thu, 23 Mar 2023 13:12:53 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 813196B0075; Thu, 23 Mar 2023 13:12:53 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0014.hostedemail.com [216.40.44.14]) by kanga.kvack.org (Postfix) with ESMTP id 6F3956B0072 for ; Thu, 23 Mar 2023 13:12:53 -0400 (EDT) Received: from smtpin15.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay03.hostedemail.com (Postfix) with ESMTP id 2FFC6A06C7 for ; Thu, 23 Mar 2023 17:12:53 +0000 (UTC) X-FDA: 80600807826.15.5BF99C7 Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by imf07.hostedemail.com (Postfix) with ESMTP id 5E12D4001C for ; Thu, 23 Mar 2023 17:12:50 +0000 (UTC) Authentication-Results: imf07.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=X6Hj4JTG; dmarc=pass (policy=none) header.from=intel.com; spf=pass (imf07.hostedemail.com: domain of lkp@intel.com designates 192.55.52.120 as permitted sender) smtp.mailfrom=lkp@intel.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1679591571; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=V04mSwHP7XAt7zOnDmylfSjkYjN1ZNp1zOST/+5z590=; b=Fd1/bh7auwTDAsfA/uj/YZiL5QOIA4CQcKiOUoFEmPT53Hhs6cNXY2BtsgaumJzSLomFu/ YaRJKLhXEYyGj+EcEyp2FEwwbcMvyqF0v0N/tt8xLSySiOnPWBn7Ysfj2SiiurZkwvwi+K /XsLDlpE1wlHcoHM3cFvyDHu0cVgLjU= ARC-Authentication-Results: i=1; imf07.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=X6Hj4JTG; dmarc=pass (policy=none) header.from=intel.com; spf=pass (imf07.hostedemail.com: domain of lkp@intel.com designates 192.55.52.120 as permitted sender) smtp.mailfrom=lkp@intel.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1679591571; a=rsa-sha256; cv=none; b=ntIPHz1ku9VX7+yljmlDbog40n0CBbGyIlyMEjzZxhxOgHt0fioxUasYgcVwdm+kkk5xtQ rVPpF2Lu59zPTXweGag2yfXL5aJIdYTGCbPFWLaFHH731olQ15qAG2Fob76Qk235Y+bVNl s4/ooSIM65t6hTah2SNQE7qA4X3AclI= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1679591570; x=1711127570; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=bOk/bK3iytGpOoPzSN/P3lMEMqW4rV3s8Am9+KQ4/Qo=; b=X6Hj4JTGIVzvQ+S0sDoKrgtyu0ZLMyhD8+gVPwG9PMp6ttjXJRPEghyi 3pPNXFEIQ936u+od+I3lv8yVExf9sjSG0g/YwvQo4jWII8jZPu607K9jl o9dcMme5Mi29pfjWwSqQtC2ig1RmZQbzdzR8j/0oQ3OV2wgzf0f4oeMa9 7t5iAD34hCT8+i7buCmjW8ZcS0E3AWFVz2IG9pmiOl2TiuZhTKSZa4+/f Dw+rqZHcnT0EumDbU4NfztHCb58FI7E+9LH1NJIn7DU8Pwsu3PNZKsDq9 ovQjXKz4uleKGwFY7GMX2YExqKPJC0LR8EgoaqMBGvjjY4FhrBwRVhQGX w==; X-IronPort-AV: E=McAfee;i="6600,9927,10658"; a="338283363" X-IronPort-AV: E=Sophos;i="5.98,285,1673942400"; d="scan'208";a="338283363" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Mar 2023 10:12:48 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10658"; a="825909467" X-IronPort-AV: E=Sophos;i="5.98,285,1673942400"; d="scan'208";a="825909467" Received: from lkp-server01.sh.intel.com (HELO b613635ddfff) ([10.239.97.150]) by fmsmga001.fm.intel.com with ESMTP; 23 Mar 2023 10:12:41 -0700 Received: from kbuild by b613635ddfff with local (Exim 4.96) (envelope-from ) id 1pfOUO-000EZ8-0H; Thu, 23 Mar 2023 17:12:36 +0000 Date: Fri, 24 Mar 2023 01:11:39 +0800 From: kernel test robot To: Mike Rapoport , Andrew Morton Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, Linux Memory Management List , Arnd Bergmann , Catalin Marinas , Christophe Leroy , Dinh Nguyen , Geert Uytterhoeven , Guo Ren , John Paul Adrian Glaubitz , "Kirill A. Shutemov" , Max Filippov , Michael Ellerman , Mike Rapoport , Rich Felker , Russell King , Will Deacon , Yoshinori Sato , Zi Yan , linux-arm-kernel@lists.infradead.org, linux-csky@vger.kernel.org, linux-ia64@vger.kernel.org, linux-kernel@vger.kernel.org, linux-m68k@lists.linux-m68k.org, linux-sh@vger.kernel.org, linux-xtensa@linux-xtensa.org, linuxppc-dev@lists.ozlabs.org, sparclinux@vger.kernel.org Subject: Re: [PATCH 02/14] arm64: drop ranges in definition of ARCH_FORCE_MAX_ORDER Message-ID: <202303240155.01y6T6Fj-lkp@intel.com> References: <20230323092156.2545741-3-rppt@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230323092156.2545741-3-rppt@kernel.org> X-Rspam-User: X-Rspamd-Server: rspam02 X-Rspamd-Queue-Id: 5E12D4001C X-Stat-Signature: grkcs3nf7q8qe4q31wtrix3m618xo7da X-HE-Tag: 1679591570-618110 X-HE-Meta: U2FsdGVkX19kQieBm08XIx/daUIHguYZWpjjz8Th5FCF7jiXm44fDlOWDVZ7iv1agaQlJGO/+TiPDWYOC4CHyd9uQzaLmcZ7fy2N3diCcKoJWP/uq5MxiL63hgVffep9TO/+axTtEBnwfTuvbA5KybrMgyXYXwOHY2PLkAZwViel1JFHFhWGc3lSu6YhXjEiyuUbwM+O8ZtD2OyVh3pgCUfgcLJx4P0feu9KiWZk7MxwPICk/XpSvnpafk0QPPpmQG7/CBbTewYmXIHv6p+wu34QIRFvkWktf35X1xwyrYq3s7Nw5iUnFfVdiykGv2AqpvBkzE6A7/PA8zA09yS5/dn80ZML0+JvX9USGmb+ksoe0wBjWFRYMdD7pc73b7+gtwIDJIuY/e6wdZsPy6e7b5KggKZJRiYubMSHdU9gQO52Lzg5aEzs6Cc/CtpBp3wCP30DxVoznGvz92ZmBrX8vkdDg1XMRGVppgtc72YBAi+m6GO4poQe92jiQMCRzhbNl3uCikXhg3mfUqJKAe8YiMuL5apz9t/YaKo9zlImULRpzw44BgEKbZv6EzUmQ5GQBSE+js2O83+uE0dQKkDWNGLCl35LXpujKApPngVYMtxiSRXuXpy7mleccl+meoghopczb8Ohv8HHJoBbZOAparm5tvSuHxhW90C5e+6LKpU+x1dIX359NDINO1RrNkxuWBW8cWt+SXT6lbPGjyd4ItN81VNnno+noh1UNlnThGs/kZ5C/1o+rirVe8M9KmL7pX1faXFs+5Y79PtULlWp4os8RCvwz1IpxrI0B872s13y/M9iOaMVw9aiKO57QSkErY3+FWIxX1vkxB87VbhnunA8z3hegsANmTz5UOamoONoaQ50Zsh0Eewe7hI3nUyQRX/Rhs3kdevjsWWPfuyIZRwM2xUA6GtJWTdEYwAKRKwq/dY9jF9QNs0kg6UiofhVcFuA+ZZc5GOTi/HM6Xj 5Y0ufMk7 oAGCpWcg9dwm9q/ep5nZ++FtltLUEoeMTaGpqsuWZ2CctIpI07Sf5XN5L/MhJkuMsjrDlmzUSvhyi9aqqxwWGtP+y9FIe3W92un3oCw3agNONdimc0cOia42ufzHIUFBekKp43Bh3lwaSDlBfSQhgwHPehz2+JFjidveNkWsRNLTFfF3C+ikjXSq22znf5ZFlv2q8Y2DUlCgjosuZgSVa4dy2ZcBgP3T/YpDnI8WFsOx0Cb1tack5X1bXqsI6CeXE+1zTTsSrAvAss1WW0UwQ5W0bif9W1KxAvwfBwxCgBUZa3Gsb2cprphV1KrpbVdiWHOvN/n6n14eQTKeb2QmSzTC5+l+zw9Lv0wLj8wKerOZPxKC3Gtm3WEx+PYnjlpx5E2n586PeyGCvgjKCIo9C4oRXSKQ0Rnlyrkw8ejT3QIVr344c4WYt38Hw9ETqs9lZhnW4DrTQqwbIn5lt88joqmM+exGqZpOMBq+W X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: Hi Mike, Thank you for the patch! Yet something to improve: [auto build test ERROR on 51551d71edbc998fd8c8afa7312db3d270f5998e] url: https://github.com/intel-lab-lkp/linux/commits/Mike-Rapoport/arm-reword-ARCH_FORCE_MAX_ORDER-prompt-and-help-text/20230323-172512 base: 51551d71edbc998fd8c8afa7312db3d270f5998e patch link: https://lore.kernel.org/r/20230323092156.2545741-3-rppt%40kernel.org patch subject: [PATCH 02/14] arm64: drop ranges in definition of ARCH_FORCE_MAX_ORDER config: arm64-randconfig-r031-20230322 (https://download.01.org/0day-ci/archive/20230324/202303240155.01y6T6Fj-lkp@intel.com/config) compiler: clang version 17.0.0 (https://github.com/llvm/llvm-project 67409911353323ca5edf2049ef0df54132fa1ca7) 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 # install arm64 cross compiling tool for clang build # apt-get install binutils-aarch64-linux-gnu # https://github.com/intel-lab-lkp/linux/commit/0522f943c071abf1610651ea40405b7489c50987 git remote add linux-review https://github.com/intel-lab-lkp/linux git fetch --no-tags linux-review Mike-Rapoport/arm-reword-ARCH_FORCE_MAX_ORDER-prompt-and-help-text/20230323-172512 git checkout 0522f943c071abf1610651ea40405b7489c50987 # 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=arm64 olddefconfig COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=arm64 SHELL=/bin/bash drivers/iommu/ kernel/dma/ mm/ If you fix the issue, kindly add following tag where applicable | Reported-by: kernel test robot | Link: https://lore.kernel.org/oe-kbuild-all/202303240155.01y6T6Fj-lkp@intel.com/ All error/warnings (new ones prefixed by >>): >> mm/memory.c:5791:37: warning: shift count is negative [-Wshift-count-negative] if (unlikely(pages_per_huge_page > MAX_ORDER_NR_PAGES)) { ^~~~~~~~~~~~~~~~~~ include/linux/mmzone.h:33:31: note: expanded from macro 'MAX_ORDER_NR_PAGES' #define MAX_ORDER_NR_PAGES (1 << MAX_ORDER) ^ ~~~~~~~~~ include/linux/compiler.h:48:41: note: expanded from macro 'unlikely' # define unlikely(x) (__branch_check__(x, 0, __builtin_constant_p(x))) ^ include/linux/compiler.h:33:34: note: expanded from macro '__branch_check__' ______r = __builtin_expect(!!(x), expect); \ ^ >> mm/memory.c:5791:37: warning: shift count is negative [-Wshift-count-negative] if (unlikely(pages_per_huge_page > MAX_ORDER_NR_PAGES)) { ^~~~~~~~~~~~~~~~~~ include/linux/mmzone.h:33:31: note: expanded from macro 'MAX_ORDER_NR_PAGES' #define MAX_ORDER_NR_PAGES (1 << MAX_ORDER) ^ ~~~~~~~~~ include/linux/compiler.h:48:68: note: expanded from macro 'unlikely' # define unlikely(x) (__branch_check__(x, 0, __builtin_constant_p(x))) ^ include/linux/compiler.h:35:19: note: expanded from macro '__branch_check__' expect, is_constant); \ ^~~~~~~~~~~ mm/memory.c:5843:37: warning: shift count is negative [-Wshift-count-negative] if (unlikely(pages_per_huge_page > MAX_ORDER_NR_PAGES)) { ^~~~~~~~~~~~~~~~~~ include/linux/mmzone.h:33:31: note: expanded from macro 'MAX_ORDER_NR_PAGES' #define MAX_ORDER_NR_PAGES (1 << MAX_ORDER) ^ ~~~~~~~~~ include/linux/compiler.h:48:41: note: expanded from macro 'unlikely' # define unlikely(x) (__branch_check__(x, 0, __builtin_constant_p(x))) ^ include/linux/compiler.h:33:34: note: expanded from macro '__branch_check__' ______r = __builtin_expect(!!(x), expect); \ ^ mm/memory.c:5843:37: warning: shift count is negative [-Wshift-count-negative] if (unlikely(pages_per_huge_page > MAX_ORDER_NR_PAGES)) { ^~~~~~~~~~~~~~~~~~ include/linux/mmzone.h:33:31: note: expanded from macro 'MAX_ORDER_NR_PAGES' #define MAX_ORDER_NR_PAGES (1 << MAX_ORDER) ^ ~~~~~~~~~ include/linux/compiler.h:48:68: note: expanded from macro 'unlikely' # define unlikely(x) (__branch_check__(x, 0, __builtin_constant_p(x))) ^ include/linux/compiler.h:35:19: note: expanded from macro '__branch_check__' expect, is_constant); \ ^~~~~~~~~~~ 4 warnings generated. -- >> drivers/iommu/dma-iommu.c:739:16: error: anonymous bit-field has negative width (-1) order_mask &= GENMASK(MAX_ORDER, 0); ^ include/linux/bits.h:37:3: note: expanded from macro 'GENMASK' (GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l)) ^ include/linux/bits.h:23:3: note: expanded from macro 'GENMASK_INPUT_CHECK' (BUILD_BUG_ON_ZERO(__builtin_choose_expr( \ ^ include/linux/build_bug.h:16:53: note: expanded from macro 'BUILD_BUG_ON_ZERO' #define BUILD_BUG_ON_ZERO(e) ((int)(sizeof(struct { int:(-!!(e)); }))) ^ >> drivers/iommu/dma-iommu.c:739:16: warning: shift count >= width of type [-Wshift-count-overflow] order_mask &= GENMASK(MAX_ORDER, 0); ^~~~~~~~~~~~~~~~~~~~~ include/linux/bits.h:37:31: note: expanded from macro 'GENMASK' (GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l)) ^~~~~~~~~~~~~~~ include/linux/bits.h:35:11: note: expanded from macro '__GENMASK' (~UL(0) >> (BITS_PER_LONG - 1 - (h)))) ^ ~~~~~~~~~~~~~~~~~~~~~~~~~ 1 warning and 1 error generated. -- >> kernel/dma/pool.c:197:39: warning: shift count is negative [-Wshift-count-negative] pages = min_t(unsigned long, pages, MAX_ORDER_NR_PAGES); ^~~~~~~~~~~~~~~~~~ include/linux/mmzone.h:33:31: note: expanded from macro 'MAX_ORDER_NR_PAGES' #define MAX_ORDER_NR_PAGES (1 << MAX_ORDER) ^ ~~~~~~~~~ include/linux/minmax.h:126:59: note: expanded from macro 'min_t' #define min_t(type, x, y) __careful_cmp((type)(x), (type)(y), <) ^ include/linux/minmax.h:37:12: note: expanded from macro '__careful_cmp' __cmp(x, y, op), \ ^ include/linux/minmax.h:28:34: note: expanded from macro '__cmp' #define __cmp(x, y, op) ((x) op (y) ? (x) : (y)) ^ >> kernel/dma/pool.c:197:39: warning: shift count is negative [-Wshift-count-negative] pages = min_t(unsigned long, pages, MAX_ORDER_NR_PAGES); ^~~~~~~~~~~~~~~~~~ include/linux/mmzone.h:33:31: note: expanded from macro 'MAX_ORDER_NR_PAGES' #define MAX_ORDER_NR_PAGES (1 << MAX_ORDER) ^ ~~~~~~~~~ include/linux/minmax.h:126:59: note: expanded from macro 'min_t' #define min_t(type, x, y) __careful_cmp((type)(x), (type)(y), <) ^ include/linux/minmax.h:37:12: note: expanded from macro '__careful_cmp' __cmp(x, y, op), \ ^ include/linux/minmax.h:28:46: note: expanded from macro '__cmp' #define __cmp(x, y, op) ((x) op (y) ? (x) : (y)) ^ >> kernel/dma/pool.c:197:39: warning: shift count is negative [-Wshift-count-negative] pages = min_t(unsigned long, pages, MAX_ORDER_NR_PAGES); ^~~~~~~~~~~~~~~~~~ include/linux/mmzone.h:33:31: note: expanded from macro 'MAX_ORDER_NR_PAGES' #define MAX_ORDER_NR_PAGES (1 << MAX_ORDER) ^ ~~~~~~~~~ include/linux/minmax.h:126:59: note: expanded from macro 'min_t' #define min_t(type, x, y) __careful_cmp((type)(x), (type)(y), <) ^ include/linux/minmax.h:38:17: note: expanded from macro '__careful_cmp' __cmp_once(x, y, __UNIQUE_ID(__x), __UNIQUE_ID(__y), op)) ^ include/linux/minmax.h:32:25: note: expanded from macro '__cmp_once' typeof(y) unique_y = (y); \ ^ 3 warnings generated. vim +739 drivers/iommu/dma-iommu.c 0db2e5d18f76a6 Robin Murphy 2015-10-01 732 c4b17afb0a4e8d Ganapatrao Kulkarni 2018-11-30 733 static struct page **__iommu_dma_alloc_pages(struct device *dev, c4b17afb0a4e8d Ganapatrao Kulkarni 2018-11-30 734 unsigned int count, unsigned long order_mask, gfp_t gfp) 0db2e5d18f76a6 Robin Murphy 2015-10-01 735 { 0db2e5d18f76a6 Robin Murphy 2015-10-01 736 struct page **pages; c4b17afb0a4e8d Ganapatrao Kulkarni 2018-11-30 737 unsigned int i = 0, nid = dev_to_node(dev); 3b6b7e19e31a81 Robin Murphy 2016-04-13 738 98d56389a5e38b Kirill A. Shutemov 2023-03-15 @739 order_mask &= GENMASK(MAX_ORDER, 0); 3b6b7e19e31a81 Robin Murphy 2016-04-13 740 if (!order_mask) 3b6b7e19e31a81 Robin Murphy 2016-04-13 741 return NULL; 0db2e5d18f76a6 Robin Murphy 2015-10-01 742 ab6f4b001c8c72 Gustavo A. R. Silva 2021-09-28 743 pages = kvcalloc(count, sizeof(*pages), GFP_KERNEL); 0db2e5d18f76a6 Robin Murphy 2015-10-01 744 if (!pages) 0db2e5d18f76a6 Robin Murphy 2015-10-01 745 return NULL; 0db2e5d18f76a6 Robin Murphy 2015-10-01 746 0db2e5d18f76a6 Robin Murphy 2015-10-01 747 /* IOMMU can map any pages, so himem can also be used here */ 0db2e5d18f76a6 Robin Murphy 2015-10-01 748 gfp |= __GFP_NOWARN | __GFP_HIGHMEM; 0db2e5d18f76a6 Robin Murphy 2015-10-01 749 0db2e5d18f76a6 Robin Murphy 2015-10-01 750 while (count) { 0db2e5d18f76a6 Robin Murphy 2015-10-01 751 struct page *page = NULL; 3b6b7e19e31a81 Robin Murphy 2016-04-13 752 unsigned int order_size; 0db2e5d18f76a6 Robin Murphy 2015-10-01 753 0db2e5d18f76a6 Robin Murphy 2015-10-01 754 /* 0db2e5d18f76a6 Robin Murphy 2015-10-01 755 * Higher-order allocations are a convenience rather 0db2e5d18f76a6 Robin Murphy 2015-10-01 756 * than a necessity, hence using __GFP_NORETRY until 3b6b7e19e31a81 Robin Murphy 2016-04-13 757 * falling back to minimum-order allocations. 0db2e5d18f76a6 Robin Murphy 2015-10-01 758 */ a706e6e10225fb Kirill A. Shutemov 2023-03-15 759 for (order_mask &= GENMASK(__fls(count), 0); 3b6b7e19e31a81 Robin Murphy 2016-04-13 760 order_mask; order_mask &= ~order_size) { 3b6b7e19e31a81 Robin Murphy 2016-04-13 761 unsigned int order = __fls(order_mask); c4b17afb0a4e8d Ganapatrao Kulkarni 2018-11-30 762 gfp_t alloc_flags = gfp; 3b6b7e19e31a81 Robin Murphy 2016-04-13 763 3b6b7e19e31a81 Robin Murphy 2016-04-13 764 order_size = 1U << order; c4b17afb0a4e8d Ganapatrao Kulkarni 2018-11-30 765 if (order_mask > order_size) c4b17afb0a4e8d Ganapatrao Kulkarni 2018-11-30 766 alloc_flags |= __GFP_NORETRY; c4b17afb0a4e8d Ganapatrao Kulkarni 2018-11-30 767 page = alloc_pages_node(nid, alloc_flags, order); 0db2e5d18f76a6 Robin Murphy 2015-10-01 768 if (!page) 0db2e5d18f76a6 Robin Murphy 2015-10-01 769 continue; 4604393ca0c6e4 Robin Murphy 2020-09-03 770 if (order) 0db2e5d18f76a6 Robin Murphy 2015-10-01 771 split_page(page, order); 0db2e5d18f76a6 Robin Murphy 2015-10-01 772 break; 0db2e5d18f76a6 Robin Murphy 2015-10-01 773 } 0db2e5d18f76a6 Robin Murphy 2015-10-01 774 if (!page) { 0db2e5d18f76a6 Robin Murphy 2015-10-01 775 __iommu_dma_free_pages(pages, i); 0db2e5d18f76a6 Robin Murphy 2015-10-01 776 return NULL; 0db2e5d18f76a6 Robin Murphy 2015-10-01 777 } 3b6b7e19e31a81 Robin Murphy 2016-04-13 778 count -= order_size; 3b6b7e19e31a81 Robin Murphy 2016-04-13 779 while (order_size--) 0db2e5d18f76a6 Robin Murphy 2015-10-01 780 pages[i++] = page++; 0db2e5d18f76a6 Robin Murphy 2015-10-01 781 } 0db2e5d18f76a6 Robin Murphy 2015-10-01 782 return pages; 0db2e5d18f76a6 Robin Murphy 2015-10-01 783 } 0db2e5d18f76a6 Robin Murphy 2015-10-01 784 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests