Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp1719305ybh; Tue, 14 Jul 2020 05:43:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy2xX8uhCItuva3Sk0S4r2u5rlrtfsarXdjvtb0BuPiUuCKL8m36jCl+FtxjLM3BprwOtTh X-Received: by 2002:a17:906:3789:: with SMTP id n9mr4537994ejc.512.1594730583544; Tue, 14 Jul 2020 05:43:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594730583; cv=none; d=google.com; s=arc-20160816; b=XTtzEgEkahN4FYIToKeb/AthDozvF2SdCKL4rA6C2rScsbfbuumJbDezwGGDQeXZzq kxrP1Gu56fyNbV//1cmhQf8CtC4MwxKkyxOKaTTaitRP6qMNzQ59CiJVBaro48t2VC67 Tn/4IOaSLACEhPLdFzKf25m9GlPN/+vbc838pxayEk9NUA+n2aEkSDtNlGnxuzsuf+KI m/Dr7lzd6sPLustFF5OtZTFMWxI8unA6qjKY6YrcVrzMF26DOa1xqIvob9bhlmHy17n/ sQwJcrrZoZDEsTJVf8pJhJQsK/Gz04j4VPK8wQtIyZ1FSMblYmNtpj3Na6bRD+/ufc6l F33Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=XVudCxND4gNVDBWKPIBc1QqnDh3cc2xT8oh7+XPZiMI=; b=UvGr2RJapvqSeE9EnHhLrDy5W+ntajP27hYpGVS2qJ0ljX+cDFW4LWKgitzVrYYdW2 d01CPvUGaETPo/+ekYWd3TE+SeuYpjWSSBke94Ckx3bgixCxa0+O6xqqk8PGoW9vNlXG rv0oTWbf8Dgzw6SGiC98dBd8bLcTRZMsUxBy+336GKawLA/7QgV7CHn7kTHE7Jwab0b7 ordF0zKr8aTIH8WT9ReYz+QTSDqGRNMvaRem0l48qYCEOCOnHUDT2DKzSm3pjcYZ2WWG iE2fLULYFnu+kJTINV3WAuXDtPajkEW6YNBSul+S2iGkRIMsYBYOihHOdQTxI3zYm+cY t5Ww== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id cz9si6459060edb.530.2020.07.14.05.42.40; Tue, 14 Jul 2020 05:43:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728480AbgGNMkB (ORCPT + 99 others); Tue, 14 Jul 2020 08:40:01 -0400 Received: from mx2.suse.de ([195.135.220.15]:54760 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728451AbgGNMkA (ORCPT ); Tue, 14 Jul 2020 08:40:00 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id C9615AC49; Tue, 14 Jul 2020 12:40:01 +0000 (UTC) From: Nicolas Saenz Julienne To: hch@lst.de, linux-kernel@vger.kernel.org Cc: linux-rpi-kernel@lists.infradead.org, jeremy.linton@arm.com, Nicolas Saenz Julienne , Robin Murphy , David Rientjes , iommu@lists.linux-foundation.org Subject: [PATCH v2 0/4] dma-pool: Fix atomic pool selection Date: Tue, 14 Jul 2020 14:39:24 +0200 Message-Id: <20200714123928.8581-1-nsaenzjulienne@suse.de> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This is my attempt at fixing one of the regressions we've seen[1] after the introduction of per-zone atomic pools. This combined with "dma-pool: Do not allocate pool memory from CMA"[2] should fix the boot issues on Jeremy's RPi4 setup. [1] https://lkml.org/lkml/2020/7/2/974 [2] https://lkml.org/lkml/2020/7/8/1108 --- Changes since v1: - Rebase into linus' master Nicolas Saenz Julienne (4): dma-direct: Provide function to check physical memory area validity dma-pool: Get rid of dma_in_atomic_pool() dma-pool: Introduce dma_guess_pool() dma-pool: Make sure atomic pool suits device include/linux/dma-direct.h | 1 + kernel/dma/direct.c | 2 +- kernel/dma/pool.c | 80 +++++++++++++++++++++++++------------- 3 files changed, 56 insertions(+), 27 deletions(-) -- 2.27.0