Commit Graph

63541 Commits

Author SHA1 Message Date
Jérôme Duval
de65a7b6b3 Update pci.ids and usb.ids
Change-Id: I99190ec9ddda1913a8bdb104c463a3c9e9fbbe81
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4879
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>
2022-01-22 14:40:08 +00:00
Autocomitter
39dfe582a3 Update translations from Pootle 2022-01-22 08:07:09 +00:00
urnenfeld
54ffc00e11 checkstyle: Update 80 columns rule to 100 as per coding guidelines
Change-Id: I17d8a74ec332a0073bd9d85ce23093b285a8e2d8
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4875
Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
2022-01-20 12:06:16 +00:00
Jérôme Duval
a010d38b6e hda: remove invalid product entries for intel
A few invalid ones were introduced in 2071dc2

Change-Id: Icbe5bb4aafd9d6e03ec4175c10eccdb2e65465d7
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4874
Reviewed-by: Alex von Gluck IV <kallisti5@unixzen.com>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
2022-01-20 05:34:18 +00:00
Jérôme Duval
a4c7f6c623 acpi_thermal: fix previous commit
sorry for the noise

Change-Id: Ic696f48b87d017492e054641c2b9c61a910fed0b
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4871
Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>
2022-01-18 08:59:39 +00:00
Lt-Henry
0fc10268e0 acpi_thermal: Fix 64-bit warnings
Change-Id: I5ee12a6d07a9ed61d0025c4e9e650da08a1326f8
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4870
Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
2022-01-18 08:52:37 +00:00
David Karoly
01cb3ed58e boot/efi: add stubs for x86
Change-Id: I8d3dfa7cc07679a8b024df24f7cddb3a5bcec02c
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4747
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>
2022-01-17 16:04:47 +00:00
Jérôme Duval
9a7f2c2459 Terminal: add support for mouse press/release events in Extended/SGR 1006 mode
fixes #17532

Change-Id: Ic9f19ace5c728b6823caa5ce8ec35dc35d244220
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4867
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2022-01-15 14:18:41 +00:00
Autocomitter
abe423c6e4 Update translations from Pootle 2022-01-15 08:07:13 +00:00
David Karoly
31f5f4d339 boot/efi/arm: remove identity mapping of EFI runtime services
EFI runtime service memory areas are remapped to a high virtual address
allocated with get_next_virtual_address() to avoid any address space
collision.

They are also added to virtual_ranges_to_keep so that the kernel knows
that these ranges should be reserved.

Change-Id: I63e1a2450fceff3b2404154907a2cf59dd1b373b
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4863
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: Fredrik Holmqvist <fredrik.holmqvist@gmail.com>
2022-01-13 22:43:32 +00:00
David Karoly
a7c69a4b1f boot/efi/arm: remove identity mapping of initial page tables
Change-Id: I37cb756c32e05a585ff224c1e48d1a40c83e5e2e
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4858
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
2022-01-13 22:43:32 +00:00
David Karoly
9103470bd3 kernel/arm: don't require identity mapping of initial page tables
Remove the dependency on identity mapping for the initial page tables
used in MapEarly / _EarlyQuery.

The initial page tables have to satisfy the following conditions instead:
* the inital page tables shall be allocated in the same region as the initial page directory
* this region shall be mapped contiguously
* the page tables shall be mapped at a higher address than the page directory

Change-Id: I34854ef93826aa48f5d90582b52905e553f3d275
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4857
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2022-01-13 22:43:32 +00:00
David Karoly
dc3e1761e6 docs/arm: remove TODO item for serial port mapping
UART is mapped to kernel virtual address range since commit f5f10a9ec
so it does not overlap with user address range any more.

Change-Id: If8e18904fcddcbef1ccdc91e526d0e581f61e085
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4856
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2022-01-12 12:21:11 +00:00
David Karoly
4ddb4993c8 kernel/x86: fix HPET ACPI table alignment
vendor_id shall come after the bitfields

Move hpet_address to separate struct definition so we can apply
the correct packed flags.

see also: https://wiki.osdev.org/HPET

Change-Id: Iced005846fedd4b895910e9b61137d5349db5b41
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4859
Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
2022-01-12 12:20:25 +00:00
Alexander von Gluck IV
901fc0c75f posix/arch/signal: Fix riscv64 arch detection
* We decided to not create our own custom define checks
  and go with the standard ones for riscv64.
