Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp3473552imw; Thu, 7 Jul 2022 02:18:58 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vri1P14Lrmd1yJXSfDCocdeC/b2Hr06UEhBJH/p0TQgz4exYSVqfyY3wr7cjy+e98wZtLd X-Received: by 2002:a17:907:3e84:b0:6fe:8c5f:d552 with SMTP id hs4-20020a1709073e8400b006fe8c5fd552mr43755212ejc.710.1657185538218; Thu, 07 Jul 2022 02:18:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657185538; cv=none; d=google.com; s=arc-20160816; b=wnid8New3lVzprdi0avmc/xcf64EiQtmmU/3/T6m3amGplE5OwYLbW2VhOZ98cfb63 2PS7uHHnkbB3kjO3KcgsMLCuLD0PEdRjveNRXEVoN7Y1xe4GUKDDg2turQzGfeSVj2wE 0JilX6z5WtgQoqU2OVdXb3fDL9OS0N0h9xMe+hTrincojb6GcUrvfbSOz+oQc/dIB3yK J4zw5mQiZ0agzU7ywfE2VYOtwGm4jpRYStgwlZDDGV5wxNpYzhTs1w8Uubkby2T1cfAY f+PEiPUFfOeZFU24jc9eLi+46eRcl5un7tFZ+cMnNdjl0ryuzeNnN5kR2e6neSASkGZ0 dgiQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=xP+sjYE8kRL3gtI+0dw9mxb6QNfPJhdNZ5RhnR47tgk=; b=II1gzEiR7ka/VBj8P/lrLq/PO2wO9CzU01nRyOANiWItp2266ta3HOjVrekIMjiRTX 9r93gIKHTxeLudUTBUVoaCCkKFDFCMma55U9OF0StENZRdZl/l3zAOZf/Bo9bQR0C98h /udCIAZAObWFDPV6CatrjxrvpO+emWpHP3SP5lmxmbCrs/DpfRUbOXPjXNrS9dwAlFk7 UvgtHkQFJdlFv5GLQL6QCPirj5naROGIg6ocV9U0tn8VZuBt4Lo2kdIzeNGV+C0EjlzX xGtosBovYShzNuu+JHtwe7hKEeZLYJrDRAOJYXhZVp2ewr2o4EW/tmd3Dvjg9nKuQ8dG nLIQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=sntech.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e7-20020a056402190700b0042dd469b483si1669428edz.146.2022.07.07.02.18.33; Thu, 07 Jul 2022 02:18:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=sntech.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235057AbiGGIlR (ORCPT + 99 others); Thu, 7 Jul 2022 04:41:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56144 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229827AbiGGIlQ (ORCPT ); Thu, 7 Jul 2022 04:41:16 -0400 Received: from gloria.sntech.de (gloria.sntech.de [185.11.138.130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DF913F30; Thu, 7 Jul 2022 01:41:13 -0700 (PDT) Received: from ip5b412258.dynamic.kabel-deutschland.de ([91.65.34.88] helo=diego.localnet) by gloria.sntech.de with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1o9N4E-0005a2-Jj; Thu, 07 Jul 2022 10:40:58 +0200 From: Heiko =?ISO-8859-1?Q?St=FCbner?= To: palmer@dabbelt.com, paul.walmsley@sifive.com Cc: linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, wefu@redhat.com, guoren@kernel.org, cmuellner@linux.com, philipp.tomsich@vrull.eu, hch@lst.de, samuel@sholland.org, atishp@atishpatra.org, anup@brainfault.org, mick@ics.forth.gr, robh+dt@kernel.org, krzk+dt@kernel.org, devicetree@vger.kernel.org, drew@beagleboard.org, rdunlap@infradead.org, Atish Patra Subject: Re: [PATCH v7 3/4] riscv: Add support for non-coherent devices using zicbom extension Date: Thu, 07 Jul 2022 10:40:57 +0200 Message-ID: <1729939.VLH7GnMWUR@diego> In-Reply-To: <20220706231536.2041855-4-heiko@sntech.de> References: <20220706231536.2041855-1-heiko@sntech.de> <20220706231536.2041855-4-heiko@sntech.de> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_PASS, T_SCC_BODY_TEXT_LINE,T_SPF_HELO_TEMPERROR autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Am Donnerstag, 7. Juli 2022, 01:15:35 CEST schrieb Heiko Stuebner: > The Zicbom ISA-extension was ratified in november 2021 > and introduces instructions for dcache invalidate, clean > and flush operations. > > Implement cache management operations for non-coherent devices > based on them. > > Of course not all cores will support this, so implement an > alternative-based mechanism that replaces empty instructions > with ones done around Zicbom instructions. > > As discussed in previous versions, assume the platform > being coherent by default so that non-coherent devices need > to get marked accordingly by firmware. > > Reviewed-by: Christoph Hellwig > Signed-off-by: Heiko Stuebner > Cc: Christoph Hellwig > Cc: Atish Patra > Cc: Guo Ren > Cc: Anup Patel Over in v6 Guo provided [0] a Reviewed-by: Guo Ren [0] https://lore.kernel.org/r/CAJF2gTRN1J3edjbt5L9ELLtMzXKWUABQb=QxDA90uY7mj=O0rw@mail.gmail.com