[Bug 270811] ZFS/PowerPC: Issue after openzfs/zfs@431083f75 import

From: <bugzilla-noreply_at_freebsd.org>
Date: Fri, 21 Apr 2023 03:33:49 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=270811

--- Comment #9 from Danilo G. Baio <dbaio@freebsd.org> ---
(In reply to Mateusz Guzik from comment #8)

Thanks.

I built two kernels:


1) 43c6b7a60aff069da7e0ba6c87d3d7a532e812f6 - zfsppc.diff

Timecounter "timebase" frequency 512000000 Hz quality 1000
Event timer "decrementer" frequency 512000000 Hz quality 1000
Timecounters tick every 1.000 msec

fatal kernel trap:

   exception       = 0x800 (floating-point unavailable)
   srr0            = 0xc0000000033b70b0 (0x10b70b0)
   srr1            = 0x9000000000009032
   current msr     = 0x9000000000009032
   lr              = 0xc0000000024dddb4 (0x1dddb4)
   frame           = 0xc00800000000bfd0
   curthread       = 0xc000000003650e80
          pid = 0, comm = swapper

panic: floating-point unavailable trap
cpuid = 0
time = 2
KDB: stack backtrace:
0xc00800000000bbf0: at kdb_backtrace+0x60
0xc00800000000bd00: at vpanic+0x1b8
0xc00800000000bdb0: at panic+0x44
0xc00800000000bde0: at trap+0x324
0xc00800000000bf10: at powerpc_interrupt+0x1cc
0xc00800000000bfa0: kernel FPU trap by zfs_sha256_ppc: srr1=0x9000000000009032
            r1=0xc00800000000c250 cr=0x42200842 xer=0 ctr=0xc0000000024ddd94
r2=0xc0000000033ee000 frame=0xc00800000000bfd0
0xc00800000000c250: at -0x4
0xc00800000000c280: at SHA2Update+0x200
0xc00800000000c330: at abd_checksum_sha256+0x128
0xc00800000000c360: at abd_iterate_func+0x170
0xc00800000000c450: at abd_checksum_sha256+0x78
0xc00800000000c5b0: at chksum_fini+0x3e0
0xc00800000000c6b0: at chksum_fini+0x134
0xc00800000000c6f0: at chksum_init+0x23c
0xc00800000000c770: at spa_init+0x184
0xc00800000000c7f0: at zfs_kmod_init+0x38
0xc00800000000c860: at zfsdev_detach+0x444
0xc00800000000c8e0: at module_register_init+0x114
0xc00800000000c980: at mi_startup+0x1f4
0xc00800000000ca50: at __start+0xc4
KDB: enter: panic
[ thread pid 0 tid 100000 ]
Stopped at      kdb_enter+0x70: ori     r0, r0, 0x0



2) 43c6b7a60aff069da7e0ba6c87d3d7a532e812f6 - zfs-ppc-test_not_working.diff +
zfsppc.diff