* clang doesn't define __RISCV64__ either, so this moves
  the clang build of riscv64 a bit further

Change-Id: I2a6c3751168a898c1617b32f46055a9ba1609e2b
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4861
Reviewed-by: Alex von Gluck IV <kallisti5@unixzen.com>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
2022-01-12 12:17:15 +00:00
Mikael Konradsson
d493aae3c4 DiskProbe: Use Shine and Shadow color instead of tinting for Haiku
This make it look much better on haiku with dark theme.
Looks the same on default because shine is set to white/very bright.

Change-Id: Iecab3477e1fd5a90c447bcc15a1c598450b074a9
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4706
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
2022-01-12 12:16:26 +00:00
Jérôme Duval
0a408dfcad radeon_hd: find out rom size if loading from PCI ROM BAR
* only the rom gets copied.
* tested by smallstepforman in #17377
* fix warnings.

Change-Id: Id4803d5c5a8bcab685f687c6af0292c945813ec6
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4855
Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
2022-01-12 05:39:40 +00:00
Máximo Castañeda
3a809d9273 riscv64 syscalls: add explicit dependency
Fixes #17518

Change-Id: Id64ee4c3a3d28a32f41d8303c4a8c0c8228838d2
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4862
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>
2022-01-12 05:31:51 +00:00
David Karoly
ddb70de4d2 kernel/x86/hpet: fix build with TRACE enabled
Change-Id: I8b1d8f0e8ba7e800fe458135197080617be731bd
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4860
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>
2022-01-11 21:45:01 +00:00
Augustin Cavalier
218604196a libroot: Fix ICU locale implementation of wcsxfrm.
* The "size" parameter is the size of "out" not "in", and the
   return size_t parameter is supposed to always have the total amount
   of wchar_ts needed, not how many are actually used.
 * In the case where "outSize == 0", we set "requiredSize" and then
   return.

Fixes crashes seen in glib2 Unicode collation routines, which
are used in GTK file dialogs.

Thanks to PulkoMandy for glancing at this.
2022-01-11 16:34:15 -05:00
Andrew Lindesay
c580ec7312 HaikuDepot: Fix Scrollbar
The scrollbar on some areas is misaligned
with the window frame.  This change will fix
this.  The class that implements the scroll-
view is also shaded by two class definitions.
This is also fixed by breaking the definition
into its own file.

Fixes #16169

Change-Id: I71372906e165672c9b697ab98181ecfb1b09fb43
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4849
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2022-01-11 20:09:35 +00:00
Kacper Kasper
7323d0a21d Minor documentation fixes
* Remove duplicated Interface Kit description.
* Fixed links, a typo, inconsistent page names.

Change-Id: I38e5943f31bf30870d33f02a97b4ef899222ec36
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4854
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2022-01-11 12:22:17 +00:00
Autocomitter
f6373f2244 Update translations from Pootle 2022-01-10 16:59:00 +00:00
Jérôme Duval
a7115745f2 POSIX/C11: add timespec_get()
Change-Id: I746e32f3a463bf2c7b03097c625901d54cf2b8eb
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4853
Reviewed-by: Rene Gollent <rene@gollent.com>
2022-01-10 14:46:27 +00:00
David Karoly
6f62f45641 boot/efi/arm: initialize TTBCR when starting the kernel
Change-Id: I5ecaa0a91c8677f7d1ac6a512de6de8b2eaa597c
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4852
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: Fredrik Holmqvist <fredrik.holmqvist@gmail.com>
2022-01-08 17:58:29 +00:00
Augustin Cavalier
a8dc67c795 XHCI: Print the actual error for some more things in AllocateDevice.
May help with diagnosing #17464 and others.
2022-01-07 22:17:48 -05:00
Augustin Cavalier
4ec4055399 BBitmap: Make now-deprecated ImportBits variants private. 2022-01-07 22:05:30 -05:00
Augustin Cavalier
644c29d069 Adjust all in-tree applications after BBitmap::ImportBits API changes.
Change-Id: If3a06f35c01089cdbb696de479984f2b59fce7a0
2022-01-07 22:05:18 -05:00
Augustin Cavalier
edd3417172 BBitmap: Introduce ImportBits variants that take BSizes.
The old versions used pixel-count dimensions, not pixel-span dimensions
as the entire rest of the API does, which was probably a mistake
in the first place. The new APIs using BSize always use pixel-span
dimensions.

