Received: by 2002:a05:6358:bb9e:b0:b9:5105:a5b4 with SMTP id df30csp2966963rwb; Mon, 5 Sep 2022 04:34:18 -0700 (PDT) X-Google-Smtp-Source: AA6agR6E8+mwNvH5Dq2m+rUZ5jjkNRp9S0bVUiePocr75v4KBxf3r8To0kS4V5OE7C4ZndJriuDJ X-Received: by 2002:a17:903:31cc:b0:172:cad5:6b4 with SMTP id v12-20020a17090331cc00b00172cad506b4mr49026395ple.115.1662377658322; Mon, 05 Sep 2022 04:34:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662377658; cv=none; d=google.com; s=arc-20160816; b=iiP60mKpvyMwho1JJReuayZ2U3mwAWUt92pchCll/4j8xHcdkbA/bOZGPI0nb2IvlC kdUKd8miNJxDunW/F1LepARvtrKkSaZ2KsSq5LZIASdb5MvCY1/o4sxUQAFAtIm5Ubvv euRDZ/i8huyj0On8BzHmqEz7dV+AGvMgXKFpUbDTV+0DdYA35dKvqdvaGH13c/EzOLCO PxkCnXqio8e5Vw8NROU9/+oM4ao59jildHX1uFaujWBLv2USTjuvgEk7wWMtb3YRFfl9 eR17s1JWr92L1dzzi7Fact8NE3tT7DPUXaY0rJYez1zeVCq737KZQw7wg56SfvMARpFl tL0A== 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=ZbjKiq1QeBYEfpe4PHZOPInD6Qk/s8GiqXGv2fRJuVQ=; b=FJcECWpAlx1d8HWx4y5/Dr646vHcx8BDFsjKx3elzQRSZBcNydfChM3Uv060sahGH9 vrh/7LOVy1Kki+QtVB1sqdmZCXrsEQ0NCc1GVe88yKpTIaMNqK0GXC2aSENeYRzejU6R ls+o9WmM9Aug6LcWPpq5gNfUpl81B9ecij1y1XIuJUPXLqY1JaCjQ1SpRpcjBtdW2NFw vb3DFdvmW/90Zl53W0za0G8zXIJrIbX+IIGbq3//vcJkkcQI8KxXps3RNV/ytckOynRT 1GM3gOypmX1Td59PfJs3kv4RCc82+2iyzreU3ck8Czczn1rdn8yrqg06eJs/poxPvKSD D/Lw== 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 l5-20020a635705000000b0042a88e6b1dfsi9452949pgb.770.2022.09.05.04.34.05; Mon, 05 Sep 2022 04:34:18 -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 S238241AbiIELKx (ORCPT + 99 others); Mon, 5 Sep 2022 07:10:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40816 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236115AbiIELKq (ORCPT ); Mon, 5 Sep 2022 07:10:46 -0400 Received: from gloria.sntech.de (gloria.sntech.de [185.11.138.130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BB97354C8E for ; Mon, 5 Sep 2022 04:10:43 -0700 (PDT) Received: from ip5b412258.dynamic.kabel-deutschland.de ([91.65.34.88] helo=phil.lan) by gloria.sntech.de with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1oV9zw-0005hc-FZ; Mon, 05 Sep 2022 13:10:36 +0200 From: Heiko Stuebner To: paul.walmsley@sifive.com, palmer@dabbelt.com, aou@eecs.berkeley.edu Cc: guoren@kernel.org, apatel@ventanamicro.com, atishp@rivosinc.com, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, Heiko Stuebner Subject: [PATCH v2 0/5] Some style cleanups for recent extension additions Date: Mon, 5 Sep 2022 13:10:22 +0200 Message-Id: <20220905111027.2463297-1-heiko@sntech.de> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 As noted by some people, some parts of the recently added extensions (svpbmt, zicbom) + t-head errata could use some styling upgrades. So this series provides these. changes in v2: - add patch also converting cpufeature probe to BIT() - update commit message in patch1 (Conor) Heiko Stuebner (5): riscv: cleanup svpbmt cpufeature probing riscv: drop some idefs from CMO initialization riscv: use BIT() macros in t-head errata init riscv: use BIT() marco for cpufeature probing riscv: check for kernel config option in t-head memory types errata arch/riscv/errata/thead/errata.c | 14 ++++++----- arch/riscv/include/asm/cacheflush.h | 2 ++ arch/riscv/kernel/cpufeature.c | 39 ++++++++++++----------------- 3 files changed, 26 insertions(+), 29 deletions(-) -- 2.35.1