Commit Graph

64718 Commits

Author SHA1 Message Date
Christof Meerwald
62ee13a983 kernel/network: Fix ICMPv6 checksum calculation
Ensure that any overflow bits aren't lost when returning from the
helper function. These need to added to the least significant bits in
ipv6_checksum.

Change-Id: Ida9821dd87d34ac1982703d9861419ed97ab4b9e
Reviewed-on: https://review.haiku-os.org/c/haiku/+/6036
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
Reviewed-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
2023-01-27 09:10:11 +00:00
Augustin Cavalier
984e2e527b openbsd_network: Move ifq_*_oactive wrappers to a common header. 2023-01-25 23:09:02 -05:00
Augustin Cavalier
218a511cd4 drivers/network/{ether,wlan}: Drop FreeBSD versions from Jamfiles.
These were rarely in sync. Check the git history to determine when
a driver was last updated, when necessary.
2023-01-25 23:00:04 -05:00
Augustin Cavalier
939b20db33 Terminal: Add new files to DoCatalogs.
Fixes #18232.
2023-01-25 22:35:11 -05:00
Augustin Cavalier
946fa9e85e Terminal: Adjust indentation for kColorTable.
No functional change.
2023-01-25 22:34:56 -05:00
Augustin Cavalier
3773999f93 kernel/fs: Add permissions check to rootfs_open.
Missed in the earlier commit which added permissions checks to the
other functions.
2023-01-25 19:11:33 -05:00
PulkoMandy
83e06e62ef ffmpeg: remove use of deprecated fields in tracing
Change-Id: Id4f1e342bae8dd4a12b3f6647d60b238f98324e6
Reviewed-on: https://review.haiku-os.org/c/haiku/+/6014
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>
2023-01-25 11:58:15 +00:00
PulkoMandy
a5bcb6e0e6 ffmpeg: fix incorrect error check
The function returns a positive nonzero value when it works.

Change-Id: I99ee3e2f8f60dff960a07fefc1cf42dc3b3969cd
Reviewed-on: https://review.haiku-os.org/c/haiku/+/6013
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>
2023-01-25 11:58:15 +00:00
PulkoMandy
e35a296ef7 ffmpeg: fix missing initialization of AVFrame
ffmpeg API reference does not allow to allocate AVFrame on the stack,
and especially not without initializing anything in the frame. Calling
av_frame_unref then attempts to free some non-existing data, and
crashes.

The code for video was already using a correctly allocated frame, which
we can reuse here.

Fixes #17415

Probably fixes #16831

Change-Id: I9d6ee7724ab9f22547b0030de12542ef3a650640

fix avframe

Change-Id: I170597ec323ac67be460ccbab9dae5ee3e6e1b71
Reviewed-on: https://review.haiku-os.org/c/haiku/+/6015
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>
2023-01-25 11:58:15 +00:00
PulkoMandy
5500d61686 ffmpeg: fix build with tracing enabled
Change-Id: Ib563d45ea144c957aeb176dbb2c381a00a55b19e
Reviewed-on: https://review.haiku-os.org/c/haiku/+/6012
Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>
2023-01-21 22:10:21 +00:00
Humdinger
c3162b5d8a MailMessage: Fix date in header of forwarded mails
As investigated by madmax in #18230; Date() returns a time_t since 2015. Thanks!

Change-Id: Ic35129ad60f6cadc09917c05e86f726de3061dcb
Reviewed-on: https://review.haiku-os.org/c/haiku/+/6010
Reviewed-by: Axel Dörfler <axeld@pinc-software.de>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
2023-01-21 16:51:57 +00:00
Autocomitter
3387839223 Update translations from Pootle 2023-01-21 08:18:09 +00:00
Adrien Destugues
9d51367f16 Improve "sourcecode" page of docs/develop/ a bit
Prepare for adding section about getting the sources and submitting
patches (to be converted from the existing docs on the website)
2023-01-20 13:01:19 +01:00
Adrien Destugues
6b1db710f7 docs/develop: introduce intermediate index for each section
The table of content of the top level will include everything that's up
to 2 levels down. Currently this results in a lot of pages and no clear
organization.

Extra index pages allow for more intermediate levels, resulting in less
things being listed in the main page. This way the organization is a bit
clearer, even if this is still not great due to many missing pages and
sections in the documentation currently.

Change-Id: I5bbdd96b3c2ff3334b9ad1b86fd9e7fb00fd63a6
Reviewed-on: https://review.haiku-os.org/c/haiku/+/6008
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2023-01-19 22:09:22 +00:00
Alexander von Gluck IV
7cfd9e92cf tests/qemu-boot-test: Adjust arm64 cpu to max per David k.
* Gets us into the haiku kernel when booted with u-boot

