#
ad747ccb |
| 23-Sep-2024 |
Jérôme Duval <jerome.duval@gmail.com> |
virtio_pci: Fix index out of bounds
* Update size of registersArea[] to fix index out of bounds in init_bus() and uninit_bus() caused by mismatching between sizeof(registersArea[]) and loop counters
virtio_pci: Fix index out of bounds
* Update size of registersArea[] to fix index out of bounds in init_bus() and uninit_bus() caused by mismatching between sizeof(registersArea[]) and loop counters. Pointed out by cppcheck. * actually use index to populate registers and registersArea arrays.
Change-Id: Iec6337c7dd475bb86f94fe8f2a7b8fed9776ee28 Reviewed-on: https://review.haiku-os.org/c/haiku/+/8376 Reviewed-by: waddlesplash <waddlesplash@gmail.com> Haiku-Format: Haiku-format Bot <no-reply+haikuformatbot@haiku-os.org> Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
show more ...
|
#
1c64d7a9 |
| 22-Sep-2024 |
Jérôme Duval <jerome.duval@gmail.com> |
virtio_pci: poll device status after resetting the device
From the spec: "After writing 0 to device_status, the driver MUST wait for a read of device_status to return 0 before reinitializing the dev
virtio_pci: poll device status after resetting the device
From the spec: "After writing 0 to device_status, the driver MUST wait for a read of device_status to return 0 before reinitializing the device."
Change-Id: Ib708d6ec843877b40cdb64c15beacec3dcc4c009 Reviewed-on: https://review.haiku-os.org/c/haiku/+/8358 Reviewed-by: waddlesplash <waddlesplash@gmail.com> Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
show more ...
|
#
629f071b |
| 27-Feb-2024 |
X512 <danger_mail@list.ru> |
pci: extend MSI interrupt vector number to 32 bits
Also increase MSI message data size to 32 bits according to PCIe spec.
Remove 0xff check for MSI interrupts because it is potentially valid interr
pci: extend MSI interrupt vector number to 32 bits
Also increase MSI message data size to 32 bits according to PCIe spec.
Remove 0xff check for MSI interrupts because it is potentially valid interrupt vector number. Reject 0xff only for legacy pin interrupts.
- MSI-X supports up to 2048 interrupts per device that do not fit to `uint8`.
- Non-x86 systems may use separate interrupt vector ranges for hard-wired interrupts and MSI interrupts so `uint8` is not enough to represent all of them.
Change-Id: Iaf9ffb197ec23db0f97ffe3ea756d28d7bfc8705 Reviewed-on: https://review.haiku-os.org/c/haiku/+/7433 Reviewed-by: waddlesplash <waddlesplash@gmail.com> Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
show more ...
|
#
0decdc64 |
| 03-Oct-2023 |
Jérôme Duval <jerome.duval@gmail.com> |
virtio_pci: fix support for MSI-X shared
remove support for MSI
Change-Id: I8049030b2febd3558a7710cfd89db03a17cb5f7f Reviewed-on: https://review.haiku-os.org/c/haiku/+/7036 Reviewed-by: waddlesplas
virtio_pci: fix support for MSI-X shared
remove support for MSI
Change-Id: I8049030b2febd3558a7710cfd89db03a17cb5f7f Reviewed-on: https://review.haiku-os.org/c/haiku/+/7036 Reviewed-by: waddlesplash <waddlesplash@gmail.com>
show more ...
|
#
6d42b430 |
| 03-Oct-2023 |
Jérôme Duval <jerome.duval@gmail.com> |
virtio: support modern devices
fixes #17239 #17238
Change-Id: Ia5b6347110a60fab18852079b30dca6301010474 Reviewed-on: https://review.haiku-os.org/c/haiku/+/6995 Reviewed-by: Jérôme Duval <jerome.duv
virtio: support modern devices
fixes #17239 #17238
Change-Id: Ia5b6347110a60fab18852079b30dca6301010474 Reviewed-on: https://review.haiku-os.org/c/haiku/+/6995 Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>
show more ...
|
#
3b91d73b |
| 17-Dec-2022 |
X512 <danger_mail@list.ru> |
bus & drivers: drop PCI_x86
Change-Id: I494deaf24a4793a5e0fe9fa46ecdce32f65e616a Reviewed-on: https://review.haiku-os.org/c/haiku/+/6226 Reviewed-by: waddlesplash <waddlesplash@gmail.com> Reviewed-b
bus & drivers: drop PCI_x86
Change-Id: I494deaf24a4793a5e0fe9fa46ecdce32f65e616a Reviewed-on: https://review.haiku-os.org/c/haiku/+/6226 Reviewed-by: waddlesplash <waddlesplash@gmail.com> Reviewed-by: Fredrik Holmqvist <fredrik.holmqvist@gmail.com>
show more ...
|
#
215b685f |
| 11-Dec-2022 |
X512 <danger_mail@list.ru> |
kernel: Drop non-standard GNU inline assignment syntax
* We needed this previously due to our gcc2 compiled kernel. * Now that our kernel is always latest gcc, we can move to the c++20 syntax for
kernel: Drop non-standard GNU inline assignment syntax
* We needed this previously due to our gcc2 compiled kernel. * Now that our kernel is always latest gcc, we can move to the c++20 syntax for inline assignment. * Improves compatibility with clang, less GNU-specific stuff
Change-Id: Ib7272a0a52554a31e9a0e788fd3f031db9049795 Reviewed-on: https://review.haiku-os.org/c/haiku/+/5898 Reviewed-by: Alex von Gluck IV <kallisti5@unixzen.com> Reviewed-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
show more ...
|
#
397c81a2 |
| 23-May-2021 |
X512 <danger_mail@list.ru> |
virtio_mmio: add new mmio interface
Change-Id: I2ca51d98e337d1e69a8e68d78ef0cfe33dc0d308 Reviewed-on: https://review.haiku-os.org/c/haiku/+/3979 Tested-by: Commit checker robot <no-reply+buildbot@ha
virtio_mmio: add new mmio interface
Change-Id: I2ca51d98e337d1e69a8e68d78ef0cfe33dc0d308 Reviewed-on: https://review.haiku-os.org/c/haiku/+/3979 Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org> Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>
show more ...
|