Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp5336319pxv; Wed, 28 Jul 2021 08:26:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyXxib9IjKKCat27JZ+feNKlwbtaNBBOmwcgN3fH11Z047zhr6+GUFtqwz/IkummfNc8Yzb X-Received: by 2002:a17:906:2a8e:: with SMTP id l14mr13884eje.321.1627485987270; Wed, 28 Jul 2021 08:26:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627485987; cv=none; d=google.com; s=arc-20160816; b=dI8vbYbAAli6bcH0SDAh86jseSoVAbecEXjxL7X/BlwaDuh6eSSeaGG/3Y+sPX8WoF yI1h2d16yvJ/HE2WUxVAmV3H35382w3rELG946Cr3PDRh26EPj9Kf9z+9cdM20qs3pb1 SJKW/sdMYi5uHT/v4cyOmb8fm7r/4Vr2uVMlXYYSEvPz0/oCFaAoxA8CIEcZKEBd0lD0 DTplyeJWM/Pnni8MRQ3/dPhhNzhldQ7Ype6eB39xtJJjAb9ifCT8SeGCxT0BURoKjrMP 9NzIbXv1Z6hGYeBKdWgWa8LS6TXMGR4h0XoPzB/i9tytrF5+dmOO5jU5AGnAGZI5x66P +xYA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:thread-index:content-language :content-transfer-encoding:mime-version:message-id:date:subject :in-reply-to:references:cc:to:from:reply-to:dmarc-filter:sender :dkim-signature; bh=NMBA6eMZ2++sBypZUxc6pdznV/MW5syE3FBstf0UH5I=; b=DRhTKKeFNDBl/6RWoQuuYDRh9xGcLISlwwdooNQ1gbBAuQJlQAjvOW32QBFw0k2K1z TyXwsACaA2URXWTpbpvDc8SkxhJaP4mLn2pr1/bMkizxTGZAR2ZTUACTLViSBBrcxAz1 Z325QuIdyIfXCxfsLBujWoNXQz7FK18AdYALcba9NwGC2L1DTP0QmEAYwB6JXNW80dn1 4tP5P0uJm9JP54IHaP5JC6rMgVb3TnxBHKDcO6Ffecqk3CPw/W0PqBwVcVbigvhZ3zAL Ei31NxYOPRR6Gvi5q6pEi5pjP5wy0p48EDsrCApEUMrvQ47Xlq5mFTsXp7wINzxR5xym SBJQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=BFqPU2m2; 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 m17si5675553edc.467.2021.07.28.08.26.02; Wed, 28 Jul 2021 08:26:27 -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; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=BFqPU2m2; 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 S237122AbhG1PU5 (ORCPT + 99 others); Wed, 28 Jul 2021 11:20:57 -0400 Received: from so254-9.mailgun.net ([198.61.254.9]:51858 "EHLO so254-9.mailgun.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235457AbhG1PU4 (ORCPT ); Wed, 28 Jul 2021 11:20:56 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1627485654; h=Content-Transfer-Encoding: Content-Type: MIME-Version: Message-ID: Date: Subject: In-Reply-To: References: Cc: To: From: Reply-To: Sender; bh=NMBA6eMZ2++sBypZUxc6pdznV/MW5syE3FBstf0UH5I=; b=BFqPU2m2R0GQVlIJZVI6K/7QZNxnNuJSIP8x1G7QoFadzO8IG3HeieOaPr4HZUP5QWSLUOAM c8MF6WfPimB92MWX3OgXsnsRoRwnV66oB2LtYDPChx4wZV+W2fkcLQMR6H2Q5Aoa4loZrWqh VLO9L/sstCmL2+t9yk5EFdDeyr4= X-Mailgun-Sending-Ip: 198.61.254.9 X-Mailgun-Sid: WyI0MWYwYSIsICJsaW51eC1rZXJuZWxAdmdlci5rZXJuZWwub3JnIiwgImJlOWU0YSJd Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by smtp-out-n05.prod.us-west-2.postgun.com with SMTP id 610175c7e81205dd0aa482b7 (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Wed, 28 Jul 2021 15:20:39 GMT Sender: bcain=codeaurora.org@mg.codeaurora.org Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 28087C4323A; Wed, 28 Jul 2021 15:20:39 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=ALL_TRUSTED,BAYES_00,SPF_FAIL, URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from BCAIN (i-global254.qualcomm.com [199.106.103.254]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: bcain) by smtp.codeaurora.org (Postfix) with ESMTPSA id 1CDC3C433D3; Wed, 28 Jul 2021 15:20:34 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 1CDC3C433D3 Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; spf=fail smtp.mailfrom=bcain@codeaurora.org Reply-To: From: "Brian Cain" To: "'Christoph Hellwig'" , , "'Russell King'" Cc: "'Dillon Min'" , "'Vladimir Murzin'" , , , , "'Manning, Sid'" References: <20210712061704.4162464-1-hch@lst.de> In-Reply-To: <20210712061704.4162464-1-hch@lst.de> Subject: RE: add support for the global coherent pool to the dma core Date: Wed, 28 Jul 2021 10:20:34 -0500 Message-ID: <03d501d783c4$1d3f10e0$57bd32a0$@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Outlook 16.0 Content-Language: en-us Thread-Index: AQGLBLs9KUWyWP2l5ibPYuIecai1XKvxfn8g Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > -----Original Message----- > From: Christoph Hellwig > Sent: Monday, July 12, 2021 1:17 AM > To: iommu@lists.linux-foundation.org; Russell King ; > Brian Cain > Cc: Dillon Min ; Vladimir Murzin > ; linux-arm-kernel@lists.infradead.org; linux- > hexagon@vger.kernel.org; linux-kernel@vger.kernel.org > Subject: add support for the global coherent pool to the dma core > > Hi all, > > this series adds support for using the global coherent (aka uncached) > pool to the generic dma-direct code and then switches arm-nommu and > hexagon over to it, together with a bunch of cleanups. Christoph, Thanks for sending this -- I will take a look and give some feedback soon. > Diffstat: > arch/arm/Kconfig | 5 - > arch/arm/mm/dma-mapping-nommu.c | 173 +-------------------------------------- > - > arch/hexagon/Kconfig | 1 > arch/hexagon/kernel/dma.c | 57 ++----------- > include/linux/dma-map-ops.h | 18 ++-- > kernel/dma/Kconfig | 4 > kernel/dma/coherent.c | 159 +++++++++++++++++------------------- > kernel/dma/direct.c | 15 +++ > 8 files changed, 124 insertions(+), 308 deletions(-)