Commit Graph
69251 Commits
Author SHA1 Message Date
Augustin Cavalier 52d627b267 kernel/vm: Add handling for pages in MODIFIED state in VMCache::Delete.
Should fix #20221.
(cherry picked from commit 518a54b774411b901e99fc5a691a3c6dfc113c8d)

Change-Id: Ia626d379c293ca710671a741d2b7525c60b29347
Reviewed-on: https://review.haiku-os.org/c/haiku/+/11404
Reviewed-by: waddlesplash <[email protected]>
2026-08-03 20:53:51 +00:00
Augustin Cavalier b641780cc9 kernel/util: Accept inputs of 0 bytes in utf16_to_utf8.
There's no reason to reject them; they should just result in
a zero-byte output.

Should fix #20222.
(cherry picked from commit 4b6aad38968f9fe91712e742aff9166fec6e67a1)

Change-Id: Ifdbe17618d74eca0b873a6808ec0b14a7d38189a
Reviewed-on: https://review.haiku-os.org/c/haiku/+/11402
Reviewed-by: waddlesplash <[email protected]>
2026-08-03 20:05:16 +00:00
Jérôme Duval f90957116e pthread: pthread_mutexattr_getprotocol default is PTHREAD_PRIO_NONE
see https://sortix.org/os-test/basic/pthread/pthread_mutexattr_setprotocol.c

Change-Id: I2969be22ea6c3ed360f8e91bb54528f25d9bf34b
Reviewed-on: https://review.haiku-os.org/c/haiku/+/11386
Reviewed-by: waddlesplash <[email protected]>
(cherry picked from commit baed5fcddd33f266804b7e27520e06609beab624)
Reviewed-on: https://review.haiku-os.org/c/haiku/+/11387
2026-07-29 17:18:44 +00:00
Augustin Cavalier 0de032d683 kernel/vm: Manage VMArea references to VMAddressSpace inside VMArea.
Instead of elsewhere. Fixes another missed Put(), in VMUserAddressSpace's
_InsertAreaIntoReservedRegion(), and guards against such problems
happening in the future.

Change-Id: If6d87d36225907e281e2341e8b53c461e6954f22
Reviewed-on: https://review.haiku-os.org/c/haiku/+/11381
Reviewed-by: waddlesplash <[email protected]>
2026-07-28 20:28:04 +00:00
Augustin Cavalier 88e0124d1a kernel/vm: Fix handling of non-page-aligned addresses in get_memory_map_etc.
They were passed to TranslationMap::Query() directly, assuming that the
TranslationMap would just round down to the nearest page address. This
actually isn't guaranteed in the case of X86VMTranslationMap64Bit and
the physical map area, which uses hugepages, and so adds the offset
to the page address itself.

So, here the logic is rewritten to always pass page-aligned addresses
to Query(), and then re-add the offset for the first page only. We then
increment virtualAddress instead of an offset, making the next Query
naturally page-aligned.

This was the cause of #20142: when the BFS I/O hook was disabled,
virtual addresses in the physical map region were passed down to
the disk I/O routines, which were then mistranslated by this function,
resulting in corruption of adjacent pages by DMA, and incorrect
data in the pages where it was supposed to be read into.

Fixes #20142.

Change-Id: Ibacd00b7f5ce23a7b41c620224ddf8d338b6de4a
Reviewed-on: https://review.haiku-os.org/c/haiku/+/11377
Reviewed-by: waddlesplash <[email protected]>
2026-07-28 16:51:23 +00:00
Jérôme Duval d653556ecd uchar/wchar/wctype: reorganize definitions
uchar.h: only define char32_t and char16_t before c++11

found while testing libc++
https://en.cppreference.com/cpp/keyword/char16_t
https://en.cppreference.com/cpp/keyword/char32_t

add _wint_t.h and _mbstate_t.h
Change-Id: Ia5529cc9aa7316e091297f9842c3007a855f813e
Reviewed-on: https://review.haiku-os.org/c/haiku/+/11346
Reviewed-by: Adrien Destugues <[email protected]>
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: Jérôme Duval <[email protected]>
(cherry picked from commit bf1e1da47d6181dbf8122bc52801c08968e1a4ed)
Reviewed-on: https://review.haiku-os.org/c/haiku/+/11374
Reviewed-by: waddlesplash <[email protected]>
2026-07-28 16:40:41 +00:00
John Scipione 064878d320 Tracker: No Disks drop down on file panels.
Get rid of AddDisksIconToMenu() method, use AddItemToDirMenu() instead
which does the right thing and works for Disks.

