Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3033154pxj; Sun, 6 Jun 2021 23:53:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwoW/zPndIqBhIugDWvtwpS0uRifTRGXf7DLbgG563po8Gdp6n2A0KR92Ci6gLNVtWc5lgd X-Received: by 2002:aa7:c758:: with SMTP id c24mr7691407eds.188.1623048783652; Sun, 06 Jun 2021 23:53:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623048783; cv=none; d=google.com; s=arc-20160816; b=L2F/ugupeck0cDsAHhHDnVts71TtvCsY0yqy2NuVNXGAXGhGKHZriWFtM5JFcojvkX nDhV051v0BL88U/ALUgoC+5xoPunWLOfpF/2Y9IC7VbtgNHITeLCluJP9pGuQTodCEf8 Jx3yAPcXQThgLSx+TKBhneKjFKdd3DOtjmghFhydJDob2Nr8LWaPWhRexJX39PRxMpH/ layQojCdr3ASjzq2CpNq3TmG4PW54M16BYxTMPVBIqz2KJnjLRSiZMw6ErbGJ4rjEsqX TuXauS7jee79587EAB0kQ3nGhL4JGdDa3PEvNruEXE/amnxHpTPHPuMnOlcfAPqFUNB2 GvJA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=jn/78T3wzda87XvWta0kj6IdWlwCBzILvYIE4u+VFCY=; b=I5QTNlddx3E5SQ618DPIgCDJsHUIuzPc6JmI2gv9Mnqjr9ou85OGp1zwHd9cfkdK5d tRqjsnVRnSDLnHMdQxqEujw3b00EvdKGyrmAkRRYKGLM2zxHJeTq2DaTdNwCx2qzw+md KhoGfC7RyTJbW2nS+Zcj0zYE+AEt6tx9rYmjFU9zE+a4f+/TPPqAEAm63PmwJ5Ylk5Jq dhiPyNRRn4lmTEujgcVAYJAtgvMUaLDD88EDtBX+xxrNSOmglxl/DSsKGEtHypp34Z+B rho8l6QsKEtumQDhCb4RdkDBrN633OXeddYLByboA2E1SpUMCdIko4YnRyT74jv7YQ6v xB1Q== ARC-Authentication-Results: i=1; mx.google.com; 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 dn28si10929114edb.73.2021.06.06.23.52.41; Sun, 06 Jun 2021 23:53:03 -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; 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 S230193AbhFGGxB (ORCPT + 99 others); Mon, 7 Jun 2021 02:53:01 -0400 Received: from verein.lst.de ([213.95.11.211]:44692 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229578AbhFGGxB (ORCPT ); Mon, 7 Jun 2021 02:53:01 -0400 Received: by verein.lst.de (Postfix, from userid 2407) id 2A62B67373; Mon, 7 Jun 2021 08:51:09 +0200 (CEST) Date: Mon, 7 Jun 2021 08:51:08 +0200 From: Christoph Hellwig To: Guo Ren Cc: Christoph Hellwig , Nick Kossifidis , Drew Fustini , Anup Patel , Palmer Dabbelt , wefu@redhat.com, Wei Wu =?utf-8?B?KOWQtOS8nyk=?= , linux-riscv , Linux Kernel Mailing List , linux-arch , linux-sunxi@lists.linux.dev, Guo Ren , Paul Walmsley , Benjamin Koch , Matteo Croce , Wei Fu Subject: Re: [PATCH RFC 0/3] riscv: Add DMA_COHERENT support Message-ID: <20210607065108.GA24872@lst.de> References: <20210519064435.GA3076809@x1> <20210519065352.GA31590@lst.de> <29733b0931d9dd6a2f0b6919067c7efe@mailhost.ics.forth.gr> <20210607062701.GB24060@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.17 (2007-11-01) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jun 07, 2021 at 02:41:14PM +0800, Guo Ren wrote: > Double/Triple the size of physical memory regions can't be accepted by > SOC vendors, because it wastes HW resources. > Some cost-down soc interconnects only have 32bit~34bit width of > physical address, are you sure you could force them to expand it? (I > can't) > > > or somewhat dynamic. > How can HW implement with dynamic modifying PMA? What's the granularity? I'm just stating the requirements from the Linux DMA perspective. You also do not need tripple the address space, just double.