Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp257631pxa; Fri, 14 Aug 2020 03:27:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxAYU8UTKBZ8AnXA1O5JAJMAMSCPL4JwaJhkeCXOkpgj3GIEoLWteOkup47bFz4Lu7Pk/eU X-Received: by 2002:a17:906:f905:: with SMTP id lc5mr1643024ejb.340.1597400849668; Fri, 14 Aug 2020 03:27:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597400849; cv=none; d=google.com; s=arc-20160816; b=o/Nwawgul5EYfKN+Ysj9oVwoPGzJT530gfbBTRXm6HpQpI31LhNaTeYbJaLdAZeaE4 IhvL6FgUicYNbCe1u6JGlcQivDFpMf5+ixjHtOZ62reMw8MWSzJxkkDC4XkxYwCKy5kC NzY1w2izEJ5DBXzckNMyeWfhUZg7ETfGdChmVxxsVvYu2+2E6sahyDLyH+4w08DDu+KW wL6veqNTIX8VmaNXdFCO4Hd+T9bLpGU9hTHzNwYSkLilxs/SG2PysUUvR8OaH0uvkEmL B4daMQPG0kKMtKWTCu/uZiNEM7NpUaxDF0OgoolDPoZMCRB+eSXOw2nt1xmyZd9dvsCk 0p1w== 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=FBQA0L95szN9ZsB/we6GeRQ+rviKdQ8g01o7hj9NXgI=; b=YLmqxRWB2X1CrqnW9PdXrrZBwvwDX+rYbXkNyuX4/xSm86A3rahtK73p669NmVPZU1 PQWg9lZSjXTIFouHoBxTEHkj1dwZjMyrjWBWDYVTeZoT0rA06kOYHykR3ACOa0I8ZZZ3 aE64ZFHONId3lINm8pZUxbojJ7e0iBoqSBCUoZQad2vct/pSUVEionwoxUD5kL8vM0Ni 6XXcMqJ8sMSTG9XSC8vLotm/k60iA5/Q0bwU8bf+7tT12R+D/MuClJL94kgmGy2Cro6T RjOqon09eRrI84/MW6tBn0P7OVTb6kSSyJorDQzpZj6cN4XgvJN5tWK7vMJBFjb9hTO5 RR5A== 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 be25si5140744edb.124.2020.08.14.03.27.06; Fri, 14 Aug 2020 03:27:29 -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 S1726735AbgHNK0e (ORCPT + 99 others); Fri, 14 Aug 2020 06:26:34 -0400 Received: from mx2.suse.de ([195.135.220.15]:54340 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726012AbgHNK0e (ORCPT ); Fri, 14 Aug 2020 06:26:34 -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 BE8F5ACB5; Fri, 14 Aug 2020 10:26:55 +0000 (UTC) From: Nicolas Saenz Julienne To: amit.pundir@linaro.org, hch@lst.de, linux-kernel@vger.kernel.org Cc: rientjes@google.com, jeremy.linton@arm.com, linux-rpi-kernel@lists.infradead.org, Nicolas Saenz Julienne , Robin Murphy , iommu@lists.linux-foundation.org Subject: [PATCH v4 0/2] dma-pool fixes Date: Fri, 14 Aug 2020 12:26:22 +0200 Message-Id: <20200814102625.25599-1-nsaenzjulienne@suse.de> X-Mailer: git-send-email 2.28.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 Now that we have an explanation to Amir's issue, we can re-spin this series. --- Changes since v3: - Do not use memblock_start_of_DRAM() Changes since v2: - Go back to v1's behavior for patch #2 Changes since v1: - Make cma_in_zone() more strict, GFP_KERNEL doesn't default to true now - Check if phys_addr_ok() exists prior calling it Christoph Hellwig (1): dma-pool: fix coherent pool allocations for IOMMU mappings Nicolas Saenz Julienne (1): dma-pool: Only allocate from CMA when in same memory zone drivers/iommu/dma-iommu.c | 4 +- include/linux/dma-direct.h | 3 - include/linux/dma-mapping.h | 5 +- kernel/dma/direct.c | 13 +++- kernel/dma/pool.c | 145 +++++++++++++++++++----------------- 5 files changed, 92 insertions(+), 78 deletions(-) -- 2.28.0