Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1959943pxj; Wed, 19 May 2021 19:00:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxrM9lLITdjMh/Joljz4F63MHjGhQp3Ac06iFpycSFoLKJ3CGS1eY8umdx0KZLRVB+fZHXc X-Received: by 2002:a17:906:f01:: with SMTP id z1mr2094069eji.535.1621476038437; Wed, 19 May 2021 19:00:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621476038; cv=none; d=google.com; s=arc-20160816; b=B+/ppQ0bGf5b8wMcuUTRhUOzT77EwK9MhU34Tm+VLoLnlitIA9RhswlK+AZxS0cNDG 3Jbg/uAjQGP63PjWOEjBj2J1yGXh3FzEVCg9YdKmX6nosr+cgLnhsI1UYviAFtShh9Co RYJld6ChDpmv1up9JmGAT9SGuc93B+Qn4kpzL8feO8S20MALsbCNRgEed1nzt47TIZdb NaguHdZvyxKCHR9Vy43w7ULKq6dDKChOVX0QKQZISGyBJN7szYTZFkD3L7rH62ZoZDO8 EjD1AQkZi8Jzscqj/AmzXXxRrDIwfk4VDvu1UbOWSI3t6VeMG+XfG+EFlQHYVL9lKzAZ ul9w== 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=tUv3rVPeSWDnF3GAjcJBgmsDqPM8xlWqUZ0ePXqSqfE=; b=x5ovCQoFyhYE2ldtatSWL5t4RNE/f2axm4fNPtDsD7MRPWUD3M6wqNiHwXddQ8Tlau g151kkcJg38c97weo/CX44ktoZUpyO+o97USmJ83XGFwKr2jS+TezWQ2r5CuYLDTQrbh vUUSIqQVqBkUw6d78rQ+Vq9dsQUxQpS/7fGInfWayp/fMKtB+aNFvt2ACvOS2wUNeOhP 5aTlZUvFXSrMEqzKbVkWoV2Dmx6vH+pNOM2cKK90UDBqKXEARNShVTUl9oeBnzKzZ1rf cQEDOSuldznBjZ97v62AxQOEiJYynYttthdlVRufRVMtZQP+85eziQHSddaNBTpzE3v5 +mAA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=aQy9ccJs; 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 mp18si1460433ejc.543.2021.05.19.19.00.14; Wed, 19 May 2021 19:00:38 -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=aQy9ccJs; 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 S230146AbhETCAi (ORCPT + 99 others); Wed, 19 May 2021 22:00:38 -0400 Received: from mail.kernel.org ([198.145.29.99]:38134 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229498AbhETCAi (ORCPT ); Wed, 19 May 2021 22:00:38 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 5F56D6135A; Thu, 20 May 2021 01:59:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1621475957; bh=JdmBtI/nybX20LTYzwdeu3sRM7FFnENPxyFNjn3PhTc=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=aQy9ccJsdFmRayoAiTGj43uqjruUasRMW3XaC7Y51U6ChraF+gd4VnB5Mm47kDzoF YtOxGgjcaqZept35IaUQW0QVaeAhwRn2ILFnGyv9rjSwh+marLBoRCyIbJ/p6xFnft V2MQ4C4f2aWrFpBp6vD41RmLBy5yWatN4r39rw8hffgO+MRPVrijETmZN5SYhNHtC6 ZJtWFpbhBZRS9NwBEwEiN3/i/Yw67Xq4F7h1bfNd9n9SMfgpmkqUqZG/X5yLoUNN5J KR0y8HJp7SkFTsys/rn8aSejDiLFMkfizOeXOFWduU2BGIsxKMnNxfTzGVg9KmA8yw 9magqsOUmrp8A== Received: by mail-lf1-f52.google.com with SMTP id c10so1011332lfm.0; Wed, 19 May 2021 18:59:17 -0700 (PDT) X-Gm-Message-State: AOAM5327WOAGgXW9GikDB3bFvnTUqsKYQwwWogk7vUYBfA80XEZj7B6q dX8cnR+Y35UQmd72YvGd6ze4QwhGKq+Ih2eYZMA= X-Received: by 2002:ac2:5493:: with SMTP id t19mr1678843lfk.346.1621475955570; Wed, 19 May 2021 18:59:15 -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: From: Guo Ren Date: Thu, 20 May 2021 09:59:04 +0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH RFC 0/3] riscv: Add DMA_COHERENT support To: Anup Patel Cc: Drew Fustini , Christoph Hellwig , 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 Thu, May 20, 2021 at 9:47 AM Guo Ren wrote: > > On Wed, May 19, 2021 at 3:15 PM Anup Patel wrote: > > > > 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 I think it's CBO now. https://github.com/riscv/riscv-CMOs/blob/master/discussion-files/RISC_V_range_CMOs_bad_v1.00.pdf > > patches won't be taken by Palmer because CMO specification is > > still in draft stage. > How do you think about > sbi_ecall(SBI_EXT_DMA, SBI_DMA_SYNC, start, size, dir, 0, 0, 0); > ? thx CBO insn trap is okay for me ;-) > > > > 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 > > > > -- > Best Regards > Guo Ren > > ML: https://lore.kernel.org/linux-csky/ -- Best Regards Guo Ren ML: https://lore.kernel.org/linux-csky/