Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp2384090lqt; Mon, 22 Apr 2024 09:13:24 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXYAugcLPPqpdjwd6vBaqQ0x9NYGJFY+FCCWiz8BV6gi6SmRYHdrVrdNZ5+5ZP1Ww1KjPkN7En+zqFVLh+qU4e89ZUScn3hgjuQwKGZFw== X-Google-Smtp-Source: AGHT+IG4trT3GyQA1Hd5gvHDOUpkZunCvO61Pp5wX0wdE/k5Esj5v99sHk5cZdAL8MQ6pF23MfYo X-Received: by 2002:a05:6a20:9482:b0:1a9:499c:5778 with SMTP id hs2-20020a056a20948200b001a9499c5778mr9629581pzb.35.1713802404525; Mon, 22 Apr 2024 09:13:24 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713802404; cv=pass; d=google.com; s=arc-20160816; b=pQylOKbZb3VzGeX3VGX3nqu3PuHNvxRNEcAosWh4z26QzL+tN1YznTRvjizLH8qW1b Mm5tgPm7J7YZziW/bQUu4KqaH/XvnBElgmf6cbtOV6JDSqqNnCHdw/PiQT2ETs4PInuV C0KAdUhcnhLaQjGInlXFAccJX1/1z1FcrWdRJfzzFyIH9Koa0h6VgirtEP3/juXF6BRt i1rUc4ufv0LFBmM0ymmF3E/AqFeXM/n4hcTTo1pNjwacCb170kEGX/+XTo+MPlThTcxs 5NM4n7FVjzEf+wkTM2NTIbu1cbyk7L7zV+LMhdx5tgvKx+qMizLppKu8SNU0/t8fXIkh EVWQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=bMyhnDCrHyV4qyizjWenu586ccID3T1Re44yDyknMgo=; fh=Xy7kIJPZk6PvqVNJKhOmOJzfclT6MKup7qEFbBLyK3k=; b=VQbyYshInHhpR7xgfj+budVtxsPcNmI4aeTuHFjNK9oAZLExGn5MLOVGUXQtjJ9FIY bZ3VU91C/B1opFFc2tAUHtFRMBVtqiyDsVJpIH2X56+ONLhSbLRREmLVbMHWtYzo7Q0P D7s3m4AyjRcNcTGRQ4thKItJhsIYDm8K8bVc6pFzwaZ4EHlVFe4U7ivMeQCudgUv5lLC nab2LG9mOxafRpPRH4gRkCl7SI75uwdrOCksiU0mLSukjwEWAtcxFH7O5aK76l1GUBMX b9rwHmeUGL7O0v6jBgyGJ7eEGnkcuS+s8rLo25Di+dzTeBTnZnELvqaa1NbvF8jlwZlN q8fA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@rivosinc-com.20230601.gappssmtp.com header.s=20230601 header.b=3aHfUaQl; arc=pass (i=1 spf=pass spfdomain=rivosinc.com dkim=pass dkdomain=rivosinc-com.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-153679-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-153679-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id n20-20020aa78a54000000b006e7c1a5e188si5360002pfa.248.2024.04.22.09.13.23 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Apr 2024 09:13:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-153679-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@rivosinc-com.20230601.gappssmtp.com header.s=20230601 header.b=3aHfUaQl; arc=pass (i=1 spf=pass spfdomain=rivosinc.com dkim=pass dkdomain=rivosinc-com.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-153679-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-153679-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id B5807B21DA6 for ; Mon, 22 Apr 2024 16:08:29 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2E487153594; Mon, 22 Apr 2024 16:08:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=rivosinc-com.20230601.gappssmtp.com header.i=@rivosinc-com.20230601.gappssmtp.com header.b="3aHfUaQl" Received: from mail-oo1-f44.google.com (mail-oo1-f44.google.com [209.85.161.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 10A54153588 for ; Mon, 22 Apr 2024 16:08:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.161.44 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713802103; cv=none; b=fNb+cLpyQQmhJEeTEenBUvKm6LCjQMURb+Uwz/V9HwdQgN/BuZJRv2mkvrpSMuCv9cF3T8f2v6yOGObxG05tgEH8Cd18/DiJbuGOlE17gbbq51LRuLc2K31xw8MBy2tq/xBH+QZ0EUuzJqp/Sg2VfMaW/K9F1of2maC2E5Ok37M= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713802103; c=relaxed/simple; bh=lfCxICFGy+LS9hJNxD2DgWqIfrC2kPB4vVbEqlpMc5c=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=J8N0qB4GBpesMdV8gaIS6JJrZR+JnGbFC+Uvjeq12kmjuifmMpMf3Br55YwH2aaNHjthUnIMFwgXmnYXQILxIX4+/QbzBIsBIKaNCKgi6YoEiJ097JGdxsZEmQqn/arL7I+u5NoJr5XMyhcxSsKgqBv739vyrCY8pYVNHl7uRVM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=rivosinc.com; spf=pass smtp.mailfrom=rivosinc.com; dkim=pass (2048-bit key) header.d=rivosinc-com.20230601.gappssmtp.com header.i=@rivosinc-com.20230601.gappssmtp.com header.b=3aHfUaQl; arc=none smtp.client-ip=209.85.161.44 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=rivosinc.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=rivosinc.com Received: by mail-oo1-f44.google.com with SMTP id 006d021491bc7-5aa4204bacdso2783497eaf.2 for ; Mon, 22 Apr 2024 09:08:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20230601.gappssmtp.com; s=20230601; t=1713802100; x=1714406900; 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=bMyhnDCrHyV4qyizjWenu586ccID3T1Re44yDyknMgo=; b=3aHfUaQln4PM0rUUsSmEpfHrxZ1V4d9dwcJU0q0KXP6wpKYH9xPv+4a8m92YqIq+Nk A6QJ9DwOHf3PD7M0lmup0oFUZ2agIgm/wmvz/sRM4oYQP1OPGtrV800CR6+GTUQx0z0Y uEiePBYu8XpK753MvPxbBgTs7J0KFTOqfQ5pKuorhKGMYd6FeqyMWAtgoGAEiUXltC5Q 3eMWcCDeyuAe3sDUGaanGKE5fHU7xS8uP0/OEqEG4DnwFprc7uCFL1jlB+7DfFdQaMvW gQGAH56BhlcxokAj5WrMXglQzv2LPGz3thKVbx1pz+Y1ugK30boMFOZVcTsyFz5/Vto2 oKwA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713802100; x=1714406900; 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=bMyhnDCrHyV4qyizjWenu586ccID3T1Re44yDyknMgo=; b=JPguNh94DXBUj1ZSdxhOlp0icfr/QGnR5rsTR/a4zsvTWquw9t0Q+JXGdwFTNKibjZ lEzbgAb7M/TONSDyePHPCy+Opjth8TuyTcoyoHwDjUjl7U+MuaeUQt+8tW4Hy7wNCKoi XsfAY5ferVOPShT/OleVjxZFdz0nKpRF/akDZ1jdLdKMSk3N1h87VmKceATudiS1Lp4z hTLeCa17yUWnjtYf7vABparHnEfwQ1Z4yEg1eJxEQdmYa7dEbjAX5mf0Lc9nNUl+ONn0 facPU9hWvg/ROaP5+dnaaoayLPM/y6bYtA4Zj3QMc5GN0Pgt0mr2a+qLrwqNbv61g6RA 0Uew== X-Gm-Message-State: AOJu0Yz0VNuagsDgExeocQqqENzO1yWbAGRzZ/vZBV//ebPgPEWUTcoR yeCxM3wGYBZbczbZKYVRV3N6MrwsHYQhK1vsZw7lqI5TDCCbbZE2Qd8wXHAh+gk= X-Received: by 2002:a05:6358:78d:b0:186:2852:a923 with SMTP id n13-20020a056358078d00b001862852a923mr11995590rwj.27.1713802099983; Mon, 22 Apr 2024 09:08:19 -0700 (PDT) Received: from ghost ([50.146.0.2]) by smtp.gmail.com with ESMTPSA id b24-20020a25ae98000000b00db41482d349sm2103941ybj.57.2024.04.22.09.08.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Apr 2024 09:08:19 -0700 (PDT) Date: Mon, 22 Apr 2024 12:08:17 -0400 From: Charlie Jenkins To: enh Cc: Linux Kernel Mailing List , Palmer Dabbelt , Paul Walmsley , linux-riscv@lists.infradead.org Subject: Re: [PATCH] Clarify risc-v hwprobe RISCV_HWPROBE_MISALIGNED_* docs. Message-ID: References: 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: On Thu, Apr 11, 2024 at 12:18:25PM -0700, enh wrote: > These only tell you about scalar accesses, not vector accesses. > > Signed-off-by: Elliott Hughes > --- > Documentation/arch/riscv/hwprobe.rst | 16 ++++++++-------- > 1 file changed, 8 insertions(+), 8 deletions(-) > > diff --git a/Documentation/arch/riscv/hwprobe.rst > b/Documentation/arch/riscv/hwprobe.rst > index b2bcc9eed9aa..239be63f5089 100644 > --- a/Documentation/arch/riscv/hwprobe.rst > +++ b/Documentation/arch/riscv/hwprobe.rst > @@ -192,21 +192,21 @@ The following keys are defined: > information about the selected set of processors. > > * :c:macro:`RISCV_HWPROBE_MISALIGNED_UNKNOWN`: The performance of misaligned > - accesses is unknown. > + scalar accesses is unknown. > > - * :c:macro:`RISCV_HWPROBE_MISALIGNED_EMULATED`: Misaligned accesses are > + * :c:macro:`RISCV_HWPROBE_MISALIGNED_EMULATED`: Misaligned scalar > accesses are > emulated via software, either in or below the kernel. These accesses are > always extremely slow. > > - * :c:macro:`RISCV_HWPROBE_MISALIGNED_SLOW`: Misaligned accesses are slower > - than equivalent byte accesses. Misaligned accesses may be supported > + * :c:macro:`RISCV_HWPROBE_MISALIGNED_SLOW`: Misaligned scalar accesses are > + slower than equivalent byte accesses. Misaligned accesses may be supported > directly in hardware, or trapped and emulated by software. > > - * :c:macro:`RISCV_HWPROBE_MISALIGNED_FAST`: Misaligned accesses are faster > - than equivalent byte accesses. > + * :c:macro:`RISCV_HWPROBE_MISALIGNED_FAST`: Misaligned scalar accesses are > + faster than equivalent byte accesses. > > - * :c:macro:`RISCV_HWPROBE_MISALIGNED_UNSUPPORTED`: Misaligned accesses are > - not supported at all and will generate a misaligned address fault. > + * :c:macro:`RISCV_HWPROBE_MISALIGNED_UNSUPPORTED`: Misaligned scalar accesses > + are not supported at all and will generate a misaligned address fault. > > * :c:macro:`RISCV_HWPROBE_KEY_ZICBOZ_BLOCK_SIZE`: An unsigned int which > represents the size of the Zicboz block in bytes. > -- > 2.44.0.478.gd926399ef9-goog > > _______________________________________________ > linux-riscv mailing list > linux-riscv@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/linux-riscv Reviewed-by: Charlie Jenkins - Charlie