Change-Id: Ib6d5976f6edde03bdb5086118d6c3e66c362c82c
Reviewed-on: https://review.haiku-os.org/c/haiku/+/11277
Tested-by: Commit checker robot <[email protected]>
Haiku-Format: Haiku-format Bot <[email protected]>
Reviewed-by: John Scipione <[email protected]>
(cherry picked from commit bc00558b5a7829e032d572eac0f1943f1e691214)
Reviewed-on: https://review.haiku-os.org/c/haiku/+/11350
2026-07-28 16:07:57 +00:00
Augustin Cavalier f0a83b8afe OverlayImage: Check fText actually exists before updating colors.
Should fix #20208.
(cherry picked from commit 472699848d96d84927e7992df1f6e575acd19414)

Change-Id: Ie057ecb43cccca1b348c083b0c0d963ef08a6ff5
Reviewed-on: https://review.haiku-os.org/c/haiku/+/11370
Reviewed-by: waddlesplash <[email protected]>
2026-07-27 17:21:49 +00:00
PulkoMandy 63b8fe3ae8 ffmpeg media add-on: add padding around video buffers
The video buffer used for colorspace conversion was not aligned enough
(it could need as much as 64 bytes alignment) and did not include enough
padding (the functions work on 64 bytes blocks at once in some cases).

This code could be made simpler by using sws_scale_frame instead of
sws_scale, but that's more refactoring than I'm willing to do right now.

Thanks to k32n13 for providing a script to generate test videos!

Fixes #20200.

Change-Id: I8b51fd777201cdb899ce1834152066378b258521
Reviewed-on: https://review.haiku-os.org/c/haiku/+/11343
Reviewed-by: waddlesplash <[email protected]>
(cherry picked from commit a0bfeae472eee24a9855e9685a507f6f85d91673)
Reviewed-on: https://review.haiku-os.org/c/haiku/+/11344
2026-07-23 18:11:57 +00:00
PulkoMandy b812cfe777 cpu_type: cleanup Intel CPU strings some more
- remove "processor"
- remove repeated spaces
- clean up the "brand" ID as well

Should fix #20191.

Change-Id: Iaadfbf2d3ae6fd2555607e2ed05833ab570079de
Reviewed-on: https://review.haiku-os.org/c/haiku/+/11341
Reviewed-by: waddlesplash <[email protected]>
(cherry picked from commit 8a8ae453bb124a63d33677fb4530d07ad8cd6df7)
Reviewed-on: https://review.haiku-os.org/c/haiku/+/11342
2026-07-23 17:22:25 +00:00
Augustin Cavalier 35487c6fba nvmm: Don't ever use B_FULL_LOCK.
vm_map_cache doesn't handle mapping pages, and it seems we don't need
to implement that here.

Change-Id: Ib8ff3e181c066275e2b55093485d44788632a110
Reviewed-on: https://review.haiku-os.org/c/haiku/+/11339
Reviewed-by: waddlesplash <[email protected]>
(cherry picked from commit 6f168cbe77c0d211bea884c8980da086c09a2c76)
Reviewed-on: https://review.haiku-os.org/c/haiku/+/11340
2026-07-23 17:05:57 +00:00
PulkoMandy 9b5e2122ee BIOS module: don't copy the real VRAM when calling the BIOS
The BIOS module is used to run BIOS code in a "fake" machine so it can
be called from protected mode without having to go back to real mode.

To achieve this, it copies some parts of the physical memory into that
physical machine. It used to also map some of that memory directly
rather than copying it.

In hrev55544 this was changed to do a copy instead of a mapping. The
copy can then be written to, which opens the way for VESA BIOS live
patching.

However, the copy also means that the entire copied physical memory area
is accessed by the CPU. That area includes the VGA memory, which may not
exist or be masked. In particular this happens in QEMU by default (the
memory is only mapped when graphics mode is activated). In the case of
the NVMM virtualizer, this results in a crash of the virtualizer as
the guest attempts to access memory that doesn't exist.