Change-Id: I70aa6cf4c9d8894cf13771e97652778215fe0ab7
2023-01-19 13:00:57 -06:00
Alexander von Gluck IV
ce41afe7f8 tests/qemu-boot-test: Add initial arm64 boot test case
Change-Id: I108a27408873330169de3ab31eecb2fd034ee628
2023-01-19 11:41:33 -06:00
Máximo Castañeda
8e2cd40d9e FontManager: use correct constants for default styles
Reapply part of 12ae5308f2 that was lost in the long revision history of
user fonts. No big deal as the values are the same.

Change-Id: I26bbceb0380b33e35b105519a11e309500f9acf6
Reviewed-on: https://review.haiku-os.org/c/haiku/+/6006
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2023-01-18 17:26:43 +00:00
Murai Takashi
4cff9918f3 screen_savers/flurry: Remove duplicated code
Pointed out by Clang Static Analyzer (Dead assignment).

Change-Id: I3360c52ec42ca1695d4bc45a422fd91de1a349e1
Reviewed-on: https://review.haiku-os.org/c/haiku/+/6005
Reviewed-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
Reviewed-by: Axel Dörfler <axeld@pinc-software.de>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
2023-01-18 14:20:26 +00:00
Pascal Abresch
99d1318ec0 Fix userguide localization
Change-Id: Ie52a545b4e50ef3d87c7bfb26e54772fd7816377
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5974
Reviewed-by: nephele <nep@packageloss.eu>
Reviewed-by: Niels Sascha Reedijk <niels.reedijk@gmail.com>
2023-01-18 12:46:12 +00:00
Humdinger
281ece0b8a Terminal: Menu "Theme settings..." -> "Colors..."
"Colors" is simpler, better translatable and currently more
correct. A "theme" is broader, including backgrounds, fonts,
mouse cursor, sounds etc.
For a Terminal it's mostly colours. Fonts are being handled in
the "Settings" panel.

Change-Id: Icf043fffbc64d976db7a71c28c41aeea0cdf44e6
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5999
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
Reviewed-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
2023-01-15 22:13:23 +00:00
Panagiotis "Ivory" Vasilopoulos
979de7d73d Readme.Compiling.md: Use new build profiles
When #15963 was fixed, some build profiles were succeeded by newer
ones, while the older ones were completely removed. However, this
document was never updated to specifically reflect this change.

Additionally, some headers were slightly improved to make them more
descriptive.

Change-Id: If89e927bef3b87df4e54eecb13a69d877b90e6af
Reviewed-on: https://review.haiku-os.org/c/haiku/+/6001
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
2023-01-15 16:02:14 +00:00
Pascal Abresch
75070a4089 ShowImage: Fix status view font size
Change-Id: If29226e01c0ea24c367c029f87225822f0f1509d
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3756
Reviewed-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
2023-01-15 08:49:19 +00:00
Pascal Abresch
322be3bee0 StatusView: compute font size based on scrollbar size
Compute a font size that just fits the available space, instead of using
an arbitrary scaling. This makes the code adjust to any font and any UI
size.

Select the appropriate font using a binary search, which will need only
a few attempts (I think 6 font sizes will be tried at the default
config)

Change-Id: Ie3b8678678c0d940981f1785418aa8ab354d01c5
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3893
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
2023-01-15 08:45:06 +00:00
Kyle Ambroff-Kao
fb0b77979a loopback: Bump default MTU from 16KiB to 64KiB
While profiling with iperf for #18203 I noticed that the default MTU for
the loopback interface is 16KiB. Other operating systems set this quite
a bit higher. Linux sets it to 64KiB by default. Random Google searches
seem to suggest that Microsoft sets it even higher than this although I
don't have a Windows computer to verify this at the moment.

Changing the default to 64KiB in this patch makes a pretty big
difference in a kvm VM with a single CPU. The max throughput goes from
about 2Mbps/s to around 12Mbps/s, around a 6x increase.

With the same VM but 8 CPUs, the throughput goes from 1.58Gbps to
1.99Gbps, about a 26% increase in throughput. It seems the throughput
is a little more stable too and doesn't drop periodically. I suspect
that this is just because there is less CPU saturation in the loop
consumer thread.

With window size maxed out to around 1GiB as described in #15886 there
is still about a 10% increase in throughput with this change.

There are still some weird performance issues to diagnose but this seems
like a better default.

Change-Id: I8c5d088298a4a7b3e8b1aa1a2f4f85b0cc9c62c2
Reviewed-on: https://review.haiku-os.org/c/haiku/+/6000
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2023-01-15 05:34:08 +00:00
xoblite
07f11ccca9 data/ids: Updated PCI IDs list from upstream (+125/-19 since current)
Downloaded from https://raw.githubusercontent.com/pciutils/pciids/master/pci.ids

