Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp2171202pxa; Mon, 3 Aug 2020 09:10:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJySU13ddxj7Cgby1ULVbZuNqA5FohBcAtLZGcazMFrdx6m9wVZySVnoHreK8Ip9svrLC5dS X-Received: by 2002:a17:906:924d:: with SMTP id c13mr16728080ejx.518.1596471033171; Mon, 03 Aug 2020 09:10:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596471033; cv=none; d=google.com; s=arc-20160816; b=KQOkPF8pu4mFA8ivXm20uK8teJdNd8+8pQ43heuo1DEgb0Kh9Hc5dz9VYTCBVU3ssk AndlxyphFMc5KeKl5JF6ib6kbe0Um0aFpw1Ok1se67Y9BvSYVaNbo/KowPeG5hf2SYTL j3Fr3eLgv5SVz0kv/fnHqbIet4CCbHjZWGGM7+LdgKsZTaAnSDMCIqflUlMBuq2qLuyr SPm9QszrXMwtBImNvUaBdTFZsXsk62H3OgL4YTGBwivA4CZYmZkPZhxDjLXsfvdqcfHs 7uTIluyE0pOl38h8kM23qY6eLIVuGoBZhqN3c7ERtYkPqmLBWEeBIQ5uedx7qND+NP7u IUlA== 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=4WWiiu1kGny6XmANLbB2M82miTdnO1nrTq83QD9AFOI=; b=u3umALQtu30C0Q7edCgeLoZI8zfAm+teILTjbErhfPvBxC+hSZlR+jNeUifj9mUTOO g9ei+qsVcqj3CKnFrrUzAe3ofxIGya+4Aix6QBtlQ9sB1dzh6ltIFhC+n38MErzXcOZk IiBzezdTN0g1xwNGYmCUJuPafZIOTZ0kN6V8nI5NEn9DBm95Cfla8Xx0pPa3JbniJ6qY XRjqC8BtD3iJAXT6UzoSzbB7PChtjor1QKOTGOZRzpag5NSMAGvYfUXH6E2XYKtYvkbZ eg9caUfc2E8KeQmaXOPjrYiDE8SBjs6SrKO6ZazppL6VOoMcaDZQDnzyINuYmKg66zuZ X7zQ== 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 x12si10979967edl.33.2020.08.03.09.10.09; Mon, 03 Aug 2020 09:10:33 -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 S1726948AbgHCQKE (ORCPT + 99 others); Mon, 3 Aug 2020 12:10:04 -0400 Received: from mx2.suse.de ([195.135.220.15]:50674 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725945AbgHCQKE (ORCPT ); Mon, 3 Aug 2020 12:10:04 -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 5B266B6F2; Mon, 3 Aug 2020 16:10:18 +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 v2 0/2] dma-pool fixes Date: Mon, 3 Aug 2020 18:09:54 +0200 Message-Id: <20200803160956.19235-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, I took the liberty to respin the previous dma-pool fixes series with some changes/fixes of my own. --- 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 | 148 ++++++++++++++++++++---------------- 5 files changed, 95 insertions(+), 78 deletions(-) -- 2.28.0