To avoid the issue, the "fake" machine now includes a copy of the EBDA
(top of RAM) and the BIOS ROMs, but not the video RAM (that part of the
memory space is left uninitialized). This way, it doesn't matter if the
hardware has valid memory there or not.

With this fix, Haiku can boot even without the "Don't call the BIOS"
option set.

Thanks to sed4906 and waddlesplash for the help in locating the issue!

Fixes #20123.

Change-Id: Ide9b6900d2b2abe59138c0c370c8f37a856c4bcd
Reviewed-on: https://review.haiku-os.org/c/haiku/+/11337
Haiku-Format: Haiku-format Bot <[email protected]>
Reviewed-by: waddlesplash <[email protected]>
(cherry picked from commit f8e60239a31589e57f0693f27bf731fa98ad1c52)
Reviewed-on: https://review.haiku-os.org/c/haiku/+/11338
2026-07-23 17:01:40 +00:00
Augustin Cavalier edc2131db9 kernel/vm: Always use uint64 for memory amounts.
We want to be able to support more than 4GB of swap even on 32-bit.

Change-Id: I52c3aa8c0b77bbbd60a9b9ac37a4a7ad254aa201
Reviewed-on: https://review.haiku-os.org/c/haiku/+/11335
Reviewed-by: waddlesplash <[email protected]>
(cherry picked from commit e4c6bf453d4be138dbc8dd81a687c548cec6afdc)
Reviewed-on: https://review.haiku-os.org/c/haiku/+/11336
2026-07-23 16:53:17 +00:00
John Scipione cdcafe6d13 Tracker: Allow drag inside root window and save view state.
Fixes a pair of regressions listed in #20168 around hrev59677.

Change-Id: Id3f8e4e0ca57d11af5e178318869a87d6d8f2210
Reviewed-on: https://review.haiku-os.org/c/haiku/+/11282
Haiku-Format: Haiku-format Bot <[email protected]>
Reviewed-by: Adrien Destugues <[email protected]>
Reviewed-by: Máximo Castañeda <[email protected]>
Tested-by: Commit checker robot <[email protected]>
(cherry picked from commit 52f5d502d9be13f9fc42080f7e64ecfaf3277da9)
Reviewed-on: https://review.haiku-os.org/c/haiku/+/11327
2026-07-23 15:33:15 +00:00
Augustin Cavalier f360d43984 NVMM: Correct area wiring flags.
The cache may not have all pages needed to be fully locked. Therefore
we have to use B_LAZY_LOCK if it doesn't.

Fixes some KDLs I was seeing when using NVMM against a raw disk device.
(cherry picked from commit 0ea1a0a835e8093355c5ea4fbe08dc9be93e3eb5)

