| 14f0497a | 14-Nov-2021 |
Emmanuel Vadot <[email protected]> |
loader: Add more bus name to pnpautoload
Add ofwbus, iicbus and spibus to pnpautoload so modules under those buses will be loaded. On my rockpro64 now : OK pnpautoload -v Autoloading modules for sim
loader: Add more bus name to pnpautoload
Add ofwbus, iicbus and spibus to pnpautoload so modules under those buses will be loaded. On my rockpro64 now : OK pnpautoload -v Autoloading modules for simplebus Using DTB provided by EFI at 0x8100000. Autoloading modules for ofwbus /boot/kernel/rk_spi.ko text=0x14b2 text=0xd4c data=0x4d0+0x8 syms=[0x8+0xa98+0x8+0x807] /boot/kernel/dwwdt.ko text=0x12e2 text=0x78c data=0x4c8+0x10 syms=[0x8+0x990+0x8+0x6e1] Autoloading modules for iicbus Autoloading modules for spibus /boot/kernel/mx25l.ko text=0x1613 text=0x114c data=0x6e8+0x8 syms=[0x8+0xa08+0x8+0x665] loading required module 'fdt_slicer' /boot/kernel/fdt_slicer.ko text=0x95e text=0x340 data=0x290 syms=[0x8+0x6c0+0x8+0x4a0]
(cherry picked from commit 4c0c353d0e48d06f82cae16aba02e5923794ba98)
show more ...
|
| c95afea4 | 13-Dec-2021 |
Emmanuel Vadot <[email protected]> |
loader: bcache: Fix debug printf
Use %j to it works on 64 and 32 bits system.
Reviewed by: imp, tsoome MFC after: 2 weeks Sponsored by: Beckhoff Automation GmbH & Co. KG Differential Revision: http
loader: bcache: Fix debug printf
Use %j to it works on 64 and 32 bits system.
Reviewed by: imp, tsoome MFC after: 2 weeks Sponsored by: Beckhoff Automation GmbH & Co. KG Differential Revision: https://reviews.freebsd.org/D33430
(cherry picked from commit 8ed8b4203a2f9b1bd337b8af26021ae2240a0ee8)
show more ...
|
| 37e1449d | 10-Dec-2021 |
Emmanuel Vadot <[email protected]> |
loader: Add preload operation to fs_ops
When we load an ELF file (kernel or module) we do seek(2) a lot to parse/load the different sections of the ELF file. Protocol like TFTP suffers a lot from th
loader: Add preload operation to fs_ops
When we load an ELF file (kernel or module) we do seek(2) a lot to parse/load the different sections of the ELF file. Protocol like TFTP suffers a lot from this as there is no resume or a way to start the tranfer from a specified offset in the file. fs_preload is added to help those protocol. Call preload just after opening the ELF file that we need to load so the underlying method can cache the hole file and then read/lseek operations are faster.
Reviewed by: imp MFC after: 2 weeks Sponsored by: Beckhoff Automation GmbH & Co. KG Differential Revision: https://reviews.freebsd.org/D33409
(cherry picked from commit c25d9aff4607e7f1c378b0b7853e49c07c0af91a)
show more ...
|
| 835f59f3 | 17-Dec-2021 |
Toomas Soome <[email protected]> |
loader.efi: to preserve heap space, use AllocatePages() for shadow_fb
shadow FB size could be rather large and depends on resolution, instead of using heap, allocate dedicated space outside of heap.
loader.efi: to preserve heap space, use AllocatePages() for shadow_fb
shadow FB size could be rather large and depends on resolution, instead of using heap, allocate dedicated space outside of heap.
Reviewed by: manu Differential Revision: https://reviews.freebsd.org/D33600
(cherry-picked from 221376db0cb77035e325baf8b54d6224925b41f8)
show more ...
|
| 3684bb89 | 19-Sep-2021 |
Colin Percival <[email protected]> |
MFC: Improve readahead in loader
style: Fix leading whitespace in bcache.c loader: Refactor readahead adjustment in bcache loader bcache: Track unconsumed readahead loader bcache: Allow readahead up
MFC: Improve readahead in loader
style: Fix leading whitespace in bcache.c loader: Refactor readahead adjustment in bcache loader bcache: Track unconsumed readahead loader bcache: Allow readahead up to 256 kB I/Os
Sponsored by: https://www.patreon.com/cperciva
(cherry picked from commit 5a01dea7e8c9640605e5731a9fc7f600c07ace61) (cherry picked from commit b841148bbbdc967c871e8742a6f0b7b17b2d1d91) (cherry picked from commit 04b9b7c507c52daf7b2999329a50825db098151f) (cherry picked from commit 248682a589159619aa5f2019e415a423e849e327)
show more ...
|
| 57e897ec | 20-Aug-2021 |
Maxim Sobolev <[email protected]> |
Only trigger read-ahead if two adjacent blocks have been requested.
The change makes block caching algorithm to work better for remote media on low-BW/high-delay links.
This cuts boot time over IP
Only trigger read-ahead if two adjacent blocks have been requested.
The change makes block caching algorithm to work better for remote media on low-BW/high-delay links.
This cuts boot time over IP KVMs noticeably, since the initialization stage reads bunch of small 4th (and now lua) files that are not in the same cache stripe (usually), thus wasting lot of bandwidth and increasing latency even further.
The original regression came in 2017 with revision 87ed2b7f5. We've seen increase of time it takes for the loader to get to the kernel loading from under a minute to 10-15 minutes in many cases.
Reviewed by: tsoome MFC after: 1 month Differential Revision: https://reviews.freebsd.org/D31623
(cherry picked from commit 0d13f5343fafbf3067ffc33a507ffca0375c4417)
show more ...
|
| 45156a94 | 28-Sep-2021 |
Colin Percival <[email protected]> |
loader: Set twiddle globaldiv to 16 by default
Booting FreeBSD on an EC2 c5.xlarge instance, the loader "twiddles" 810 times over the course of 510 ms, a rate of 1.59 kHz. Even accepting that many s
loader: Set twiddle globaldiv to 16 by default
Booting FreeBSD on an EC2 c5.xlarge instance, the loader "twiddles" 810 times over the course of 510 ms, a rate of 1.59 kHz. Even accepting that many systems are slower than this particular VM and will take longer to boot (especially if using spinning-rust disks), this seems like an unhelpfully large amount of twiddling when compared to the ~60 Hz frame rate of many displays; printing the twiddles also consumes roughly 10% of the boot time on the aforementioned VM.
Setting the default globaldiv to 16 dramatically reduces the time spent printing twiddles to the console while still twiddling at roughly 100 Hz; this should be ample even for systems which take longer to boot and consequently twiddle slower.
Note that this can adjusted via the twiddle_divisor variable in loader.conf, but that file is not processed until nearly halfway through the loader's runtime.
Sponsored by: https://www.patreon.com/cperciva Differential Revision: https://reviews.freebsd.org/D32163
(cherry picked from commit 7457840230c5a470ee5df8abed6ab59c4d008a45)
show more ...
|
| 0e98ea64 | 21-Aug-2021 |
Toomas Soome <[email protected]> |
loader: loader_lua can run command_more twice
When we quit pager, the return value 1 is returned and command_more() interprets it as error.
when lua loader gets error from command, it will try to i
loader: loader_lua can run command_more twice
When we quit pager, the return value 1 is returned and command_more() interprets it as error.
when lua loader gets error from command, it will try to interpret it once more, so we get the same file shown once more.
There is no reason why we should return error from command_more().
(cherry picked from commit 7b0d05d56dfaad4e1d5a19727e34252072913d17)
show more ...
|