[U-Boot] u-boot-usb/master sandbox unit test failure
Bin Meng
bmeng.cn at gmail.com
Tue Sep 26 09:32:01 UTC 2017
Hi Stephen,
On Tue, Sep 26, 2017 at 1:11 AM, Stephen Warren <swarren at wwwdotorg.org> wrote:
> On 09/25/2017 10:40 AM, Marek Vasut wrote:
>>
>> On 09/25/2017 06:13 PM, Stephen Warren wrote:
>>>
>>> Marek,
>>
>>
>> +CC Bin
>>
>> I will drop the xhci patchset and hope to get a fixed one from him.
>
>
> The latest branch content (0184c6fb34b4 "usb: dwc2: Align size of
> invalidating dcache before starting DMA") passes the tests.
>
My tests shows that 'ut dm usb_flash' fails, and should have failed
for quite a long time.
$ ./u-boot -d arch/sandbox/dts/test.dtb
U-Boot 2017.09-00337-g0184c6f (Sep 26 2017 - 17:29:31 +0800)
Model: sandbox
DRAM: 128 MiB
MMC: ** First descriptor is NOT a primary desc on 0:1 **
** First descriptor is NOT a primary desc on 1:1 **
** First descriptor is NOT a primary desc on 2:1 **
mmc2: 2 (SD), mmc1: 1 (SD), mmc0: 0 (SD)
Using default environment
In: serial
Out: vidconsole
Err: vidconsole
Model: sandbox
SCSI: Net: eth0: eth at 10002000, eth5: eth at 10003000, eth3: sbe5,
eth1: eth at 10004000
IDE: Bus 0: not available
=> ut dm usb_flash
Test: dm_test_usb_flash: usb.c
test/dm/usb.c:53, dm_test_usb_flash(): 2 == blk_dread(dev_desc, 0, 2,
cmp): Expected 2, got 0
Test: dm_test_usb_flash: usb.c (flat tree)
test/dm/usb.c:48, dm_test_usb_flash(): 0 ==
blk_get_device_by_str("usb", "0", &dev_desc): Expected 0, got -2
Failures: 2
>
>>> The latest u-boot-usb master branch breaks the following unit tests for
>>> the sandbox target (as run by test/py):
>>>
>>> 8 failed
>>> ... test_ut[ut_dm_blk_usb]
>>> ... test_ut[ut_dm_usb_flash]
>>> ... test_ut[ut_dm_usb_keyb]
>>> ... test_ut[ut_dm_usb_multi]
>>> ... test_ut[ut_dm_usb_remove]
>>> ... test_ut[ut_dm_usb_tree]
>>> ... test_ut[ut_dm_usb_tree_remove]
>>> ... test_ut[ut_dm_usb_tree_reorder]
I've fixed all test failures except 'ut dm usb_flash'.
Regards,
Bin
More information about the U-Boot
mailing list