Received: by 2002:a89:d88:0:b0:1fa:5c73:8e2d with SMTP id eb8csp357869lqb; Thu, 23 May 2024 23:41:55 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVAUrKVRW5yG+ti7fzRGmqmrssTfbc0pHU7I0ATNgqQeRBFhnilz/qbjld8bPRb8+aBai7HGOjM6JBzgf/9HWcEIjSOeFEYV5kwMPKhIg== X-Google-Smtp-Source: AGHT+IHVu6lfIP+TG7HJ2MdxUuv3/+NZL6Xht6ABgDfhDNyYUq1rzoREu7lAU3q/LiAUxDULv1Dl X-Received: by 2002:a05:6358:7a97:b0:18d:f1bc:9f80 with SMTP id e5c5f4694b2df-197e4844512mr173452155d.0.1716532915150; Thu, 23 May 2024 23:41:55 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716532915; cv=pass; d=google.com; s=arc-20160816; b=geBHci5oNEnmRGiQkeggWVbQjpjZ7n2OPOOtLaDLZKl+IWSF60edxFPyO8rx3EjGZs ZOVmYE+DjE2QqbQ7EohX1zvAv5d8D2LypwNfwD2epoX805yXB45pN+jJl4yI94A1X9sY Jb3/vQOray7VzdQszPmrRSNFEPGmTfbwOLfV3Kz9dXBnzilmUFxPh/FsEnSw42Tt2MXq pKWv1eZ9Fr7ck2skwDCRTB1QyjiJMvSIt/ElXUmgQNSWMWGGEVhM8hfyuqn0a+65CI1a HLBax7DIRmM7AmBOhU6pXk3WieRh/jHx2o7YDfTLmX/Dcs6XWA/iOWqG+g+fBltbe4QJ lIxA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:date :subject:cc:to:from:message-id:dkim-signature; bh=F+wpGwccmcn6o4Ew+LaZ6dWwIWr+GXbaYvvVaDRhjFI=; fh=MUzHKLJ1EFLCvIKwCCyZDjYtOTioDcb+EEtJ0GCWcsc=; b=lrMnO91KyYcDHOZKl5v6fQnFXSeHpRJyy9M9NRIIaZf0k5KKJREsNQfKW/5UyHwe/E gS6/TyNolJmathwRzLs4J8jlUO3Ja82UmMvjr+Dcei5PUdylGBCmjBThz/LbdHRa8b4i hxBLR6w2EUsqY0MSGAYSSKDiKJmzYq71lsBy55E0gdJ6el1Nq+OFO4CcQ5UxvIU9PwBi lBJeKbz+Obg10SMqW5PdYylhGXPnDngTrevAfWwm2MRTBEL8vuonLmqVzL5X2eGFZBUg /IFkD7XacitFYXC9nyF5ti37YarOQfNFH01GV8W0rh0BPfiDN2X6dER3zrEaOrQ+XS4+ RI9g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@qq.com header.s=s201512 header.b=Cvp7UAoH; arc=pass (i=1 dkim=pass dkdomain=qq.com); spf=pass (google.com: domain of linux-kernel+bounces-188258-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-188258-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id 41be03b00d2f7-682287f2255si742925a12.462.2024.05.23.23.41.54 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 May 2024 23:41:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-188258-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@qq.com header.s=s201512 header.b=Cvp7UAoH; arc=pass (i=1 dkim=pass dkdomain=qq.com); spf=pass (google.com: domain of linux-kernel+bounces-188258-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-188258-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 8F958B22539 for ; Fri, 24 May 2024 03:36:41 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3DB99383A1; Fri, 24 May 2024 03:36:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=qq.com header.i=@qq.com header.b="Cvp7UAoH" Received: from out203-205-221-191.mail.qq.com (out203-205-221-191.mail.qq.com [203.205.221.191]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9E245D29B; Fri, 24 May 2024 03:36:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=203.205.221.191 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716521789; cv=none; b=JLPBahQuVcp84cOcpRBQ8gSCAw8Qrk4WA1GFS5Pzw1SgElyeSPjQ6AbGjQvlhdVtoR5lSmIYV8/QdL4/UnquxR3Is6iKYL5c7SF1TrWEcDmKXLqRYDwVi+0pbtRVZYGTfgvBXojTpq7TJ7J+cAendFZWvLh8WgKDeRqOyqTar7E= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716521789; c=relaxed/simple; bh=eVF4XyAQQt+XD0kRfwQoMxD2Psu2LzqAIK3RDYWoudA=; h=Message-ID:From:To:Cc:Subject:Date:In-Reply-To:References: MIME-Version; b=b6MmWfv0UdgCIxWF2wI0lYhH033g17kotLsZ9ZARj2bt1y1QwUg3qeuQfoL3aiTcQcCyJTYs4RtJ47kiHST5Xwh7Cnuj6AzTowGGnudp5IaejHv8Gdi5moxCiRI5HigyTRjDAcuzXBUsmcqNZHHcH8mBy72yqC0KGZIUa59R6LQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=cyyself.name; spf=none smtp.mailfrom=cyyself.name; dkim=pass (1024-bit key) header.d=qq.com header.i=@qq.com header.b=Cvp7UAoH; arc=none smtp.client-ip=203.205.221.191 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=cyyself.name Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=cyyself.name DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qq.com; s=s201512; t=1716521779; bh=F+wpGwccmcn6o4Ew+LaZ6dWwIWr+GXbaYvvVaDRhjFI=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=Cvp7UAoHHo0sntuoIeyYXEKNz52svYa2kYu/QZIWc6n3fO6e+dnbe26DV6JEIaJyD g1xSjemy3epL6IAPGFl8oZmoAQpXhNrcjDKxp9vTi7vD9F5JSLufNjl6fxN4yKLB6G kAQbNNOrKVwN2fYlX3Hu1ZyyITQsH4n9h3g70XUw= Received: from cyy-pc.lan ([240e:379:2259:4c00:b652:79f2:d4c3:c8a8]) by newxmesmtplogicsvrszb16-1.qq.com (NewEsmtp) with SMTP id 90C8A481; Fri, 24 May 2024 11:36:12 +0800 X-QQ-mid: xmsmtpt1716521776t16vwkpjg Message-ID: X-QQ-XMAILINFO: OaubouGXmhNz1eavt//OG67W7xDtIvYLLMONKHsz6+IiIO4dHYHDqnoCwbCZPI okSz/bJukyevJNvtVzbzOHiS4nNIrtxS2Mykj2dg3/lyLU2ewATOcco0IQfceysIqiHu2TgvyqRY KYLbWGMEViuFuoEWrtK5j3BQuhmkLddFxnQf0uZltF1B60xGsHFadstuybh25U9iiIEZHViFhcHh pAHu/MWf0HQtdHHi/bN5mN27ij/fpMFEZYSkSfcHtyXgsVVIqriH3bZVOQzsojADprZOZfODKdyT 7co0MBhPGrFOqjhC7bV7ZPEyClJ6Oul2ZZANoFkRnGBxrDch7bGMBuAv+ADCXXBV5LOz7pvUQsXp 68YMle8uV54DAGsNxVHkiy3Qyp9oW4xbb67UoUmyknFtZdIyj0F5DpspU3d3srI2VY822KSSWuAf sp2+3Sobn82hAgA/1t6G/MLhGnLY7jPfv7Q3Aw+l+Njxihx+1TAY4/gfVfbQvBwFPNV43Eem2/Gc AZts+FNdAVyXvd8pJkq3z8y6ryOhWNxwXAi208W9yajlH19Pdj8TP157qO3ENqK77ZGjtRdwNmdy +sPlQ7/YTG1AxFnJgYhEbTzq6YJNHJEJf9rk8wxaFpkCGSelyHAAWiKxG8zjtY4Bsc6xaOeJtAMy Qz/7kdaLTARX9cSdHHOBkAEo3HMfQ3egdlTedPGISdKK4pLj+5hiBsvF9L4zVclYfkAa2YxJNIdB 316KlTSM0ux9K0ekDqQ/ibn1bY7J+PzMhhwfZMQ/eeiyv7SMFBJZ6UfY25VUi8hrmiwJd3zR7nZE 0k/lmSO2CBSEe1MTsRtuu/ES992Z132BrJgF0Z0BSubE0/O5c13IUoFnDfBsX+NhKjASroCKz99S 5AZXp6QjjrF/Zo4m83h44XwDdtKbAfv4qD5fuHhA4uoL49YZFlV7zKOAifscEQyKCuRGfEgc1aF4 fy7Crj7XYEnMMMJRu4+pK+9cFJveWciofCv50c+3Y0x+FXJSMBNytOci7IMbF1OqCvAXaLq0UmiB B7tCvrnrH33xVv6szV X-QQ-XMRINFO: M/715EihBoGSf6IYSX1iLFg= From: Yangyu Chen To: linux-riscv@lists.infradead.org Cc: Elliott Hughes , Charlie Jenkins , Jonathan Corbet , Paul Walmsley , Palmer Dabbelt , Evan Green , =?UTF-8?q?Cl=C3=A9ment=20L=C3=A9ger?= , Conor Dooley , Andrew Jones , linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, Yangyu Chen Subject: [PATCH v2 2/3] docs: riscv: hwprobe: Clarify misaligned keys are values not bitmasks Date: Fri, 24 May 2024 11:35:58 +0800 X-OQ-MSGID: <20240524033559.298935-2-cyy@cyyself.name> X-Mailer: git-send-email 2.45.1 In-Reply-To: References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit The original documentation says hwprobe keys are bitmasks, but actually, they are values. This patch clarifies this to avoid confusion. Signed-off-by: Yangyu Chen --- Documentation/arch/riscv/hwprobe.rst | 31 ++++++++++++++++------------ 1 file changed, 18 insertions(+), 13 deletions(-) diff --git a/Documentation/arch/riscv/hwprobe.rst b/Documentation/arch/riscv/hwprobe.rst index d720712e9734..2e212956185d 100644 --- a/Documentation/arch/riscv/hwprobe.rst +++ b/Documentation/arch/riscv/hwprobe.rst @@ -192,25 +192,30 @@ The following keys are defined: supported as defined in the RISC-V ISA manual starting from commit d8ab5c78c207 ("Zihintpause is ratified"). -* :c:macro:`RISCV_HWPROBE_KEY_CPUPERF_0`: A bitmask that contains performance +* :c:macro:`RISCV_HWPROBE_KEY_CPUPERF_0`: A value that contains performance information about the selected set of processors. - * :c:macro:`RISCV_HWPROBE_MISALIGNED_UNKNOWN`: The performance of misaligned - scalar accesses is unknown. + * :c:macro:`RISCV_HWPROBE_MISALIGNED_MASK`: The bitmask of the misaligned + access performance field in the value of key `RISCV_HWPROBE_KEY_CPUPERF_0`. - * :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. + The following values (not bitmasks) in this field are defined: - * :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_UNKNOWN`: The performance of misaligned + scalar accesses is unknown. - * :c:macro:`RISCV_HWPROBE_MISALIGNED_FAST`: Misaligned scalar accesses are - faster than equivalent byte accesses. + * :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_UNSUPPORTED`: Misaligned scalar accesses - are not supported at all and will generate a misaligned address fault. + * :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 scalar accesses are + faster than equivalent byte accesses. + + * :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.45.1