mirror of
https://github.com/genodelabs/genode.git
synced 2025-01-19 03:06:39 +00:00
Re-enable usb_block test
This commit is contained in:
parent
df81d7a374
commit
7680d20686
@ -70,7 +70,7 @@ append config {
|
|||||||
</config>
|
</config>
|
||||||
</start>
|
</start>
|
||||||
<start name="usb_drv">
|
<start name="usb_drv">
|
||||||
<resource name="RAM" quantum="12M"/>
|
<resource name="RAM" quantum="16M"/>
|
||||||
<provides> <service name="Usb"/> </provides>
|
<provides> <service name="Usb"/> </provides>
|
||||||
<config uhci="yes" ehci="yes" xhci="yes">
|
<config uhci="yes" ehci="yes" xhci="yes">
|
||||||
<raw>
|
<raw>
|
||||||
@ -82,15 +82,15 @@ append_if [expr !$use_qemu] config {
|
|||||||
corresponding device.
|
corresponding device.
|
||||||
-->
|
-->
|
||||||
<!-- zte open c needs interface="3" -->
|
<!-- zte open c needs interface="3" -->
|
||||||
<default-policy vendor="0x19d2" product="0x1350"/>
|
<default-policy vendor_id="0x19d2" product_id="0x1350"/>
|
||||||
<!-- kingston -->
|
<!-- kingston -->
|
||||||
<default-policy vendor="0x0951" product="0x1666"/>
|
<default-policy vendor_id="0x0951" product_id="0x1666"/>
|
||||||
<!-- voyager gt stick -->
|
<!-- voyager gt stick -->
|
||||||
<default-policy vendor="0x1b1c" product="0x1a09"/>
|
<default-policy vendor_id="0x1b1c" product_id="0x1a09"/>
|
||||||
<!-- usb3 hdd adapter -->
|
<!-- usb3 hdd adapter -->
|
||||||
<default-policy vendor="0x174c" product="0x5106"/>
|
<default-policy vendor_id="0x174c" product_id="0x5106"/>
|
||||||
<!-- lenovo disc -->
|
<!-- lenovo disc -->
|
||||||
<default-policy vendor="0x0984" product="0x0066"/>
|
<default-policy vendor_id="0x0984" product_id="0x0066"/>
|
||||||
}
|
}
|
||||||
append_if $use_qemu config {
|
append_if $use_qemu config {
|
||||||
<default-policy bus="0x001" dev="0x002"/> }
|
<default-policy bus="0x001" dev="0x002"/> }
|
||||||
@ -113,9 +113,9 @@ append config {
|
|||||||
</route>
|
</route>
|
||||||
</start>
|
</start>
|
||||||
<start name="test-usb">
|
<start name="test-usb">
|
||||||
<resource name="RAM" quantum="4M"/>
|
<resource name="RAM" quantum="128M"/>
|
||||||
<!-- <binary name="test-blk-bench"/> -->
|
<binary name="test-blk-bench"/>
|
||||||
<binary name="test-blk-cli"/>
|
<!--binary name="test-blk-cli"/-->
|
||||||
<config>
|
<config>
|
||||||
<libc stdout="/dev/log">
|
<libc stdout="/dev/log">
|
||||||
<vfs> <dir name="dev"> <log/> </dir> </vfs>
|
<vfs> <dir name="dev"> <log/> </dir> </vfs>
|
||||||
@ -138,7 +138,7 @@ install_config $config
|
|||||||
set boot_modules {
|
set boot_modules {
|
||||||
core init timer report_rom usb_drv usb_block_drv
|
core init timer report_rom usb_drv usb_block_drv
|
||||||
test-blk-cli test-blk-bench
|
test-blk-cli test-blk-bench
|
||||||
ld.lib.so libc.lib.so
|
ld.lib.so
|
||||||
}
|
}
|
||||||
|
|
||||||
lappend_if [have_spec gpio] boot_modules [gpio_drv]
|
lappend_if [have_spec gpio] boot_modules [gpio_drv]
|
||||||
@ -160,7 +160,7 @@ if {$use_qemu} {
|
|||||||
#
|
#
|
||||||
# Qemu opts for EHCI
|
# Qemu opts for EHCI
|
||||||
#
|
#
|
||||||
append qemu_args " -m 128 -nographic -M pc -boot order=d "
|
append qemu_args " -m 256 -nographic -M pc -boot order=d "
|
||||||
append qemu_args " -drive if=none,id=disk,file=$disk_image,format=raw "
|
append qemu_args " -drive if=none,id=disk,file=$disk_image,format=raw "
|
||||||
append qemu_args " -device usb-ehci,id=ehci -device usb-storage,bus=ehci.0,drive=disk "
|
append qemu_args " -device usb-ehci,id=ehci -device usb-storage,bus=ehci.0,drive=disk "
|
||||||
|
|
||||||
|
@ -109,10 +109,10 @@ class Throughput
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
_stop = _timer.elapsed_ms();
|
_stop = _timer.elapsed_ms();
|
||||||
log(!_read_done ? "Read" : "Wrote", " ", _bytes / 1024, " KB in ",
|
log(!_read_done ? "Read" : "Wrote", " ", _bytes / 1024, " KiB in ",
|
||||||
_stop - _start, " ms (",
|
_stop - _start, " ms (",
|
||||||
((double)_bytes / (1024 * 1024)) / ((double)(_stop - _start) / 1000),
|
((double)_bytes / (1024 * 1024)) / ((double)(_stop - _start) / 1000),
|
||||||
" MB/s)");
|
" MiB/s)");
|
||||||
|
|
||||||
/* start write */
|
/* start write */
|
||||||
if (!_read_done ) {
|
if (!_read_done ) {
|
||||||
@ -142,7 +142,7 @@ class Throughput
|
|||||||
_session.info(&_blk_count, &_blk_size, &blk_ops);
|
_session.info(&_blk_count, &_blk_size, &blk_ops);
|
||||||
|
|
||||||
warning("block count ", _blk_count, " size ", _blk_size);
|
warning("block count ", _blk_count, " size ", _blk_size);
|
||||||
log("read/write ", TEST_SIZE / 1024, " KB ...");
|
log("read/write ", TEST_SIZE / 1024, " KiB ...");
|
||||||
_start = _timer.elapsed_ms();
|
_start = _timer.elapsed_ms();
|
||||||
_submit();
|
_submit();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user