The old versions will shortly be deprecated.

Discovered while working on Xlibe.

Change-Id: I604a5ac6e0588420ff0b667d9193d60ac27b92c6
2022-01-07 22:03:01 -05:00
Augustin Cavalier
d66430ec52 XHCI: Add missing set-address delay.
The USB < 3.0 init code has this, and the XHCI spec indicates that
software is responsible for dealing with this still, indeed.

Noticed by rudolfc when testing some USB audio devices in #1045.
2022-01-07 21:45:22 -05:00
Augustin Cavalier
a5404eb57f XHCI: Use B_PRI macros in one TRACE.
Pointed out by rudolfc on #1045.
2022-01-07 21:35:05 -05:00
Máximo Castañeda
910ebfc4f5 ServerFont: keep style if possible when setting face flags
The current style probably has the correct style flags portion. Getting
a new style in that case is unnecessary, and problematic with some font
families that have several fonts mapping to the same style flag
(SemiBold, Bold and ExtraBold are all B_BOLD_FACE, for example): the
chosen one might be different than the one already set.

Fixes #17229

Change-Id: Ie8e73627cc0547df9d624a8fac07f521fc983d06
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4416
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2022-01-06 10:30:47 +00:00
Anarchos
69fdc6be3b radeon_hd : control of brightness
-detect if model > HD600
-apply change by calling ATOM_TRANSMITTER_ACTION_BL_BRIGHTNESS_CONTROL and ATOM_TRANSMITTER_ACTION_LCD_BLON
Author :     Anarchos <sylvain_kerjean@hotmail.com>

Change-Id: I30b9dd66c71e05427b827fc3ef2c7fa6c498646f
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2786
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: Alex von Gluck IV <kallisti5@unixzen.com>
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2022-01-05 22:35:06 +00:00
Heinrich Schuchardt
7127c048db u-boot/arm: simplify device tree handling
By updating $fdt_addr_r we can simplify boot-arm.scr.txt.

Now we can explicitly pass the device tree address to bootefi instead of
relying on a fallback inside U-Boot.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Change-Id: Ifceb574aca2814605a2e4e58e9187773817c5df2
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2970
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
Reviewed-by: Alex von Gluck IV <kallisti5@unixzen.com>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
2022-01-05 22:30:54 +00:00
Alexander von Gluck IV
58611befa2 haikuports/arm: Add missing zstd source package
* With this, Haiku arm is compiling again!

Change-Id: I6e878941856e77be5ff38bb2603dcc57b1a1460f
2022-01-05 10:56:16 -06:00
David Karoly
023a36024d boot/efi: introduce arch_dtb
Change-Id: Iff9e4198aca706097889faf51e9559fe551126ad
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4782
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: Alex von Gluck IV <kallisti5@unixzen.com>
2022-01-05 16:22:35 +00:00
Alexander von Gluck IV
f4df72a061 haikuports/arm: Add new missing zstd package
Change-Id: Id23e1fd731fb98ac172b8465195e5ed028751cb2
2022-01-04 21:17:55 -06:00
Alexander von Gluck IV
9137be71a3 haikuports/arm: Bump build-packages for arm to latest
Change-Id: I63aa4d2be06da4632363217079dce400808be477
2022-01-04 14:57:38 -06:00
David Karoly
fbc211a255 efi: fix alignment for block device protocol
efi_block_io_media struct needs padding on x86.
uint64_t is aligned on 4 bytes in Haiku toolchain for 32-bit EFI loader.
But the EFI firmware expects it to be aligned on 8 bytes.

Same padding in u-boot:
https://github.com/u-boot/u-boot/blob/v2021.10/include/efi_api.h#L638

and in Illumos:
feff18a41e

Change-Id: I1b95cbe4cc1e7d96fde3ba52862a05f8a94aab79
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4840
Reviewed-by: Fredrik Holmqvist <fredrik.holmqvist@gmail.com>
2022-01-04 17:56:41 +00:00
Jérôme Duval
80753344fe radeon_hd: fetch vbios from ACPI VFCT when available
check that the correct BIOS is found with the device and PCI ids.
make the allocated rom area bigger like Linux, otherwise page faults occur.

