Haiku Activity & Contract Report, January 2024 (ft. USB audio)
This report covers hrev57494 by way of hrev57560.
USB audio
The most notable set of adjustments final month was a sequence of fixes to the XHCI (USB3) driver after which the USB audio driver itself, culminating within the USB audio driver being turned on by default for nightly builds!
Just a few weeks again, X512 seen an oversight within the XHCI driver’s dealing with of “isochronous” transfers (which just about solely USB media units like audio or webcams use.) I refactored the related parts of the driving force to appropriate the oversight, in addition to making a tweak to how the USB audio driver schedules transfers to be extra consistent with what different OSes do, after which the USB audio driver began working just about instantly. (It had initially been written again within the days of USB 1.0 controllers and labored to some extent then, and within the years since was repeatedly patched to maintain it consistent with present kernel APIs and to repair bugs, crashes, and so on.; with out that upkeep, it seemingly wouldn’t have labored so easily on the primary strive.)
Just a few extra rounds of cleanup and bugfixing later to the XHCI driver (extra sturdy error reporting, fewer messages printed to syslog, and so on.), the USB stack (shifting some performance from the bus drivers into the stack, adjusting returned error codes throughout bus drivers for consistency), and the USB audio driver (adjusting timeouts, rising some buffer sizes, enhancing error reporting), issues appeared to be working stably sufficient that it appeared protected to show it on within the nightly builds, and so it was (within the final commit of the month, in actual fact.)
There’s nonetheless a number of caveats (e.g. solely USB 1.0 audio units are supported, moderately than 2.0 units, they usually might not work when related to something however USB 3 controllers), and likewise some media_server bugs which imply switching your outputs from an inner audio card to a USB system is a bit finicky. There’s a discussion board thread with some particulars and dialogue, if you wish to strive it out.
Applications
jscipione mounted crashes in Icon-O-Matic brought on by the auto-scroll adjustments in BListView.
jscipione adjusted Keymap to place the standing icons within the “Modifier keys” window contained in the menu-fields. (However, there have been some stories the icons have stopped displaying up after this variation, so extra work should be wanted.)
korli added detection of “Not charging” battery states to PowerStatus.
apl did some code cleanup and glued some compiler warnings in HaikuDepot. He additionally refactored the components of the code that fetch and show screenshots.
humdinger moved the “TV” app into the haiku_extras package deal. It’s solely helpful with actual TV tuner units, which aren’t particularly widespread lately, and which Haiku doesn’t have too many drivers for, both. (While at it, he additionally added an outline to the extras package deal information, and jmairboeck later added correct gives declarations for TV and one other software within the package deal.)
jscipione eliminated the remnants of Trash-related settings from Tracker, and cleaned up the code that had checked them. He additionally carried out another miscellaneous code cleanup all through Tracker.
waddlesplash added logic to PowerStatus to permit it to be robotically put in in Deskbar on first boot, however provided that there’s really a battery detected.
Command line instruments
madmax mounted some compiler warnings within the elfsymbolpatcher software.
waddlesplash mounted the desklink custom-item system to test what measurement Deskbar tray entries really are, and use that, moderately than a default (small) measurement.
Kits
PulkoMandy up to date the FFmpeg media add-on with some preliminary adjustments for FFmpeg 6 assist (largely disabled behind preprocessor flags.)
korli mounted a positioning downside in BAdapterIO (a BDataIO implementation used within the Media Kit and in some functions for enjoying media streamed from the web.) He additionally added a FlushBefore() methodology to the API, to permit unused/unneeded knowledge to be discarded.
humdinger made a quick-fix within the registrar for an issue with the “supporting functions” performance: it didn’t work for MIME varieties that had upper-case characters in them. waddlesplash got here by afterward and cleaned up and glued the underlying issues within the supporting-apps courses, and undid the quick-fix within the registrar.
PulkoMandy adjusted BMenu to make use of std::stable_sort internally within the implementation of TypeItems, in order that successive kinds don’t swap the order of things that examine equally.
madmax mounted some bugs in BOutlineListView::ItemUnderAt and adjusted it to simply accept NULL to imply the mother or father of the topmost objects. (He adjusted the documentation and testsuite on the identical time.)
waddlesplash tried to repair a regression in BScrollView that was inflicting “clean area” to look in some functions. (The repair solved issues in some functions, however not others, it appears.)
Servers
X512 decreased the minimal timer interval permitted by the registrar, which is used to implement BMessageRunner. (This could also be helpful for builders who wish to use BMessageRunner to implement animations, or issues like that.)
korli modified app_server to scan recursively in /dev/graphics for units.
madmax eliminated some out of date code from runtime_loader.
waddlesplash mounted the registrar to truncate the recents (apps, information, and so on.) lists to 100 objects most, moderately than letting them develop indefinitely.
Drivers
waddlesplash mounted some SMAP violation KDLs within the mmc and nvme disk drivers, which occurred when operating the driveinfo command on them.
PulkoMandy adjusted the PCI subsystem to deal with “non-fixed” {hardware} addresses (i.e. addresses with some values unset which must be computed.) This was finished as a part of work to repair boot-failure KDLs that occur on some {hardware}, but it surely appears there’s nonetheless extra to be finished right here.
waddlesplash refactored components of the PCI subsystem to have the ability to report an arbitrary variety of reminiscence ranges, moderately than being hard-coded to a most of 6. (At current, the reminiscence ranges in query aren’t really used anyplace but, so this seemingly gained’t repair any issues.)
waddlesplash synchronized the idualwifi7260 and iaxwifi200 drivers, plus the net80211 stack they use, with OpenBSD upstream.
korli added some extra system IDs to the AMD Cryptographic Coprocessor driver (an RNG supply.)
korli added a modesetting driver for virtio_gpu units, and added it to the usual builds. These are those created by QEMU when -device virtio-vga is specified.
waddlesplash mounted the XHCI driver to correctly deal with “stopped, size invalid” error occasions, plus a number of different issues. This will cut back syslog spam and enhance error restoration below quite a lot of situations. He additionally refactored the way it “hyperlinks” USB transfers into endpoint rings to keep away from “double-links”, which could repair unusual conduct seen on some controllers.
waddlesplash mounted a use-after-invalidate bug (which was in all probability hardly ever triggered, if ever) within the IPv4 kernel module, and restructured the code to stop comparable issues from taking place sooner or later. He additionally mounted the module to clamp the general MTU as wanted, in case a decrease layer returned a worth better than the utmost measurement of an IPv4 packet.
waddlesplash mounted the packet-input routine within the FreeBSD compatibility layer to deal with being handed a number of packets without delay, identical as in FreeBSD. At current, the one code imported into Haiku which makes use of this performance is iflib (utilized by ipro1000 and intel22x), which had a workaround added in Haiku to not want it; but it surely appears the workaround didn’t work fairly proper and will trigger reminiscence leaks, as eradicating the workaround after implementing the performance within the compatibility layer appeared to unravel some leaks.
waddlesplash added code to the TCP module contained in the ship() implementation to make sure knowledge is definitely being despatched earlier than sleeping to attend for more room within the ship queue to be out there. (This might repair visitors stalls in some functions that ship extra knowledge without delay than can match within the TCP ship queue, and likewise don’t specify the NOWAIT flag to return instantly when the queue is full.) He then eliminated the overridden default buffer measurement (32KiB) the TCP module utilized to ship queues, which means the system default will now be utilized (64KiB), but additionally values specified by functions might need an opportunity to get used now.
waddlesplash added some code to the USB disk driver to cancel extra kinds of queued transfers, in an effort to repair some uncommon KDLs. (It doesn’t appear to have mounted the issue, sadly.)
waddlesplash did some refactoring within the TCP module to the sending logic, breaking some bigger features up right into a set of smaller ones; largely a non-functional change, however making the code simpler to observe and modify.
waddlesplash mounted the TTY layer to return success (as an alternative of failure) on partial writes, in order that the calling software will know that some bytes have been really written. This fixes issues with pasting giant quantities of knowledge into shell classes over SSH with some functions.
korli added some higher dealing with of DDI and a few code for Gen12 to the intel_extreme modesetting driver.
File methods
waddlesplash mounted some bugs in userlandfs that have been stopping most FUSE filesystems from working correctly; nevertheless, within the course of, he needed to disable the (new since beta4) caching assist for FUSE, which appeared to not be working correctly, and as an alternative inflicting errors to spuriously be returned. He additionally adjusted a reminiscence allocation within the kernel userlandfs module to repair/forestall some SMAP violation KDLs that occurred below sure circumstances.
libroot & kernel
PulkoMandy mounted options.h (a header implicitly included to detect what options needs to be uncovered in different, largely POSIX, headers) to nonetheless work when the BSD compatibility headers (libbsd, not associated to the kernel FreeBSD compatibility layer) usually are not within the compiler’s embody path, which is now wanted when constructing Haiku itself.
X512 mounted a file descriptor leak contained in the kernel implementation of the preallocate perform. This had been the perpetrator inflicting reminiscence leaks in some ported internet browsers (Falkon and Web amongst them), which have been actually leaks of shared-memory information on the ramfs.
Following X512’s change, waddlesplash went by way of and cleaned up file descriptor and vnode administration within the kernel VFS layer, switching as many locations as potential to make use of FileDescriptorPutters and VnodePutters (and changing some variant implementations of these courses) moderately than manually invoking put_vnode/put_fd (as, if these had been used all through, the bug inflicting the leak wouldn’t have occurred in any respect.) This additionally eradicated a few of the makes use of of goto within the VFS subsystem. He additionally refactored some features that beforehand took vnode** parameters to as an alternative take VnodePutter&s, to simplify code and forestall reminiscence leaks.
korli mounted create_vnode to additionally create non-existent entries when traversing. (This fixes open() failing when handed a path which is a symbolic hyperlink to a non-existent file.)
waddlesplash modified the kernel digital reminiscence subsystem to keep away from committing reminiscence inside mmap for personal mappings (i.e. these with out MAP_SHARED) that are non-writable (i.e. with out PROT_WRITE specified). Instead, reminiscence will probably be dedicated inside set_area_protection or set_memory_protection (mprotect), when/if the world or parts of it are made writable. This permits functions to map giant information (together with information bigger than the precise out there quantity of system reminiscence) as read-only with out hitting ENOMEM errors. (They may do that beforehand in the event that they specified MAP_NORESERVE, however now it would work even with out that flag being specified.) This fixes use of Git on giant repositories on methods with restricted RAM.
Build system
kallisti5 up to date the GCC package deal constructed into full Haiku picture builds to the present model within the replace repositories (13.2).
Documentation
waddlesplash mounted a typo stopping a web page on synchronization primitives from showing correctly within the API documentation.
PulkoMandy documented the varied item-reordering APIs in BMenu.
madmax mounted some typos, copy-pasta, and unusual grammar in varied courses within the API documentation.
ARM & RISC-V
No new adjustments in-tree this month for ARM or RISC-V, however there was not less than some out-of-tree exercise.
HaikuPorts
Begasus up to date the R port, and added a port of RKWard, the KDE IDE for R.
augiedoggie added an (initially disabled) recipe for fuse-nfs, which (after the userlandfs fixes) appears to work fairly effectively.
Are we beta5 but?
Not but, no. But I mounted quite a lot of tickets final month which have been within the beta5 milestone (and decided some extra could possibly be de-prioritized out of the milestone), placing an excellent dent within the quantity nonetheless to be accomplished…
Thanks once more to all who contribute to Haiku, and particularly these donors who make my contract potential!
HI-FI News
through Recent weblog posts on Haiku Project https://ift.tt/pLRUkSi
February 13, 2024 at 10:41PM
-
Product on sale
Audiophile Vinyl Records Cleaning BundleOriginal price was: €69.90.€59.90Current price is: €59.90. incl. VAT -
Product on sale
Easy Start Vinyl Records Cleaning KitOriginal price was: €69.90.€59.90Current price is: €59.90. incl. VAT -
Vinyl Records Cleaner Easy Groove Concentrate€34.95 incl. VAT -
Easy Groove Super Set€199.00 incl. VAT -
Easy Groove Enzycaster – vinyl records prewash cleaner€34.95 incl. VAT -
Easy Groove Extreme MK. II- vinyl records prewash cleaner€45.00 incl. VAT -
Vinyl Records Cleaner – Easy Groove Virgin Concentrate€35.00 incl. VAT -
Easy Groove Spray&Wipe vinyl records cleaner€34.95 incl. VAT








