From owner-freebsd-bugs@freebsd.org Thu Sep 17 20:45:24 2020 Return-Path: Delivered-To: freebsd-bugs@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 80BA33EDC29 for ; Thu, 17 Sep 2020 20:45:24 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (mailman.nyi.freebsd.org [IPv6:2610:1c1:1:606c::50:13]) by mx1.freebsd.org (Postfix) with ESMTP id 4BsprN2vjrz4bwg for ; Thu, 17 Sep 2020 20:45:24 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id 6107F3ED8CC; Thu, 17 Sep 2020 20:45:24 +0000 (UTC) Delivered-To: bugs@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 60C363EDAB2 for ; Thu, 17 Sep 2020 20:45:24 +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 "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4BsprN21fdz4btY for ; Thu, 17 Sep 2020 20:45:24 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) 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 0D02C10020 for ; Thu, 17 Sep 2020 20:45:24 +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 08HKjNHv067737 for ; Thu, 17 Sep 2020 20:45:23 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 08HKjNcn067736 for bugs@FreeBSD.org; Thu, 17 Sep 2020 20:45:23 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: bugs@FreeBSD.org Subject: [Bug 249410] [ZFS][workaround exists] missing symbol for fletcher4+NEON on zfs.ko on aarch64 making root-on-zfs impossible Date: Thu, 17 Sep 2020 20:45:24 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: freebsd.bz@filcab.net X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@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 MIME-Version: 1.0 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Sep 2020 20:45:24 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D249410 Bug ID: 249410 Summary: [ZFS][workaround exists] missing symbol for fletcher4+NEON on zfs.ko on aarch64 making root-on-zfs impossible Product: Base System Version: CURRENT Hardware: arm64 OS: Any Status: New Severity: Affects Some People Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: freebsd.bz@filcab.net Hi all, I'm trying to boot a Raspberry Pi 4 straight to root on ZFS (I know, it's my own fault :-) ). The issue here is that when the loader loads zfs.ko (even when manually loa= ding its deps (opensolaris.ko and cryptodev.ko)), it complains that fletcher_4_aarch64_neon_ops is not defined. OpenZFS has commit with a simple workaround (disable NEON implementation of fletcher4 on FreeBSD): https://github.com/openzfs/zfs/commit/2dbad4471005784e97b65b60ecfdbf6dddc4b= 751 Is it possible to import it into FreeBSD for now? (Ideally the issue will be fixed and we'll have a NEON impl of fletcher4, but for now having it work w= ould be better than just failing). I've tested this with the -CURRENT image for RPi3: https://download.freebsd.org/ftp/snapshots/arm64/aarch64/ISO-IMAGES/13.0/Fr= eeBSD-13.0-CURRENT-arm64-aarch64-RPI3-20200827-r364846.img.xz Unfortunately, I don't have enough hardware to run a full crochet build in = an appropriate amount of time (I'm trying in a VM, but it's taking so long to = even clone to /usr/src...). I don't have the boot output, but have this: I've mounted the UFS partition from the image I mentioned above and: root@vm:/mnt/boot # nm kernel/zfs.ko | grep 'fletcher_4_' | grep U U fletcher_4_aarch64_neon_ops This symbol should be defined in the module, per the source code. But for s= ome reason it isn't. I'm not familiar enough with the FreeBSD CI to try and tra= ck errors about it, sorry :-( Hopefully we can import the workaround for now and/or fix it properly soon. Thank you, and sorry I can't help much more, Filipe --=20 You are receiving this mail because: You are the assignee for the bug.=