Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1954197pxj; Wed, 19 May 2021 18:49:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzZrSfLz4zgLq8Eu3UQNUnUuYSnnwOsiIYTLDbS8Pgzpc+ylwQhp148g9vAuH0VEE7q7e9f X-Received: by 2002:a05:6402:21dd:: with SMTP id bi29mr2215206edb.29.1621475364856; Wed, 19 May 2021 18:49:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621475364; cv=none; d=google.com; s=arc-20160816; b=PlroPKyPmDwqKPikzfeOGgkFJ9qPJKTxOBiwW1XZsMjTTqaKbsucqH9JBK2JAwwaEx S92Ge3eenDJ6BilAAPnTWgJOaJFbjQuIm8J/T9Dn9p8nENoJlGEZ4KjM/wvASxlpT8tN L7GLCvoKU4Lww0EKHjFcE53ZveI3qozcfKf2kSINUqgpOYgSOjIGyn5GnGwigfzY3EUl TJKblWvpmVMgWb4hDj38r7BOHD8n/B3cK1kyWaPhRlGXFaAK6hjRtM0EfEsuD8kTClrf A+gmcBOeqMOeE08U5yz7O09eQ+yWlV1ia7+9hILgV86iqkTW5vllibt6LvFp5sswnNhd +aCQ== 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=ngei1xwUV3VCFX7gecgAyABQGttOUbwWXBLX69ylH7Y=; b=scsrYb9LYklzEsLQqi4E/eqAIqOoTSvgmWJv3BmZjvq1UWv7op/21kQlZcAB2J+QTk /LRJqplkILvv/qeEKikZLofd4iXBFyrQuM6fS/NTOTNLhEWp+qPwR/utevq3xpadQEyY tswWieyu46djBDGmAZhwo0uO86MQhKenkOrUkmzCbhd/DDOSEFQ7Ic7dvqWkeIYX5+M9 RQxApoOMWPMPffC6PGro5AMpnvvtBterD94W1WpxdMPI6I37I0NVZm3sqm+ZsaeRpxUa l4isjEXA21v3luQg1Qb0s2VII3Fe3RmkEt5w9bRRQtddBuQ6ME5Edh7SRPNge3SuPQhP fTBg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="O/x0LyiH"; 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 j14si818958edp.54.2021.05.19.18.49.01; Wed, 19 May 2021 18:49:24 -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="O/x0LyiH"; 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 S230224AbhETBtR (ORCPT + 99 others); Wed, 19 May 2021 21:49:17 -0400 Received: from mail.kernel.org ([198.145.29.99]:36728 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229498AbhETBtQ (ORCPT ); Wed, 19 May 2021 21:49:16 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 75A166135A; Thu, 20 May 2021 01:47:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1621475276; bh=poKYit/QMpU4dKJNKCzvxCXd10ycTg0LVovaKwHdVJU=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=O/x0LyiHKaXRHAHnix8Nv4+NwnU8XbzIAYPrRmgBkgKE5WuFEZlElAeQ0/x4E72+I oq+W1pFg/nSfT9fgfq3sPXU/rWOQo6P20vPJa/8IdNqGhrlPgbLqIZ24inzbIviBXl rPX0OUVtTu3qQv4vlVtuKDRAADMTpAAeoSnbB0wA7U1xrhLPWkD2HV7J0SKmDWUEBl 1lKfUJA6oXuvtE7R4iDGWMs7XZ4idntGYO8L69cW01UrgMuAuYqvgrPuW9iBsTNcLr NdIRxZAQeZWE/UN/vWMe5YGNm0T+3Fs4KsJ9KBX6xK7XzsBIJ6HbOLg8mjoKE1r3S2 ZZenF0FOdB45Q== Received: by mail-lf1-f50.google.com with SMTP id w33so14032715lfu.7; Wed, 19 May 2021 18:47:56 -0700 (PDT) X-Gm-Message-State: AOAM533/hio93qdNZq4cvlGi5TXzK4630bD2DUHQFNZq8xDvU7ljUoC9 3exT+8DDfK+Cq86zTSd4m3H1YSBYT1LDEHIMzlo= X-Received: by 2002:a19:c49:: with SMTP id 70mr1686096lfm.555.1621475274744; Wed, 19 May 2021 18:47:54 -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:47:43 +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. How do you think about sbi_ecall(SBI_EXT_DMA, SBI_DMA_SYNC, start, size, dir, 0, 0, 0); ? thx > > 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/