Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1722518pxj; Wed, 19 May 2021 12:20:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxPbQ6v2/TkfuRmtD3DM1rQIkKzJgeNTci9gjre2oivn9G2F6dClAQVOxo8OfTHzzj4moaC X-Received: by 2002:a92:d2ca:: with SMTP id w10mr700734ilg.31.1621452014018; Wed, 19 May 2021 12:20:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621452014; cv=none; d=google.com; s=arc-20160816; b=XLLbUkegWo0+8hBgxqOeS0nRF1BvJBqfXobL2WnEE6s/ljg5X6simcZvPErWw4ZZzB JeBZmHE3sUWwe/nCoSR/+ClM1mjnX9Zhz8yFzEDjgJZSYHX1XTlYV+4KPQWg3+LbfN06 GSWg4yOCjITYPqm4I9C59ledgAoZs/yoUelQ0seQoxaTg0/B2TX3fZMQ4y/e4C1xPA2q Zb43tm8ze7c9JxOnbvKv7gkTLAtYtky0fX3lFI45ZlYSeShI9K25uoxeB9fQMhetjD5g uONw1TgZSA3LsZBOKA4Uqi+SUA+/+4bzQfbA9dJ1o2/dPIjG4VxtFc4eGhFhGzE+7W0X hwyg== 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=9okw0AivC/GodUAOgdSjrzNrGvlF7i2iJnuU6Q7Ckhk=; b=LaaiPyjRKLaqBu/tB6B2vRLgma9FsFgopPJm9aH+cEzGOjrCR5YrmIjHhVvB33RZqo LXGDKfZM4LQiMbOGnFOkgg8SAVQ/Uf1YzUo5Nb0n93kz0HMJcBxLt1efGxxSr2mVTEiK S6nNfq7p0Joaqncn6m14/l/fXERyGlN5b15prhqcVbCJJaMjQWPdwDQ/CQKgXXJdOK8U AHx0FeKNTkFL/lT62EgoYTJIYtxS5PxxEI0GkZMESc8cafh8ApK5MksvX8AhFTAKLrKA ygVcUrqJK98lNk8X7SSOLHZh/V9m6naP1P2chbhjkHX62p6HfhFIR3t9pnOBrf9ZjeR8 PdIg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@brainfault-org.20150623.gappssmtp.com header.s=20150623 header.b=GLdq3bNP; 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 l11si226415jah.65.2021.05.19.12.20.01; Wed, 19 May 2021 12:20:14 -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=@brainfault-org.20150623.gappssmtp.com header.s=20150623 header.b=GLdq3bNP; 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 S239280AbhESHQa (ORCPT + 99 others); Wed, 19 May 2021 03:16:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54862 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236951AbhESHQ3 (ORCPT ); Wed, 19 May 2021 03:16:29 -0400 Received: from mail-wm1-x332.google.com (mail-wm1-x332.google.com [IPv6:2a00:1450:4864:20::332]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1E544C06175F for ; Wed, 19 May 2021 00:15:09 -0700 (PDT) Received: by mail-wm1-x332.google.com with SMTP id z85-20020a1c7e580000b029017a76f3afbaso171232wmc.2 for ; Wed, 19 May 2021 00:15:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brainfault-org.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=9okw0AivC/GodUAOgdSjrzNrGvlF7i2iJnuU6Q7Ckhk=; b=GLdq3bNPUG1jVbmGuXT/73WV/H4ct0JC+JPyO1eIGy+uxrXeIrrgUTBkgOyB79PHc7 wLFK19VrpLW3+QR7uumz7VfegumO/03BPjeaHthtleLjPv4rR5sZsZKmnwKaMZ0UMMQE gr/wpNE/p3phdRl/HBhMBnnG7Ceqfv4Un6Qh9OMLUWnILbaOcsufq7QT6gVJNkALrDj5 LvEedY1AAT0Wpovo/BsutzLeeNlF70WhAFXjf5wfegQAs7idnoCE+88T76OnTfUMjnqY mZBt11ZLbg81ZNLfNeOqHoJde6wljGw5DprysPeWSQuaCaOg7bKP+7E2aaqYKQ3qBy0R wFLA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=9okw0AivC/GodUAOgdSjrzNrGvlF7i2iJnuU6Q7Ckhk=; b=XC9ih/rSShIjMdp83jef7imQuv4y9+wVL0DWZ/Bf23Q8nVPWFYDRVe5Y5XdblfbzVr Uab+VJt+clxWzvVpb7l6cVL5Sv/ftPLwlsFkLIe4KWYhI/euiMr+t61aIFwhXUqjyTb6 JaYFR3JqwunfKE1K3BojXpEdKSHB+9F5Ys7v4qmO6RSKBoSljr/z7jXe+A9XvmFSZO1r yuGlfVQeNAYPCre4GwVEWaUAky+4M/XiRdojEFyszg1JOl48H6TSukDIApUIIRLjkpIF g99I+1oC4kSp4qyjfJlDLutbBFXH+ehv7/sJ30qFMGPJ9q75binpciGpF4kj43vLbpnb atyg== X-Gm-Message-State: AOAM5303gKxbkkHX4VspgJkyx38xXR+xim0QCtHeOOp1Nmar7yeRkFO1 2GVaiMkSsPFu+OeGvSVIyEo9sA9IA7hO6bLssQcHbA== X-Received: by 2002:a1c:4e0b:: with SMTP id g11mr9882524wmh.3.1621408508509; Wed, 19 May 2021 00:15:08 -0700 (PDT) MIME-Version: 1.0 References: <1621400656-25678-1-git-send-email-guoren@kernel.org> <20210519052048.GA24853@lst.de> <20210519060617.GA28397@lst.de> <20210519065431.GB3076809@x1> In-Reply-To: <20210519065431.GB3076809@x1> From: Anup Patel Date: Wed, 19 May 2021 12:44:55 +0530 Message-ID: Subject: Re: [PATCH RFC 0/3] riscv: Add DMA_COHERENT support To: Drew Fustini Cc: Christoph Hellwig , Guo Ren , Anup Patel , Palmer Dabbelt , wefu@redhat.com, =?UTF-8?B?V2VpIFd1ICjlkLTkvJ8p?= , linux-riscv , Linux Kernel Mailing List , linux-arch , linux-sunxi@lists.linux.dev, Guo Ren , Paul Walmsley Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, May 19, 2021 at 12:24 PM Drew Fustini wrote: > > On Wed, May 19, 2021 at 08:06:17AM +0200, Christoph Hellwig wrote: > > On Wed, May 19, 2021 at 02:05:00PM +0800, Guo Ren wrote: > > > Since the existing RISC-V ISA cannot solve this problem, it is better > > > to provide some configuration for the SOC vendor to customize. > > > > We've been talking about this problem for close to five years. So no, > > if you don't manage to get the feature into the ISA it can't be > > supported. > > Isn't it a good goal for Linux to support the capabilities present in > the SoC that a currently being fab'd? > > I believe the CMO group only started last year [1] so the RV64GC SoCs > that are going into mass production this year would not have had the > opporuntiy of utilizing any RISC-V ISA extension for handling cache > management. The current Linux RISC-V policy is to only accept patches for frozen or ratified ISA specs. (Refer, Documentation/riscv/patch-acceptance.rst) This means even if emulate CMO instructions in OpenSBI, the Linux patches won't be taken by Palmer because CMO specification is still in draft stage. Also, we all know how much time it takes for RISCV international to freeze some spec. Judging by that we are looking at another 3-4 years at minimum. Regards, Anup