From nobody Fri Apr 07 21:26:50 2023 X-Original-To: dev-commits-src-main@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 4PtWf45s8Mz44CBn; Fri, 7 Apr 2023 21:26:52 +0000 (UTC) (envelope-from mjguzik@gmail.com) Received: from mail-oa1-x35.google.com (mail-oa1-x35.google.com [IPv6:2001:4860:4864:20::35]) (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 "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4PtWf40QWpz4CWw; Fri, 7 Apr 2023 21:26:52 +0000 (UTC) (envelope-from mjguzik@gmail.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20210112 header.b=Cryohj88; spf=pass (mx1.freebsd.org: domain of mjguzik@gmail.com designates 2001:4860:4864:20::35 as permitted sender) smtp.mailfrom=mjguzik@gmail.com; dmarc=pass (policy=none) header.from=gmail.com Received: by mail-oa1-x35.google.com with SMTP id 586e51a60fabf-17ab3a48158so46905506fac.1; Fri, 07 Apr 2023 14:26:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1680902811; x=1683494811; h=cc:to:subject:message-id:date:from:references:in-reply-to :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=nVs5Osrml6NW5Ab9p7ZwnyqwMcoCWqZPugREWQM/W2A=; b=Cryohj88AGn1pxMJ2ql/KJFvulHB3n0XC2woHf3OwC1GWCRSEQCbV43VcjaVXAFFvC gQiCLR9aCeZSmAuYUL1aYZm0bbQ59bQ/2p1zdEmj/AfEo3RmvSt0WlH/MV3fkX8y/vCa FlOLU2qMd6V2zyW+mLOenLjap7g/KqrCy1taGZCvvhlo4Fy9ztKhgPjvgzvfFjrG6kyK I0QGDgosSr7n96wxko4sPIdjPVmn7/j3h0xf+RZfrqR1JNvXqhEQ2k2M0JyMu7atqwcw 9puo9U34b126O5qJME0AuloqiWrJOR1OphjAwpT0UYaoLYVUiSHSYiN0hBPSbuZH0MQa /+6Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680902811; x=1683494811; h=cc:to:subject:message-id:date:from:references:in-reply-to :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=nVs5Osrml6NW5Ab9p7ZwnyqwMcoCWqZPugREWQM/W2A=; b=C/aE2D34T6UE1GUv7b1b0SRWp8/DcTlNSx56xhwY/KzulK2c//QOseIB6nx0/o+Td0 G1VfA+Tj6b9CYjuAqWJMMkFDxqWTT0vkK0ckDSHv9H9fnuR8jsbLUuzqhug32mQTyQ0S 4JbhQc6FwfHqfQEqjoE7/hU7DyPgDkuCN9XainoYA+oFOBvLWLocWwD4nzTI6klwrmzB qrRVekcwS9cr596svKHdIpV9FChKGE8XODqgZ9+ZZ7+np5ZaaRq9uT+tWiePG1u4BG5b R+LuIT8f6XeeXmYCfieCLYVxJURuXcg3lh1rdYbBTGDSub2Jeh1KbsFpPrRWUo2n4UuM PTQA== X-Gm-Message-State: AAQBX9dgji+fuMwd88a0I5rzF6748T49ag/a33MioEeqPj1YoCOzH5pU LDOiU9UTErBDJkTjs3hgk1O3x5U23140wziOhJA= X-Google-Smtp-Source: AKy350YmKifk/aivMN66Kprg7nvU/Dj+AvfToHCdD5zg60fPAPvRAUXcLYUkdTyjtlIrQLP6W25R2cmCs6wOx/NZeII= X-Received: by 2002:a05:6870:3285:b0:184:1c35:630e with SMTP id q5-20020a056870328500b001841c35630emr862564oac.4.1680902810935; Fri, 07 Apr 2023 14:26:50 -0700 (PDT) List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 Received: by 2002:ac9:798d:0:b0:49c:b071:b1e3 with HTTP; Fri, 7 Apr 2023 14:26:50 -0700 (PDT) In-Reply-To: References: From: Mateusz Guzik Date: Fri, 7 Apr 2023 23:26:50 +0200 Message-ID: Subject: Re: git: 2a58b312b62f - main - zfs: merge openzfs/zfs@431083f75 [separate aarch64 panic for zpool import] To: Mark Millard Cc: dev-commits-src-main@freebsd.org, Current FreeBSD , freebsd-arm , John F Carr Content-Type: text/plain; charset="UTF-8" X-Spamd-Result: default: False [-2.33 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_SPAM_SHORT(0.67)[0.666]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20210112]; R_SPF_ALLOW(-0.20)[+ip6:2001:4860:4000::/36]; MIME_GOOD(-0.10)[text/plain]; RCVD_IN_DNSWL_NONE(0.00)[2001:4860:4864:20::35:from]; FREEMAIL_TO(0.00)[yahoo.com]; MLMMJ_DEST(0.00)[dev-commits-src-main@freebsd.org,freebsd-current@freebsd.org,freebsd-arm@freebsd.org]; MIME_TRACE(0.00)[0:+]; FROM_EQ_ENVFROM(0.00)[]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2001:4860:4864::/48, country:US]; ARC_NA(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; MID_RHS_MATCH_FROMTLD(0.00)[]; TO_DN_SOME(0.00)[]; FROM_HAS_DN(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; FREEMAIL_FROM(0.00)[gmail.com]; RCVD_COUNT_THREE(0.00)[3]; RCPT_COUNT_FIVE(0.00)[5]; RCVD_TLS_LAST(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim] X-Rspamd-Queue-Id: 4PtWf40QWpz4CWw X-Spamd-Bar: -- X-ThisMailContainsUnwantedMimeParts: N On 4/7/23, Mateusz Guzik wrote: > can you try with this: > > diff --git > a/sys/contrib/openzfs/include/os/linux/kernel/linux/simd_aarch64.h > b/sys/contrib/openzfs/include/os/linux/kernel/linux/simd_aarch64.h > index 16276b08c759..e1bca9ef140a 100644 > --- a/sys/contrib/openzfs/include/os/linux/kernel/linux/simd_aarch64.h > +++ b/sys/contrib/openzfs/include/os/linux/kernel/linux/simd_aarch64.h > @@ -71,7 +71,7 @@ > #define ID_AA64PFR0_EL1 sys_reg(3, 0, 0, 1, 0) > #define ID_AA64ISAR0_EL1 sys_reg(3, 0, 0, 6, 0) > > -#define kfpu_allowed() 1 > +#define kfpu_allowed() 0 > #define kfpu_begin() kernel_neon_begin() > #define kfpu_end() kernel_neon_end() > #define kfpu_init() (0) > > ops, wrong file diff --git a/sys/contrib/openzfs/include/os/freebsd/spl/sys/simd_arm.h b/sys/contrib/openzfs/include/os/freebsd/spl/sys/simd_arm.h index 178fbc3b3c6e..c462220289d6 100644 --- a/sys/contrib/openzfs/include/os/freebsd/spl/sys/simd_arm.h +++ b/sys/contrib/openzfs/include/os/freebsd/spl/sys/simd_arm.h @@ -46,7 +46,7 @@ #include #include -#define kfpu_allowed() 1 +#define kfpu_allowed() 0 #define kfpu_initialize(tsk) do {} while (0) #define kfpu_begin() do {} while (0) #define kfpu_end() do {} while (0) > On 4/7/23, Mark Millard wrote: >> Turns out that as of this commit aarch64 (Cortex-A72 and Cortex-A57 >> examples reported) gets the following even when no zfs media is >> present (UFS boot): >> >> # zpool import >> x0: ffff0000f0fa9168 (ucom_cons_softc + efbf1bb8) >> x1: ffff0000ff900000 ($d.1 + afa318) >> x2: ffff0000ff900400 ($d.1 + afa718) >> x3: ffff0000fec1b0a4 (sha_incremental + 0) >> x4: 0 >> x5: 100000 >> x6: 8e16db93 >> x7: 0 >> x8: ffff0000feb06168 (tf_sha256_neon + 0) >> x9: ffff0000fea931fb ($d.1 + b) >> x10: ffff0000feb045f4 (SHA2Update + f4) >> x11: 29 >> x12: 1 >> x13: 0 >> x14: 0 >> x15: 2 >> x16: ffff0000feaf7500 ($d.0 + 0) >> x17: ffff000000476cf0 (nanouptime + 0) >> x18: ffff0000f0fa9000 (ucom_cons_softc + efbf1a50) >> x19: ffff0000f0fa9168 (ucom_cons_softc + efbf1bb8) >> x20: 400 >> x21: ffff0000ff900000 ($d.1 + afa318) >> x22: ffff0000f0fa9198 (ucom_cons_softc + efbf1be8) >> x23: 0 >> x24: 0 >> x25: 0 >> x26: ffff0000fed2df70 (sha256_neon_impl + 0) >> x27: 203 >> x28: 31 >> x29: ffff0000f0fa9040 (ucom_cons_softc + efbf1a90) >> sp: ffff0000f0fa9000 >> lr: ffff0000feb04668 (SHA2Update + 168) >> elr: ffff0000feaf8684 (zfs_sha256_block_neon + 14) >> spsr: 20000045 >> esr: 000000001fe00000 >> panic: VFP exception in the kernel >> cpuid = 3 >> time = 1680786034 >> KDB: stack backtrace: >> db_trace_self() at db_trace_self >> db_trace_self_wrapper() at db_trace_self_wrapper+0x30 >> vpanic() at vpanic+0x13c >> panic() at panic+0x44 >> do_el1h_sync() at do_el1h_sync+0x210 >> handle_el1h_sync() at handle_el1h_sync+0x10 >> --- exception, esr 0xffff0000f0fa9198 >> (null)() at 0x400 >> KDB: enter: panic >> [ thread pid 1446 tid 100101 ] >> Stopped at kdb_enter+0x44: undefined f905c27f >> db> >> >> The above was produced via using an artifact build's >> kernel based on that exact commit: >> >> https://artifact.ci.freebsd.org/snapshot/main/2a58b312b62f908ec92311d1bd8536dbaeb8e55b/arm64/aarch64/kernel.txz >> >> By contrast, the prior commit had an artifact build >> as well, but it's kernel does not get the panic for >> zpool import : >> >> https://artifact.ci.freebsd.org/snapshot/main/b98fbf3781df16f7797b2bbeabf205dc7d4985ae/arm64/aarch64/kernel.txz >> >> See also: >> >> https://lists.freebsd.org/archives/freebsd-current/2023-April/003417.html >> >> === >> Mark Millard >> marklmi at yahoo.com >> >> > > > -- > Mateusz Guzik > -- Mateusz Guzik