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=-2.3 required=3.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,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 7A96AC10F11 for ; Wed, 24 Apr 2019 19:38:59 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 4C56E218D3 for ; Wed, 24 Apr 2019 19:38:59 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="BZfsCOeX"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="PPlQwqKk" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 4C56E218D3 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=jk1k5Dl7Cc3PekL11qN4tTa5gLJ5sD1cx3k/tBm+HhY=; b=BZfsCOeXn+wQ9V wCVqqaHpnKjFuol42/NRJaOkq009drXEV++6A7F6LbQpH/CQHip7ljhOkPbCc7MrIfxhnDlbumo+A vpYO0UWuaaYagnXIDlFyDGsqOmD/It7OzTrZIigJ116joRzW+ErRe8CnwSyqit0ygdjZYxZwbf4tD F7Zr2thVA0twyhKBCJzJx+6e2jyme/2mOSBM2XlbYpFv7Y2wzQEhB9BB6iUgWkK11V1mg2EyhHPjG 10YAeLDfvqaDnddLGLU7NG22frHV2yEafjTcn0yaWfOUPyXBqM2Z8Y/xaCZwK+xKsGBdezHdPk+B5 F5Ne+GKAUS2KGyVIH6cg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1hJNjI-0002er-BP; Wed, 24 Apr 2019 19:38:52 +0000 Received: from mail-pf1-x444.google.com ([2607:f8b0:4864:20::444]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1hJNjE-0002e9-Ok for linux-arm-kernel@lists.infradead.org; Wed, 24 Apr 2019 19:38:50 +0000 Received: by mail-pf1-x444.google.com with SMTP id w25so9825518pfi.9 for ; Wed, 24 Apr 2019 12:38:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=gt37LcZrQPa+TVFY3hiGvxib7Pgjtqj0YnN2XvJD4vw=; b=PPlQwqKk9Cano+RcLs4BXcQoNOMDz0ZTmEbFr3Dph4+TWcEyF2lHobLKPfUPc0guCL VuJKbYTLqPa6lUXqZqO9qqg/+dSBWdLiDcnCdnQs4V8O3pZm2cQ56dkRIJ4869w+znU+ WGmPyIF/Gp7jO/KTOgVz5N2S7d9dv7nEAaV3iCzx+Hl9wYMuutYcHVomADdaofVr0tMl L8uDBWNLQ8TqxeKFsOppbGjDol51x5tT18wHHKdn0MmSzaMgLN/eMgdx0mRBuCDvFaNp zBcWBA3bKUc6ZZ6fkGQhdQIIvCiu4+aJXgu2RRb9V6gqz19DC6vWy1nkONy9VrPJYmD/ 614g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=gt37LcZrQPa+TVFY3hiGvxib7Pgjtqj0YnN2XvJD4vw=; b=S/K9qEk4HlyfrLzrCljiM/Y5O90YhqunYJz8+u29Vj1/XWW9nDPT6RTkLoF+Qq/6hA xc9mLrUP3utXkBeBlpjjvN0nP2E/Y6AFvDVcwTdJ3zQXZioQ4APahsNzbZCReq7mk81b ZGQJfH9MxkiAcyF9GhGAM3++6Dv2rHb5G4oGGPfsgzqQtWAq0DHnqtFQfsYpXZjAxyNC bpg91UH37FFSZ6jRS6gQ0xEoIOKKK/NyV9rAfBwJZdW28CRPfKJakKWu8aMzcGcA+sAN fxoVbO9X6syEoS1wdnm8Pbt9jGmssxbm4KZIVZQ+Gq21j5kMY71AZhKrw/P7ih+yooNW 3fUQ== X-Gm-Message-State: APjAAAWPv0ZGMU81aYuxs2A3T55yke2KZoLx/vfmkB3TjlUwtXNIaW1J olWJTnf/Eb0vhZPiueyVJyU= X-Google-Smtp-Source: APXvYqy6dfj/Q7qcYcnC9q8nuVjXxrC9oFUtPdUS8oVrD9JdpSnWzoVJDDsr+eYqSVRCowjtUkZvvA== X-Received: by 2002:a65:6201:: with SMTP id d1mr15539968pgv.28.1556134726459; Wed, 24 Apr 2019 12:38:46 -0700 (PDT) Received: from Asurada-Nvidia.nvidia.com (thunderhill.nvidia.com. [216.228.112.22]) by smtp.gmail.com with ESMTPSA id f87sm32296503pff.56.2019.04.24.12.38.45 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 24 Apr 2019 12:38:45 -0700 (PDT) Date: Wed, 24 Apr 2019 12:38:41 -0700 From: Nicolin Chen To: Christoph Hellwig Subject: Re: [PATCH v2 RFC/RFT 1/5] ARM: dma-mapping: Add fallback normal page allocations Message-ID: <20190424193840.GA30240@Asurada-Nvidia.nvidia.com> References: <20190326230131.16275-1-nicoleotsuka@gmail.com> <20190326230131.16275-2-nicoleotsuka@gmail.com> <20190424150638.GA22191@lst.de> <20190424183310.GA6168@Asurada-Nvidia.nvidia.com> <20190424192652.GA29032@lst.de> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20190424192652.GA29032@lst.de> User-Agent: Mutt/1.9.4 (2018-02-28) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190424_123848_804747_A6109157 X-CRM114-Status: GOOD ( 15.83 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: tony@atomide.com, catalin.marinas@arm.com, joro@8bytes.org, will.deacon@arm.com, linux@armlinux.org.uk, iommu@lists.linux-foundation.org, linux-kernel@vger.kernel.org, robin.murphy@arm.com, linux-arm-kernel@lists.infradead.org, m.szyprowski@samsung.com Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Wed, Apr 24, 2019 at 09:26:52PM +0200, Christoph Hellwig wrote: > On Wed, Apr 24, 2019 at 11:33:11AM -0700, Nicolin Chen wrote: > > I feel it's similar to my previous set, which did most of these > > internally except the renaming part. But Catalin had a concern > > that some platforms might have limits on CMA range [1]. Will it > > be still okay to do the fallback internally? > > > > [1: https://www.spinics.net/lists/arm-kernel/msg714295.html ] > > Catalins statement is correct, but I don't see how it applies to > your patch. Your patch just ensures that the fallback we have > in most callers is uniformly applied everywhere. The non-iommu > callers will still need to select a specific zone and/or retry > just the page allocator with other flags if the CMA (or fallback) > page doesn't match what they need. dma-direct does this correctly > and I think the arm32 allocator does as well, although it is a bit > hard to follow sometimes. Okay. I will revise and submit the patches then. I think we can still discuss on this topic once we have the changes. Thanks _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel