mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-20 06:07:59 +00:00
150d143755
As a result of the API change the memory handling could be simplified. Since the Block session dataspace is now directly used for DMA, we actually only have to provide the memory for setting up PRP lists for large requests (for the moment more than 8 KiB of data). As we limit the maximum data transfer length to 2 MiB, we get by with just a page per request. Those memory is allocated beforehand for the maximum number of I/O requests, which got bumbed to 512 entries. Since not all NVMe controllers support such large a maximum data transfer length and this many entries, especially older ones, the values are capped according to the properties of the controller during initialization. (The memory demands of the component are around 3 MiB due to setting up for the common case, even if a particular controller is only able to make use of less.) (Although there are controllers whose maximum memory page size is more than 4K, the driver is hardcoded to solely use 4K pages.) In addition to those changes, the driver now supports the 'SYNC' and 'TRIM' operations of the Block session by using the NVMe 'FLUSH' and 'WRITE_ZEROS' commands. Fixes #3702. |
||
---|---|---|
.. | ||
doc | ||
include | ||
lib | ||
recipes | ||
run | ||
src | ||
xsd | ||
README |
This source-code repository contains genuine low-level OS components and interfaces of Genode. It solely depends on the framework's base API.