Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp1623428pxa; Thu, 6 Aug 2020 11:49:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzsiQIqo+QviQiKaERRi3KaDhFRbJzKQ9KYFuNrQZLyyQru6BcHmFO+9O32+3sqiu36VmeF X-Received: by 2002:a50:ba84:: with SMTP id x4mr5620448ede.282.1596739780931; Thu, 06 Aug 2020 11:49:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596739780; cv=none; d=google.com; s=arc-20160816; b=JFnsI9rLGKEIo/OA025Q8WCM1hGsTXDvS+oDgiHWLL/+1BwB1KoNGXp0PE8BHZLVOb UoysldZvaDflcG6c4MTRQwVMFanEp+2gqjJ6cGHKEJP6nlVWN3wufm9pXl8yLUWVGDhf S92KFcHcEw1GynbfLUTRYruu6YIg/owSsMRpGS+af3ovJE6KTcf1mgk+XbLZiPT8NWQN FoMTzzFm4kPN+ADfiJG/2O23SyOyb94YOrl7P3/dr36TO4lFJA1j+PiVt40m+X7XrtYz +OyqwZDVS7xJ1PjRe0Z/uhk6StNWs8rOaddeiRsMJhk2vEQERTkmroE9vo3gnqzB4y0B L47w== 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=/5vGXxR7xsOmZgnk6hlrywovB2HgtufCixGqxLxOSeA=; b=aVya/6OAS4SqL73D3tmpt8km7NWS/zSiiDAJ24mjn/hOvzllDDy+KETMmfohASdIu6 TsGU+rJPZ3K2lNN6flEYtEK5UK4TLwfd9yqH3R5UcxWfRyvdbUEeFaUKVW6mW6f8mYYi bwqiHylFkfHPqyqLNnFXVBLa9k+29vAtQeK2dlKJ5vGngIDz9NGlFmvMmqUvFDYU0DEF IesXlQlIz1ZnUbBXOOhs0PrJlYVCBISpvBNLmZ9uys64Mko9VwR7jdH2McdtL5Icj1Tr SHPoYB6+EDUw2vh2MhgIsen1GxWexMCit1UDBz7J1W1Du+yRvwCAVHZJAd0eeXaI11eS pzdQ== 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 j8si3697238ejy.610.2020.08.06.11.49.18; Thu, 06 Aug 2020 11:49:40 -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 S1725927AbgHFStJ (ORCPT + 99 others); Thu, 6 Aug 2020 14:49:09 -0400 Received: from mx2.suse.de ([195.135.220.15]:43364 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727796AbgHFStI (ORCPT ); Thu, 6 Aug 2020 14:49:08 -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 D3E86AC82; Thu, 6 Aug 2020 18:49:23 +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 v3 0/2] dma-pool fixes Date: Thu, 6 Aug 2020 20:47:53 +0200 Message-Id: <20200806184756.32075-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 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