Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp697347yba; Thu, 18 Apr 2019 08:08:31 -0700 (PDT) X-Google-Smtp-Source: APXvYqzs1vorVaE0Dw5gXWNTG8GupoCqcHthWsuf+Jua4PC723V5YJfRumhxGqh1DP25Y+laXLqp X-Received: by 2002:a62:2ad5:: with SMTP id q204mr6737006pfq.259.1555600111446; Thu, 18 Apr 2019 08:08:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555600111; cv=none; d=google.com; s=arc-20160816; b=uUZ66leOE+eFUxc8ZDdn09OHTtemY0niaFtpgg2L/TnqgqUGCjrrxBzz3/tfc3RdHg ofWSkZwY4dslAXGE37VpnJyIXwnTs/I9pW+jZsDOsMke7m8N+xh4wa133RjAA2SSl+V1 Y3mM3uLMwGgCfOZeDRRf/BTKwxwKOpGzNarOhqgIUpxH2MiuCPi1kCmxsklXt5NQgMcb 0nyxsf/CB0wlfF2hpo0U329jHhVCJbOQQTpK7vNrX+YkxRpTrsdi+ob0w/tjsBN7/tEe oAMAFaDRUSEihwZS4j7MZ38A8oUB5i1xebXukLrr0PH9fiMzX/jY79hEw1df+sZGiX8J 9IYw== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=4n+anaVgnoCp683crPbmim5ePqu3pDlPLDrEoTiYPcU=; b=tttpckVp1CQDChFptZPPr/3V9nS9pVfAwSe5eqNWCDWYITHEF4R7UXRCosu33wdRRd 05Omz2PMb2uoQKYT61hH6I6BJiqO4z7sI4sQzKKv2GBSv0x2e64yr2dyla3c0AEyhsBb vdxxf3yXaPebP/lt0j8JlPpDYr36M+OpbtS0rPrdan+wEqAlCjoQq9Uy1ZR7ivi8a9KN aNmr/sHZGrmud2XobIX18TJPKASqQXB8jrzqnVBX1Gjxp9dSBU6bJdlUlWOxaQB4Py3c YtmIyjwU+gKgTcLO99tQjbbjwXY7eQtI5WQVfalzNuGqZCJ+axTHssywB6GIixTEbLSX m0hA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v20si2113266pgn.105.2019.04.18.08.08.15; Thu, 18 Apr 2019 08:08:31 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388922AbfDRPHA (ORCPT + 99 others); Thu, 18 Apr 2019 11:07:00 -0400 Received: from foss.arm.com ([217.140.101.70]:35120 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388457AbfDRPHA (ORCPT ); Thu, 18 Apr 2019 11:07:00 -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 9E06515AB; Thu, 18 Apr 2019 08:06:59 -0700 (PDT) Received: from [10.1.196.75] (e110467-lin.cambridge.arm.com [10.1.196.75]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 458363F5AF; Thu, 18 Apr 2019 08:06:58 -0700 (PDT) Subject: Re: [PATCH 12/21] dma-iommu: factor atomic pool allocations into helpers To: Christoph Hellwig Cc: Joerg Roedel , Catalin Marinas , Will Deacon , Tom Lendacky , iommu@lists.linux-foundation.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org References: <20190327080448.5500-1-hch@lst.de> <20190327080448.5500-13-hch@lst.de> <20190410061157.GA5278@lst.de> <20190417063358.GA24139@lst.de> From: Robin Murphy Message-ID: <83615173-a8b4-e0eb-bac3-1a58d61ea4ef@arm.com> Date: Thu, 18 Apr 2019 16:06:56 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: <20190417063358.GA24139@lst.de> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-GB Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 17/04/2019 07:33, Christoph Hellwig wrote: > On Wed, Apr 10, 2019 at 08:11:57AM +0200, Christoph Hellwig wrote: >> On Tue, Apr 09, 2019 at 06:59:32PM +0100, Robin Murphy wrote: >>> On 27/03/2019 08:04, Christoph Hellwig wrote: >>>> This keeps the code together and will simplify compiling the code >>>> out on architectures that are always dma coherent. >>> >>> And this is where things take a turn in the direction I just can't get on >>> with - I'm looking at the final result and the twisty maze of little >>> disjoint helpers all overlapping each other in functionality is really >>> difficult to follow. And I would *much* rather have things rely on >>> compile-time constant optimisation than spend the future having to fix the >>> #ifdefed parts for arm64 whenever x86-centric changes fail to test them. >> >> Can you draft up a patch on top of my series to show me what you >> want? I can take care of finishing it up and moving the changes >> into the right patches in the series. > > Any chance to make some progress on this? Or at least a better > description of what you want? OK, I'm still looking at mmap and get_sgtable, but for now I've pushed out a partial branch that consolidates alloc and free in a way which makes sense to me: git://linux-arm.org/linux-rm dma/rework Please let me know what you think. Robin.