genode/repos/os/src/app
Norman Feske bbe3ee8dc5 block_session: server-defined payload alignment
This patch replaces the formerly fixed 2 KiB data alignment within the
packet-stream buffer by a server-defined alignment. This has two
benefits.

First, when using block servers that provide small block sizes like 512
bytes, we avoid fragmenting the packet-stream buffer, which occurs when
aligning 512-byte requests at 2 KiB boundaries. This reduces meta data
costs for the packet-stream allocator and also allows fitting more
requests into the buffer.

Second, block drivers with alignment constraints dictated by the
hardware can now pass those constraints to the client, thereby easing
the use of zero-copy DMA directly into the packet stream.

The alignment is determined by the Block::Session_client at construction
time and applied by the Block::Session_client::alloc_packet method.
Block-session clients should always use this method, not the 'alloc_packet'
method of the packet stream (tx source) directly. The latter merely
applies a default alignment of 2 KiB.

At the server side, the alignment is automatically checked by
block/component.h (old API) and block/request_stream.h (new API).

Issue #3274
2019-05-03 13:53:12 +02:00
..
block_tester block_session: server-defined payload alignment 2019-05-03 13:53:12 +02:00
cli_monitor Add missing override annotations 2019-02-19 11:12:11 +01:00
cpu_burner
dummy os: avoid using deprecated APIs 2019-01-30 13:49:54 +01:00
global_keys_handler os: new Input::Event representation 2018-05-03 15:31:25 +02:00
log_core
nit_focus
ping Move timer from os to base repository 2019-01-14 12:33:57 +01:00
pointer os: avoid using deprecated APIs 2019-01-30 13:49:54 +01:00
rom_logger os: avoid using deprecated APIs 2019-01-30 13:49:54 +01:00
rom_reporter os: avoid using deprecated APIs 2019-01-30 13:49:54 +01:00
rom_to_file
sequence os: avoid using deprecated APIs 2019-01-30 13:49:54 +01:00
status_bar
top top: show execution times per SC and per EC 2019-04-09 12:30:35 +02:00
trace_logger trace: support more facets of execution time 2019-04-09 12:30:34 +02:00
trace_subject_reporter trace: support more facets of execution time 2019-04-09 12:30:34 +02:00
usb_report_filter os: avoid using deprecated APIs 2019-01-30 13:49:54 +01:00