Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1539455pxj; Fri, 21 May 2021 17:39:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJznSHIYKptVEHjqL2UWiHVhUopYXcDhvymAJ/h5FbKX20Dmb2TdcK07maM6viEkT2RltF29 X-Received: by 2002:a50:fc91:: with SMTP id f17mr13303445edq.201.1621643942023; Fri, 21 May 2021 17:39:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621643942; cv=none; d=google.com; s=arc-20160816; b=TgPhaVDUa3k4JZBHFvbnfj9hUuG5xibF7kQQTYILgKoEDkhZFDHUz+DqWvTpdu9Jfo 71w40JqUFeETLjbHNYfPjGtGXCE+WHWmRo9CeX8LXUrxH8bOdXSyKrjC/pv8MkWDcyb9 PffTMEc0oAC44xXXgJGLP9qXQ2eBuSOhX9z+jwnbralhVSXZrdQrRdHXJbYgLedfMSLD VAmBz7E8uXOXufzsZb145rsukRQZxwn1C6KGgDTQ1Xj6OxWdt0sKYBtt/Pl22VqUqQgB N7lGbxJ3Ro/uUcynYb3QfKyYedKq3ofH6+VLarGoPY1FUMlrd8dJM39CHxBEIQVvrbsA 3aIA== 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=78UBCgWTtYV3p4sgz4vUFD0pL15CSosCbP1DaT0GYx8=; b=ngvfnr+zFCA4TBz7nlMyzFd+akzPak4TGowhU2qvPqbzU4Lf093f9maYHJuPEwE0qB 4WkKNagPGzdO5ijJjaFEfHJvu4C/nn77qYr+MPJjS17xCFmd3/eK7rPpks7QtUIYicI/ 8S/v/E644ODZ8VKEDM6InygLXukzJ3lC3pyeUU1mGLt/nn85WFyYwGgXr7aVWqwj8+tK bwpXWnN1hzOY0Lw4fFYEnwgb9ugIB3idDdrsQgLzTfhvJTnhcJZrACiTqBPeexiTk127 C4RlBhF6gqg+y1oz/J9+76Ya1UmSFQSKz5Ec0yq+dekdMSo2uLHcmHq5/EwmwcXdWo8H w9sw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=MPqbJhBH; 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 a65si6291704edf.266.2021.05.21.17.38.28; Fri, 21 May 2021 17:39:02 -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=MPqbJhBH; 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 S230265AbhEVAhq (ORCPT + 99 others); Fri, 21 May 2021 20:37:46 -0400 Received: from mail.kernel.org ([198.145.29.99]:59376 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230190AbhEVAhp (ORCPT ); Fri, 21 May 2021 20:37:45 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id C4302613FE; Sat, 22 May 2021 00:36:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1621643781; bh=HaoAEb5QnxGwVYmtRURFgpSmH16cCBITcqMVRG2/0Gg=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=MPqbJhBH3RstH9EWKnNxymskz2Pl/C3W0gZMrlE5YCNKDUTrUUl6zCvDVB5k5XAYV Y9reX8ayEACS9y0c/FUtyyh/u4B9uR1QqFmPsWzjNryQn+mrf9sJS0gsybWWjctN+6 8t3HtRVEAhAQbtaZt0m0Y2ipK9Ky6/a///tbh5LM0ggxxkxKSCYeUmhmxi04t5zUHH 3VoiVihlCbU5yRaTI00Hz9NhwohX5X6bXsnRYyv2VKYnPnCyVijAyx6eVeIE/4yuTU 2Obo3xiF4iJYCtUfU9lO4WLwiZEypzFDL6/ggllWhgtf/ABAN9PNqOCTmfMo2TyWaN ElcxbVijfWhjQ== Received: by mail-lj1-f181.google.com with SMTP id a4so11172626ljd.5; Fri, 21 May 2021 17:36:21 -0700 (PDT) X-Gm-Message-State: AOAM531IcwAKxtBqO6a+axvmrMG2S4Yc70gwzOzv2Xv5C2a94MNuoN6/ YOhv2OuSMBzXPTZRaFEyt7Qsigd8qojaq22Dd7Y= X-Received: by 2002:a05:651c:502:: with SMTP id o2mr8602037ljp.105.1621643779980; Fri, 21 May 2021 17:36:19 -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: Sat, 22 May 2021 08:36:08 +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 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 > patches won't be taken by Palmer because CMO specification is > still in draft stage. Before CMO specification release, could we use a sbi_ecall to solve the current problem? This is not against the specification, when CMO is ready we could let users choose to use the new CMO in Linux. From a tech view, CMO trap emulation is the same as sbi_ecall. > > 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/