[Bug 294706] powerpc64: kernel crashes on boot and fails to initialize virtio-scsi

From: <bugzilla-noreply_at_freebsd.org>
Date: Sun, 28 Jun 2026 10:47:11 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=294706

--- Comment #7 from commit-hook@FreeBSD.org ---
A commit in branch main references this bug:

URL:
https://cgit.FreeBSD.org/src/commit/?id=07b5d1ca52b113cecad3cda73ff5e782d8f4d07d

commit 07b5d1ca52b113cecad3cda73ff5e782d8f4d07d
Author:     Timo Völker <timo.voelker@fh-muenster.de>
AuthorDate: 2026-06-28 10:39:10 +0000
Commit:     Michael Tuexen <tuexen@FreeBSD.org>
CommitDate: 2026-06-28 10:39:10 +0000

    virtio_pci_modern: Remove endianness conversion for config space

    The bus_* functions already handle converting from PCI endianness
    (i.e. little-endian) to native endianness when accessing the config
    space (see ofw_pcib_bus_get_bus_tag), so converting again with
    virtio_htogX/virtio_gtohX undoes any byte-swapping and breaks
    big-endian systems. They should only be used for operating on shared
    memory.
    Note part of this reverts commit fb53b42e36a9 ("virtio-modern: fix PCI
    common read/write functions on big endian targets").

    PR:                     294706
    Reviewed by:            adrian, tuexen
    Fixes:                  fb53b42e36a9 ("virtio-modern: fix PCI common
read/write functions on big endian targets")
    Fixes:                  9da9560c4dd3 ("virtio: Add VirtIO PCI modern (V1)
support")
    MFC after:              1 week
    Differential Revision:  https://reviews.freebsd.org/D57392

 sys/dev/virtio/pci/virtio_pci_modern.c | 27 ++++++++++-----------------
 1 file changed, 10 insertions(+), 17 deletions(-)

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