Merge ~tai271828/plainbox-provider-checkbox:mr-usb3-arm into plainbox-provider-checkbox:master
Status: | Merged |
---|---|
Approved by: | Taihsiang Ho |
Approved revision: | af38af920f7ebb33841d5a4355b92c62139ce24b |
Merged at revision: | c23e237865ef88cd38355763eeba80a2f32df1c4 |
Proposed branch: | ~tai271828/plainbox-provider-checkbox:mr-usb3-arm |
Merge into: | plainbox-provider-checkbox:master |
Diff against target: |
14 lines (+2/-1) 1 file modified
bin/removable_storage_test.py (+2/-1) |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Taihsiang Ho | Approve | ||
Devices Certification Bot | Needs Fixing | ||
Jeff Lane | Approve | ||
Review via email: mp+411183@code.launchpad.net |
Description of the change
Detect usb3 on arm with different driver names
In 182f27d6eb131a4
storage detection work on arm. We found on some platforms the USB driver
names are 'xhci_hcd' as well. This merge proposal includes the name
convention.
Fixes lp:1938777
# Steps to Test This Merge Proposal
1. attach usb sticks to Ampere Mt. Jade server like https:/
2. invoke "checkbox-cli run com.canonical.
# Expected Results
1. The test job is launched and passed if the usb storage is usb3.
2. The test job is launched but skip the test if the usb storage is usb2.
# Additional Info
1. For platforms of amd64, there is no impact. I have tested with my own laptop with usb2 and usb3. For usb2 it should simply keep skipping the test. For usb3 it should launch the test and pass.
2. The test result from a Ampere Mt. Jade server
2-1. as-is
Found the following mounted usb partitions:
/dev/sdc1 : /tmp/tmpy2ybath6 : 480000000 bits/s (Will not test it, speed is below 500000000 bits/s)
/dev/sdb1 : /tmp/tmpeomig7lm : 5000000000 bits/s
-------
/dev/sdb1 (Total Data Size / iteration: 255.9662 MB):
[Iteration 0] Average Speed: 16.4867
Summary:
-------
Outcome: job failed
Finalizing session that hasn't been submitted anywhere: checkbox-
=======
☑ : Collect information about hardware devices (udev)
☑ : Collect information about supported types of USB
☑ : Collect information about installed software packages
☑ : Collect information about the CPU
☑ : Collect information about installed snap packages
☒ : Test USB 3.0 or 3.1 ports
2-2. to-be
Found the following mounted usb partitions:
/dev/sdc1 : /tmp/tmpy2ybath6 : 480000000 bits/s (Will not test it, speed is below 500000000 bits/s)
/dev/sdb1 : /tmp/tmpegd95dwv : 5000000000 bits/s
-------
/dev/sdb1 (Total Data Size / iteration: 255.9662 MB):
[Iteration 0] Average Speed: 15.6147
Summary:
-------
Outcome: job passed
Finalizing session that hasn't been submitted anywhere: checkbox-
=======
☑ : Collect information about hardware devices (udev)
☑ : Collect information about installed software packages
☑ : Collect information about installed snap packages
☑ : Collect information about supported types of USB
☑ : Collect information about the CPU
☑ : Test USB 3.0 or 3.1 ports
+1 I'm guessing that in some places xhci-hcd is just a shortcut to xhcd_hcd
bladernr@ galactica: ~/development/ kernels/ ubuntu/ focal/drivers$ modinfo xhci-hcd galactica: ~/development/ kernels/ ubuntu/ focal/drivers$ modinfo xhci_hcd
name: xhci_hcd
filename: (builtin)
license: GPL
author: Sarah Sharp
description: 'eXtensible' Host Controller (xHC) Driver
parm: link_quirk:Don't clear the chain bit on a link TRB (int)
parm: quirks:Bit flags for quirks to be enabled as default (ullong)
bladernr@
name: xhci_hcd
filename: (builtin)
license: GPL
author: Sarah Sharp
description: 'eXtensible' Host Controller (xHC) Driver
parm: link_quirk:Don't clear the chain bit on a link TRB (int)
parm: quirks:Bit flags for quirks to be enabled as default (ullong)