Change-Id: Idbd703c5208b5ccf7f4f8789226c6ec568fa3292
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5997
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2023-01-14 18:27:21 +00:00
Autocomitter
41f578ad79 Update translations from Pootle 2023-01-14 08:23:10 +00:00
Adrien Destugues
d79d9a8524 Developers doc: fix all Sphinx generation warnings 2023-01-13 12:58:45 +01:00
Alexander von Gluck IV
594a6fa9e5 kernel/device_manager: Fix virtio device iteration on qemu-system-riscv64
Change-Id: Id8f82bcd455234a1f3a985a89050c32f880655f3
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5994
Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>
2023-01-13 07:33:01 +00:00
Jérôme Duval
042c401bb0 intel_extreme: add PCI ids for Haswell ULT GT1 Mobile
for bug #18215

Change-Id: If49bc262d0c5eb7082fb749222ca6534d5c55aa3
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5991
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
2023-01-13 05:48:37 +00:00
Alexander von Gluck IV
5fba2ada03 tests/qemu-boot-test: Fix keyboard and mouse on riscv64
* virtio is sketchy still due to some non-architecture
  specific bugs. This lets us control the VM until virtio
  improves

Change-Id: I2b6805b7282f8b060fae6d831c675eb2dd2f84ef
2023-01-12 19:02:35 -06:00
Alexander von Gluck IV
59f8bbddb0 virtio_block: fix tracing on 64-bit platforms
Change-Id: I65738c17fc5ec923d47ef63832590ba3f6d28b6d
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5993
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
2023-01-12 21:52:49 +00:00
xoblite
183b85ddf8 Tracker: NavMenu and MountMenu should not set font themselves (inherit from BMenu instead)
Change-Id: Ie04908ebb1c05bd2abe19e8574bae0fa1cf47e1a
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5990
Reviewed-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2023-01-12 17:23:13 +00:00
Alexander von Gluck IV
f65d24dfd9 kernel/debug: Fix newlines on serial output
* kputs uses the string printing functions per arch
  which includes logic to detect \ n and add a \ r before it on
  serial devices.
* kputchar uses the individual character printing arch code
  which doesn't include this check.  This results in a floating
  prompt on serial kernel debugger sessions:
  kdebug>
         kdebug> help
                     Prints a command...
* Since kputchar is lower level and most would expect it to print
  "a single untampered character", just convert these newline calls
  to use kputs which includes the \ r check serial devices use.

Change-Id: I8389899e7670859597aeddbb6f58e9b7f7942230
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5992
Reviewed-by: Alex von Gluck IV <kallisti5@unixzen.com>
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2023-01-12 17:12:48 +00:00
Jessica Hamilton
4fc16a17cf libroot: fix try functions for pthread_rwlock.
These should return EBUSY instead of EDEADLK, so move the check
for deadlock into _Wait(), where the timeout can be checked prior
to the deadlock check.

Fixes the issue introduced in hrev56698.

Change-Id: I5717dd0579a93a117c15be93ce84136a0e065829
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5989
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
2023-01-11 08:08:41 +00:00
xoblite
b36bd5f7d5 Devices: Miscellaneous polishing (removed the old non-utilized view tabs etc)
* Removed the old non-utilized "Basic" and "Bus" view tabs to make the "Device details" view default and more prominent
* The tab title now shows the name of the currently selected device, and  the default width of the value column has been increased to show more text by default
* Removed non-referenced/skeleton code plus made various clean-up edits as suggested by reviewers

Change-Id: I32ece29aa04e357cb4a8a0672becb754e4ccdacf
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5908
Reviewed-by: KHH <haiku@xoblite.net>
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
2023-01-10 21:48:10 +00:00
Jessica Hamilton
4924129ec2 libroot: pthread_rwlock_[rd|wr]lock detect simple deadlocks.
Whilst these are "may fail" in POSIX, they're easy to detect,
so fail early instead of deadlocking.

Return EDEADLK when trying to obtain a read/write lock if the
current thread already has a write lock.

Fixes part of #17971.

Change-Id: I15a67c8f56f746b988f79443b6966a05122aa6a9
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5985
Reviewed-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
2023-01-10 21:11:43 +00:00
Jérôme Duval
37223744b7 kernel/x86: add a hybrid type per cpu, to be dumped when the feature exists.
for AlderLake CPUs

Change-Id: I4beba04e3ac95d7564684ee86de99c894b57a15c
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5988
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
2023-01-10 20:40:11 +00:00
Jessica Hamilton
1b370545d7 Terminal: graphical settings for configuring themes.
Implements #16835: Make colour schemes modular.
Implements #15936: Terminal settings should allow to drop a colour.

