From nobody Wed Feb 11 04:19:08 2026 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 47416BA42; Fri, 24 May 2024 03:36:24 +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=1716521788; cv=none; b=Fw1m+W+w7x/h/7uHeCmYQRPE6f/6iV+UA2/CliccrMVsUTd4FQxmZZDwo0LsWbA/1jT27UkJpLtI+Irqz+ayN112vMDtQ2zYLL5VgD3wQVP7XQJTBX2lrr6Wnn75m8dtb+zjkIY/ehfXAEe8h47Oy5CWE4lNoTydvQKOFxwAIcM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716521788; c=relaxed/simple; bh=makr7mi3PujEkx3T6CRjnoUCmfzjDacRazwH8OZA0CM=; h=Message-ID:From:To:Cc:Subject:Date:In-Reply-To:References: MIME-Version; b=DcSNjdokYqnVlq2OlODprS6D/tqeCdq+11GmkhGxCgWcN6+iOMNvNfoo5FlvUx3pEBQANd6ZEMoXTUzvJeKD6nAQR5kNZxwa5vHuYA27zBLszDxQhwCorHpScNO0TQyydqkVvll+XiNLE6gynQ80DZCiX8g88/LbiZvyonkkDNI= 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=FIjiSVY2; 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=qq.com header.i=@qq.com header.b="FIjiSVY2" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qq.com; s=s201512; t=1716521776; bh=PHefl7GbkUI/lnsq5076BDrmwcyZfLe5+uejDUD7Q1Y=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=FIjiSVY2r0wC6UZ+6OArZ1wa9qUpIUtypswrpIvmHLJRELphJXGI+KRrlq7ANmTZI nbLfvqPfplqGd6cgR9lTDESppzCHjVFRKFL+PhSIPuV04NUctb1cHwWIG87PCQkTxU +ktn4eeJc1y3vlTR89LCQu/1RsDi9cicntBi/vsk= 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: xmsmtpt1716521772tub1unh7p Message-ID: X-QQ-XMAILINFO: Nci1v0XuD9lFXEbgY5GllxLw4rKsvUSbqDMc2mN0rRE83G6Nz7ghR24HOvk8O1 9n5OW8MBMqMNo8ZqA6ZbaM4S/5iTYpUgqFTRu4Ks4Kngl2yEpUa4ZuKZ5988ygxdsitfnHP0kcEL jBQhSC2/lGR4jNyQVTUV/XM72Uv+oT1xsAyvoVHLOXekt0dDEwROZOun7S0RFJCH/nfDyAUgJSVm GRVVPUAIYIK0pGu5a6ov0pAJvNXki9km5euByYAYmtWG4HdGknAUl5nT5JJo4XkWyvrquukdOkqd 3VF0g4ZMVV2/ZrgxamHFP6bqVpEN5cn5Hnn3xXMwqYygz/t3Ih+Gloom264HlUjm1h1YpAiYtlUB b9Rq9ZwCdqAEW8cyrVsCmvk8uwOffL0/FlYYmy7LN9sn6qMTyGQsr4jSZKekTSMOoNE+Vwj9AeF2 R/Co7YrAA4JEqqU8hktFoqleMAZOu7BQOAefZwKpu8E7JjJ0WBuotrGa/k04weGdELynKlxdltTN xPOWQgG0JfbE/Bqos2J4q4f6hWHcQ5p8GfEYU8CQVbtjGS2L9Jeuvn/ESB6mYM60mggCqqmxNLjn tM1qWT1HxLk8ARvUoz1DhhJQnoCUQoBQeuKPToWI/cDGs4NebFKp55dvmzOIznxibQdPGMPuXAez Dxw/+0IEWFBre/yJzzAo5gc0zyzBPzSCyjSzYNajC4pd7EHdhUYAWtEaH1bguKCHSZRv1j4k9Djn 8VbBNTJ9jR8umPGLOanNptzhPvsQLz3vVChYuDSBQqm0PTci4DxbUr8F9evgWKxJQuL4WXp+RqUA rhnkZ2H2/fAahHyntHJ6vJuIq0g213USKj7oF6gS3821OEuDzMQ4QYf7zsdR/l4bSF2yYBn3jJ8T 00N+lKHRS21z8Yfou9hbXM2PLfbbCfY14J+Mew9GX23cTQkLppSqEZuYUbR8ccw8OndKdMa+3LOS GP5rGo6wsSvI6kyd/Q2A6AWrdZxmuu4vgngSvQfX5HgG3vVHKNiJ0XWO3m911JtMlKOzluSJ24n/ LEcTjDgg== X-QQ-XMRINFO: NS+P29fieYNw95Bth2bWPxk= 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 1/3] docs: riscv: Clarify risc-v hwprobe RISCV_HWPROBE_MISALIGNED_* docs. Date: Fri, 24 May 2024 11:35:57 +0800 X-OQ-MSGID: <20240524033559.298935-1-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: quoted-printable Content-Type: text/plain; charset="utf-8" From: enh These only tell you about scalar accesses, not vector accesses. Signed-off-by: Elliott Hughes Reviewed-by: Charlie Jenkins Signed-off-by: Yangyu Chen --- Documentation/arch/riscv/hwprobe.rst | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/Documentation/arch/riscv/hwprobe.rst b/Documentation/arch/risc= v/hwprobe.rst index 204cd4433af5..d720712e9734 100644 --- a/Documentation/arch/riscv/hwprobe.rst +++ b/Documentation/arch/riscv/hwprobe.rst @@ -196,21 +196,21 @@ The following keys are defined: information about the selected set of processors. =20 * :c:macro:`RISCV_HWPROBE_MISALIGNED_UNKNOWN`: The performance of misali= gned - accesses is unknown. + scalar accesses is unknown. =20 - * :c:macro:`RISCV_HWPROBE_MISALIGNED_EMULATED`: Misaligned accesses are + * :c:macro:`RISCV_HWPROBE_MISALIGNED_EMULATED`: Misaligned scalar access= es are emulated via software, either in or below the kernel. These accesses = are always extremely slow. =20 - * :c:macro:`RISCV_HWPROBE_MISALIGNED_SLOW`: Misaligned accesses are slow= er - than equivalent byte accesses. Misaligned accesses may be supported + * :c:macro:`RISCV_HWPROBE_MISALIGNED_SLOW`: Misaligned scalar accesses a= re + slower than equivalent byte accesses. Misaligned accesses may be supp= orted directly in hardware, or trapped and emulated by software. =20 - * :c:macro:`RISCV_HWPROBE_MISALIGNED_FAST`: Misaligned accesses are fast= er - than equivalent byte accesses. + * :c:macro:`RISCV_HWPROBE_MISALIGNED_FAST`: Misaligned scalar accesses a= re + faster than equivalent byte accesses. =20 - * :c:macro:`RISCV_HWPROBE_MISALIGNED_UNSUPPORTED`: Misaligned accesses a= re - not supported at all and will generate a misaligned address fault. + * :c:macro:`RISCV_HWPROBE_MISALIGNED_UNSUPPORTED`: Misaligned scalar acc= esses + are not supported at all and will generate a misaligned address fault. =20 * :c:macro:`RISCV_HWPROBE_KEY_ZICBOZ_BLOCK_SIZE`: An unsigned int which represents the size of the Zicboz block in bytes. --=20 2.45.1 From nobody Wed Feb 11 04:19:08 2026 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=qq.com header.i=@qq.com header.b="Cvp7UAoH" 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: quoted-printable Content-Type: text/plain; charset="utf-8" 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/risc= v/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"). =20 -* :c:macro:`RISCV_HWPROBE_KEY_CPUPERF_0`: A bitmask that contains performa= nce +* :c:macro:`RISCV_HWPROBE_KEY_CPUPERF_0`: A value that contains performance information about the selected set of processors. =20 - * :c:macro:`RISCV_HWPROBE_MISALIGNED_UNKNOWN`: The performance of misali= gned - 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_CPUPER= F_0`. =20 - * :c:macro:`RISCV_HWPROBE_MISALIGNED_EMULATED`: Misaligned scalar access= es 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: =20 - * :c:macro:`RISCV_HWPROBE_MISALIGNED_SLOW`: Misaligned scalar accesses a= re - slower than equivalent byte accesses. Misaligned accesses may be supp= orted - directly in hardware, or trapped and emulated by software. + * :c:macro:`RISCV_HWPROBE_MISALIGNED_UNKNOWN`: The performance of misa= ligned + scalar accesses is unknown. =20 - * :c:macro:`RISCV_HWPROBE_MISALIGNED_FAST`: Misaligned scalar accesses a= re - faster than equivalent byte accesses. + * :c:macro:`RISCV_HWPROBE_MISALIGNED_EMULATED`: Misaligned scalar acce= sses are + emulated via software, either in or below the kernel. These accesse= s are + always extremely slow. =20 - * :c:macro:`RISCV_HWPROBE_MISALIGNED_UNSUPPORTED`: Misaligned scalar acc= esses - 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 su= pported + 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 a= ccesses + are not supported at all and will generate a misaligned address faul= t. =20 * :c:macro:`RISCV_HWPROBE_KEY_ZICBOZ_BLOCK_SIZE`: An unsigned int which represents the size of the Zicboz block in bytes. --=20 2.45.1 From nobody Wed Feb 11 04:19:08 2026 Received: from out203-205-251-66.mail.qq.com (out203-205-251-66.mail.qq.com [203.205.251.66]) (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 BE36823769; Fri, 24 May 2024 03:36:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=203.205.251.66 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716521791; cv=none; b=rX5UjMJkgRs6iAhtUR87QiW3ndgyN6IrUeglFaO26l1jJ4L/0b1HwkahrqGITPWx5g/v6IMgRKLQ8NbS4ffpjPSnZcHCSy0++Relw3GpcfDQrYb4x/49TbLocvMktLi4kh5407+l1zhNZ1d22946qJjBhbT44P5OD0B4t1rf4kI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716521791; c=relaxed/simple; bh=ek6UmWLXK8nYduHntVSxP/dsgz6IetPMTwjA0Jx7W4Q=; h=Message-ID:From:To:Cc:Subject:Date:In-Reply-To:References: MIME-Version; b=tTwSGF5L2YWR2zCwC7yG4UHgQ1JP54nRHEzGNA8psSTWhq2qStzmejBv5VuiZ5CRfqHrrvG3yyCNgcM3R3JwKOm45bhIct8xVlOxvrWbdqP3wEGqPV4LQZyUhuHWY7/4RfVWWVe2OD72TenTo+Fmkktjeb8scGiLQVmyjw7TNnI= 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=Hv/L3+R3; arc=none smtp.client-ip=203.205.251.66 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=qq.com header.i=@qq.com header.b="Hv/L3+R3" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qq.com; s=s201512; t=1716521781; bh=KZ8llW7PPo2JKBuxKIsoxtxbFEW9rp9tvBG99x4q/wI=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=Hv/L3+R3eDM7YBWaB67KaJaBM0oYm4RIWRxInfhomKuM5YzIiprXmr8la56jl42ql 38qhO0nM6zGXsLKIaKCkyHyBUgKiVKZcnk+WzMp8HY6BgPairH8YITjGxTSkbLTySo K66WJBdXznEvuSAd4u1+0xVuekGIFpSiDGfJRyH8= 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: xmsmtpt1716521778t5i4qy2rz Message-ID: X-QQ-XMAILINFO: MmpliBmRb3iCDSzsEAV2QCRH5vaNsl79saeANBHcFPSmOQXivvawGLedK6zLPr C6mSD1uDd5uzWWi/YulJLDc6Pv1YEnWDxHt4Q4RMEjMcQ6DREjst3OQ50ccNhNHM6FgOCsRMidEN 9d5Z1MN9U3Q0oZj1mFNak0IlCin00nFFFRlFoIMVSYP7xIWFYnhT86cetkL5bZmLw1ZubkdPOkOu AA0K5pmNaEuyVTmxrl8mJHkY1I30DjBXy5n7hHN/zGkq7HrdcXELbBfDfabAoXlX5mBONAh98Jg5 0c/q8wI1fMwYEOfcNFVs0M1nAJwCGzstvrgWFgyb2Auf6S2FjwkK/PutecdhGw+dxsmbB6Figlz4 tmvIGL/NDEWmVkuYayN9DjjZX7i+c2fd7GIcZsX3Q495Q3UVQDyQ5fMMVFCWONEZ80oFbop0PXEI 6Yngro2Hi2QXfImfUjlw1xdvhrQIDQCe8/vZQIiLxUZ6+o1pOxtshHt/jb6iVFb3E6I9q5OTJf8y uZ9mR6XiwE84P8o6Mmq02Vc3K1SthZJPSzssHIBeoSWXtzjPKkwqsH80IwI8igtOn1W6Z4uBERu/ TQjvcIHWMLhuquWvRiisgE47b9IVjH1lKDkfJDQjsyQrY68NulOIbWvdg88WUHtgpfTQBgKH2+E8 BeHJp4hIbK1IiOH37zNW5i7xQhZ3EdYFFl4Lp5jNlDwIZ18DnJJgmJRsp1L81QjXPv9HFdqjb1Qt dnsI5Jj72QFS3A+mJMTyt8Vt7iiEgk0oW8Bnt5fCTKK4Gku9MU0HMYqRfmYwduvzL9aI1tljLnmu V6AAxUCpEVsrawdKD3yFfwwZOQXm4xik9Q1iNN6msSOTBJ0IixkJb9Qe4WoHUSgyiMrtIXuuTkRa xVQcH3k4SWOYt+cKyubf3VDDP5UqMN3+mFkAIblOdAQ6ElzEpJbpNxdwotl8BDWzA9vGh3KlFFWm 8Ma06Pq55hrXIoB7tHKGdq7H/Ym+uz9v2GBXmsyeRBiB0wZgMbxaByOMqJGGFtoHEVkBaY3eyc6r Ij43nubzE6o+1kO38R X-QQ-XMRINFO: MSVp+SPm3vtS1Vd6Y4Mggwc= 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 3/3] RISC-V: hwprobe: not treat KEY_CPUPERF_0 as bitmask Date: Fri, 24 May 2024 11:35:59 +0800 X-OQ-MSGID: <20240524033559.298935-3-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: quoted-printable Content-Type: text/plain; charset="utf-8" Since the value in KEY_CPUPERF_0 is not bitmask, remove the wrong code in hwprobe.h. Signed-off-by: Yangyu Chen --- arch/riscv/include/asm/hwprobe.h | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/riscv/include/asm/hwprobe.h b/arch/riscv/include/asm/hwpr= obe.h index 630507dff5ea..f24cad22bbe1 100644 --- a/arch/riscv/include/asm/hwprobe.h +++ b/arch/riscv/include/asm/hwprobe.h @@ -20,7 +20,6 @@ static inline bool hwprobe_key_is_bitmask(__s64 key) switch (key) { case RISCV_HWPROBE_KEY_BASE_BEHAVIOR: case RISCV_HWPROBE_KEY_IMA_EXT_0: - case RISCV_HWPROBE_KEY_CPUPERF_0: return true; } =20 --=20 2.45.1