Change-Id: I403eaf2f14677101cdd327d4b99c12318815c116
Reviewed-on: https://review.haiku-os.org/c/haiku/+/11332
Reviewed-by: waddlesplash <[email protected]>
2026-07-22 21:26:46 +00:00
Augustin Cavalier e20e66d8a2 packagefs: Add a missing initialization.
Discovered by compiling with UBSan (it triggered as a compile-time
warning; I don't know if this actually causes any problems at runtime.)
(cherry picked from commit 6b28f736c09757156abadd560e69b8e090e60f25)

Change-Id: I91f6930fd4b9e870ecc1bad357aae2722f252cd1
Reviewed-on: https://review.haiku-os.org/c/haiku/+/11329
Reviewed-by: waddlesplash <[email protected]>
2026-07-22 20:04:51 +00:00
Augustin Cavalier 9d80b76b46 kernel/vm: Use 64-bit signed types explicitly for memory computations.
off_t is a signed 64-bit type, but size_t isn't signed or 64-bit
on 32-bit platforms. That meant adding a sign bit caused strange
things to happen there.

Fixes incorrect free-memory computations on 32-bit.
(cherry picked from commit cc565c81afd2dfba34de6ced607199d757080a8d)

Change-Id: I294f92ac1279a6311347b5e25341542d8c862013
Reviewed-on: https://review.haiku-os.org/c/haiku/+/11326
Reviewed-by: waddlesplash <[email protected]>
2026-07-22 17:37:42 +00:00
Augustin Cavalier 0178ddbc88 VMKernelAddressSpace: Disable the object depot for the RangesObjectCache.
We allocate/free ranges with the write lock held, so the depot is
just a waste, and actually in low-memory conditions hurts (if we
need a Range and there's none in the cache but there were in the
depots, a scenario I saw when trying to boot with a DEBUG=1 kernel
on my laptop.)
(cherry picked from commit ad189ca258d42e68f493c22bb3ce5f904e1589bc)

Change-Id: Id4af983a8b1337f8e90640218fe63402543355f8
Reviewed-on: https://review.haiku-os.org/c/haiku/+/11322
Reviewed-by: waddlesplash <[email protected]>
2026-07-22 15:51:38 +00:00
Andrew Lindesay bc55e4974a HaikuDepot: selection on filter
This change corrects the selection of a package
so that if it could not have been in the filtered
list of packages then it becomes unselected. Also
fix a problem where `StackedFeaturedPackagesView`
is getting pointer events and so getting
`MouseDown(..)` all the time. Also remove some
disused code.

Fixes #20195

Change-Id: I4e30a79d1bfe9cd59bca10113376e8fa87f37ec6
Reviewed-on: https://review.haiku-os.org/c/haiku/+/11318
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: waddlesplash <[email protected]>
Haiku-Format: Haiku-format Bot <[email protected]>
(cherry picked from commit a2cb86260ce9e1898ed31d9a45f8f76e718c0a1b)
Reviewed-on: https://review.haiku-os.org/c/haiku/+/11319
2026-07-22 15:37:35 +00:00
Augustin Cavalier b5a3401119 Enable NVMM.
It works!
(cherry picked from commit 56c1178ccbc073733f10a10ab1dfac433bdec3fd)

Change-Id: Ie66aabbbbdac0923f78acc4edb895cf2f8810c9f
Reviewed-on: https://review.haiku-os.org/c/haiku/+/11317
Reviewed-by: waddlesplash <[email protected]>
2026-07-22 03:42:13 +00:00
Augustin Cavalier b0310ba160 nvmm: Always use B_FULL_LOCK for non-swapping caches.
Otherwise the page daemon will unmap pages unnecessarily.
2026-07-22 03:14:58 +00:00
Augustin Cavalier 27c16710b9 nvmm: Implement curthread_save/restore_fpu.
It actually is needed to reset MXCSR.

Doesn't seem to affect behavior, though.
2026-07-22 03:14:57 +00:00
Augustin Cavalier e0ff341bce kernel: Check early safemode options in frame_buffer_console_init.
(cherry picked from commit 596150abbbf4e79d6c50d253c867e5200ae60017)

Change-Id: I691540cad733a342f50ad54bcbcedb878a549863
Reviewed-on: https://review.haiku-os.org/c/haiku/+/11315
Haiku-Format: Haiku-format Bot <[email protected]>
Reviewed-by: waddlesplash <[email protected]>
2026-07-22 03:09:24 +00:00
Augustin Cavalier 7dc7df27e9 x86: Make "Disable BIOS calls" boot option actually work.
It was a complete no-op before. Now, when enabled, BIOS calls
won't be done past the bootloader, and the Framebuffer driver
will be used instead of VESA.
(cherry picked from commit 7f12208162a5fc676f7a03e050f7671919f4fb12)

Change-Id: Id7670cc060ab5273411222e27467a6dfdbbb9e7f
Reviewed-on: https://review.haiku-os.org/c/haiku/+/11313
Reviewed-by: waddlesplash <[email protected]>
2026-07-22 02:31:43 +00:00
Augustin Cavalier bb98e98305 safemode_defs: Sort and organize.
No functional change. Reasonably we should have architecture-specific
headers for some of these, but that can wait.
(cherry picked from commit 450728b4b717b3ea09fb2145daf2e6a24874c6de)

Change-Id: I887d37a54b44e127e4d1fe46675bf57bc2a392dc
Reviewed-on: https://review.haiku-os.org/c/haiku/+/11312
Reviewed-by: waddlesplash <[email protected]>
2026-07-22 02:31:04 +00:00
Augustin Cavalier d56f3f2265 usb_disk: Change a dprintf to CALLED.
(cherry picked from commit b861fcbd866e04256d46725bd5a26f3ea1c5ff8c)

Change-Id: I314b98b8a5c7a0f1e3304b473b82fa759dff60f3
Reviewed-on: https://review.haiku-os.org/c/haiku/+/11307
Reviewed-by: waddlesplash <[email protected]>
2026-07-21 22:30:18 +00:00
Augustin Cavalier 0c29b31205 usb_disk: Unpublish devices in the driver removed hook.
We publish devices in the driver register hook, and if we try
to unpublish them from the device removed hook, not the driver
removed hook, we'll confuse the device_manager and cause it
to do use-after-frees on list iteration.

The two are called in quick succession of each other, so this
shouldn't cause problems.

Fixes a KDL reported by OscarL when unplugging a USB card reader
(which I reproduced with another USB card reader.) It seems the problem
would happen with any USB disk device that published more than
one LUN.
(cherry picked from commit a688b173e7c1e903845b6cac78baa7bd2ea23c31)

Change-Id: Ia9fae3428a45e199cb2c903acfe9c689dfa9bed4
Reviewed-on: https://review.haiku-os.org/c/haiku/+/11305
Reviewed-by: waddlesplash <[email protected]>
2026-07-21 22:25:07 +00:00
Augustin Cavalier 42371830dc usb_disk: Don't try to reset or test if the device was removed.
Avoids the media checker retrying uselessly after devices have been
removed.
(cherry picked from commit a88cbfae4fcaf80d8786d144fccbeb349c3bd91b)

Change-Id: I3fefcbe515bf46bb84b6a6476e9cef7dcbbb48eb
Reviewed-on: https://review.haiku-os.org/c/haiku/+/11304
Reviewed-by: waddlesplash <[email protected]>
2026-07-21 22:24:59 +00:00
Augustin Cavalier bf5e6e673f kernel/device_manager: Pass the correct pointer to device_removed.
We want the DriverData not the device_node.

Discovered while working on usb_disk. I wonder if anyone ever actually
used this method for hot-unplug before...? Looking at the source code
of other modules, only a select few try to do anything with the cookie,
and most of those likely don't use hot-unplug.
(cherry picked from commit 5fec48b27d7b4c1c831b93db3d4abc1cfaee4982)

Change-Id: Iaf8973b8212758ba2148ad88832f9f96aa5158f1
Reviewed-on: https://review.haiku-os.org/c/haiku/+/11303
Reviewed-by: waddlesplash <[email protected]>
2026-07-21 22:24:30 +00:00
Augustin Cavalier 5c0e7a34aa kernel/x86: Fix the build with KDEBUG_LEVEL 0.
(cherry picked from commit 99502154ea8699761f7b8dd7705e51ac62e3ea28)

Change-Id: Ibd6a544f8b5dfb912423d9d58fc5d3ec7b1947dd
Reviewed-on: https://review.haiku-os.org/c/haiku/+/11293
Reviewed-by: waddlesplash <[email protected]>
2026-07-21 20:03:11 +00:00
Jérôme Duval be4df85d25 kernel/x86: skip dumping non-boot cpu features if they are same
Change-Id: If10dbeb24d6a5bf602ae02ef1d18d3fd160bff11
Reviewed-on: https://review.haiku-os.org/c/haiku/+/11289
Haiku-Format: Haiku-format Bot <[email protected]>
Reviewed-by: waddlesplash <[email protected]>
(cherry picked from commit 5488ba1717bf161c29ff4821d7511f2728aa470b)
Reviewed-on: https://review.haiku-os.org/c/haiku/+/11290
2026-07-21 19:12:52 +00:00
Augustin Cavalier 1f0f4c0937 ACPI & PCI: Move the x86 config space fallback to the PCI module.
This way, we can use it even after the "early" boot phase is over
but before PCI is initialized, and also add the locking necessary
once there are multiple threads.

Should fix #20196.

Change-Id: Ie96daf44cc7c82050d0aa686d0d395228ffa4f20
Reviewed-on: https://review.haiku-os.org/c/haiku/+/11285
Reviewed-by: waddlesplash <[email protected]>
(cherry picked from commit 4e8abe02f6384e6c35895785557b1eeaed85a607)
Reviewed-on: https://review.haiku-os.org/c/haiku/+/11287
2026-07-21 17:56:30 +00:00
Sam Roberts b422ca4d3a acpi: Use x86 PCI config method directly during startup
Fixes #18778, #19602, #19716, #19948, #20165

The ACPI tables on certain recent-ish Intel platforms read some
values from PCI config space during ACPI init. Since we haven't
initialized PCI yet during ACPI init, instead of reading from
config space, the ACPI bytecode gets garbage values. These values
are later used in an address compution. An address compution with
garbage values produces a garbage address. That garbage address
has certain upper bits set, which causes the corresponding page
table entry to have those upper bits set as well (since the page
mapping code doesn't sanitize the address). These upper bits being
set triggers a page fault due to invalid bits being set in the
page table, which we erroneously think is an SMAP violation.

Co-authored-by: Augustin Cavalier <[email protected]>
Change-Id: If75dffe47ebf3e14831ceac1dfbe492c6a6a6964
Reviewed-on: https://review.haiku-os.org/c/haiku/+/11272
Reviewed-by: waddlesplash <[email protected]>
(cherry picked from commit aa519fec255ea2196453b7e62c6f1540efbeefee)
Reviewed-on: https://review.haiku-os.org/c/haiku/+/11281
2026-07-21 02:05:50 +00:00
Jérôme Duval 46fb8f1ca3 BBufferIO: takes buffer start in account when using pos
inspired by some fixes in V/OS

Change-Id: I9bad77d0bce46c36ca80573ea4e77563071a8241
Reviewed-on: https://review.haiku-os.org/c/haiku/+/11278
Reviewed-by: waddlesplash <[email protected]>
Haiku-Format: Haiku-format Bot <[email protected]>
(cherry picked from commit f00cbd3d2bf1f577953dac063f258848bbd06a70)
Reviewed-on: https://review.haiku-os.org/c/haiku/+/11279
2026-07-20 16:56:09 +00:00
PulkoMandy 4b34eedc59 AboutSystem: update credits
- Move Philippe Houdoin back to active contributors (welcome back!)
- Add all GSoC contributors since 2012 who worked on directly
  Haiku-related work (excluded: failed projects, projects related to
  Trac or other tooling, and 3rd party apps). Students before 2012 were
  already consistently added but we forgot to do it for some of them in
  the next years. They are added to the "contributors" section (if some
  of then do have commit access, they should be moved to past
  maintainers or active maintainers accordingly).

Change-Id: Icc615b07bc2911ce81d13ee2a6305b7251405647
Reviewed-on: https://review.haiku-os.org/c/haiku/+/11270
Reviewed-by: waddlesplash <[email protected]>
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: nephele nephele <[email protected]>
Haiku-Format: Haiku-format Bot <[email protected]>
(cherry picked from commit 33f8320181e5809e89bcdcaedcd1c259992a19ff)
Reviewed-on: https://review.haiku-os.org/c/haiku/+/11275
2026-07-19 21:00:52 +00:00
Augustin Cavalier 779d435149 Adjust repositories to r1beta6. 2026-07-18 21:12:51 -04:00
Augustin Cavalier 04fcdf7756 build: Enable HAIKU_OFFICIAL_RELEASE. 2026-07-18 21:10:16 -04:00
Augustin Cavalier 32edc757b0 Disable serial debug output by default.
EFI doesn't have a boot keys mechanism so we just disable the
routine that enables it entirely. Also disable it in early kernel
output before the settings file has been read.
2026-07-18 21:09:32 -04:00
Augustin Cavalier 103df455af kernel_debug_config: Turn KDEBUG_LEVEL down from 2 to 1.
Per the ReleaseCookbook.
2026-07-18 21:09:02 -04:00
Augustin Cavalier 86e70e9a62 Versioning: This will be R1/beta6. 2026-07-18 21:08:43 -04:00
Augustin Cavalier 618e42b86d Versioning: Add BETA_6 and PRE_BETA_7 version constants.
* PRE_BETA_7 is now the default in master.
2026-07-18 21:07:28 -04:00
Augustin Cavalier edf3ed94bf Tracker: Drop Sync() during copy operations.
This mostly reverts commit e8d394bd51.

After the changes to how modified page writes are handled,
this shouldn't be needed anymore.

Fixes #19673.

Change-Id: I1d55f5b80f10836b3eee74a1165a682375d10ec6
Reviewed-on: https://review.haiku-os.org/c/haiku/+/11268
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: waddlesplash <[email protected]>
2026-07-18 18:51:43 +00:00
Augustin Cavalier 47a645b6a0 kernel/fs: Fix reference leak of KDiskDevices.
WriteLockDevice() acquires a reference, so we have to release that
after we unlock.

May help with #18044.

Change-Id: I9f7b32ec044c310091079e17669d2186b9f6a155
Reviewed-on: https://review.haiku-os.org/c/haiku/+/11267
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: waddlesplash <[email protected]>
2026-07-18 18:51:43 +00:00
Augustin Cavalier 3bfaa91290 kernel/vm: Per-KDiskDevice modified queues and page writers.
This solves an old TODO, that the page writer could potentially cause
deadlocks when writing pages of different devices back at once. It's
also necessary after the previous change, as otherwise simultaneous
writes to disks with different write speeds would cause the quota
computations to be fluctuating and inconsistent.

Change-Id: I1c485f66625ea9013f17ab4fee007d7d58afd2ea
Reviewed-on: https://review.haiku-os.org/c/haiku/+/8619
Reviewed-by: waddlesplash <[email protected]>
Tested-by: Commit checker robot <[email protected]>
2026-07-18 18:51:43 +00:00
Augustin Cavalier de0a0420a8 kernel/vm: Implement modified page quotas and wait for them in the file cache.
Otherwise, if we're marking pages modified faster than we can
write them out, the number of modified pages will just grow
unboundedly. This can lead (e.g.) to `sync` taking multiple
minutes after copying a lot of data to a slow disk. So, instead,
we now have a quota of no more than 3 seconds for all pages
to be written back.

Also drop a TODO comment from the page_writer thread. Since
we only start writing pages if there's at least 256 to be written,
or if someone wakes us up deliberately (which the page daemon
does, if it schedules pages to be written out), we shouldn't
need to wait shorter.

This should fix #5777 and related tickets.

Change-Id: I4d419d149ea780677b462f5fa46cfe4d65044b2c
Reviewed-on: https://review.haiku-os.org/c/haiku/+/10811
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: waddlesplash <[email protected]>
2026-07-18 18:51:43 +00:00
Humdinger 5fdff91915 SoftwareUpdater: Hide/Show text when progress bar shows/hides
Reverts part of 05fd080554.
I got confused by the "Details" part of the variable, mistook it
for being related to the "Show details" checkbox…

Change-Id: I0eb2a72f83a55cb306a33384da1c5c2cdde32082
Reviewed-on: https://review.haiku-os.org/c/haiku/+/11269
Reviewed-by: waddlesplash <[email protected]>
2026-07-18 18:50:10 +00:00
Nathan Patrizi a98cea3558 DriveSetup: Implement ability to change partition type
* Implement functionality so that changing the partition type via the
   "Change parameters..." option will now work.
 * Implement changing partition type for Intel extended partitions. This
   included fixing the existing code so that changing partition type
   results in the updated EBR being written to the correct location.
 * Fix changing parameters of GPT partitions.

Fixes #19194

Change-Id: I4c8a2cbee25342acbab125b0b36b0106a872ea4b
Reviewed-on: https://review.haiku-os.org/c/haiku/+/11266
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: waddlesplash <[email protected]>
2026-07-18 18:48:54 +00:00
PulkoMandy 59ea9704f6 WebPositive: do not overwrite Go button focus rect with URL bar border
Fixes #20181

Change-Id: I2dc0a5b609054cf04e32835582c1487dda40c52f
2026-07-18 15:46:42 +02:00
Augustin Cavalier ebedce12c3 kqueue: Notify when semaphores and ports are closed.
Use EV_EOF for this purpose.

Follows up on #19974.
2026-07-17 16:55:42 -04:00
Augustin Cavalier 6fcd55350f kernel/vm: Check page ACCESS state in UnaccessedPageUnmapped. 2026-07-17 16:55:42 -04:00