Change-Id: I1071c9285ba887e734af47b724f9de7f6c660581
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5950
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
2023-01-10 11:09:22 +00:00
Jessica Hamilton
7a772a5586 Terminal: support bracketed paste.
Fixes #18029: Pasting into nano etc. eats newlines and indentation

Change-Id: I935696bb97f4d82b30f73cc488f6317cf847beae
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5987
Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>
2023-01-09 18:36:47 +00:00
X512
7003a4cb1d i2c/ocores: add fdt compat for HiFive Unmatched
Change-Id: I325a33d224e4711c71e324ac2afeae2dffc8aaeb
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5952
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: Alex von Gluck IV <kallisti5@unixzen.com>
2023-01-09 14:54:02 +00:00
Autocomitter
6d2d2a327e Update translations from Pootle 2023-01-07 08:22:38 +00:00
Alexander von Gluck IV
81a892eddf efi/serial: Refactor EFI bios serial services
* Convert x86 direct port I/O to our standard gUART.
* sSerial is plainly EFI Serial or EFI Stdout
* gUART is plainly hardware serial now

Change-Id: I5730fbc0ce3427851e4e2d1d0aa8c55f7765e444
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5982
Reviewed-by: Alex von Gluck IV <kallisti5@unixzen.com>
Reviewed-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
2023-01-06 18:02:58 +00:00
Zelenoviy
762b00e999 intel22x: update driver from FreeBSD sources
Fixes #18187

Change-Id: If0c281ce2eaf8a27d97c3211f8156d6d373e9256
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5983
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2023-01-05 23:44:53 +00:00
Oscar Lesta
07d5ef79d2 virtualkeyboard: fix building of target "<input>virtualkeyboard".
Fixes a "-Werror=write-strings", and a linking, error.

Change-Id: Iceb768a14e7d091796523640a2e94cb848848f44
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5980
Reviewed-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
2023-01-05 21:52:31 +00:00
Alexander von Gluck IV
2435e24cc8 efi/dtb: Search for snps,dw-apb-uart on all architectures
* This is actually a generic Synopsys DesignWare ABP UART
  which can be found on riscv boards like the StarFive as
  well as ARM.  Just make generic.

Change-Id: If3c047560d66ebb8a76410c55c22e216cbf5d4e2
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5978
Reviewed-by: Alex von Gluck IV <kallisti5@unixzen.com>
Reviewed-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
Reviewed-by: David Karoly <karolyd577@gmail.com>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
2023-01-04 13:31:50 +00:00
Augustin Cavalier
0fae96c5a3 package command: Enable zstd compression by default.
Note that zstd-compressed packages cannot be installed unless the
running system can already read them, even as part of a system
update transaction. This has been possible for some months now,
but if one has an older EFI bootloader, you may need to upgrade it.

Change-Id: I9e561459477723e498a871ee5c5caad560861b79
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4663
Reviewed-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
2023-01-03 10:01:37 +00:00
Alexander von Gluck IV
17889a8c70 3rdparty/google: add script for making Google Compute Engine images
Change-Id: Ia52b8e6a30255ee7903cfb0834d4030b6774b1c8
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5963
Reviewed-by: Alex von Gluck IV <kallisti5@unixzen.com>
Reviewed-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
2023-01-03 10:00:49 +00:00
Humdinger
8040281d80 setvolume: detailed usage info, print mute state
* Describe parameters in "usage".
* Change -m to explicitely mute, instead of toggling mute.
* Add -t to toggle muting, -u to unmute.
* Add long version options:
  --mute, --unmute, --togglemute --increase, --decrease
* Accept a step size as additional parameter to in/decrease,
  without it, the step size is 3 dB.
* Print muting state when toggling or un/muting.
* Update shortcut_settings to use "setvolume -t" to toggle muting.

Change-Id: Iacad5bcf4a40a6056c85161ac45379015392420c
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5976
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
Reviewed-by: nephele <nep@packageloss.eu>
2023-01-03 06:46:14 +00:00
X512
f6c51a5dc4 BBitmap: add ability to specify client-defined area
Change-Id: Iae1550b3088b0f6c26b0b91d9acb7f7cbcc721d3
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4369
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: X512 <danger_mail@list.ru>
Reviewed-by: Fredrik Holmqvist <fredrik.holmqvist@gmail.com>
Reviewed-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
2023-01-02 18:07:53 +00:00
Oscar Lesta
59b54f3810 poke: use phys_addr_t for mem_map_args's physical_address field
This is needed to fix usage of POKE_GET_PHYSICAL_ADDRESS on
x86 32 bits (with PAE).

Change-Id: Ic00185ec7fcf9b6666ad6169a752d8b8edd2b61b
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5975
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
2023-01-02 15:02:32 +00:00