Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1541429ybt; Thu, 9 Jul 2020 09:23:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx9kXQsMP28LY4urBpU66KcIjiLktZRFuNByTm3F3SMUEVulufy+IzCzBPwbgTPky1+RuwX X-Received: by 2002:a50:d0cc:: with SMTP id g12mr74081269edf.57.1594311790996; Thu, 09 Jul 2020 09:23:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594311790; cv=none; d=google.com; s=arc-20160816; b=Nmr5Ll5TAxvbJaYe0JodbFUGnp+XcjgWO8oqrkaFiPAPTsAcGCYARL3BpRuughb74W AbkxA1adqz5Ao7HsrQt8ep3LWVV1H1/dkv4WkQNyLfZzwPPjBzejEsRvNTdEl1co6SPQ b946eOcaN5L/VBgnbjHNgfhtMGOCHv9zK+jhx00A/KKmPGJ8S6yG4FGZAKliSWzFaQv7 cxYkmRIBxLlSREcmC/iVZU1dYrKYjdd4p6Q6ErY3fgmwSmaxyR97ybDhisPvmZVIEChl oYqI38vkun2lyxq8kEtw6XVVU6D4V1DrW1aiKucn897PU/N4C4sbNpxaNKM7DF/OLHUa RoWQ== 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=G2n+2UKx+1ubh2RQuP7thrx+8d9XRPrciRqIg4UHqyM=; b=qb0/BWoPWPqFNBn1ddr4hjmnJOhj8MAdyzJ0DSxKWTlChDcnaeN9jVqzxFwUrqXZvp mo1zLEBBfpod5MJEYkmw8fpGtxmEmBvnhyYjBefyYwTuDaCmfQrsS3tB3jrx5+Qz8/sm uG7wlXoXoVF3UxwLbqYH8rWwTRS9AwWw1gaMUDuhT9DyMmHherjjlHKPlJe5KJb9sGkM rAtFLbj4H9pMGtDFTOkRok0FzRK1Ft/wT4ppkkk2Iq1E7Tp2tcgdSOE0+JOPSey3NybU kPEG7y4/YtqsDTNMHkwWhZ+9Q/jYYPYqCuodDDHmH3A1F5u17f/knlY+F3nQqY1ZN0Nh WUwQ== 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 d13si1987059edz.257.2020.07.09.09.22.48; Thu, 09 Jul 2020 09:23:10 -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 S1727825AbgGIQTc (ORCPT + 99 others); Thu, 9 Jul 2020 12:19:32 -0400 Received: from mx2.suse.de ([195.135.220.15]:39072 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726357AbgGIQTc (ORCPT ); Thu, 9 Jul 2020 12:19:32 -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 37A87AEB9; Thu, 9 Jul 2020 16:19:31 +0000 (UTC) From: Nicolas Saenz Julienne To: hch@lst.de, Robin Murphy , David Rientjes , iommu@lists.linux-foundation.org Cc: linux-rpi-kernel@lists.infradead.org, jeremy.linton@arm.com, Nicolas Saenz Julienne , linux-kernel@vger.kernel.org Subject: [PATCH 0/4] dma-pool: Fix atomic pool selection Date: Thu, 9 Jul 2020 18:19:00 +0200 Message-Id: <20200709161903.26229-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 --- 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 | 76 +++++++++++++++++++++++++++----------- 3 files changed, 56 insertions(+), 23 deletions(-) -- 2.27.0