Change-Id: Iae6ff1c8dfd81ea16c20e73d511f9a0a96f9b071
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4844
Reviewed-by: Alex von Gluck IV <kallisti5@unixzen.com>
2022-01-03 22:36:20 +00:00
Jérôme Duval
82bdd31024 ext2: the offset still can be equal to the block size with metacsum
fix assert check for _CheckBlock()

Change-Id: Ibf0052a24e4b2fbcfff1e4a10d556cc4e6a6b103
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4843
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2022-01-03 21:09:38 +00:00
Kacper Kasper
fd876ad749 intel_extreme: vblank interrupt support for Gen8+
Change-Id: I8e7e68786cc4a626cb386929600715a6a6b1917d
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4760
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: Axel Dörfler <axeld@pinc-software.de>
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2022-01-01 11:36:02 +00:00
David Karoly
6117e0c29c boot/loader: relocate kernel to virtual address space on 32-bit architectures
Change-Id: Ic86ca6874f358df8755a0c691cccb155d145e06c
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4675
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: Fredrik Holmqvist <fredrik.holmqvist@gmail.com>
2022-01-01 11:35:28 +00:00
Adrien Destugues
abef198c1a Tracker: fix logic to use custom icons.
Regression caused by refactorings in hrev55348.

The logic for deciding when to use a built-in tracker icon was changed
incorrectly to ignore attributes on directories, trash, etc (anything
but executable applications). So the built-in icon was always used.

This commit restores the previous logic.

Shoud fix #17320 and #17371

Change-Id: I51ba22db59a8b6dd2bd1121b56c753ed47224c57
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4841
Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
2021-12-31 17:41:28 +00:00
David Karoly
a7c2c5f842 Update bootstrap package versions for ARM
Change-Id: I33f690355455561cb3faa55bccbfe73d24d2a32e
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4842
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: Fredrik Holmqvist <fredrik.holmqvist@gmail.com>
2021-12-31 16:03:11 +00:00
Alexander von Gluck IV
fa50d49db0 libroot: Correct no-builtin to be properly focused
* memset.c not arch_memset.cpp like on x86_64
* Sorry for spam

Change-Id: I79049e3a35c48431cef3bb9f54f0c9071663deeb
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4838
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
Reviewed-by: X512 <danger_mail@list.ru>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
2021-12-30 00:08:20 +00:00
Alexander von Gluck IV
f122ecfab7 libroot: Compile all arch arch_string with no-builtin
* This was originally added in hrev55661 for x86_64
* riscv64 suffers the same issue after updating to gcc 11
* Presumably, all architectures might suffer from this,
  so apply to all remaining architectures

Change-Id: I41f2adeb5153ce4f4094d667ae303394d537d8ec
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4837
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2021-12-29 22:40:29 +00:00
X512
0d9b77a328 haiku_loader.riscv: update for SMP support
Change-Id: Ic3f83e80347036727a06eb6199c44e00079fb304
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4715
Reviewed-by: Alex von Gluck IV <kallisti5@unixzen.com>
2021-12-29 20:12:19 +00:00
X512
715304011f haiku_loader.riscv: update
* Moved machine mode code from kernel.
* Added MMU page table generation.
* Added QEMU ramfb video driver.

Change-Id: Icd67cd2e8dbf2b568d81ab8dd0d6127ca3cd97a8
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4302
Reviewed-by: Alex von Gluck IV <kallisti5@unixzen.com>
2021-12-29 20:07:31 +00:00
Adrien Destugues
0f2661cc08 Partially revert "ActivityMonitor: remove double buffering and custom background drawing"
This partially reverts commit cc0226fad0.

This commit caused high CPU usage in app_server. The double buffering in
ActivityMonitor is not to avoid flickering, it allows to draw just a few
pixels of the the curves at each update, and reuse most of the bitmap
from the previous run.

Removing this means all the curves are fully redrawn at each update,
resulting in higher CPU usage (one core at 30% on my machine with 5
different graphs).

Keep the part of the changes removing code for custom background
drawing. B_TRANSPARENT_VIEW flag can be used instead.

Change-Id: Ie3438ca634c934f3e96ce5f7ad71ce7b3a435013
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4833
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: Axel Dörfler <axeld@pinc-software.de>
2021-12-29 17:25:56 +00:00