[Bug 294706] powerpc64: kernel crashes on boot and fails to initialize virtio-scsi
[email protected] Sun, 28 Jun 2026 10:47:11 +0000
| Newsgroups | gmane.os.freebsd.devel.ppc |
|---|---|
| Message-ID | <[email protected]/bugzilla/> |
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D294706 --- Comment #7 from [email protected] --- A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=3D07b5d1ca52b113cecad3cda73ff5e782d= 8f4d07d commit 07b5d1ca52b113cecad3cda73ff5e782d8f4d07d Author: Timo V=C3=B6lker <[email protected]> AuthorDate: 2026-06-28 10:39:10 +0000 Commit: Michael Tuexen <[email protected]> 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 (V= 1) 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(-) --=20 You are receiving this mail because: You are the assignee for the bug.=