Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2076074pxj; Wed, 19 May 2021 22:49:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwMUX82ShcPYcVjUkVaQz3pvp0cG61uCIK3o1y7ghj88EcIC8peiM0XtXgoU12WSPkLYAHO X-Received: by 2002:a05:6602:1223:: with SMTP id z3mr3802692iot.97.1621489752204; Wed, 19 May 2021 22:49:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621489752; cv=none; d=google.com; s=arc-20160816; b=nf01lMzHMnmdpjVc9K/PiCBXT6Z6P+oK6/628wyKFHUmByEuyFA6FrPcthMRUfAh31 VKQmcuzlchclY49ZiIOaHOFXuiSQbS6F5HKYbiNiKCZyMSCS24lgCf4lJh8nRqFfv93B 9ezici5pv525B3FWthFmuguQhpUcQLpYcoqK/Odt7SGlVyrREYiyr/MNgWXkf8/4mOfC 0yZCZLadh6mmln498xhHJW6RVZJK1GsDt1QMdxD6sJx9OsltKNjyehqs9YbP8sDCSmiE GUDoeoBud6mlICwuMJHvIgrTZGuFi2H69327jTCBE+2jRtiXEeUa6nhtCG/JdTpKctjx y1cw== 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=NgUuoO+Q2snRRHiK3sD2zltLISkXBFMEtIkBmpIVdw8=; b=D+OW7UOe9ev3kSXTQqJZqqY2SnE9bl8FNoDUYExnBIWVWu7f3VULocqaGXIJB1y+xa rUigrfKdhapLcmkIZ2OcjenUSAGyl574nm8h4nUOhy/hgElcgq0/9Wqxf/Lw4SHNsW4d cOMG990m9jpNgiJPkh+rHCZQtlUP8uzRtPhZB6jq50cEUQJCm78g04MzHpEwok4YFBRd 0TZj6K5rbRRVWWz7FYg8Q2Z02uB8ScK78yJSfqUz4vnCAbbtU73Kg5o37IGyy7JS11cf p8xhuyyr8ytHUeMx+OXQBJIXb5asWYJJAC1LdgPqR1ppHcTGnZxs/096uJQLydAawKVr xfzQ== 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 k7si1471188iok.65.2021.05.19.22.48.59; Wed, 19 May 2021 22:49:12 -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 S230367AbhETFtl (ORCPT + 99 others); Thu, 20 May 2021 01:49:41 -0400 Received: from verein.lst.de ([213.95.11.211]:40759 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229547AbhETFtk (ORCPT ); Thu, 20 May 2021 01:49:40 -0400 Received: by verein.lst.de (Postfix, from userid 2407) id 5452967373; Thu, 20 May 2021 07:48:16 +0200 (CEST) Date: Thu, 20 May 2021 07:48:16 +0200 From: Christoph Hellwig To: Guo Ren Cc: Christoph Hellwig , Drew Fustini , Anup Patel , Palmer Dabbelt , wefu@redhat.com, lazyparser@gmail.com, linux-riscv , Linux Kernel Mailing List , linux-arch , linux-sunxi@lists.linux.dev, Guo Ren , Paul Walmsley , Nick Kossifidis , Benjamin Koch , Matteo Croce , Wei Fu Subject: Re: [PATCH RFC 0/3] riscv: Add DMA_COHERENT support Message-ID: <20210520054816.GA21693@lst.de> References: <1621400656-25678-1-git-send-email-guoren@kernel.org> <20210519052048.GA24853@lst.de> <20210519064435.GA3076809@x1> <20210519065352.GA31590@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 Thu, May 20, 2021 at 09:45:45AM +0800, Guo Ren wrote: > It's a very big MIPS smell. What's the attribute of the uncached > window? (uncached + strong-order/ uncached + weak, most vendors still > use AXI interconnect, how to deal with a bufferable attribute?) In > fact, customers' drivers use different ways to deal with DMA memory in > non-coherent SOC. Most riscv SOC vendors are from ARM, so giving them > the same way in DMA memory is a smart choice. So using PTE attributes > is more suitable. I'm not saying it is a good idea. Just that apparently this exists in the ASICs.