Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp3065186pxv; Sun, 25 Jul 2021 15:30:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxrKtc0uqLry4w+ZNNvzi7BJAiUMX+d+L2y7wUsaM3ALGl91zde0p+gfWnpfy9PCrIctyQS X-Received: by 2002:a02:90d0:: with SMTP id c16mr13622270jag.106.1627252213843; Sun, 25 Jul 2021 15:30:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627252213; cv=none; d=google.com; s=arc-20160816; b=ds/kA9oKIH6qHRQsazXNDkaxiMjTnxx8aQV4PoDahty+WELlS1v6/lFR+0P3C0micj aEQ9Slao6L5cs7gitCETBcyHMw8YVLWarjHwcwDOTChbSIs3oLc0Auue8BV6q0r6qxy9 Q/MTxfeK80A4fa06DH0+TAXUZ27McIdrUCe5VGpcy61z+9TRDTprfYTzFMU0WMyD7ckh H4+zHLtnr0Uga608FJXKotlX3thEnDfh9P/6U4FAYHmMl3cDDZvGXcnEUdY2UAneQyZa O+cvJHV8T2r7eyeGn0i4gp8xWDyHhUQtKz6I+Z4Y5lB8ZCiMTDya6jYjgbKpzUYU0HXz UOMw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=LXdv3SNozGddEOtTXiweAPm33gFyubUEqk9QT+fHMHc=; b=t9O/rmVjOhdcyw2kd9TUwTQVqQHR1Nyf3IhiQdhTjRkl5pnVaHU02/fD08AfxWeXQV Gh9yZk6hcDvyT8JuBVFz+sjty0cRyDd5/6pJOdRi+6e1O50PryZRdltaiuS0UYkbae7I sgSNxPAEWQ6oWdj8y6L6w4URv5WuqrGMMkC6iazEGLB2gHi9FD4+L275mku6/EVKqlFn M90SMU+Sdc7WqkPcCJigxeTYk9iuo37y70iMREU6feol+OntC9Z02J9QUMzvvq8Oos8d 5vhio2GNkvPRbG/6rRaHOfKCtkOWm/dwXY+ki7hb9BIoZQcKYyqelK8DABDsovuZ+Qdy 96oQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=NBPZZmLX; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y11si43030333jat.64.2021.07.25.15.30.02; Sun, 25 Jul 2021 15:30:13 -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=@kernel.org header.s=k20201202 header.b=NBPZZmLX; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229956AbhGYVs4 (ORCPT + 99 others); Sun, 25 Jul 2021 17:48:56 -0400 Received: from mail.kernel.org ([198.145.29.99]:34792 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229531AbhGYVsz (ORCPT ); Sun, 25 Jul 2021 17:48:55 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 94F8F60F43; Sun, 25 Jul 2021 22:29:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1627252165; bh=LXdv3SNozGddEOtTXiweAPm33gFyubUEqk9QT+fHMHc=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=NBPZZmLXXECARRRpEYQnILLiWAelyx07J8u147xeLgLnvwVuOuCbSyWtEgjGZdGXZ qczGtqvXBsxZc3Az2W3EwEoNOBBYlO16DwuPkJprDfNylmKUSeVQ3oCdothZgb2Bni 9rQiM6bwtcPjqV3EfCv8OvpNve5f6FFEM6tPO6mUf1oWARwt2aBLkvV4tYPGnS0ifn reMmxDr85ZhAAxogPTTL8v3QrLWdyVkGkF5/MmZ6l9GlDyP2q3+tFQJpEqTHYN4Wqj lSlGFU29w6nStaab2+shG0nR9K87pYEGuvSnGCORJ80K0d5pqHvRyeMrP6BLDerHKd qZfasI1lM/seA== Received: by mail-ej1-f51.google.com with SMTP id o5so13601005ejy.2; Sun, 25 Jul 2021 15:29:25 -0700 (PDT) X-Gm-Message-State: AOAM532JlAfb+maw244hpLVG1+kfIBa/6vW+pkTWe/54pZw7vG61U4NQ ELpflc0AkmGRSJy1Ac+GQTG8pRf9AlqzkAMGTA== X-Received: by 2002:a17:906:95ce:: with SMTP id n14mr5509121ejy.130.1627252164182; Sun, 25 Jul 2021 15:29:24 -0700 (PDT) MIME-Version: 1.0 References: <20210723214031.3251801-1-atish.patra@wdc.com> <20210723214031.3251801-4-atish.patra@wdc.com> In-Reply-To: <20210723214031.3251801-4-atish.patra@wdc.com> From: Rob Herring Date: Sun, 25 Jul 2021 16:29:12 -0600 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [RFC 3/5] dma-mapping: Enable global non-coherent pool support for RISC-V To: Atish Patra Cc: "linux-kernel@vger.kernel.org" , Albert Ou , Christoph Hellwig , devicetree@vger.kernel.org, Dmitry Vyukov , Frank Rowand , Guo Ren , Linux IOMMU , linux-riscv , Marek Szyprowski , Palmer Dabbelt , Paul Walmsley , Robin Murphy , Tobias Klauser Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jul 23, 2021 at 3:40 PM Atish Patra wrote: > > Currently, linux,dma-default is used to reserve a global non-coherent pool > to allocate memory for dma operations. This can be useful for RISC-V as > well as the ISA specification doesn't specify a method to modify PMA > attributes or page table entries to define non-cacheable area yet. > A non-cacheable memory window is an alternate options for vendors to > support non-coherent devices. "dma-ranges" must be used in conjunction with > "linux,dma-default" property to define one or more mappings between device > and cpu accesible memory regions. 'dma-ranges' applies to buses. And, well, maybe devices when the bus is not well defined. It is not a reserved-memory property. Rob