nda1: 953869MB (1953525168 512 byte sectors)
GEOM_MIRROR: Device mirror/swap0 launched (2/2).
SET_ERROR feature_get_refcount
/usr/local/src/base/sys/contrib/openzfs/module/zfs/zfeature.c:239 45
SET_ERROR feature_get_refcount
/usr/local/src/base/sys/contrib/openzfs/module/zfs/zfeature.c:239 45
SET_ERROR feature_get_refcount
/usr/local/src/base/sys/contrib/openzfs/module/zfs/zfeature.c:239 45
SET_ERROR feature_get_refcount
/usr/local/src/base/sys/contrib/openzfs/module/zfs/zfeature.c:239 45
SET_ERROR feature_get_refcount
/usr/local/src/base/sys/contrib/openzfs/module/zfs/zfeature.c:239 45
SET_ERROR feature_get_refcount
/usr/local/src/base/sys/contrib/openzfs/module/zfs/zfeature.c:239 45
SET_ERROR feature_get_refcount
/usr/local/src/base/sys/contrib/openzfs/module/zfs/zfeature.c:239 45
SET_ERROR feature_get_refcount
/usr/local/src/base/sys/contrib/openzfs/module/zfs/zfeature.c:239 45
SET_ERROR feature_get_refcount
/usr/local/src/base/sys/contrib/openzfs/module/zfs/zfeature.c:239 45
SET_ERROR feature_get_refcount
/usr/local/src/base/sys/contrib/openzfs/module/zfs/zfeature.c:239 45
SET_ERROR feature_get_refcount
/usr/local/src/base/sys/contrib/openzfs/module/zfs/zfeature.c:239 45
SET_ERROR zio_checksum_error_impl
/usr/local/src/base/sys/contrib/openzfs/module/zfs/zio_checksum.c:527 97
SET_ERROR feature_get_refcount
/usr/local/src/base/sys/contrib/openzfs/module/zfs/zfeature.c:239 45
SET_ERROR feature_get_refcount
/usr/local/src/base/sys/contrib/openzfs/module/zfs/zfeature.c:239 45
SET_ERROR feature_get_refcount
/usr/local/src/base/sys/contrib/openzfs/module/zfs/zfeature.c:239 45
SET_ERROR zio_checksum_error_impl
/usr/local/src/base/sys/contrib/openzfs/module/zfs/zio_checksum.c:527 97
SET_ERROR zio_checksum_error_impl
/usr/local/src/base/sys/contrib/openzfs/module/zfs/zio_checksum.c:527 97
SET_ERROR zio_checksum_error_impl
/usr/local/src/base/sys/contrib/openzfs/module/zfs/zio_checksum.c:527 97
SET_ERROR zio_checksum_error_impl
/usr/local/src/base/sys/contrib/openzfs/module/zfs/zio_checksum.c:527 97
SET_ERROR zio_checksum_error_impl
/usr/local/src/base/sys/contrib/openzfs/module/zfs/zio_checksum.c:527 97
SET_ERROR zio_checksum_error_impl
/usr/local/src/base/sys/contrib/openzfs/module/zfs/zio_checksum.c:527 97
SET_ERROR zio_checksum_error_impl
/usr/local/src/base/sys/contrib/openzfs/module/zfs/zio_checksum.c:527 97
SET_ERROR feature_get_refcount
/usr/local/src/base/sys/contrib/openzfs/module/zfs/zfeature.c:239 45
SET_ERROR feature_get_refcount
/usr/local/src/base/sys/contrib/openzfs/module/zfs/zfeature.c:239 45
SET_ERROR feature_get_refcount
/usr/local/src/base/sys/contrib/openzfs/module/zfs/zfeature.c:239 45
SET_ERROR feature_get_refcount
/usr/local/src/base/sys/contrib/openzfs/module/zfs/zfeature.c:239 45
SET_ERROR feature_get_refcount
/usr/local/src/base/sys/contrib/openzfs/module/zfs/zfeature.c:239 45
SET_ERROR zio_checksum_error_impl
/usr/local/src/base/sys/contrib/openzfs/module/zfs/zio_checksum.c:527 97
[...]
SET_ERROR zio_checksum_error_impl
/usr/local/src/base/sys/contrib/openzfs/module/zfs/zio_checksum.c:527 97
SET_ERROR feature_get_refcount
/usr/local/src/base/sys/contrib/openzfs/module/zfs/zfeature.c:239 45
SET_ERROR feature_get_refcount
/usr/local/src/base/sys/contrib/openzfs/module/zfs/zfeature.c:239 45
SET_ERROR feature_get_refcount
/usr/local/src/base/sys/contrib/openzfs/module/zfs/zfeature.c:239 45
SET_ERROR feature_get_refcount
/usr/local/src/base/sys/contrib/openzfs/module/zfs/zfeature.c:239 45
SET_ERROR zio_checksum_error_impl
/usr/local/src/base/sys/contrib/openzfs/module/zfs/zio_checksum.c:527 97
SET_ERROR feature_get_refcount
/usr/local/src/base/sys/contrib/openzfs/module/zfs/zfeature.c:239 45
SET_ERROR feature_get_refcount
/usr/local/src/base/sys/contrib/openzfs/module/zfs/zfeature.c:239 45
SET_ERROR feature_get_refcount
/usr/local/src/base/sys/contrib/openzfs/module/zfs/zfeature.c:239 45
SET_ERROR zio_checksum_error_impl
/usr/local/src/base/sys/contrib/openzfs/module/zfs/zio_checksum.c:527 97
SET_ERROR feature_get_refcount
/usr/local/src/base/sys/contrib/openzfs/module/zfs/zfeature.c:239 45
SET_ERROR zio_checksum_error_impl
/usr/local/src/base/sys/contrib/openzfs/module/zfs/zio_checksum.c:527 97
SET_ERROR zio_checksum_error_impl
/usr/local/src/base/sys/contrib/openzfs/module/zfs/zio_checksum.c:527 97
SET_ERROR zio_checksum_error_impl
/usr/local/src/base/sys/contrib/openzfs/module/zfs/zio_checksum.c:527 97
SET_ERROR zio_checksum_error_impl
/usr/local/src/base/sys/contrib/openzfs/module/zfs/zio_checksum.c:527 97
SET_ERROR zio_checksum_error_impl
/usr/local/src/base/sys/contrib/openzfs/module/zfs/zio_checksum.c:527 97
SET_ERROR zio_checksum_error_impl
/usr/local/src/base/sys/contrib/openzfs/module/zfs/zio_checksum.c:527 97
SET_ERROR spa_ld_validate_vdevs
/usr/local/src/base/sys/contrib/openzfs/module/zfs/spa.c:3582 6
SET_ERROR spa_scan_get_stats
/usr/local/src/base/sys/contrib/openzfs/module/zfs/spa_misc.c:2573 2
SET_ERROR spa_removal_get_stats
/usr/local/src/base/sys/contrib/openzfs/module/zfs/vdev_removal.c:2521 2
SET_ERROR feature_get_refcount
/usr/local/src/base/sys/contrib/openzfs/module/zfs/zfeature.c:239 45
SET_ERROR spa_checkpoint_get_stats
/usr/local/src/base/sys/contrib/openzfs/module/zfs/spa_checkpoint.c:167 1026
SET_ERROR feature_get_refcount
/usr/local/src/base/sys/contrib/openzfs/module/zfs/zfeature.c:239 45
SET_ERROR vdev_rebuild_get_stats
/usr/local/src/base/sys/contrib/openzfs/module/zfs/vdev_rebuild.c:1126 45
SET_ERROR feature_get_refcount
/usr/local/src/base/sys/contrib/openzfs/module/zfs/zfeature.c:239 45
Mounting from zfs:zroot failed with error 6.

Loader variables:
  vfs.root.mountfrom=zfs:zroot

Manual root filesystem specification:
  <fstype>:<device> [options]
      Mount <device> using filesystem <fstype>
      and with the specified (optional) option list.

    eg. ufs:/dev/da0s1a
        zfs:zroot/ROOT/default
        cd9660:/dev/cd0 ro
          (which is equivalent to: mount -t cd9660 -o ro /dev/cd0 /)

  ?               List valid disk boot devices
  .               Yield 1 second (for background tasks)
  <empty line>    Abort manual input

mountroot>

-- 
You are receiving this mail because:
You are the assignee for the bug.