Jérôme Duval
cedd85556c
kernel/x86: init the tsc frequency and clock speed from MSR when available
...
only for AMD newer CPUs. tested on R5300U
Change-Id: I44be2efca37b1738a759a15140e5fd8d3b5ac7b0
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5804
Reviewed-by: Jérôme Duval <[email protected] >
2022-11-07 09:03:52 +00:00
Jérôme Duval
af136a21bd
graphics/edid: add support for the CTA extension block
...
Change-Id: I2799496faf2f9383c703384a419d8d9fcffc75ab
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5803
Reviewed-by: Jérôme Duval <[email protected] >
Tested-by: Commit checker robot <[email protected] >
2022-11-07 09:02:42 +00:00
Jérôme Duval
c95c18768b
POSIX: wchar.h and wctype.h don't need the locale.h but locale_t.h
...
* missed in hrev56270.
* mentioned on IRC: <dwa> please ask them if wchar.h isn't meant to include locale_t.h instead of locale.h
Change-Id: Ia9b7553480430c2fefb4a3659ad525322152582b
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5797
Reviewed-by: Jérôme Duval <[email protected] >
Reviewed-by: Adrien Destugues <[email protected] >
Tested-by: Commit checker robot <[email protected] >
2022-11-02 14:09:08 +00:00
Jérôme Duval
4a55cc230c
script to parse supported ids for network drivers
...
format similar to lkddb
Change-Id: Ie46becca48d4d8b7b37106f28c68dd6f60fa3322
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5761
Tested-by: Commit checker robot <[email protected] >
Reviewed-by: Adrien Destugues <[email protected] >
2022-10-25 19:09:28 +00:00
Jérôme Duval
74622d8051
Devices: add vendor names for ACPI devices when available
...
files can be updated so:
curl --fail -L -o acpi_id_registry.html 'https://uefi.org/uefi-acpi-export '
curl --fail -L -o pnp_id_registry.html 'https://uefi.org/uefi-pnp-export '
Change-Id: Id0456f925729c635c5e2d43f80e9e016483b2611
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5753
Tested-by: Commit checker robot <[email protected] >
Reviewed-by: Jérôme Duval <[email protected] >
2022-10-25 07:09:10 +00:00
Jérôme Duval
876ddc1adb
mountvolume: return type of ContentName() is now BString
...
fixes #18011
Change-Id: Ie8dda950005c191c843535b12f7cf8f9819bdcfb
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5757
Reviewed-by: Jérôme Duval <[email protected] >
Tested-by: Commit checker robot <[email protected] >
2022-10-24 07:31:12 +00:00
Jérôme Duval
37f29a6f7a
usb_ecm: switch to the new driver API
...
Change-Id: I385d70b3245d6b18c3593cf2672445ccfb000f13
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5754
Reviewed-by: X512 <[email protected] >
Reviewed-by: Adrien Destugues <[email protected] >
Tested-by: Commit checker robot <[email protected] >
2022-10-24 06:31:55 +00:00
Jérôme Duval
41c1669de1
bin/acpi_call: command to call ACPI methods
...
adapted from the FreeBSD tool, uses ACPICA headers in userland mode.
Change-Id: Icba77b01e6e351df31538dda21520f0cc99b26bb
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5749
Reviewed-by: Jérôme Duval <[email protected] >
2022-10-19 12:57:04 +00:00
Jérôme Duval
8e17b43da6
kernel/device_manager: Implement B_GET_DRIVER_FOR_DEVICE
...
for legacy and new drivers.
This is an opcode for ioctl that can be used on almost any device entry found in /dev.
When used, ioctl will fill a buffer with the absolute path to the driver file that is
being used by the device.
This opcode was available in BeOS R5, though remained unimplemented in Haiku since
the introduction of the Device Manager almost two decades ago.
Original change by Jacob Secunda.
Change-Id: Ic49141b677b4158a63918459d4048450c825447c
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5078
Tested-by: Commit checker robot <[email protected] >
Reviewed-by: Jérôme Duval <[email protected] >
2022-10-17 06:13:07 +00:00
Jérôme Duval
caafd8470b
pch_i2c: add Meteor, Alder and Raptor Lake ids. add Lakefield ids.
...
Change-Id: I7acc2e0dd7b84ea3dc8f10bbe186ff0008aa7c2d
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5739
Tested-by: Commit checker robot <[email protected] >
Reviewed-by: waddlesplash <[email protected] >
2022-10-12 16:53:14 +00:00
Jérôme Duval
c3f23e8222
Devices: add a view for USB devices
...
Tried to match the USB classes to categories.
Change-Id: Id021730755060ab6a5149eea87f5e25370c67e1c
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5738
Reviewed-by: Fredrik Holmqvist <[email protected] >
2022-10-10 21:28:37 +00:00
Jérôme Duval
edeaa9c0c7
listusb: generate class code table from usb.ids, and use it
...
Change-Id: I43b79c5abc74306aba9a69991aeb5e110b2d790b
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5737
Reviewed-by: Fredrik Holmqvist <[email protected] >
2022-10-10 21:28:37 +00:00
Jérôme Duval
e6ce95c5ab
usb: register device nodes for hubs and devices
...
the device identifier is the USBID. no actual interface to be used by drivers.
Change-Id: I9fd1fdab0d02f1b82380c619b39bc3a12a9e2333
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5736
Tested-by: Commit checker robot <[email protected] >
Reviewed-by: Fredrik Holmqvist <[email protected] >
Reviewed-by: X512 <[email protected] >
Reviewed-by: waddlesplash <[email protected] >
2022-10-10 21:28:37 +00:00
Jérôme Duval
ee45779374
hda: add missing product entries for newer devices
...
should fix #17972
update some product entries for intel which requires the skylake quirk
remove product entries for intel which don't require snoop
Change-Id: I08f2bd640fe9bef4405abc9b2eaa83070b9adce9
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5719
Reviewed-by: waddlesplash <[email protected] >
2022-10-06 16:33:56 +00:00
Jérôme Duval
6652606fa4
usb: remove debug leftover
...
Change-Id: Idba6eaecb2c5b5773cd61794ac62fac1f7e3c1f9
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5715
Tested-by: Commit checker robot <[email protected] >
Reviewed-by: waddlesplash <[email protected] >
2022-10-05 18:17:52 +00:00
Jérôme Duval
f193f67fbe
pci_utils: get_class_info() needs at least 70 chars, make it 128.
...
seen on https://dev.haiku-os.org/attachment/ticket/17970/syslog_timestamp_hrev56511.txt#L131
Change-Id: I7d15c951e9c0349614f22d5b1348b43e105ba596
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5713
Reviewed-by: waddlesplash <[email protected] >
2022-10-05 16:27:11 +00:00
Jérôme Duval
3f7abfc9b5
usb: trigger the explore thread when a bus is added
...
this helps to find the boot disk, otherwise it can happen that the usb disk driver
misses a bus to explore.
Change-Id: I6983b42cf66f946b4ba9763ec09b6e4a848f2e9a
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5712
Reviewed-by: waddlesplash <[email protected] >
Tested-by: Commit checker robot <[email protected] >
2022-10-03 23:58:53 +00:00
Jérôme Duval
547ddb9090
uhci: switch to the new driver API
...
Change-Id: Ifc95a32066d0089d3fd41e489604d58815c074af
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5711
Reviewed-by: waddlesplash <[email protected] >
Tested-by: Commit checker robot <[email protected] >
2022-10-03 23:58:53 +00:00
Jérôme Duval
0ed2fb8d75
ohci: switch to the new driver API
...
Change-Id: I065743b5ced8b75f9576b62421525824698a2245
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5710
Tested-by: Commit checker robot <[email protected] >
Reviewed-by: waddlesplash <[email protected] >
2022-10-03 23:58:53 +00:00
Jérôme Duval
15ebede292
ehci: switch to the new driver API
...
Change-Id: I9102a27fe8e536003a0ab09c9cca5a87e88c8092
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5709
Reviewed-by: waddlesplash <[email protected] >
2022-10-03 23:58:53 +00:00
Jérôme Duval
3d0c08efaf
xhci: switch to the new driver API
...
keep the stack loaded when no bus is found
Change-Id: Ic2cf640ead7d94152651cea86a7977caa0920163
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5708
Reviewed-by: waddlesplash <[email protected] >
2022-10-03 23:58:53 +00:00
Jérôme Duval
1eebcfa03e
usb: add an interface for usb controllers using the new driver API
...
Change-Id: I25f481c8a7c3e4aafa3080640ce156b9232eaf73
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5707
Reviewed-by: waddlesplash <[email protected] >
2022-10-03 23:58:53 +00:00
Jérôme Duval
96985b8860
kernel/device_manager: make sure we can reload the driver before unloading it
...
for instance usb drivers are unloaded when unused, but they will be
loaded again when a matching device appears. this can only work when
the boot device is already mounted.
Change-Id: Ia92c679cffb6a1fac143c9f8b3bb570fb4555719
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5706
Tested-by: Commit checker robot <[email protected] >
Reviewed-by: waddlesplash <[email protected] >
2022-10-01 08:08:30 +00:00
Jérôme Duval
a4f09ce9d0
ext2: align dirent struct pointers with next_dirent()
...
Change-Id: Iaf102916d77f077c48348e2d1e7deff8f37d1232
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5634
Tested-by: Commit checker robot <[email protected] >
Reviewed-by: Jérôme Duval <[email protected] >
Reviewed-by: David Karoly <[email protected] >
Reviewed-by: waddlesplash <[email protected] >
2022-09-30 17:13:14 +00:00
Jérôme Duval
e065d697fb
Disk Device Manager: checks the raw content_name when editing a partition
...
also only provide a default name for partition containing a file system
fix #17958
Change-Id: Ib5a8928dc5272a400a99aa05b792201f3a6a2c7d
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5705
Tested-by: Commit checker robot <[email protected] >
Reviewed-by: waddlesplash <[email protected] >
2022-09-30 17:10:39 +00:00
Jérôme Duval
2b9426c90a
hda: detect one more intel audio device per device ID
...
Change-Id: I91de99c0242a2546e0a3cac94a4f46719f048889
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5699
Reviewed-by: waddlesplash <[email protected] >
2022-09-26 17:32:17 +00:00
Jérôme Duval
fbca1c4088
kernel/x86_64: configure LFENCE as a serializing instruction on AMD
...
Change-Id: I152bf41c3479f81fc458abdf8d89874ffa3a08d7
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5691
Reviewed-by: Jérôme Duval <[email protected] >
2022-09-25 08:15:15 +00:00
Jérôme Duval
a6e9176bc5
x86_64: prefix rdtsc with lfence, or use rdtscp if available
...
a strong monotonicity is a property of system_time(). Performance should be
a bit impacted (around 10%).
removed omit-frame-pointer hints as the compiler generates the same without.
Change-Id: I920145d616604f32b38d9e134ce83f3e0e848bc7
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5690
Reviewed-by: Adrien Destugues <[email protected] >
Tested-by: Commit checker robot <[email protected] >
2022-09-25 08:13:49 +00:00
Jérôme Duval
2e69f2b076
kernel/x86: init the tsc frequency and clock speed from CPUID when available
...
only for Intel newer CPUs.
Change-Id: Icd83f3b643796bfb3725b5c8877b9e7828bc71d9
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5688
Reviewed-by: Adrien Destugues <[email protected] >
Reviewed-by: Fredrik Holmqvist <[email protected] >
Reviewed-by: Alex von Gluck IV <[email protected] >
Tested-by: Commit checker robot <[email protected] >
2022-09-24 00:35:02 +00:00
Jérôme Duval
ca6d474a73
virtio_block: add support for the topology feature
...
gets the physical block size
Change-Id: I7b4d80874d1463a5122c34171956af2b267b1c69
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5669
Tested-by: Commit checker robot <[email protected] >
Reviewed-by: Adrien Destugues <[email protected] >
2022-09-23 06:56:01 +00:00
Jérôme Duval
143a5f8ce6
DriveSetup: add a column for the physical block size
...
Change-Id: Id43df9eb4a3619ba265ed25aeb7ec82d0a26358c
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5668
Reviewed-by: Adrien Destugues <[email protected] >
Reviewed-by: Fredrik Holmqvist <[email protected] >
2022-09-23 06:56:01 +00:00
Jérôme Duval
688acf41a3
add physical_block_size field where applicable
...
only scsi_disk checks the actual value, other drivers take the logical block size.
This change reports the physical block size from the disk rather than the block
size used by IDE/SATA/SCSI commands. On typical modern SATA disks, the SATA
commands will use 512 byte blocks, but the disk will actually read and write
4K blocks internally. This is only of importance for partition alignment for DriveSetup,
and is independant of file systems or partitioning systems. This could also influence
the recommended block size for some file systems.
Change-Id: Id0f2e22659e89fcef64c1f8d04f81cd68995e01f
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5667
Tested-by: Commit checker robot <[email protected] >
Reviewed-by: Adrien Destugues <[email protected] >
2022-09-23 06:56:01 +00:00
Jérôme Duval
285fe6257a
libroot: fix *_np functions signature
...
fix f33f4868fe
*_np functions are in a not included header.
add weak aliases for the future functions without _np.
Change-Id: Ie2bcc9173a2b93a6c4052c039cb37930c1c3aaa1
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5685
Tested-by: Commit checker robot <[email protected] >
Reviewed-by: waddlesplash <[email protected] >
2022-09-22 04:32:15 +00:00
Jérôme Duval
146d687026
cpu_type.h: remove vendor string at any place
...
fix bug #17951
Change-Id: Icc0ac964ff9c6322612dadb459d28a97ac69e91a
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5686
Tested-by: Commit checker robot <[email protected] >
Reviewed-by: Jérôme Duval <[email protected] >
2022-09-21 19:02:08 +00:00
Jérôme Duval
799ab823bb
libroot: Add support for C11 Threads missing parts (except gcc2).
...
The respective files can be found in the FreeBSD source tree at:
- lib/libstdthreads/call_once.c
- lib/libstdthreads/cnd.c
- lib/libstdthreads/mtx.c
- lib/libstdthreads/threads.h
- lib/libstdthreads/tss.c
Missing is support for PTHREAD_DESTRUCTOR_ITERATIONS.
Change-Id: I7a6c79954f36195eadd1351d308c21a001192232
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5675
Reviewed-by: Fredrik Holmqvist <[email protected] >
Tested-by: Commit checker robot <[email protected] >
2022-09-19 19:45:45 +00:00
Jérôme Duval
a9ada46be8
ahci: propagate physical block size to scsi read capacity 16
...
Change-Id: I8dab117fe8da9fc6e0f18adaa178ff79bc7c6ae4
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5666
Tested-by: Commit checker robot <[email protected] >
Reviewed-by: Jérôme Duval <[email protected] >
2022-09-16 09:16:19 +00:00
Jérôme Duval
750afaef94
bfs: disable some block sizes when the partition size is too small
...
these would otherwise trigger an assert when initializing.
fixes #6781
Change-Id: I4fa34455e7734f6a4039705527bf5ab09b46998d
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5659
Reviewed-by: Adrien Destugues <[email protected] >
2022-09-13 18:48:25 +00:00
Jérôme Duval
eac10866e2
DriveSetup: select the actual partition type instead of defaulting to BeFS
...
Change-Id: Id73ad3398e802eb10b1928317bb9987ddee30eb6
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5658
Reviewed-by: Adrien Destugues <[email protected] >
2022-09-13 18:48:25 +00:00
Jérôme Duval
6b3e198d41
gpt: let the type be changed
...
Change-Id: I1c049c28b416d13b679aa32eb8cbc41a3273a05d
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5657
Reviewed-by: waddlesplash <[email protected] >
2022-09-13 18:48:25 +00:00
Jérôme Duval
6b7504173c
kernel: KPartitioningSystem::SetType() should use the child ID
...
KPartitioningSystem::SetName() and KPartitioningSystem::SetType() are very similar.
SetName() already worked for GPT, and with this change SetType() now works for GPT too.
Change-Id: If1456a8f5e94ae2e2a05b75e3691f912bd1324ee
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5656
Reviewed-by: waddlesplash <[email protected] >
Tested-by: Commit checker robot <[email protected] >
2022-09-13 18:48:25 +00:00
Jérôme Duval
124ae7cc2f
app_server: store the brightness with the current screen config if absent
...
when no screen configuration is found, the preferred mode is then selected,
and we now use this as current screen configuration. Otherwise, the user
would adjust the brightness, but it would never be stored for the next boot.
Change-Id: Ia855f8a29eb5e429747f3e0bc89a46587fa42f59
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5624
Tested-by: Commit checker robot <[email protected] >
Reviewed-by: waddlesplash <[email protected] >
2022-09-10 16:39:13 +00:00
Jérôme Duval
61790bdb8a
partitioning_systems: create libpartitioning_systemscommon for common files
...
Change-Id: I1b3c2f9bad60024a7a07ae4bbfe3970ac5ae42b4
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5632
Tested-by: Commit checker robot <[email protected] >
Reviewed-by: Adrien Destugues <[email protected] >
2022-09-10 11:21:23 +00:00
Jérôme Duval
5d4091e214
hda: detect one more intel audio device per device ID
...
Change-Id: Ic1e96f1326c0bc7de408c94bf121198888559939
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5627
Reviewed-by: waddlesplash <[email protected] >
2022-09-08 14:19:19 +00:00
Jérôme Duval
8045bb174e
kernel/vm: also honor page protections on copy-on-write
...
this fixes #17895
Change-Id: Ide6cb044cf96213b4bae7eb62235f988b73c0fb1
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5601
Tested-by: Commit checker robot <[email protected] >
Reviewed-by: waddlesplash <[email protected] >
2022-08-30 16:43:41 +00:00
Jérôme Duval
46c2fb2ffe
kernel/fd: use loop variable type size_t
...
when count type is size_t.
Change-Id: Id68582fbd2243d65394e0c2c4d43272823bf778e
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5543
Reviewed-by: waddlesplash <[email protected] >
2022-08-25 17:12:19 +00:00
Jérôme Duval
013719cfc6
kernel: get_iovecs_from_user(): checks total iovec length against SSIZE_MAX
...
* the return type for recvmsg(), sendmsg(), readv(), writev() is ssize_t.
* check required by POSIX.
* fix memory leaks on failure introduced in 00f1e7c5e4
Change-Id: Ibf74ae2035b7e9c7a3db3613f60e06672ded4db0
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5542
Tested-by: Commit checker robot <[email protected] >
Reviewed-by: waddlesplash <[email protected] >
2022-08-17 19:44:30 +00:00
Jérôme Duval
e963cd2723
putenv: handles a string starting with = as error
...
Change-Id: I1ff288080ac468b5f8a75f2064e68e8086dc7a69
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5539
Tested-by: Commit checker robot <[email protected] >
Reviewed-by: waddlesplash <[email protected] >
2022-08-09 20:07:20 +00:00
Jérôme Duval
ed867da973
network/dns_resolver: fix memory leak when read_port() fails
...
and dns_resolver_repair() succeeds.
reply allocated at line 178, not freed on continue.
Change-Id: I8fc9d02512ab741d34b0f6bd4710bb1bd29ddaae
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5532
Reviewed-by: waddlesplash <[email protected] >
Tested-by: Commit checker robot <[email protected] >
2022-08-08 15:25:10 +00:00
Jérôme Duval
fc473ac261
kernel/vm: _user_set_memory_protection() should only check the user protection
...
as it extends the provided protection with the kernel protection.
fix hrev55016
Change-Id: I9fa9349c15b4ef896a9dadd1b1b7a4165cc03b39
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5531
Tested-by: Commit checker robot <[email protected] >
Reviewed-by: waddlesplash <[email protected] >
2022-08-08 15:17:57 +00:00
Jérôme Duval
265899da3a
radeon_hd: from Cedar, memory sizes as bytes only for PALM/SUMO/SUMO2
...
should help with #17664
register change from Tahiti for #17377
Change-Id: I52b9691cd6a04b58b70e905bc29e803f06936789
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5526
Reviewed-by: John Scipione <[email protected] >
Tested-by: Commit checker robot <[email protected] >
2022-08-05 12:42:57 +00:00
Jérôme Duval
b9643e557d
radeon_hd: disable two non-working device ids
...
Change-Id: Ia553e0f1036a8eb7d7d95cf1b78f4333a3d5c1df
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5517
Reviewed-by: Jérôme Duval <[email protected] >
Tested-by: Commit checker robot <[email protected] >
2022-08-02 14:26:56 +00:00
Jérôme Duval
652a775f28
intel_extreme: on gen12 PIPE_DDI_FUNC_CTL_EDP seems unreliable
...
this is only useful when connecting an external screen, and the laptop actually uses it on boot.
should help with #17706
Change-Id: Ia3434f76cf6210b743f17d5559d031c089cbcd85
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5518
Tested-by: Commit checker robot <[email protected] >
Reviewed-by: Jérôme Duval <[email protected] >
2022-08-01 17:37:58 +00:00
Jérôme Duval
c34b7168f4
radeon_hd: auxPin zero is valid, check also on eDP type
...
EDID is correctly read. It can then be passed to the app_server.
At least the app_server tries to set the native resolution.
It doesn't really help to get further, because the ATOMBios code can't handle newer
table versions (for instance 3.2).
Change-Id: If68828bcfda447ecf7d4432ae2872bbdbc0704d5
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5508
Tested-by: Commit checker robot <[email protected] >
Reviewed-by: Alex von Gluck IV <[email protected] >
2022-07-28 20:57:41 +00:00
Jérôme Duval
0db74b55dc
btrfs: fix SMAP violation, reading inline uncompressed data
...
should fix for #17061
Change-Id: I5973be6c443e8cf4460c6a3aca7b5378e90d717b
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5426
Reviewed-by: waddlesplash <[email protected] >
2022-06-30 15:47:08 +00:00
Jérôme Duval
374a3a07a1
libtracker: don't try to fix permissions on read-only volumes
...
* instead try to guess the type, find the app, and launch the app with the document refs.
* fix #5783
Change-Id: Icd25a81ff28038fec0494045390edc6271433b07
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5425
Reviewed-by: waddlesplash <[email protected] >
2022-06-30 15:47:08 +00:00
Jérôme Duval
187f73dbf5
bfs: take in account the block_run allocation group when computing reserved blocks.
...
after hrev56221, the block bitmaps can span over multiple allocation groups.
Blocks would be allocated in the block bitmaps, especially root indexes (for instance 2.5TB, blocksize 2k).
Change-Id: I35d21d48e84945e5f949a272d530c466ae6506ac
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5420
Tested-by: Commit checker robot <[email protected] >
Reviewed-by: waddlesplash <[email protected] >
2022-06-30 08:25:12 +00:00
Jérôme Duval
b5417d2089
bfs: don't allocate more than the maximum in an AllocationGroup
...
* The reserved blocks could exhaust the first allocation group, so iterate as much as needed.
* fix #11753
Change-Id: Ib1d7f87946f7b96dfcade8f5778a14065d965f6b
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5417
Reviewed-by: waddlesplash <[email protected] >
Tested-by: Commit checker robot <[email protected] >
2022-06-28 06:02:19 +00:00
Jérôme Duval
1e68c512da
runtime_loader: accept type STT_FUNC when STT_OBJECT is requested
...
trying to load a PIE executable produced by golang show the following (for pthread_create)
12: 0000000000000000 0 OBJECT GLOBAL DEFAULT UND pthread_create
12655: 0000000000000000 0 NOTYPE GLOBAL DEFAULT UND pthread_create
It's the same for Linux or Solaris, so I suppose we're being too picky.
Change-Id: Ibe817c231365aba8b2eb88eb3f556d2bd1db384a
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5392
Tested-by: Commit checker robot <[email protected] >
Reviewed-by: Jérôme Duval <[email protected] >
2022-06-28 06:02:01 +00:00
Jérôme Duval
caf0369a89
ext2: check volume state when mounting
...
we deny mounting read/write when not clean or with errors.
Change-Id: Ie0188319618d9d8e7199b308c007fbaeacaed87c
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5400
Tested-by: Commit checker robot <[email protected] >
Reviewed-by: Jérôme Duval <[email protected] >
2022-06-25 20:16:06 +00:00
Jérôme Duval
732f5f0f87
ext2: accept block count until the disk size plus one
...
my understanding is that it's possible that the last block (for instance of size 4KB)
is too large for the last few partition sectors, if the partition size isn't a multiple
of the block size.
Change-Id: I88c709d6e449aa52358fd9343c9f68f7ac1c01fe
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5399
Reviewed-by: Adrien Destugues <[email protected] >
Tested-by: Commit checker robot <[email protected] >
2022-06-25 20:16:06 +00:00
Jérôme Duval
442298d494
kernel/devfs: improve devfs_compute_geometry_size
...
the old code could lead to an odd head count, thus a smaller partition size.
with power of two, this works at least accurately if the size is aligned.
we should probably introduce a new ioctl or extend the current one to avoid this problem.
Change-Id: Ia6c034262b1756e901d6ad76ab17b278b2314631
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5398
Reviewed-by: Adrien Destugues <[email protected] >
Tested-by: Commit checker robot <[email protected] >
2022-06-25 20:16:06 +00:00
Jérôme Duval
d2e5fc7fa4
usb_disk: add support for drives bigger than 2TB
...
* tested read/write with a NTFS partition at the end of a 5TB USB hard disk.
* fix #14670
Change-Id: Ic005dfb7ef94b50a2d6fc8099ef5c83ec6b4a730
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5397
Tested-by: Commit checker robot <[email protected] >
Reviewed-by: waddlesplash <[email protected] >
2022-06-25 07:05:26 +00:00
Jérôme Duval
e49b671dcf
kernel/vfs: lstat a symlinked dir with a trailing slash should traverse
...
golang's TestSymlinkWithTrailingSlash exhibits the bug.
Change-Id: I7e16bad9857e9be042fc215a587c861bc4eef716
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5395
Reviewed-by: waddlesplash <[email protected] >
Tested-by: Commit checker robot <[email protected] >
2022-06-24 08:31:44 +00:00
Jérôme Duval
032b1422c2
kernel/device_manager: don't insert device node before nodes of the same priority
...
fix #16512
Change-Id: I76ce4cfc9346492008c11ca53302ca4df6a6b514
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5393
Reviewed-by: Adrien Destugues <[email protected] >
2022-06-21 16:55:01 +00:00
Jérôme Duval
177a801206
kernel: fix trace build for fd.cpp and fifo.cpp
...
Change-Id: I12b2e85926ae63eaba5c077343cdaa2362cf8af1
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5391
Reviewed-by: waddlesplash <[email protected] >
2022-06-20 15:29:43 +00:00
Jérôme Duval
85344c112c
intel_extreme: also set hw_cdclk on Broadwell
...
this needed for dp aux before skylake, only for DP A (eDP).
should help with #17771
Change-Id: I4bdcca1fdc05294fb5b56c5c96164b6936a5881e
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5355
Tested-by: Commit checker robot <[email protected] >
Reviewed-by: Adrien Destugues <[email protected] >
2022-06-05 14:29:17 +00:00
Jérôme Duval
6ba3c443a2
atheros813x: apply fix from OpenBSD
...
* https://github.com/openbsd/src/commit/10fd7e381796b38e2a5ec6e1ecb7faaf1087fa13
"Force maximum payload size to 128 bytes for AR816X/AR817x as it triggers"
* could help for #16978
Change-Id: I626e364adcabaa9b3d7e4c1078067c1d82c7d4e3
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5340
Tested-by: Commit checker robot <[email protected] >
Reviewed-by: waddlesplash <[email protected] >
2022-06-01 20:11:00 +00:00
Jérôme Duval
a8db4bae55
libroot: system() should ignore SIGINT, SIGQUIT while waiting
...
https://pubs.opengroup.org/onlinepubs/9699919799/functions/system.html
Change-Id: Ic9919e403fb4e6ee4406b0c33789fe8b00b22d1f
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5341
Reviewed-by: waddlesplash <[email protected] >
Tested-by: Commit checker robot <[email protected] >
2022-05-26 18:48:02 +00:00
Jérôme Duval
9e991b61fe
intel_extreme: switch FDI to i915 register naming
...
Change-Id: Ib7382240a2bc07dbbd2aed7647b06f14a6c5cb4c
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5335
Tested-by: Commit checker robot <[email protected] >
Reviewed-by: Jérôme Duval <[email protected] >
2022-05-24 15:52:46 +00:00
Jérôme Duval
59ce1ffe61
intel_extreme: check internal crt feature in VBT for analog probe on DDI
...
* also uses the BAR size when dumping regs (as done by the intel_reg tool).
Change-Id: Ie29768afc8f9c42bb9a03b2866db34c4b0e43b7d
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5334
Reviewed-by: Jérôme Duval <[email protected] >
Tested-by: Commit checker robot <[email protected] >
2022-05-24 15:52:46 +00:00
Jérôme Duval
c35e9b906a
ScreenMode: add some manufacturers
...
Change-Id: Id3eea56f5e0d453817eaedb4f1d6a6014af8f9e3
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5321
Reviewed-by: Adrien Destugues <[email protected] >
2022-05-19 19:17:50 +00:00
Jérôme Duval
514c42d740
intel_extreme: improve DpAux support on HSW/SNB/IVB
...
hraw_clock is possibly dynamic, but for the usecase this seems good enough.
Tested on SandyBridge and Haswell laptops.
Change-Id: I045b3c03f6b37bbffb3d8688658ffaa2a97311ae
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5319
Tested-by: Commit checker robot <[email protected] >
Reviewed-by: Jérôme Duval <[email protected] >
2022-05-18 22:02:01 +00:00
Jérôme Duval
fe3aff01c0
intel_extreme: probe DP AUX or/and DDC on DDI ports
...
* the VBT tells whether DDI ports can have both DP and HDMI/DVI as outputs.
* tested on Dell Optiplex 9020 Gen7/Haswell with an HDMI/DP adapter on a DP connector.
* avoids enabling a down DDI port when an EDID is found: the display isn't setup by the BIOS.
Change-Id: I69487a2fcb74899d7c22d04e955e776b0e739151
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5317
Tested-by: Commit checker robot <[email protected] >
Reviewed-by: Jérôme Duval <[email protected] >
2022-05-17 18:36:42 +00:00
Jérôme Duval
92450935b2
intel_extreme: when DDI A eDP port isn't enabled by the BIOS, don't enable
...
we might be connected with an external port (HDMI or DP) which would be later found.
Change-Id: Ibeab4abb651e5b37d7a0fa452286ee34dec7dfbd
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5306
Tested-by: Commit checker robot <[email protected] >
Reviewed-by: Jérôme Duval <[email protected] >
2022-05-11 18:01:28 +00:00
Jérôme Duval
f808e87ad0
intel_extreme: the eDP port on DDI is mostly found on port A
...
* for eDP a displayport output should also be found als VBT device type.
* should help with #17730
Change-Id: I893bd2dabfd1730ab545336e2f9a5b15abc194a4
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5299
Tested-by: Commit checker robot <[email protected] >
Reviewed-by: Jérôme Duval <[email protected] >
2022-05-09 07:43:39 +00:00
Jérôme Duval
7ff9722ae3
intel_extreme: reuse DpAux code for DisplayPort
...
the code is moved in the Port class.
Change-Id: I3beb337e29b26ee4732224723c5b76b5f415a248
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5291
Tested-by: Commit checker robot <[email protected] >
Reviewed-by: Jérôme Duval <[email protected] >
2022-05-05 16:26:03 +00:00
Jérôme Duval
1c23e6bcf1
intel_extreme: leverage VBT device type for internal panel
...
* also handle dp aux on PCH.
* tested on Gen7, should work from Gen6.
Change-Id: I8d99bcdc10c817e66441a6a644df490dd988a74d
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5290
Tested-by: Commit checker robot <[email protected] >
Reviewed-by: Jérôme Duval <[email protected] >
2022-05-05 16:26:03 +00:00
Jérôme Duval
459f1bcd8d
intel_extreme: irq hotplug support for IceLake and newer PCH.
...
we enable every port interrupt instead of relying on the ports found in the VBT.
ATM only log the plug state when it changes.
Change-Id: I5175fb137d11f0114beb2915a4f363341cfe8e36
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5287
Reviewed-by: Jérôme Duval <[email protected] >
2022-05-03 18:15:48 +00:00
Jérôme Duval
46bbf334f6
intel_extreme: parse VBT device configs, use this to skip unused ports
...
* BDB version from 111
* for DDI from Gen9
* for HDMI and DisplayPort from Gen6
* use the first port to create the mode list
* also probe DDI Port A
* the aux channel helps to select the correct dp aux registers.
Change-Id: I80549a6ec0477bed768cc5f388959b606d50c1b7
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5286
Tested-by: Commit checker robot <[email protected] >
Reviewed-by: Jérôme Duval <[email protected] >
2022-05-03 08:48:34 +00:00
Jérôme Duval
cf5f513b3b
file_systems: add entry_cache_(add/missing) in btrfs,ext2,exfat lookup methods.
...
Change-Id: I77857421a65f371bc885f1d4eb66ef2ab4376e56
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5252
Tested-by: Commit checker robot <[email protected] >
Reviewed-by: waddlesplash <[email protected] >
2022-04-28 19:16:48 +00:00
Jérôme Duval
1d2cf139a8
strace: trace fcntl and wait_for_child syscalls parameters
...
Change-Id: I774e8343139a2bdb3c2f60f37cab3a7207739c7c
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5251
Reviewed-by: waddlesplash <[email protected] >
Tested-by: Commit checker robot <[email protected] >
2022-04-27 06:00:58 +00:00
Jérôme Duval
f123acc1d9
Terminal: COLORTERM=truecolor to mean 24 bit color support
...
this fixes mc support for 256-color skins.
bug #17719
Change-Id: Ifead9fc3acf396cada6f9ce4d83579657b74c86f
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5249
Reviewed-by: Fredrik Holmqvist <[email protected] >
Tested-by: Commit checker robot <[email protected] >
2022-04-25 19:27:21 +00:00
Jérôme Duval
5847cd11a6
net_stack: don't write notify listen sockets
...
bug #17714
Change-Id: I91f6340bcda142b5eea12c0739b36e2f90af8ad3
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5247
Tested-by: Commit checker robot <[email protected] >
Reviewed-by: waddlesplash <[email protected] >
2022-04-25 19:26:05 +00:00
Jérôme Duval
305aa60f0c
mime_db: New audio/x-scpls MIME type for PLS Playlist
...
Change-Id: I1a8437c611285f96a3bc90201c6781a7fbd861f8
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5248
Tested-by: Commit checker robot <[email protected] >
Reviewed-by: waddlesplash <[email protected] >
2022-04-25 06:48:56 +00:00
Jérôme Duval
67077e0ca0
intel_extreme: adjust PCH definitions for ADP and ICP
...
Change-Id: I2c2682e7e99e61a48b00155b4e60a457a8862117
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5215
Tested-by: Commit checker robot <[email protected] >
Reviewed-by: Adrien Destugues <[email protected] >
2022-04-21 18:30:40 +00:00
Jérôme Duval
6715abde89
intel_extreme: four pipes from gen12
...
Change-Id: I1dd41b4be80acb1784180d1e4a7ea4d9947b6dd5
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5214
Tested-by: Commit checker robot <[email protected] >
Reviewed-by: Adrien Destugues <[email protected] >
2022-04-21 18:29:52 +00:00
Jérôme Duval
0f01971951
intel_extreme/DDI: _DpAuxTransfer(), check read buffer before copying to it
...
happens in #17713
Change-Id: I7a4214af70a9ebca8ee70c507a704771c194e92d
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5223
Tested-by: Commit checker robot <[email protected] >
Reviewed-by: Adrien Destugues <[email protected] >
2022-04-21 18:29:50 +00:00
Jérôme Duval
6c02429697
intel_extreme: set/get brightness in legacy mode for gen2,i915GM,i945GM
...
untested, see #15448
Change-Id: Iaf0cdacd39ebadfc143b072bdd6f5435a1394f45
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5222
Tested-by: Commit checker robot <[email protected] >
Reviewed-by: Adrien Destugues <[email protected] >
2022-04-21 18:29:23 +00:00
Jérôme Duval
aa8239a5ad
intel_extreme: add IDs for Comet Lake
...
untested, similar to Kaby Lake.
pending bug report from scott_puopolo18
Change-Id: I9dad02a5f39683687de943f950dc3c1a493622a1
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5216
Tested-by: Commit checker robot <[email protected] >
Reviewed-by: Adrien Destugues <[email protected] >
2022-04-21 18:27:49 +00:00
Jérôme Duval
eb22dbd032
libroot: check timeout interval parameter in ppoll(), pselect() and select()
...
* also introduce timeval_to_bigtime
* time_private is c++ only
Change-Id: I2bddbe5f95240735c7b42ccf429dcbb3f1e8bb1b
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5220
Tested-by: Commit checker robot <[email protected] >
Reviewed-by: waddlesplash <[email protected] >
Reviewed-by: Adrien Destugues <[email protected] >
2022-04-21 15:50:32 +00:00
Jérôme Duval
30294b6d05
ext2: use st_blocks from the disk inode structure
...
* this lets cp from coreutils use lseek to find the data chunks in a
sparse file.
* fix endian conversion macro used for num_blocks_high
Change-Id: I221d6316002b1c491ae987aeef3f25e8721b5ab9
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5218
Reviewed-by: Adrien Destugues <[email protected] >
Tested-by: Commit checker robot <[email protected] >
2022-04-20 18:16:34 +00:00
Jérôme Duval
b47557049c
intel_extreme: check EDID for DDI interface E, not only the VBT
...
fix #17706
Change-Id: I23f260b179cdfabee391d9426a30ec636cafff8e
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5212
Reviewed-by: Jérôme Duval <[email protected] >
Tested-by: Commit checker robot <[email protected] >
2022-04-19 08:29:48 +00:00
Jérôme Duval
0c729c2291
nfs: fix SMAP violation on write
...
also rewrite the fix on read for consistency.
should fix #17708
Change-Id: Ia75ed90ba427db7a7d96aff3457fbce61e857533
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5211
Tested-by: Commit checker robot <[email protected] >
Reviewed-by: waddlesplash <[email protected] >
2022-04-18 14:48:35 +00:00
Jérôme Duval
e5d9d907ee
intel_extreme: adjust brightness level for Gen4
...
preserve bits before Gen4
Change-Id: Icf80ec469c3682223f0db1744a5c923fb06bd7fd
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5190
Tested-by: Commit checker robot <[email protected] >
Reviewed-by: Adrien Destugues <[email protected] >
2022-04-12 11:29:27 +00:00
Jérôme Duval
d271377590
intel_extreme: brightness setting support for Kaby Lake
...
Change-Id: Ie78a034077f3be8faaaf83ab80a0ae6c1c001bc0
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5187
Reviewed-by: Adrien Destugues <[email protected] >
Tested-by: Commit checker robot <[email protected] >
2022-04-12 11:29:27 +00:00
Jérôme Duval
b995f6a764
hda: detect two intel audio devices per device ID
...
from https://linux-hardware.org/?view=search&name=HD+Audio&vendorid=8086&classid=04-01#list
Change-Id: Icd1dda5654783bb6f0633613218f8637dc4271a5
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5179
Tested-by: Commit checker robot <[email protected] >
Reviewed-by: Jérôme Duval <[email protected] >
2022-04-07 05:54:28 +00:00
Jérôme Duval
8386ba2747
Terminal: fixes motion events
...
* fReportButtonMouseEvent 1002 means only drag events are to be reported.
* only one of the modes 1000/1002/1003 can be selected.
* makes sure to report a button when dragging.
* secondary and tertiary buttons were reversed.
* extended buffer is now filled with snprintf.
* fixes #17684
Change-Id: I59d80937ae193343dc1e7006c4371320fc2182d7
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5184
Tested-by: Commit checker robot <[email protected] >
Reviewed-by: waddlesplash <[email protected] >
2022-04-07 05:54:06 +00:00
Jérôme Duval
dbcbe07a1b
runtime_loader: review after ebeab0cf70
...
* memset should happen after the NULL check
* useless casts
Change-Id: Id96e7861154b554dd927bf5dde2329c8acd2fdca
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5181
Tested-by: Commit checker robot <[email protected] >
Reviewed-by: X512 <[email protected] >
Reviewed-by: waddlesplash <[email protected] >
2022-04-06 13:10:52 +00:00
Jérôme Duval
f0a1b22183
intel_extreme: hook dp_aux channel to the i2c common ddc for DigitalDisplayInterface ports
...
This assumes a Gen9 or Gen11 configuration, and aux channel 0. As a result, the same EDID will
be found for every DDI port. The mapping should be found in the VBT.
Tested on KabyLake and JasperLake
Change-Id: I27f5ac8ec8e6ba519fbe9aaf745e78a7361175b9
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5175
Reviewed-by: Adrien Destugues <[email protected] >
2022-04-05 14:47:59 +00:00
Jérôme Duval
3c263adf2c
intel_extreme: rework interrupt handler for gen8 til gen11
...
minimize register reads/writes.
makes more interrupt handling easier to add, for instance iir interrupts.
Change-Id: I97a7e9fcc9273ada6c0f12d5343bf7804f8bdd20
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5174
Tested-by: Commit checker robot <[email protected] >
Reviewed-by: Adrien Destugues <[email protected] >
2022-04-05 14:47:59 +00:00