From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_PASS,URIBL_BLOCKED,USER_AGENT_MUTT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id F064FC67879 for ; Fri, 12 Oct 2018 17:05:02 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id BC0DA21470 for ; Fri, 12 Oct 2018 17:05:02 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org BC0DA21470 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=arm.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727783AbeJMAi0 (ORCPT ); Fri, 12 Oct 2018 20:38:26 -0400 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:54866 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726761AbeJMAi0 (ORCPT ); Fri, 12 Oct 2018 20:38:26 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 8F174F; Fri, 12 Oct 2018 10:05:00 -0700 (PDT) Received: from arrakis.emea.arm.com (arrakis.cambridge.arm.com [10.1.196.80]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 3C0833F5D3; Fri, 12 Oct 2018 10:04:59 -0700 (PDT) Date: Fri, 12 Oct 2018 18:04:56 +0100 From: Catalin Marinas To: Christoph Hellwig Cc: Will Deacon , Robin Murphy , Konrad Rzeszutek Wilk , iommu@lists.linux-foundation.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH 08/10] swiotlb: don't dip into swiotlb pool for coherent allocations Message-ID: <20181012170456.GC60150@arrakis.emea.arm.com> References: <20181008080246.20543-1-hch@lst.de> <20181008080246.20543-9-hch@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181008080246.20543-9-hch@lst.de> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Oct 08, 2018 at 10:02:44AM +0200, Christoph Hellwig wrote: > All architectures that support swiotlb also have a zone that backs up > these less than full addressing allocations (usually ZONE_DMA32). > > Because of that it is rather pointless to fall back to the global swiotlb > buffer if the normal dma direct allocation failed - the only thing this > will do is to eat up bounce buffers that would be more useful to serve > streaming mappings. > > Signed-off-by: Christoph Hellwig > --- > arch/arm64/mm/dma-mapping.c | 6 +-- > include/linux/swiotlb.h | 5 -- > kernel/dma/swiotlb.c | 105 +----------------------------------- > 3 files changed, 5 insertions(+), 111 deletions(-) Acked-by: Catalin Marinas