From nobody Mon Feb 9 03:47:40 2026 Received: from esa4.hc555-34.eu.iphmx.com (esa4.hc555-34.eu.iphmx.com [207.54.77.171]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id CB894322537 for ; Mon, 12 Jan 2026 06:59:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=207.54.77.171 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768201170; cv=none; b=icqaocYfVyNFlX1cLC+wTJkcq4FUNWU0p70TaN6Jw+WPYWWa9U95bItL/As4b78u4C0JcmgcH69YanabpW2b/u0MYRc1h+4F7Q1MpLcyJRLcO0qxXDnOCNCDSU1DSHj0U3ZeY6ti7AMVpn7jOoH+DAvtrvru3bbDXIspECiKptk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768201170; c=relaxed/simple; bh=S86iPthB8Mz0CkECZazPVHa80rEM1013uyEDwE2IV5A=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=DjRiEyJoJjJGWT1b0X2N8y+oBVJeqox+1EJBxsYWkZxJIKj5BN5fjvhurSPT6+L6Hbn3RA7NjsqIOlXariU1XZOEfCE7ACzJuEeFH8Xt2APMU4ep/2P4R1HjpVm82m/NI3Af8TXhxhZGEGmRQoGirj8J5hiuSUD3PQ+A+RVGRUQ= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=mobileye.com; spf=pass smtp.mailfrom=mobileye.com; dkim=fail (0-bit key) header.d=mobileye.com header.i=@mobileye.com header.b=AbN1YMgO reason="key not found in DNS"; arc=none smtp.client-ip=207.54.77.171 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=mobileye.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=mobileye.com Authentication-Results: smtp.subspace.kernel.org; dkim=fail reason="key not found in DNS" (0-bit key) header.d=mobileye.com header.i=@mobileye.com header.b="AbN1YMgO" DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=mobileye.com; i=@mobileye.com; q=dns/txt; s=MoEyIP; t=1768201166; x=1799737166; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=S86iPthB8Mz0CkECZazPVHa80rEM1013uyEDwE2IV5A=; b=AbN1YMgOPfxPRlL2gwLOMayuY7hamS7EvkuRSQHOnUhAfamdS8gUsIeI LE60hDRHyk+EpLZDPQCDBpCEcAD/PmEOfxXApLl4mokaEkIM2/K0TuX8s mSTEDn9hsIi6PWNuFC5tpKn59Wvy/4+GnlmvE0fzQd0sri7OyvXeGsQGq f2mo6mdKN9mmvND0rgXCwkrklHhR8J2zD4swPqebML0C8BUVYdGRnYyMQ 6Ze8zPDrj04HUMAB/aMogSowq44fnY28Lab3BhgDv3mZnmA+qAbK+Lfme Gow46ZZtJn0X2jlrf0zLB7X4LCb3i7DoGMWqNA1M+FwDhoqA/Mooh4V3Z w==; X-CSE-ConnectionGUID: CCdRBfxfTHe9ZQ9TxogQWQ== X-CSE-MsgGUID: M+IimFQ0TAW1hmV93wVt0A== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from unknown (HELO ces02_data.me-corp.lan) ([146.255.191.134]) by esa4.hc555-34.eu.iphmx.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Jan 2026 08:59:24 +0200 X-CSE-ConnectionGUID: EsrqnE3ATQuiZ4VSoKzRGg== X-CSE-MsgGUID: qZ26/BZARpCbFJcbJb1pDQ== Received: from unknown (HELO epgd071.me-corp.lan) ([10.154.54.6]) by ces02_data.me-corp.lan with SMTP; 12 Jan 2026 09:01:12 +0200 Received: by epgd071.me-corp.lan (sSMTP sendmail emulation); Mon, 12 Jan 2026 08:59:24 +0200 From: Vladimir Kondratiev To: lkp@intel.com, mick@ics.forth.gr, Marek Szyprowski , Robin Murphy Cc: iommu@lists.linux.dev, linux-kernel@vger.kernel.org, llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, vladimir.kondratiev@mobileye.com, Vladimir.Kondratiev@mobileye.com, akpm@linux-foundation.org, alex@ghiti.fr, aou@eecs.berkeley.edu, hch@infradead.org, linux-mm@kvack.org, linux-riscv@lists.infradead.org, palmer@dabbelt.com, paul.walmsley@sifive.com Subject: [PATCH v2] dma-pool: don't allocate DMA32 pool if no 32-bit memory Date: Mon, 12 Jan 2026 08:58:56 +0200 Message-ID: <20260112065857.3137331-1-vladimir.kondratiev@mobileye.com> In-Reply-To: <202601120747.TAMpIDnI-lkp@intel.com> References: <202601120747.TAMpIDnI-lkp@intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" If system have no 32-bit memory, GFP_DMA32 pool allocation will obviously fail, so skip it. Changes in v2: use arch-independent "memblock_start_of_DRAM" to get DRAM base address Signed-off-by: Vladimir Kondratiev --- kernel/dma/pool.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/dma/pool.c b/kernel/dma/pool.c index ee45dee33d49..ecd77a0272f2 100644 --- a/kernel/dma/pool.c +++ b/kernel/dma/pool.c @@ -209,7 +209,7 @@ static int __init dma_atomic_pool_init(void) if (!atomic_pool_dma) ret =3D -ENOMEM; } - if (IS_ENABLED(CONFIG_ZONE_DMA32)) { + if (IS_ENABLED(CONFIG_ZONE_DMA32) && memblock_start_of_DRAM() < BIT_ULL(3= 2)) { atomic_pool_dma32 =3D __dma_atomic_pool_init(atomic_pool_size, GFP_KERNEL | GFP_DMA32); if (!atomic_pool_dma32) base-commit: 7d0a66e4bb9081d75c82ec4957c50034cb0ea449 --=20 2.43.0