From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f44.google.com (mail-wm1-f44.google.com [209.85.128.44]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 301F61F4268 for ; Tue, 21 Jan 2025 15:29:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.44 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737473376; cv=none; b=n/abvLP0AnsYGJ1PPQMbxs5/aY7j+PUfsXJkPrbcnLIUZ7565eNYendxH6cDdEFVyLmH3SLL22DP+psLt0NeoszZnFeJq/fu+4fN/nOH3xKTg8ka0SnwS72In2xiR9uvS0HdsxI+KvasUedWet6jx1PXt3m4ksx8VyL2LotqsEI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737473376; c=relaxed/simple; bh=0tvcxw/M0+bumfP5SQ8bUYR24B3JRc1s/ClOo9jLdZ8=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Casr2ZsT/sS3K059SOtYv5fjR7JvA/SjV7sjhC/PldVwYj/t6jhNlGtwBQeRf64miL4r8bm4861MhSJCIOpgRo02jBPAE8c0midgeVtQZFAM2JLuGqJ2XRBg2E0aJFm5SPdi+3s+PVVFJFH5vIfYmuh6ULIX8DvYrVb6eVxypl4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ventanamicro.com; spf=pass smtp.mailfrom=ventanamicro.com; dkim=pass (2048-bit key) header.d=ventanamicro.com header.i=@ventanamicro.com header.b=OdwapAez; arc=none smtp.client-ip=209.85.128.44 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ventanamicro.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ventanamicro.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ventanamicro.com header.i=@ventanamicro.com header.b="OdwapAez" Received: by mail-wm1-f44.google.com with SMTP id 5b1f17b1804b1-436ce2ab251so40510085e9.1 for ; Tue, 21 Jan 2025 07:29:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ventanamicro.com; s=google; t=1737473371; x=1738078171; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=A+SyMEFDuiz5jdFoFAlcZaoDQi4XryVJWeWGSbZvojI=; b=OdwapAezYSEYlIyhGpAygosVU00OR+3P3F1srEREqb/EsDYdku835UJEmsFEtH/cHp jertvLA57xEUyZjbOeefC7cm4rNC2oTnp55TtjG22FzE5DabXSUiIIffHudOe1fiG7Y4 rZibiKxTxmx55GlY2dCX/de9vLcfnAGA3ck9w92qKz4sDyrKSA2HYFF0xHpoY22U/l/4 7cy7LNq0RpWRlnRsdj9bDY9m3wNwetkVIyRJ+4t7jADGoJaenpiLHlyJzEk+FBm8gf8V TGqM/Crm/vNTdLbm7b4gx/awYOZh92TYaTQq/heLy+O9bxwxyC3OTONcfXBvhVefnvAn MkwQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1737473371; x=1738078171; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=A+SyMEFDuiz5jdFoFAlcZaoDQi4XryVJWeWGSbZvojI=; b=CE05JsvSUhkDg259Q3xzNPIQWxZV335Fvjlcaa678omvh6tRrg6le7p/wR5Pc2PPVt bjAAEeygbbvrVn0y8Why37dqIDQLL6zH0NeBV1+OdAcePMO9znNhwXbOzdq8AKZEVZGT 94u3EkWjRXTd8tvBE0aHZgzkdK8hodOkWmRJj87yHmtkNVuObo6SPyDXRg7RBRO4C4yt 5dgV9GUhbj1j+SoXp25j+ZGJl3D0WRZ8UGm0y4wRMgdOvaxHpbi9bVfANlPWk7pUvApC raQY0P6Lm9GwdOARkPENN3yt0uWNXRTAf6rSUUUkkibgCThPfugTdkB2kW/6+LHNIde2 WbZA== X-Forwarded-Encrypted: i=1; AJvYcCUoo2sRFEAtRLlkjGafFDGMhZh/s+8Z33t40gFgPStm+ZBSAV8oz+zNmVmCX4ZQ5qk+HNHEjiu11PzWYBg=@vger.kernel.org X-Gm-Message-State: AOJu0Ywc/RKQfGNo4O7h/VCZk4Ry7PzC/3YfEQpZwIiPvXj8JWlGQfu/ Avj7Mt9oUmokdsL/AqrTJSn/5IUOZ6H8O1iUUBTtNi7X1cAgwBjYcuxkviGFjUk= X-Gm-Gg: ASbGncuXCKU6I+2RK1kygVP8JCXYTuJd3Xy6Mu1sko2VGU8u9Wjrf1fX3KVv+kT7S7S EbaTwxyzBVxDKpF5L8EWy/z8G9X3tRrmvF+xfP8NvXhqO5X/8xA2GXfcYlrOb0wHDTzg7a621XK QecIuUIsdEATQZD9KHHan0wBDM5oL0v3M5vrDRbnYWGrw0VbKSLgFwjE4nqGIZZHxRuQY+vy3z3 wvdKBn1ZYFu7kAPaFP82+xqumTxaOovFuoSE1Bh0hO2qMsR1CDIIZwnMrg5tbcCiT+nuJpaCs/y vzbIsolH5PwDq4uWRQI8C/gmcvTJ6lopWFmsRKH73+SaPgWx4r9IiOk= X-Google-Smtp-Source: AGHT+IGl2rjI0Z/X1fO7b4lQu7Bz/+RhZRQdSmN7QWCPax7hXw3N4uwdbUK9AcP8ky1wqh1l9HCJJA== X-Received: by 2002:a05:600c:4e08:b0:434:a4a6:51f8 with SMTP id 5b1f17b1804b1-438912d4a3bmr183994855e9.0.1737473371456; Tue, 21 Jan 2025 07:29:31 -0800 (PST) Received: from localhost (2001-1ae9-1c2-4c00-20f-c6b4-1e57-7965.ip6.tmcz.cz. [2001:1ae9:1c2:4c00:20f:c6b4:1e57:7965]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-437c7499821sm242856925e9.2.2025.01.21.07.29.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Jan 2025 07:29:31 -0800 (PST) Date: Tue, 21 Jan 2025 16:29:30 +0100 From: Andrew Jones To: Yunhui Cui Cc: alexghiti@rivosinc.com, andybnac@gmail.com, aou@eecs.berkeley.edu, charlie@rivosinc.com, cleger@rivosinc.com, conor.dooley@microchip.com, conor@kernel.org, corbet@lwn.net, evan@rivosinc.com, jesse@rivosinc.com, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-riscv@lists.infradead.org, palmer@dabbelt.com, paul.walmsley@sifive.com, samuel.holland@sifive.com, shuah@kernel.org Subject: Re: [PATCH v5 2/3] RISC-V: hwprobe: Expose Zicbom extension and its block size Message-ID: <20250121-4990d96a861a4ddd304abc33@orel> References: <20250115024024.84365-1-cuiyunhui@bytedance.com> <20250115024024.84365-3-cuiyunhui@bytedance.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20250115024024.84365-3-cuiyunhui@bytedance.com> On Wed, Jan 15, 2025 at 10:40:23AM +0800, Yunhui Cui wrote: > Expose Zicbom through hwprobe and also provide a key to extract its > respective block size. > > Signed-off-by: Yunhui Cui > --- > Documentation/arch/riscv/hwprobe.rst | 6 ++++++ > arch/riscv/include/asm/hwprobe.h | 2 +- > arch/riscv/include/uapi/asm/hwprobe.h | 2 ++ > arch/riscv/kernel/sys_hwprobe.c | 6 ++++++ > 4 files changed, 15 insertions(+), 1 deletion(-) > As the bot points out, we need to add the following to this patch. Thanks, drew diff --git a/arch/riscv/kernel/sys_hwprobe.c b/arch/riscv/kernel/sys_hwprobe.c index cb93adfffc48..6b5b24b399c3 100644 --- a/arch/riscv/kernel/sys_hwprobe.c +++ b/arch/riscv/kernel/sys_hwprobe.c @@ -160,7 +160,7 @@ static void hwprobe_isa_ext0(struct riscv_hwprobe *pair, pair->value &= ~missing; } -static bool hwprobe_ext0_has(const struct cpumask *cpus, unsigned long ext) +static bool hwprobe_ext0_has(const struct cpumask *cpus, u64 ext) { struct riscv_hwprobe pair;