From nobody Mon May 27 06:40:12 2024 X-Original-To: riscv@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4VnmH02MkGz5LcR3 for ; Mon, 27 May 2024 06:40:12 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4VnmH01Dhsz4LdW for ; Mon, 27 May 2024 06:40:12 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1716792012; a=rsa-sha256; cv=none; b=pPvqNywzvxbCXccvq+UZCb6X4OaeoyNnQ+VmE3Yw7Ja4XDVr5O8VpHHjijZeP3HaoIflIm 55CwWQXpZaI0nPR2ZCkBKHJoadL5tbeO00kKnsizMBDvrualwwFdQyGm2Rr/5HubRb+uSz mM1vgYNWZMgdgmyaTW4funS1C0uH3KQd5YvQvxVLnArMbnrMRY/PmTvCNLBauutSDP9pt4 1lCUrE1M+cpFDbFdNUMV8SXlunwpktENNS+2uvmVAkxg72x7AsW3CPt8R+7Yqpwdn79inO vqb4T0nU56yfzMeSaajmuBkOW4qQ1/mAElFjW6qGkxtyURSAn+Qu+K3gam2R3A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1716792012; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=+LnDAn3/xnjnXPhWGmtqGyib7QbbUrNu5wL+UskpeNA=; b=p+ss4NJlrWInjDfB5pnIvDZQ8kqjQ1Z8B4jYfm/uI8SrBEdybGJ1CTKePPm8nxl13TdGQA wzRdwcDfkFLEhbvq28qb8req/0hBYr2Xy29INAt/c6jMw8/tcgootM9mkOimGcOZrQzxBt bZ7YU1Ge5iGfCV2Ea9l2uLBFYqk0XqnWxvVzpa4V7e0jN23yF6P9KvSbw8qUKu3ZgzL1KH Hz4eyq07yLuIW7KoAqx+SqaYkCP4VpzJ4a9AQR1pfRiSnvHN/Ccn3GzklYbb9saBmB1TCv sFBywMbFPYeBl4uBFCw2ys07NIVJ5gRh9xmYZd6Y88e7kO3roOnNM+gT2QICIQ== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4VnmH00kpmzZVC for ; Mon, 27 May 2024 06:40:12 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 44R6eCkN030280 for ; Mon, 27 May 2024 06:40:12 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 44R6eCJv030269 for riscv@FreeBSD.org; Mon, 27 May 2024 06:40:12 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: riscv@FreeBSD.org Subject: [Bug 272759] lang/gcc12: Only for arches not including riscv (blocks 310 packages on my list) Date: Mon, 27 May 2024 06:40:12 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: mikael@FreeBSD.org X-Bugzilla-Status: Closed X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: fuz@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback+ X-Bugzilla-Changed-Fields: bug_status resolution Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: FreeBSD on the RISC-V instruction set architecture List-Archive: https://lists.freebsd.org/archives/freebsd-riscv List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-riscv@freebsd.org Sender: owner-freebsd-riscv@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D272759 Mikael Urankar changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Open |Closed Resolution|--- |FIXED --- Comment #31 from Mikael Urankar --- (In reply to Robert Clausecker from comment #30) gcc12 builds fine, thanks. --=20 You are receiving this mail because: You are on the CC list for the bug.= From nobody Wed May 29 16:57:43 2024 X-Original-To: riscv@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4VqFtc1hHmz5MrQH for ; Wed, 29 May 2024 16:57:44 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4VqFtb6N37z4l6B for ; Wed, 29 May 2024 16:57:43 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1717001863; a=rsa-sha256; cv=none; b=n44jGHkZ1Q8/U62KJM0I9FKXNcg6LyPxRVjH4F9g3GHGoYI5yjP2ZrgX6Ql4nO9Ws3HQRL g0tvUW89rY08e8ellOVqcJXn2F5OuCfRZXc8MA3X9EB/OCoEUzykGodyoXKCd7ZDTRHbYf 1cOpUHyf6ru8HImie85xXJBpNYH31LwbNdb+eiVDOHOXT/kHvgbBtxh6slBS69H5BA9Seh T/QsZ/y/mBQWqFAVgks+1Yg77/0QBa+uJoQ42yt4gRj5q38Q0hhBlISq3LTEcWIvnkjNTm I/9CEpmQyfLeC5S1ulNQgk5RUAQdDlFG/GNOHmyWfItkUSJzsWx6ngALFbnrXA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1717001863; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=sfNHDNKIRa4I8QXrRcBhuHI8me0AtwAVW10X5+v7JzI=; b=QZKAgKhs5+dt08vFFHLU/Nv/zDegOmU15/fiSuYg47iIXgcfVEKsIbFotIdLkpqxp7ALlW 1ibSsAOnhw/Ft8oaUQu64R+/QM4l4g6GlSNACdKFu7Ooo9G7b1NYxdxTqY8f0TbGH7lHgM eV3w4bwX9MkDIWzntxvZ49dNxVv2XGFotyvp+YuBq26O4eABNMoxg/qaGqKl68llXadw9H OTxZZSSyyh0F4W3mpKTXkL+m5kQSz3QLvvbJ3mOjoU7hpMDfjH8iLgbb/6W9AL01kHHVL9 Z23wDgQQXCqTzlCzJQNPd/ctxVGRzWbmvpf2Yes8h1ky40iUblAyB0oup1GnEA== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4VqFtb5sNkz14Xf for ; Wed, 29 May 2024 16:57:43 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 44TGvhVr045415 for ; Wed, 29 May 2024 16:57:43 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 44TGvh9W045411 for riscv@FreeBSD.org; Wed, 29 May 2024 16:57:43 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: riscv@FreeBSD.org Subject: [Bug 279383] riscv bounce_bus_dmamap_load_buffer() Date: Wed, 29 May 2024 16:57:43 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: riscv X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: rtm@lcs.mit.edu X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: riscv@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: FreeBSD on the RISC-V instruction set architecture List-Archive: https://lists.freebsd.org/archives/freebsd-riscv List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-riscv@freebsd.org Sender: owner-freebsd-riscv@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D279383 Bug ID: 279383 Summary: riscv bounce_bus_dmamap_load_buffer() Product: Base System Version: CURRENT Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: riscv Assignee: riscv@FreeBSD.org Reporter: rtm@lcs.mit.edu I use an old riscv simulator whose virtio block device doesn't support the VIRTIO_BLK_F_SEG_MAX feature, so FreeBSD's vtblk_maximum_segments() decides it supports only three segments. This has worked, but stopped working after a recent update to the riscv busdma_bounce.c. The very first read of a virtio block device is 20 bytes (to read the label?). The riscv bounce_bus_dmamap_load_buffer() decides a bounce page is needed. But it rounds up the size from buflen=3D20 bytes to a whole page (since dmat->common.alignment is 4096): sgsize =3D MIN(buflen, PAGE_SIZE - (curaddr & PAGE_MASK)); if (((dmat->bounce_flags & BF_COULD_BOUNCE) !=3D 0) && map->pagesneeded !=3D 0 && addr_needs_bounce(dmat, curaddr)) { sgsize =3D roundup2(sgsize, dmat->common.alignment); curaddr =3D add_bounce_page(dmat, map, kvaddr, cura= ddr, sgsize); The immediate problem is that later the=20 buflen -=3D sgsize; wraps (since buflen is 20 and sgsize is 4096), so that buflen is huge and the while loop incorrectly makes a second iteration.=20 A potential fix is to restore the bounce_bus_dmamap_load_buffer() code from a few months ago that limits sgsize to be no more than buflen. FreeBSD 15.0-CURRENT FreeBSD 15.0-CURRENT #312 main-n250991-01d33dbbb3f8-dirty: Wed May 29 12:49:02 EDT 2024=20=20=20=20 rtm@zika:/usr/obj/usr/rtm/symbsd/src/riscv.riscv64/sys/RTM riscv --=20 You are receiving this mail because: You are the assignee for the bug.= From nobody Wed May 29 17:02:31 2024 X-Original-To: riscv@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4VqG080Wmvz5MrQ9 for ; Wed, 29 May 2024 17:02:32 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4VqG076bY1z4ldq for ; Wed, 29 May 2024 17:02:31 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1717002151; a=rsa-sha256; cv=none; b=JoXt3daJNf54YCzzINWKzWgCCfS0IVeP2F/6C3lfPfV2/CvHcG+FiVoOnWyH6sVV7arpeP iLKd30CkaAOFirQga19GhJ3FrS+O7dr0ME+2LbG8GnKQK5XIUVIpncpHsKhT4b6NFdoIPb HV62AYel4lMqGVQkXqNQgzBpOlmYcHFEFXN0/Ok8DWIP3swTtwmH8mDjrM33bCdr+DlMDz 0r51H2JRRS979ajzMRelq+Dk0VbWEyhYtVSLd/i5UylUyt15+cW+3DRZ4ZrELIXnR860pu fPUlxBjFvJb34lSpNE3QfP3IsbIOdx93a+lidiM2bUYDJwxu61Uro/LEGfjvMQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1717002151; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=aAz6700HI7quCKLEqZ8VDlQD3SQPrtlnvQL6dwAd7LU=; b=Z5spHFBOUXsPE64ILzgYjWsZWVAgPnnWuoQpU+XpPTlKE51DRwdTll0xlOaowu45Q3X28M 2YW7BmKtPn3ydNGI0AFv1dY5Wg9XyrWGIx5VNcBOM4mqU6+lvrqfK7YbieQqF0TkuRaB7C Zu8OzZXb+MkjsdD55GaRvksEGtDk3vOw+u4xCdYM6D1BD4F/Tk1EnwNdLKGSj+Zj01KFOe njbXhbZy5kmjxNYge0KOGezkrdExVtjAsg/mPo9UFUQ4vk7P8eF9v4EFpMxNDlu9+l6UXn LlJgiPuEXnHO7o86cKKO2IngL8X3O79sucW3dkxEagTtCWpUOQeoaFPJ1Mmliw== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4VqG076CDDz14pP for ; Wed, 29 May 2024 17:02:31 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 44TH2Vjw076161 for ; Wed, 29 May 2024 17:02:31 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 44TH2V27076158 for riscv@FreeBSD.org; Wed, 29 May 2024 17:02:31 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: riscv@FreeBSD.org Subject: [Bug 279383] riscv bounce_bus_dmamap_load_buffer() Date: Wed, 29 May 2024 17:02:31 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: riscv X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: jrtc27@freebsd.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: riscv@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: FreeBSD on the RISC-V instruction set architecture List-Archive: https://lists.freebsd.org/archives/freebsd-riscv List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-riscv@freebsd.org Sender: owner-freebsd-riscv@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D279383 Jessica Clarke changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jrtc27@freebsd.org --- Comment #1 from Jessica Clarke --- Given busdma_bounce is more aligned across architectures these days, this probably isn't exclusive to RISC-V? --=20 You are receiving this mail because: You are the assignee for the bug.= From nobody Wed May 29 19:59:29 2024 X-Original-To: riscv@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4VqKwK5z0lz5LBWd for ; Wed, 29 May 2024 19:59:29 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4VqKwK245vz53Zw for ; Wed, 29 May 2024 19:59:29 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1717012769; a=rsa-sha256; cv=none; b=t+E/tHTTDz+KTIWIX/hcXvo2vBiqNyt+HBbwWU+dIGgUiTvCweZiXtFWdxXmiBVSc0xoZZ QiQHQIhxeXH0Xdu420u8xirySVAHsKlDG7V3ICS53GY5qNutDAnIQlXKcAy43x0hQhWlnA uiO3pI70T9rZzmWlWecg3GzvCCgN1zPU9hq6cZnMFxzQ+8pUvDCZD6pVJ6jLCQzSxK+6bZ BCCA2ABPVuF+aEx9ThmczaaepUXBkYuhRWmGbPXFSBX+qdlV0YmrObIYYq2ovt3MIhx9DW XVbQ3vViuM9d5S1KBOsAKv6avq1j85mgo/W9eTdltlOxFxzMaatV4XirLNrbww== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1717012769; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=w+3Qtrh8Atx+AlMtadRS6sN5XWLnnXbuUryX80CDwOM=; b=XZC36s4pbFFFmwJIsjT5PFUa0e26fV4UTn//60Rio2Ohk5JhUDhUzs0KwRv4aQ+gb+513g dAvtTk1p2QSOOGnuCZDE51/yxFmyiMi4QI040TzHbRz1z2Sglr1hw/O6TEdBDHRNzyXlcZ UD3VLhlN8tEBSznkqLFuLgNBdF3KZdBRQmqicJEK7oqFJELUDksQjo8JB6Rjg9e3iHNwVu g1E6QdnInu7F4ZCzfGiE1kCJpKmtHSRX7qUu/jS3f0fIZxAZ1Vf/yZOvA3owApUaEw8dGj zF2liWdN5pfBK7R9nsX0jF0Bl8NMm+lsnJRjhl35hBlmVYhpm/MbZIw1GD91hw== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4VqKwK1h9Bz18j1 for ; Wed, 29 May 2024 19:59:29 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 44TJxTnp086489 for ; Wed, 29 May 2024 19:59:29 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 44TJxTp9086488 for riscv@FreeBSD.org; Wed, 29 May 2024 19:59:29 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: riscv@FreeBSD.org Subject: [Bug 279383] riscv bounce_bus_dmamap_load_buffer() stopped working after a recent update to the riscv busdma_bounce.c Date: Wed, 29 May 2024 19:59:29 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: riscv X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: regression X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: linimon@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: riscv@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: keywords short_desc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: FreeBSD on the RISC-V instruction set architecture List-Archive: https://lists.freebsd.org/archives/freebsd-riscv List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-riscv@freebsd.org Sender: owner-freebsd-riscv@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D279383 Mark Linimon changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |regression Summary|riscv |riscv |bounce_bus_dmamap_load_buff |bounce_bus_dmamap_load_buff |er() |er() stopped working after | |a recent update to the | |riscv busdma_bounce.c --=20 You are receiving this mail because: You are the assignee for the bug.= From nobody Sun Jun 2 11:38:07 2024 X-Original-To: freebsd-riscv@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4VsZc1529cz5Md8t for ; Sun, 02 Jun 2024 11:38:09 +0000 (UTC) (envelope-from fuz@fuz.su) Received: from fuz.su (fuz.su [IPv6:2001:41d0:8:e508::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "fuz.su", Issuer "fuz.su" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4VsZc047JTz53B1; Sun, 2 Jun 2024 11:38:08 +0000 (UTC) (envelope-from fuz@fuz.su) Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=freebsd.org (policy=none); spf=pass (mx1.freebsd.org: domain of fuz@fuz.su designates 2001:41d0:8:e508::1 as permitted sender) smtp.mailfrom=fuz@fuz.su Received: from fuz.su (localhost [127.0.0.1]) by fuz.su (8.18.1/8.18.1) with ESMTPS id 452Bc7et058598 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Sun, 2 Jun 2024 13:38:07 +0200 (CEST) (envelope-from fuz@fuz.su) Received: (from fuz@localhost) by fuz.su (8.18.1/8.18.1/Submit) id 452Bc7v5058597; Sun, 2 Jun 2024 13:38:07 +0200 (CEST) (envelope-from fuz) Date: Sun, 2 Jun 2024 13:38:07 +0200 From: Robert Clausecker To: freebsd-riscv@freebsd.org, mhorne@freebsd.org Cc: strajabot@gmail.com Subject: Detecting the Zbb extension on riscv64 Message-ID: List-Id: FreeBSD on the RISC-V instruction set architecture List-Archive: https://lists.freebsd.org/archives/freebsd-riscv List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-riscv@freebsd.org Sender: owner-freebsd-riscv@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Spamd-Bar: -- X-Spamd-Result: default: False [-2.60 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.99)[-0.995]; NEURAL_HAM_MEDIUM(-0.71)[-0.708]; FORGED_SENDER(0.30)[fuz@freebsd.org,fuz@fuz.su]; R_SPF_ALLOW(-0.20)[+a:c]; MIME_GOOD(-0.10)[text/plain]; DMARC_POLICY_SOFTFAIL(0.10)[freebsd.org : SPF not aligned (relaxed), No valid DKIM,none]; ARC_NA(0.00)[]; ASN(0.00)[asn:16276, ipnet:2001:41d0::/32, country:FR]; MIME_TRACE(0.00)[0:+]; FREEFALL_USER(0.00)[fuz]; MISSING_XM_UA(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; MLMMJ_DEST(0.00)[freebsd-riscv@freebsd.org]; RCVD_TLS_LAST(0.00)[]; FROM_HAS_DN(0.00)[]; FREEMAIL_CC(0.00)[gmail.com]; R_DKIM_NA(0.00)[]; TO_DN_NONE(0.00)[]; FROM_NEQ_ENVFROM(0.00)[fuz@freebsd.org,fuz@fuz.su]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCPT_COUNT_THREE(0.00)[3] X-Rspamd-Queue-Id: 4VsZc047JTz53B1 Greetings! I'm currently working on two projects that require the Zbb instruction set extension on riscv64: - strajabot@ is a gsoc student who is currently porting the SIMD-enhanced libc string functions from amd64 to riscv64. For these, Zbb is immensely useful as it provides the CTZ and ORC.B instructions needed for fast string comparison - I'm trying to write a fast sha1 implementation for libmd, which (you might have guessed it) requires Zbb for rotate instructions. Not having these is possible here, but there is a significant performance penalty. Zbb is supported by the SiFive unmatched board for example. I originally wanted to just write an ifunc dispatcher that checks for the presence off Zbb and then picks an appropriate implementation, but then noticed that AT_HWCAP currently only supports the detection of capital letter extensions. Furthermore, we do not give user space any access to the isa string (a sysctl like hw.isa would be nice), so it's not even possible to determine the availability manually. Please check if you can add a sysctl to get the ISA string and possibly add an elf_aux_info extension to allow the user to find out which Z extensions are present. We are working with 15-CURRENT, so if it's there it'll suffice for our needs. Yours, Robert Clausecker -- () ascii ribbon campaign - for an encoding-agnostic world /\ - against html email - against proprietary attachments From nobody Sun Jun 2 13:05:09 2024 X-Original-To: freebsd-riscv@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4VscXV5Xz9z5Mkgt for ; Sun, 02 Jun 2024 13:05:14 +0000 (UTC) (envelope-from tuexen@freebsd.org) Received: from drew.franken.de (mail-n.franken.de [193.175.24.27]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.franken.de", Issuer "Sectigo RSA Domain Validation Secure Server CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4VscXV2X92z3wYD; Sun, 2 Jun 2024 13:05:14 +0000 (UTC) (envelope-from tuexen@freebsd.org) Authentication-Results: mx1.freebsd.org; none Received: from smtpclient.apple (unknown [IPv6:2a02:8109:1140:c3d:1c07:30e1:d10:75ea]) (Authenticated sender: micmac) by drew.franken.de (Postfix) with ESMTPSA id 3E35D721E2806; Sun, 2 Jun 2024 15:05:10 +0200 (CEST) Content-Type: text/plain; charset=us-ascii List-Id: FreeBSD on the RISC-V instruction set architecture List-Archive: https://lists.freebsd.org/archives/freebsd-riscv List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-riscv@freebsd.org Sender: owner-freebsd-riscv@FreeBSD.org Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3774.600.62\)) Subject: Re: Detecting the Zbb extension on riscv64 From: tuexen@freebsd.org In-Reply-To: Date: Sun, 2 Jun 2024 15:05:09 +0200 Cc: freebsd-riscv@freebsd.org, Mitchell Horne , strajabot@gmail.com Content-Transfer-Encoding: quoted-printable Message-Id: <5343E09C-017B-40B7-9349-01F1195BBB7C@freebsd.org> References: To: Robert Clausecker X-Mailer: Apple Mail (2.3774.600.62) X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00, T_SCC_BODY_TEXT_LINE autolearn=disabled version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on mail-n.franken.de X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:680, ipnet:193.174.0.0/15, country:DE] X-Rspamd-Queue-Id: 4VscXV2X92z3wYD > On 2. Jun 2024, at 13:38, Robert Clausecker wrote: >=20 > Greetings! >=20 > I'm currently working on two projects that require the Zbb > instruction set extension on riscv64: >=20 > - strajabot@ is a gsoc student who is currently porting the > SIMD-enhanced libc string functions from amd64 to riscv64. > For these, Zbb is immensely useful as it provides the > CTZ and ORC.B instructions needed for fast string comparison >=20 > - I'm trying to write a fast sha1 implementation for libmd, > which (you might have guessed it) requires Zbb for rotate > instructions. Not having these is possible here, but there > is a significant performance penalty. >=20 > Zbb is supported by the SiFive unmatched board for example. Hi Robert, just double checking: According to = https://sifive.cdn.prismic.io/sifive/d0556df9-55c6-47a8-b0f2-4b1521546543_= hifive-unmatched-datasheet.pdf the processor supports RV64GC (RV64IMAFDC). I don't see a B there. So does it actually support Zbb? What about Zbr? Best regards Michael >=20 > I originally wanted to just write an ifunc dispatcher that > checks for the presence off Zbb and then picks an appropriate > implementation, but then noticed that AT_HWCAP currently only > supports the detection of capital letter extensions. >=20 > Furthermore, we do not give user space any access to the isa > string (a sysctl like hw.isa would be nice), so it's not even > possible to determine the availability manually. >=20 > Please check if you can add a sysctl to get the ISA string and > possibly add an elf_aux_info extension to allow the user to find > out which Z extensions are present. >=20 > We are working with 15-CURRENT, so if it's there it'll suffice > for our needs. >=20 > Yours, > Robert Clausecker >=20 > --=20 > () ascii ribbon campaign - for an encoding-agnostic world > /\ - against html email - against proprietary attachments >=20 From nobody Sun Jun 2 13:42:19 2024 X-Original-To: freebsd-riscv@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4VsdML6qpdz5MnnY for ; Sun, 02 Jun 2024 13:42:22 +0000 (UTC) (envelope-from fuz@fuz.su) Received: from fuz.su (fuz.su [IPv6:2001:41d0:8:e508::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "fuz.su", Issuer "fuz.su" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4VsdMK5GPtz4291; Sun, 2 Jun 2024 13:42:21 +0000 (UTC) (envelope-from fuz@fuz.su) Authentication-Results: mx1.freebsd.org; none Received: from fuz.su (localhost [127.0.0.1]) by fuz.su (8.18.1/8.18.1) with ESMTPS id 452DgJMZ059033 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Sun, 2 Jun 2024 15:42:19 +0200 (CEST) (envelope-from fuz@fuz.su) Received: (from fuz@localhost) by fuz.su (8.18.1/8.18.1/Submit) id 452DgJw7059032; Sun, 2 Jun 2024 15:42:19 +0200 (CEST) (envelope-from fuz) Date: Sun, 2 Jun 2024 15:42:19 +0200 From: Robert Clausecker To: tuexen@freebsd.org Cc: Robert Clausecker , freebsd-riscv@freebsd.org, Mitchell Horne , strajabot@gmail.com Subject: Re: Detecting the Zbb extension on riscv64 Message-ID: References: <5343E09C-017B-40B7-9349-01F1195BBB7C@freebsd.org> List-Id: FreeBSD on the RISC-V instruction set architecture List-Archive: https://lists.freebsd.org/archives/freebsd-riscv List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-riscv@freebsd.org Sender: owner-freebsd-riscv@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5343E09C-017B-40B7-9349-01F1195BBB7C@freebsd.org> X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:16276, ipnet:2001:41d0::/32, country:FR] X-Rspamd-Queue-Id: 4VsdMK5GPtz4291 Hi Michael, Am Sun, Jun 02, 2024 at 03:05:09PM +0200 schrieb tuexen@freebsd.org: > > Zbb is supported by the SiFive unmatched board for example. > just double checking: > According to > https://sifive.cdn.prismic.io/sifive/d0556df9-55c6-47a8-b0f2-4b1521546543_hifive-unmatched-datasheet.pdf > the processor supports RV64GC (RV64IMAFDC). I don't see a B there. > So does it actually support Zbb? What about Zbr? The board is based on the SiFive FU740-C000 SoC, which uses a quad-core U74 CPU. Reading the [U74 Core Complex Manual], we find that it supports the Zba and Zbb instruction set extensions. [U74 Core Complex Manual]: https://starfivetech.com/uploads/u74_core_complex_manual_21G1.pdf Though on the other hand, if I actually try to execute a program using the CTZ instruction, I get a SIGILL... what's going on here? Yours, Robert Clausecker -- () ascii ribbon campaign - for an encoding-agnostic world /\ - against html email - against proprietary attachments From nobody Sun Jun 2 16:37:44 2024 X-Original-To: freebsd-riscv@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4VsjFw58xFz5N2Mt for ; Sun, 02 Jun 2024 16:37:56 +0000 (UTC) (envelope-from tuexen@freebsd.org) Received: from drew.franken.de (drew.ipv6.franken.de [IPv6:2001:638:a02:a001:20e:cff:fe4a:feaa]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.franken.de", Issuer "Sectigo RSA Domain Validation Secure Server CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4VsjFv2mKrz4KTw; Sun, 2 Jun 2024 16:37:55 +0000 (UTC) (envelope-from tuexen@freebsd.org) Authentication-Results: mx1.freebsd.org; none Received: from smtpclient.apple (unknown [IPv6:2a02:8109:1140:c3d:1c07:30e1:d10:75ea]) (Authenticated sender: macmic) by drew.franken.de (Postfix) with ESMTPSA id D9498721E2806; Sun, 2 Jun 2024 18:37:44 +0200 (CEST) Content-Type: text/plain; charset=us-ascii List-Id: FreeBSD on the RISC-V instruction set architecture List-Archive: https://lists.freebsd.org/archives/freebsd-riscv List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-riscv@freebsd.org Sender: owner-freebsd-riscv@FreeBSD.org Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3774.600.62\)) Subject: Re: Detecting the Zbb extension on riscv64 From: tuexen@freebsd.org In-Reply-To: Date: Sun, 2 Jun 2024 18:37:44 +0200 Cc: freebsd-riscv@freebsd.org, Mitchell Horne , strajabot@gmail.com Content-Transfer-Encoding: quoted-printable Message-Id: <232F8595-5C7A-4ABD-961D-4779CED5A5D6@freebsd.org> References: <5343E09C-017B-40B7-9349-01F1195BBB7C@freebsd.org> To: Robert Clausecker X-Mailer: Apple Mail (2.3774.600.62) X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00, T_SCC_BODY_TEXT_LINE autolearn=disabled version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on mail-n.franken.de X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:680, ipnet:2001:638::/32, country:DE] X-Rspamd-Queue-Id: 4VsjFv2mKrz4KTw > On 2. Jun 2024, at 15:42, Robert Clausecker wrote: >=20 > Hi Michael, >=20 > Am Sun, Jun 02, 2024 at 03:05:09PM +0200 schrieb tuexen@freebsd.org: >>> Zbb is supported by the SiFive unmatched board for example. >> just double checking: >> According to >> = https://sifive.cdn.prismic.io/sifive/d0556df9-55c6-47a8-b0f2-4b1521546543_= hifive-unmatched-datasheet.pdf >> the processor supports RV64GC (RV64IMAFDC). I don't see a B there. >> So does it actually support Zbb? What about Zbr? >=20 > The board is based on the SiFive FU740-C000 SoC, which uses > a quad-core U74 CPU. Reading the [U74 Core Complex Manual], > we find that it supports the Zba and Zbb instruction set > extensions. >=20 > [U74 Core Complex Manual]: = https://starfivetech.com/uploads/u74_core_complex_manual_21G1.pdf Thanks for the pointer. Zbr is not mentioned there... >=20 > Though on the other hand, if I actually try to execute a program > using the CTZ instruction, I get a SIGILL... what's going on here? I don't know. Best regards Michael >=20 > Yours, > Robert Clausecker >=20 > --=20 > () ascii ribbon campaign - for an encoding-agnostic world > /\ - against html email - against proprietary attachments >=20 From nobody Sun Jun 2 18:33:55 2024 X-Original-To: freebsd-riscv@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Vslqq2vcMz5Jjjl for ; Sun, 02 Jun 2024 18:33:59 +0000 (UTC) (envelope-from fuz@fuz.su) Received: from fuz.su (fuz.su [IPv6:2001:41d0:8:e508::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "fuz.su", Issuer "fuz.su" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Vslqq08G4z4TXN; Sun, 2 Jun 2024 18:33:58 +0000 (UTC) (envelope-from fuz@fuz.su) Authentication-Results: mx1.freebsd.org; none Received: from fuz.su (localhost [127.0.0.1]) by fuz.su (8.18.1/8.18.1) with ESMTPS id 452IXuE1060074 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Sun, 2 Jun 2024 20:33:56 +0200 (CEST) (envelope-from fuz@fuz.su) Received: (from fuz@localhost) by fuz.su (8.18.1/8.18.1/Submit) id 452IXuBA060073; Sun, 2 Jun 2024 20:33:56 +0200 (CEST) (envelope-from fuz) Date: Sun, 2 Jun 2024 20:33:55 +0200 From: Robert Clausecker To: tuexen@freebsd.org Cc: Robert Clausecker , freebsd-riscv@freebsd.org, Mitchell Horne , strajabot@gmail.com Subject: Re: Detecting the Zbb extension on riscv64 Message-ID: References: <5343E09C-017B-40B7-9349-01F1195BBB7C@freebsd.org> <232F8595-5C7A-4ABD-961D-4779CED5A5D6@freebsd.org> List-Id: FreeBSD on the RISC-V instruction set architecture List-Archive: https://lists.freebsd.org/archives/freebsd-riscv List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-riscv@freebsd.org Sender: owner-freebsd-riscv@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <232F8595-5C7A-4ABD-961D-4779CED5A5D6@freebsd.org> X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:16276, ipnet:2001:41d0::/32, country:FR] X-Rspamd-Queue-Id: 4Vslqq08G4z4TXN Hi Michael, Am Sun, Jun 02, 2024 at 06:37:44PM +0200 schrieb tuexen@freebsd.org: > > [U74 Core Complex Manual]: https://starfivetech.com/uploads/u74_core_complex_manual_21G1.pdf > Thanks for the pointer. Zbr is not mentioned there... It's not mentioned (though the next revision mentions Zba and Zbb), but the instructions of Zba and Zbb are listed as being available. Yours, Robert Clausecker -- () ascii ribbon campaign - for an encoding-agnostic world /\ - against html email - against proprietary attachments From nobody Sun Jun 2 19:01:18 2024 X-Original-To: freebsd-riscv@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4VsmRb72cvz5JmLx for ; Sun, 02 Jun 2024 19:01:31 +0000 (UTC) (envelope-from jrtc27@jrtc27.com) Received: from mail-wr1-f50.google.com (mail-wr1-f50.google.com [209.85.221.50]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "WR4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4VsmRb5SLmz4YlC for ; Sun, 2 Jun 2024 19:01:31 +0000 (UTC) (envelope-from jrtc27@jrtc27.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-wr1-f50.google.com with SMTP id ffacd0b85a97d-35dbfe31905so3691403f8f.2 for ; Sun, 02 Jun 2024 12:01:31 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717354890; x=1717959690; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=yfUJZO75DOqImzw0xb8u+IK+rDyFIShtg5YDXLgJx/E=; b=DdB9HZxxuMyeFIBFaB1thCqV5nHcJ4MCZnr0dNaA3U5aguq1+BHtVIvxcdKpU6/AGS IfeqU6UrOx/vBSub54hHaO/2jsaqETz+jlc9NhbfMCW3vb7Nu/ADJjh+TgAUCAyIzk4x SL91ihJ2bdjfbYmyi7gfmvaLTDZgj6RT/fnRfRaTFWsud1JFkHzbQvw1euUFiF3gmeUv UhN3Ov7cU6g88Nik4H1uY1BIefaB+9uNtw4ac+ANb5zBu/8b+6P4hXElLB20Sh1ek5Wy pLJIvHWGGydL4eWUqlfcRM/nBEQRkzp2gxa+fnHrbuXS2ntObBTf01pgBLWpSDX3tZME RaBA== X-Forwarded-Encrypted: i=1; AJvYcCXyjIYfPVxbJ+LsM8vlmSlOJtJ3WlX8qg79VTMAhNcNX4heiNhQCpeUlwMoK6yURFYdIdaEcj/uKX4+n5s6eghaSyJUUMTW2c+d X-Gm-Message-State: AOJu0YyP1Uvg+UQEsaUFFA2uv2eZam+7OVGP37fyvZea74wWRLcAv98x 1tKDht2MQVwY4P5/ialHvXxbVAFnoFHNKzjnR4iXkNYV/0KYFyLtHr4pNWv/zwE= X-Google-Smtp-Source: AGHT+IEbR4RMNmHUqKDtD2uHiCo8TljA/yIg8O1NQmE8MsNWQOzgRRlKEUNc95ENNPxepH6f/G+jZQ== X-Received: by 2002:adf:f7c4:0:b0:34e:9342:6b8 with SMTP id ffacd0b85a97d-35e0f28800emr4536809f8f.40.1717354890113; Sun, 02 Jun 2024 12:01:30 -0700 (PDT) Received: from smtpclient.apple ([131.111.5.246]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-35dd04caf05sm6728019f8f.42.2024.06.02.12.01.29 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sun, 02 Jun 2024 12:01:29 -0700 (PDT) Content-Type: text/plain; charset=utf-8 List-Id: FreeBSD on the RISC-V instruction set architecture List-Archive: https://lists.freebsd.org/archives/freebsd-riscv List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-riscv@freebsd.org Sender: owner-freebsd-riscv@FreeBSD.org Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3774.500.171.1.1\)) Subject: Re: Detecting the Zbb extension on riscv64 From: Jessica Clarke In-Reply-To: Date: Sun, 2 Jun 2024 20:01:18 +0100 Cc: tuexen@freebsd.org, freebsd-riscv , Mitchell Horne , strajabot@gmail.com Content-Transfer-Encoding: quoted-printable Message-Id: References: <5343E09C-017B-40B7-9349-01F1195BBB7C@freebsd.org> <232F8595-5C7A-4ABD-961D-4779CED5A5D6@freebsd.org> To: Robert Clausecker X-Mailer: Apple Mail (2.3774.500.171.1.1) X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:15169, ipnet:209.85.128.0/17, country:US] X-Rspamd-Queue-Id: 4VsmRb5SLmz4YlC [Resending with the right From: so it reaches the list...] On 2 Jun 2024, at 19:33, Robert Clausecker wrote: >=20 > Hi Michael, >=20 > Am Sun, Jun 02, 2024 at 06:37:44PM +0200 schrieb tuexen@freebsd.org: >>> [U74 Core Complex Manual]: = https://starfivetech.com/uploads/u74_core_complex_manual_21G1.pdf >> Thanks for the pointer. Zbr is not mentioned there... >=20 > It's not mentioned (though the next revision mentions Zba and Zbb), = but > the instructions of Zba and Zbb are listed as being available. The U74 has evolved over many years with multiple versions. The Unmatched has a version from late 2018 (its mimpid is 0x20181004 as printed at boot) which predates Zb* ratification. You need to look at the manual for the board in question[1], not StarFive=E2=80=99s manual corresponding to their newer board and thus core revision. Jess [1] = https://sifive.cdn.prismic.io/sifive/1a82e600-1f93-4f41-b2d8-86ed8b16acba_= fu740-c000-manual-v1p6.pdf