Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp3461963pxp; Tue, 8 Mar 2022 15:06:18 -0800 (PST) X-Google-Smtp-Source: ABdhPJwJvBxCvyZ8av/bNZ6n/CNQMU5M/DGrLGsy4hsC0lHTnNBmQRt3vhJPJyX1dXaAOvo9txQR X-Received: by 2002:a17:90b:1b12:b0:1bf:1e5d:55ea with SMTP id nu18-20020a17090b1b1200b001bf1e5d55eamr7144669pjb.115.1646780778408; Tue, 08 Mar 2022 15:06:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646780778; cv=none; d=google.com; s=arc-20160816; b=rsoUjTRJ3R/je6a+jmbbLiR/PN0VyQJ7suh4Iv6YuE0Ite0uIcYGbCurFY+W4STImc GmWCRg45pbEF9mrPnm/za0+0C7IF1KUV6XCsp2QCH0mB3PImgRHdU/Uus0P14/kh18Pm KsdvJVZTPw5frzpt+XPQ/PweuDgYNDXYrJLNuIORXS7w0RyucQOxHpEW1XTRJTAvnqms yVKrJ6AxYr4fggKa3G4FH54WnfyqvBbSnK5t+WOMAhscgziMtN0IGhBbBlZcQ7j0bUxo PxtZHqyixNIfKH4sjtbtrzlfyUzqT7wdbgGHHoj8nf9URgz/C8PjK6hi2XcxPUhT5Bal w8AQ== 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 :message-id:date:subject:cc:to:from; bh=MZ85AJmqblPemVb6ow+Uxrksq0gJ69qioUyQ0eNLrvo=; b=XPxsE9i5SCXaJRvUcviRpTH/YPxUmVaj65eCPuIZvCgG+kTzbWkMw0JSmIAE1xsedM X5Sarnlg2g/H2SS1um1VvWYdUjoGllgYJY8l6dvtwWDmTbr6pdmfKJbBMHHwCGiB4U2P qMCpZFR3jjjRo7nFPb8L1MjYm4LC0udfRtUs9ExPstjXHljii5P8AIsoA5VjyZKCEcjq ws+CvwEZ2o76+2T5ifXmuRaxqtyGXZjyglR/9/bJI0OsZxnKrivip0dQ2CXxuSCwoS8p Vsq9196LygFye8UwIzPoxhg6De+ifHKxuua2IbEW1XazyJKrLqtiTWydBytOU8NyCVHH mJlw== ARC-Authentication-Results: i=1; mx.google.com; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id e17-20020a17090301d100b00151aae03a1csi244690plh.539.2022.03.08.15.06.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Mar 2022 15:06:18 -0800 (PST) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 9816A5F25C; Tue, 8 Mar 2022 15:05:15 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343850AbiCGWr1 (ORCPT + 99 others); Mon, 7 Mar 2022 17:47:27 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52576 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343846AbiCGWrY (ORCPT ); Mon, 7 Mar 2022 17:47:24 -0500 Received: from gloria.sntech.de (gloria.sntech.de [185.11.138.130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EBCFF506D6 for ; Mon, 7 Mar 2022 14:46:26 -0800 (PST) Received: from ip5b412258.dynamic.kabel-deutschland.de ([91.65.34.88] helo=phil.lan) by gloria.sntech.de with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nRM7T-00032M-7m; Mon, 07 Mar 2022 23:46:23 +0100 From: Heiko Stuebner 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, atishp@atishpatra.org, anup@brainfault.org, mick@ics.forth.gr, samuel@sholland.org, cmuellner@linux.com, philipp.tomsich@vrull.eu, Heiko Stuebner Subject: [PATCH 0/2] riscv: implement Zicbom-based CMO instructions + the t-head variant Date: Mon, 7 Mar 2022 23:46:18 +0100 Message-Id: <20220307224620.1933061-1-heiko@sntech.de> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 This series is based on the alternatives changes done in my svpbmt series and thus also depends on Atish's isa-extension parsing series. It implements using the cache-management instructions from the Zicbom- extension to handle cache flush, etc actions on platforms needing them. SoCs using cpu cores from T-Head like the Allwinne D1 implement a different set of cache instructions. But while they are different, instructions they provide the same functionality, so a variant can easly hook into the existing alternatives mechanism on those. Heiko Stuebner (2): riscv: Implement Zicbom-based cache management operations riscv: implement cache-management errata for T-Head SoCs arch/riscv/Kconfig | 8 +++ arch/riscv/Kconfig.erratas | 10 ++++ arch/riscv/errata/thead/errata.c | 5 ++ arch/riscv/include/asm/errata_list.h | 78 +++++++++++++++++++++++++++- arch/riscv/include/asm/hwcap.h | 1 + arch/riscv/kernel/cpu.c | 1 + arch/riscv/kernel/cpufeature.c | 17 ++++++ arch/riscv/mm/Makefile | 1 + arch/riscv/mm/dma-noncoherent.c | 61 ++++++++++++++++++++++ 9 files changed, 180 insertions(+), 2 deletions(-) create mode 100644 arch/riscv/mm/dma-noncoherent.c -- 2.30.2